All of lore.kernel.org
 help / color / mirror / Atom feed
* Build error while following Appendix A. Yocto Project Development manual
@ 2011-11-01 18:37 James Abernathy
  2011-11-01 19:40 ` Tom Zanussi
  0 siblings, 1 reply; 26+ messages in thread
From: James Abernathy @ 2011-11-01 18:37 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1677 bytes --]

I tried to duplicate the Yocto Project Decelopment Manual Appendix A build
of a Crownbay NOEMGD image,  no changes just dulicate the instructions.
This is using the latest Yocto 1.1.  I did get a long way down the line,
but had a fatal error in the last 2 steps.


The only change I had to make was related to A.5.2.4.  The commit string
for the SRCREV_meta_pn was different on the
git.yoctoproject.org/cgit/cgifor the Meta commit so I used what I
found online.  The first section of
126 task completed without error. The next section of 4394 tasks failed on
4393.  Not sure if the error is obvious, but I wanted to run it by someone.
Console error log below:

 NOTE: package core-image-sato-1.0-r0: task do_bootimg: Started
ERROR: Function 'build_boot_bin' failed (see
/home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418
for further information)
ERROR: Logfile of failure stored in:
/home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418
Log data follows:
| install: cannot stat
`/home/jim/poky/yocto-build/tmp/sysroots/mymachine/kernel/bzImage': No such
file or directory
| ERROR: Function 'build_boot_bin' failed (see
/home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418
for further information)
NOTE: package core-image-sato-1.0-r0: task do_bootimg: Failed
ERROR: Task 9 (/home/jim/poky/meta/recipes-sato/images/core-image-sato.bb,
do_bootimg) failed with exit code '1'
ERROR: '/home/jim/poky/meta/recipes-sato/images/core-image-sato.bb' failed
jim@jim-ubuntu-10:~/poky/yocto-build$

[-- Attachment #2: Type: text/html, Size: 2764 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-01 18:37 Build error while following Appendix A. Yocto Project Development manual James Abernathy
@ 2011-11-01 19:40 ` Tom Zanussi
  2011-11-01 19:48   ` James Abernathy
  2011-11-01 21:37   ` Robert P. J. Day
  0 siblings, 2 replies; 26+ messages in thread
From: Tom Zanussi @ 2011-11-01 19:40 UTC (permalink / raw)
  To: James Abernathy; +Cc: yocto@yoctoproject.org

Hi,

On Tue, 2011-11-01 at 11:37 -0700, James Abernathy wrote:
> I tried to duplicate the Yocto Project Decelopment Manual Appendix A
> build of a Crownbay NOEMGD image,  no changes just dulicate the
> instructions.  This is using the latest Yocto 1.1.  I did get a long
> way down the line, but had a fatal error in the last 2 steps.
>  
> The only change I had to make was related to A.5.2.4.  The commit
> string for the SRCREV_meta_pn was different on the
> git.yoctoproject.org/cgit/cgi for the Meta commit so I used what I
> found online.  The first section of 126 task completed without error.
> The next section of 4394 tasks failed on 4393.  Not sure if the error
> is obvious, but I wanted to run it by someone. Console error log
> below:
> 

Hmm, not sure what's going on here - I'm sure this example was verified
several times, but just to make sure, what you're doing is going through
'Appendix A. BSP Development Example' verbatim and getting this?

The SRCREVs in either case look ok for this, so that shouldn't be the
problem...

But let me go over the steps myself and see what I come up with - will
let you know either way...

Tom

>  NOTE: package core-image-sato-1.0-r0: task do_bootimg: Started
> ERROR: Function 'build_boot_bin' failed
> (see /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418 for further information)
> ERROR: Logfile of failure stored
> in: /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418
> Log data follows:
> | install: cannot stat
> `/home/jim/poky/yocto-build/tmp/sysroots/mymachine/kernel/bzImage': No
> such file or directory
> | ERROR: Function 'build_boot_bin' failed
> (see /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418 for further information)
> NOTE: package core-image-sato-1.0-r0: task do_bootimg: Failed
> ERROR: Task 9
> (/home/jim/poky/meta/recipes-sato/images/core-image-sato.bb,
> do_bootimg) failed with exit code '1'
> ERROR: '/home/jim/poky/meta/recipes-sato/images/core-image-sato.bb'
> failed
> jim@jim-ubuntu-10:~/poky/yocto-build$ 
> 




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-01 19:40 ` Tom Zanussi
@ 2011-11-01 19:48   ` James Abernathy
  2011-11-01 19:55     ` Tom Zanussi
  2011-11-02  0:45     ` Tom Zanussi
  2011-11-01 21:37   ` Robert P. J. Day
  1 sibling, 2 replies; 26+ messages in thread
From: James Abernathy @ 2011-11-01 19:48 UTC (permalink / raw)
  To: Tom Zanussi; +Cc: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 2817 bytes --]

Just to clear up the basics, Prior to following Appendix A verbatim, I did
the following
1. install prerequisites from GS guide
2. git clone git://git.yoctoproject.org/poky
3. cd poky
4. git clone git://git.yoctoproject.org/meta-intel.git

I did not install the poky-extras. I assumed it only had to be installed if
you installed the kernel source for modification like in Appendix b

Jim a



On Tue, Nov 1, 2011 at 3:40 PM, Tom Zanussi <tom.zanussi@intel.com> wrote:

> Hi,
>
> On Tue, 2011-11-01 at 11:37 -0700, James Abernathy wrote:
> > I tried to duplicate the Yocto Project Decelopment Manual Appendix A
> > build of a Crownbay NOEMGD image,  no changes just dulicate the
> > instructions.  This is using the latest Yocto 1.1.  I did get a long
> > way down the line, but had a fatal error in the last 2 steps.
> >
> > The only change I had to make was related to A.5.2.4.  The commit
> > string for the SRCREV_meta_pn was different on the
> > git.yoctoproject.org/cgit/cgi for the Meta commit so I used what I
> > found online.  The first section of 126 task completed without error.
> > The next section of 4394 tasks failed on 4393.  Not sure if the error
> > is obvious, but I wanted to run it by someone. Console error log
> > below:
> >
>
> Hmm, not sure what's going on here - I'm sure this example was verified
> several times, but just to make sure, what you're doing is going through
> 'Appendix A. BSP Development Example' verbatim and getting this?
>
> The SRCREVs in either case look ok for this, so that shouldn't be the
> problem...
>
> But let me go over the steps myself and see what I come up with - will
> let you know either way...
>
> Tom
>
> >  NOTE: package core-image-sato-1.0-r0: task do_bootimg: Started
> > ERROR: Function 'build_boot_bin' failed
> > (see
> /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418
> for further information)
> > ERROR: Logfile of failure stored
> > in:
> /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418
> > Log data follows:
> > | install: cannot stat
> > `/home/jim/poky/yocto-build/tmp/sysroots/mymachine/kernel/bzImage': No
> > such file or directory
> > | ERROR: Function 'build_boot_bin' failed
> > (see
> /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418
> for further information)
> > NOTE: package core-image-sato-1.0-r0: task do_bootimg: Failed
> > ERROR: Task 9
> > (/home/jim/poky/meta/recipes-sato/images/core-image-sato.bb,
> > do_bootimg) failed with exit code '1'
> > ERROR: '/home/jim/poky/meta/recipes-sato/images/core-image-sato.bb'
> > failed
> > jim@jim-ubuntu-10:~/poky/yocto-build$
> >
>
>
>

[-- Attachment #2: Type: text/html, Size: 3719 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-01 19:48   ` James Abernathy
@ 2011-11-01 19:55     ` Tom Zanussi
  2011-11-01 20:04       ` James Abernathy
  2011-11-02  0:45     ` Tom Zanussi
  1 sibling, 1 reply; 26+ messages in thread
From: Tom Zanussi @ 2011-11-01 19:55 UTC (permalink / raw)
  To: James Abernathy; +Cc: yocto@yoctoproject.org

On Tue, 2011-11-01 at 12:48 -0700, James Abernathy wrote:
> Just to clear up the basics, Prior to following Appendix A verbatim, I
> did the following
> 1. install prerequisites from GS guide
> 2. git clone git://git.yoctoproject.org/poky
> 3. cd poky
> 4. git clone git://git.yoctoproject.org/meta-intel.git
>  
> I did not install the poky-extras. I assumed it only had to be
> installed if you installed the kernel source for modification like in
> Appendix b
>  

Yeah, normally, assuming you're using an existing kernel branch.  But
you didn't get a build error for the kernel, so I'm assuming that's the
case.

Tom

> Jim a
> 
> 
> 
>  
> On Tue, Nov 1, 2011 at 3:40 PM, Tom Zanussi <tom.zanussi@intel.com>
> wrote:
>         Hi,
>         
>         On Tue, 2011-11-01 at 11:37 -0700, James Abernathy wrote:
>         > I tried to duplicate the Yocto Project Decelopment Manual
>         Appendix A
>         > build of a Crownbay NOEMGD image,  no changes just dulicate
>         the
>         > instructions.  This is using the latest Yocto 1.1.  I did
>         get a long
>         > way down the line, but had a fatal error in the last 2
>         steps.
>         >
>         > The only change I had to make was related to A.5.2.4.  The
>         commit
>         > string for the SRCREV_meta_pn was different on the
>         > git.yoctoproject.org/cgit/cgi for the Meta commit so I used
>         what I
>         > found online.  The first section of 126 task completed
>         without error.
>         > The next section of 4394 tasks failed on 4393.  Not sure if
>         the error
>         > is obvious, but I wanted to run it by someone. Console error
>         log
>         > below:
>         >
>         
>         
>         Hmm, not sure what's going on here - I'm sure this example was
>         verified
>         several times, but just to make sure, what you're doing is
>         going through
>         'Appendix A. BSP Development Example' verbatim and getting
>         this?
>         
>         The SRCREVs in either case look ok for this, so that shouldn't
>         be the
>         problem...
>         
>         But let me go over the steps myself and see what I come up
>         with - will
>         let you know either way...
>         
>         Tom
>         
>         
>         >  NOTE: package core-image-sato-1.0-r0: task do_bootimg:
>         Started
>         > ERROR: Function 'build_boot_bin' failed
>         >
>         (see /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418 for further information)
>         > ERROR: Logfile of failure stored
>         >
>         in: /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418
>         > Log data follows:
>         > | install: cannot stat
>         >
>         `/home/jim/poky/yocto-build/tmp/sysroots/mymachine/kernel/bzImage': No
>         > such file or directory
>         > | ERROR: Function 'build_boot_bin' failed
>         >
>         (see /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418 for further information)
>         > NOTE: package core-image-sato-1.0-r0: task do_bootimg:
>         Failed
>         > ERROR: Task 9
>         > (/home/jim/poky/meta/recipes-sato/images/core-image-sato.bb,
>         > do_bootimg) failed with exit code '1'
>         > ERROR:
>         '/home/jim/poky/meta/recipes-sato/images/core-image-sato.bb'
>         > failed
>         > jim@jim-ubuntu-10:~/poky/yocto-build$
>         >
>         
>         
>         
> 




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-01 19:55     ` Tom Zanussi
@ 2011-11-01 20:04       ` James Abernathy
  0 siblings, 0 replies; 26+ messages in thread
From: James Abernathy @ 2011-11-01 20:04 UTC (permalink / raw)
  To: Tom Zanussi; +Cc: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 4225 bytes --]

The odd thing is not only is the bzImage file is missing, but also is the
whole kernel directory that bzImage is supposed to be locate in.

/home/jim/poky/yocto-build/tmp/sysroots/mymachine/kernel/bzImage

In the sysroots/mymachine/ directory there is only:

lib/
shlibs/
usr/

Jim A

On Tue, Nov 1, 2011 at 3:55 PM, Tom Zanussi <tom.zanussi@intel.com> wrote:

> On Tue, 2011-11-01 at 12:48 -0700, James Abernathy wrote:
> > Just to clear up the basics, Prior to following Appendix A verbatim, I
> > did the following
> > 1. install prerequisites from GS guide
> > 2. git clone git://git.yoctoproject.org/poky
> > 3. cd poky
> > 4. git clone git://git.yoctoproject.org/meta-intel.git
> >
> > I did not install the poky-extras. I assumed it only had to be
> > installed if you installed the kernel source for modification like in
> > Appendix b
> >
>
> Yeah, normally, assuming you're using an existing kernel branch.  But
> you didn't get a build error for the kernel, so I'm assuming that's the
> case.
>
> Tom
>
> > Jim a
> >
> >
> >
> >
> > On Tue, Nov 1, 2011 at 3:40 PM, Tom Zanussi <tom.zanussi@intel.com>
> > wrote:
> >         Hi,
> >
> >         On Tue, 2011-11-01 at 11:37 -0700, James Abernathy wrote:
> >         > I tried to duplicate the Yocto Project Decelopment Manual
> >         Appendix A
> >         > build of a Crownbay NOEMGD image,  no changes just dulicate
> >         the
> >         > instructions.  This is using the latest Yocto 1.1.  I did
> >         get a long
> >         > way down the line, but had a fatal error in the last 2
> >         steps.
> >         >
> >         > The only change I had to make was related to A.5.2.4.  The
> >         commit
> >         > string for the SRCREV_meta_pn was different on the
> >         > git.yoctoproject.org/cgit/cgi for the Meta commit so I used
> >         what I
> >         > found online.  The first section of 126 task completed
> >         without error.
> >         > The next section of 4394 tasks failed on 4393.  Not sure if
> >         the error
> >         > is obvious, but I wanted to run it by someone. Console error
> >         log
> >         > below:
> >         >
> >
> >
> >         Hmm, not sure what's going on here - I'm sure this example was
> >         verified
> >         several times, but just to make sure, what you're doing is
> >         going through
> >         'Appendix A. BSP Development Example' verbatim and getting
> >         this?
> >
> >         The SRCREVs in either case look ok for this, so that shouldn't
> >         be the
> >         problem...
> >
> >         But let me go over the steps myself and see what I come up
> >         with - will
> >         let you know either way...
> >
> >         Tom
> >
> >
> >         >  NOTE: package core-image-sato-1.0-r0: task do_bootimg:
> >         Started
> >         > ERROR: Function 'build_boot_bin' failed
> >         >
> >         (see
> /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418
> for further information)
> >         > ERROR: Logfile of failure stored
> >         >
> >         in:
> /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418
> >         > Log data follows:
> >         > | install: cannot stat
> >         >
> >
> `/home/jim/poky/yocto-build/tmp/sysroots/mymachine/kernel/bzImage': No
> >         > such file or directory
> >         > | ERROR: Function 'build_boot_bin' failed
> >         >
> >         (see
> /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418
> for further information)
> >         > NOTE: package core-image-sato-1.0-r0: task do_bootimg:
> >         Failed
> >         > ERROR: Task 9
> >         > (/home/jim/poky/meta/recipes-sato/images/core-image-sato.bb,
> >         > do_bootimg) failed with exit code '1'
> >         > ERROR:
> >         '/home/jim/poky/meta/recipes-sato/images/core-image-sato.bb'
> >         > failed
> >         > jim@jim-ubuntu-10:~/poky/yocto-build$
> >         >
> >
> >
> >
> >
>
>
>

[-- Attachment #2: Type: text/html, Size: 5532 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-01 19:40 ` Tom Zanussi
  2011-11-01 19:48   ` James Abernathy
@ 2011-11-01 21:37   ` Robert P. J. Day
  2011-11-01 21:46     ` Tom Zanussi
  1 sibling, 1 reply; 26+ messages in thread
From: Robert P. J. Day @ 2011-11-01 21:37 UTC (permalink / raw)
  To: Tom Zanussi; +Cc: yocto@yoctoproject.org

On Tue, 1 Nov 2011, Tom Zanussi wrote:

> Hi,
>
> On Tue, 2011-11-01 at 11:37 -0700, James Abernathy wrote:
> > I tried to duplicate the Yocto Project Decelopment Manual Appendix A
> > build of a Crownbay NOEMGD image,  no changes just dulicate the
> > instructions.  This is using the latest Yocto 1.1.  I did get a long
> > way down the line, but had a fatal error in the last 2 steps.
> >
> > The only change I had to make was related to A.5.2.4.  The commit
> > string for the SRCREV_meta_pn was different on the
> > git.yoctoproject.org/cgit/cgi for the Meta commit so I used what I
> > found online.  The first section of 126 task completed without error.
> > The next section of 4394 tasks failed on 4393.  Not sure if the error
> > is obvious, but I wanted to run it by someone. Console error log
> > below:
> >
>
> Hmm, not sure what's going on here - I'm sure this example was
> verified several times, but just to make sure, what you're doing is
> going through 'Appendix A. BSP Development Example' verbatim and
> getting this?

  ironically, i'm working on this very example and something in the
dev manual doesn't look right.  section A.5.2.1:

These commands take care of the recipes-bsp recipes:

  $ rm -rf meta-mymachine/recipes-graphics/xorg-xserver/*emgd*
  ... snip ...

why is that command referring to the recipes-graphics directory when
this section is supposed to be adjusting recipes-bsp?

or have i screwed something up?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-01 21:37   ` Robert P. J. Day
@ 2011-11-01 21:46     ` Tom Zanussi
  2011-11-01 21:54       ` Tom Zanussi
  2011-11-01 21:56       ` Robert P. J. Day
  0 siblings, 2 replies; 26+ messages in thread
From: Tom Zanussi @ 2011-11-01 21:46 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: yocto@yoctoproject.org

On Tue, 2011-11-01 at 14:37 -0700, Robert P. J. Day wrote:
> On Tue, 1 Nov 2011, Tom Zanussi wrote:
> 
> > Hi,
> >
> > On Tue, 2011-11-01 at 11:37 -0700, James Abernathy wrote:
> > > I tried to duplicate the Yocto Project Decelopment Manual Appendix A
> > > build of a Crownbay NOEMGD image,  no changes just dulicate the
> > > instructions.  This is using the latest Yocto 1.1.  I did get a long
> > > way down the line, but had a fatal error in the last 2 steps.
> > >
> > > The only change I had to make was related to A.5.2.4.  The commit
> > > string for the SRCREV_meta_pn was different on the
> > > git.yoctoproject.org/cgit/cgi for the Meta commit so I used what I
> > > found online.  The first section of 126 task completed without error.
> > > The next section of 4394 tasks failed on 4393.  Not sure if the error
> > > is obvious, but I wanted to run it by someone. Console error log
> > > below:
> > >
> >
> > Hmm, not sure what's going on here - I'm sure this example was
> > verified several times, but just to make sure, what you're doing is
> > going through 'Appendix A. BSP Development Example' verbatim and
> > getting this?
> 
>   ironically, i'm working on this very example and something in the
> dev manual doesn't look right.  section A.5.2.1:
> 
> These commands take care of the recipes-bsp recipes:
> 
>   $ rm -rf meta-mymachine/recipes-graphics/xorg-xserver/*emgd*
>   ... snip ...
> 
> why is that command referring to the recipes-graphics directory when
> this section is supposed to be adjusting recipes-bsp?
> 
> or have i screwed something up?

You're right, that line shouldn't be there (it should be removed from
the instructions).  The emgd recipes were moved out of meta-crownbay and
into meta-intel/common, so this step is no longer needed.

Tom

> 
> rday
> 




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-01 21:46     ` Tom Zanussi
@ 2011-11-01 21:54       ` Tom Zanussi
  2011-11-01 22:47         ` Robert P. J. Day
  2011-11-01 21:56       ` Robert P. J. Day
  1 sibling, 1 reply; 26+ messages in thread
From: Tom Zanussi @ 2011-11-01 21:54 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: yocto@yoctoproject.org

On Tue, 2011-11-01 at 14:46 -0700, Tom Zanussi wrote:
> On Tue, 2011-11-01 at 14:37 -0700, Robert P. J. Day wrote:
> > On Tue, 1 Nov 2011, Tom Zanussi wrote:
> > 
> > > Hi,
> > >
> > > On Tue, 2011-11-01 at 11:37 -0700, James Abernathy wrote:
> > > > I tried to duplicate the Yocto Project Decelopment Manual Appendix A
> > > > build of a Crownbay NOEMGD image,  no changes just dulicate the
> > > > instructions.  This is using the latest Yocto 1.1.  I did get a long
> > > > way down the line, but had a fatal error in the last 2 steps.
> > > >
> > > > The only change I had to make was related to A.5.2.4.  The commit
> > > > string for the SRCREV_meta_pn was different on the
> > > > git.yoctoproject.org/cgit/cgi for the Meta commit so I used what I
> > > > found online.  The first section of 126 task completed without error.
> > > > The next section of 4394 tasks failed on 4393.  Not sure if the error
> > > > is obvious, but I wanted to run it by someone. Console error log
> > > > below:
> > > >
> > >
> > > Hmm, not sure what's going on here - I'm sure this example was
> > > verified several times, but just to make sure, what you're doing is
> > > going through 'Appendix A. BSP Development Example' verbatim and
> > > getting this?
> > 
> >   ironically, i'm working on this very example and something in the
> > dev manual doesn't look right.  section A.5.2.1:
> > 
> > These commands take care of the recipes-bsp recipes:
> > 
> >   $ rm -rf meta-mymachine/recipes-graphics/xorg-xserver/*emgd*
> >   ... snip ...
> > 
> > why is that command referring to the recipes-graphics directory when
> > this section is supposed to be adjusting recipes-bsp?
> > 
> > or have i screwed something up?
> 
> You're right, that line shouldn't be there (it should be removed from
> the instructions).  The emgd recipes were moved out of meta-crownbay and
> into meta-intel/common, so this step is no longer needed.
> 

Probably what was meant was this instead:

rm -rf meta-mymachine/recipes-bsp/formfactor/formfactor/crownbay/

And of course the first line in section A.5.2.2. doesn't apply and
should be removed.

rm -rf meta-mymachine/recipes-graphics/xorg-xserver/xserver-xf86-emgd*

Tom

> Tom
> 
> > 
> > rday
> > 
> 
> 
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-01 21:46     ` Tom Zanussi
  2011-11-01 21:54       ` Tom Zanussi
@ 2011-11-01 21:56       ` Robert P. J. Day
  1 sibling, 0 replies; 26+ messages in thread
From: Robert P. J. Day @ 2011-11-01 21:56 UTC (permalink / raw)
  To: Tom Zanussi; +Cc: yocto@yoctoproject.org

On Tue, 1 Nov 2011, Tom Zanussi wrote:

> On Tue, 2011-11-01 at 14:37 -0700, Robert P. J. Day wrote:
> > On Tue, 1 Nov 2011, Tom Zanussi wrote:

... snip ...

> > > Hmm, not sure what's going on here - I'm sure this example was
> > > verified several times, but just to make sure, what you're doing is
> > > going through 'Appendix A. BSP Development Example' verbatim and
> > > getting this?
> >
> >   ironically, i'm working on this very example and something in the
> > dev manual doesn't look right.  section A.5.2.1:
> >
> > These commands take care of the recipes-bsp recipes:
> >
> >   $ rm -rf meta-mymachine/recipes-graphics/xorg-xserver/*emgd*
> >   ... snip ...
> >
> > why is that command referring to the recipes-graphics directory when
> > this section is supposed to be adjusting recipes-bsp?
> >
> > or have i screwed something up?
>
> You're right, that line shouldn't be there (it should be removed
> from the instructions).  The emgd recipes were moved out of
> meta-crownbay and into meta-intel/common, so this step is no longer
> needed.

  let me finish following this through and i'll make notes on anything
else that looks odd and report back.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-01 21:54       ` Tom Zanussi
@ 2011-11-01 22:47         ` Robert P. J. Day
  2011-11-01 23:16           ` Tom Zanussi
  0 siblings, 1 reply; 26+ messages in thread
From: Robert P. J. Day @ 2011-11-01 22:47 UTC (permalink / raw)
  To: Tom Zanussi; +Cc: yocto@yoctoproject.org


  some questions/observations as i'm getting close to the end of this
appendix (some of which you've already seen and addressed), all done
on my 64-bit ubuntu 11.10 system:

  * section A.3: rather than force the reader to follow a link or go
to an earlier section, why not just supply the command to check out
meta-intel/?

  $ git clone http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel

  * section A.5.1: is it actually *necessary* to delete the
crownbay.conf file, and to change the comments in the mymachine.conf
file?  admittedly, it's nice to keep things consistent, but if the
text claims that something is "needed", then it really should be
required.

  * section A.5.2.1: as we've noted, that first command can be tossed.
in addition, should one remove the "crownbay" directory from that
location?  since "crownbay" content is being removed from other
locations, it would be nice to be consistent.

  * section A.5.2.2: delete first command

  * section A.5.2.4: the "SRCREV_meta" values listed in the appendix
don't match what's in the actual file.  so what are the correct
values?

  ... back to work ...

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-01 22:47         ` Robert P. J. Day
@ 2011-11-01 23:16           ` Tom Zanussi
  2011-11-01 23:27             ` Robert P. J. Day
  0 siblings, 1 reply; 26+ messages in thread
From: Tom Zanussi @ 2011-11-01 23:16 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: yocto@yoctoproject.org

On Tue, 2011-11-01 at 15:47 -0700, Robert P. J. Day wrote:
> some questions/observations as i'm getting close to the end of this
> appendix (some of which you've already seen and addressed), all done
> on my 64-bit ubuntu 11.10 system:
> 
>   * section A.3: rather than force the reader to follow a link or go
> to an earlier section, why not just supply the command to check out
> meta-intel/?
> 
>   $ git clone http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel
> 

Makes sense to me.  Also, the same comment would apply to the main poky
repo as well.

>   * section A.5.1: is it actually *necessary* to delete the
> crownbay.conf file, and to change the comments in the mymachine.conf
> file?  admittedly, it's nice to keep things consistent, but if the
> text claims that something is "needed", then it really should be
> required.

No, not strictly necessary, but assuming you're using these instructions
to create a new BSP, definitely desirable.

> 
>   * section A.5.2.1: as we've noted, that first command can be tossed.
> in addition, should one remove the "crownbay" directory from that
> location?  since "crownbay" content is being removed from other
> locations, it would be nice to be consistent.
> 
>   * section A.5.2.2: delete first command
> 

I think that's right.

>   * section A.5.2.4: the "SRCREV_meta" values listed in the appendix
> don't match what's in the actual file.  so what are the correct
> values?
> 

Well, this example seems to assume you want to base it on the atom-pc
branch, so I guess we should use the value for that branch in meta-yocto
(meta-yocto/recipes-kernel/linux/linux-yocto_3.0.bbappend).  The meta
branch SRCREV should be inherited from the main recipe
(meta/recipes-kernel/linux/linux-yocto_3.0.bb) which looks like it
matches the current value and doesn't need to be changed.

Or at least that's what I'm building now.  I'll post the full transcript
assuming I get a good build out of it...

Tom

>   ... back to work ...
> 
> rday
> 




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-01 23:16           ` Tom Zanussi
@ 2011-11-01 23:27             ` Robert P. J. Day
  0 siblings, 0 replies; 26+ messages in thread
From: Robert P. J. Day @ 2011-11-01 23:27 UTC (permalink / raw)
  To: Tom Zanussi; +Cc: yocto@yoctoproject.org

On Tue, 1 Nov 2011, Tom Zanussi wrote:

... snip ...

> Or at least that's what I'm building now.  I'll post the full transcript
> assuming I get a good build out of it...

  i'm also into task 301 of 4426 of a build on my wicked cool,
quad-core ASUS laptop.  i don't think this is going to take long.
more later ...

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-01 19:48   ` James Abernathy
  2011-11-01 19:55     ` Tom Zanussi
@ 2011-11-02  0:45     ` Tom Zanussi
  2011-11-02 12:19       ` Robert P. J. Day
                         ` (2 more replies)
  1 sibling, 3 replies; 26+ messages in thread
From: Tom Zanussi @ 2011-11-02  0:45 UTC (permalink / raw)
  To: James Abernathy; +Cc: yocto@yoctoproject.org

Hi James,

I'm still not sure what happened in your case to cause this problem, but
I just went through the Appendix A example pretty much as described, and
got a good build out of it.  There was one particular part of the
example that wasn't exactly clear and that could definitely cause some
build problems if you did it incorrectly (the section that makes changes
to linux-yocto_3.0.bbappend, which in the example has a custom branch in
the .bbappend file, but has the explanation using atom-pc).

I'll work with Scott to make sure that part gets cleaned up, along with
the other comments that should get pulled in, but in the meantime, I
captured the steps I used below, which should work in the same way for
you.

trz@elmorro:/usr/local/dev/yocto$ mkdir bsp-test; cd bsp-test
trz@elmorro:/usr/local/dev/yocto/bsp-test$ git clone git://git.yoctoproject.org/poky
trz@elmorro:/usr/local/dev/yocto/bsp-test$ cd poky
trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ git checkout -b edison origin/edison
trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ git clone git://git.yoctoproject.org/meta-intel.git
trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ cd meta-intel
trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ git checkout -b edison origin/edison
trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ cp -a meta-crownbay/ meta-mymachine
trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ rm meta-mymachine/conf/machine/crownbay.conf
trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ mv meta-mymachine/conf/machine/crownbay-noemgd.conf meta-mymachine/conf/machine/mymachine.conf
trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ rm -rf meta-mymachine/recipes-bsp/formfactor/formfactor/crownbay/
trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ mv meta-mymachine/recipes-bsp/formfactor/formfactor/crownbay-noemgd meta-mymachine/recipes-bsp/formfactor/formfactor/mymachine
trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ rm -rf meta-mymachine/recipes-graphics/xorg-xserver/xserver-xf86-config/crownbay

----
The Developer's Manual seems to want to base the BSP on atom-pc for
this example, so we need to specify the atom-pc branch and get the
SRCREVs for atom-pc or the step that modifies the
linux-yocto_3.0.bbappend.  So in
meta-yocto/recipes-kernel/linux/linux-yocto_3.0.bbappend, we find both
the KMACHINE branch we need, and the SRCREV on that branch we need for
edison.  Since that doesn't specify the meta branch, but the base
recipe does, we can look at the SRCREV_meta there
(meta/recipes-kernel/linux/linux-yocto_3.0.bb) for the SRCREV of the
meta branch, which already matches what we're using, so no change
needed there.

Here's the resulting linux-yocto_3.0.bbappend:

trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ cat meta-mymachine/recipes-kernel/linux/linux-yocto_3.0.bbappend

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

COMPATIBLE_MACHINE_mymachine = "mymachine"
KMACHINE_mymachine  = "yocto/standard/common-pc/atom-pc"
KERNEL_FEATURES_append_mymachine += " cfg/smp.scc"

SRCREV_machine_pn-linux-yocto_mymachine ?= "1e18e44adbe79b846e382370eb29bc4b8cd5a1a0"
SRCREV_meta_pn-linux-yocto_mymachine ?= "d05450e4aef02c1b7137398ab3a9f8f96da74f52"

----

trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ source oe-init-build-env
trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ bitbake core-image-sato

NOTE: Tasks Summary: Attempted 4426 tasks of which 247 didn't need to be rerun and 0 failed.
trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/build


Tom


On Tue, 2011-11-01 at 12:48 -0700, James Abernathy wrote:
> Just to clear up the basics, Prior to following Appendix A verbatim, I
> did the following
> 1. install prerequisites from GS guide
> 2. git clone git://git.yoctoproject.org/poky
> 3. cd poky
> 4. git clone git://git.yoctoproject.org/meta-intel.git
>  
> I did not install the poky-extras. I assumed it only had to be
> installed if you installed the kernel source for modification like in
> Appendix b
>  
> Jim a
> 
> 
> 
>  
> On Tue, Nov 1, 2011 at 3:40 PM, Tom Zanussi <tom.zanussi@intel.com>
> wrote:
>         Hi,
>         
>         On Tue, 2011-11-01 at 11:37 -0700, James Abernathy wrote:
>         > I tried to duplicate the Yocto Project Decelopment Manual
>         Appendix A
>         > build of a Crownbay NOEMGD image,  no changes just dulicate
>         the
>         > instructions.  This is using the latest Yocto 1.1.  I did
>         get a long
>         > way down the line, but had a fatal error in the last 2
>         steps.
>         >
>         > The only change I had to make was related to A.5.2.4.  The
>         commit
>         > string for the SRCREV_meta_pn was different on the
>         > git.yoctoproject.org/cgit/cgi for the Meta commit so I used
>         what I
>         > found online.  The first section of 126 task completed
>         without error.
>         > The next section of 4394 tasks failed on 4393.  Not sure if
>         the error
>         > is obvious, but I wanted to run it by someone. Console error
>         log
>         > below:
>         >
>         
>         
>         Hmm, not sure what's going on here - I'm sure this example was
>         verified
>         several times, but just to make sure, what you're doing is
>         going through
>         'Appendix A. BSP Development Example' verbatim and getting
>         this?
>         
>         The SRCREVs in either case look ok for this, so that shouldn't
>         be the
>         problem...
>         
>         But let me go over the steps myself and see what I come up
>         with - will
>         let you know either way...
>         
>         Tom
>         
>         
>         >  NOTE: package core-image-sato-1.0-r0: task do_bootimg:
>         Started
>         > ERROR: Function 'build_boot_bin' failed
>         >
>         (see /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418 for further information)
>         > ERROR: Logfile of failure stored
>         >
>         in: /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418
>         > Log data follows:
>         > | install: cannot stat
>         >
>         `/home/jim/poky/yocto-build/tmp/sysroots/mymachine/kernel/bzImage': No
>         > such file or directory
>         > | ERROR: Function 'build_boot_bin' failed
>         >
>         (see /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418 for further information)
>         > NOTE: package core-image-sato-1.0-r0: task do_bootimg:
>         Failed
>         > ERROR: Task 9
>         > (/home/jim/poky/meta/recipes-sato/images/core-image-sato.bb,
>         > do_bootimg) failed with exit code '1'
>         > ERROR:
>         '/home/jim/poky/meta/recipes-sato/images/core-image-sato.bb'
>         > failed
>         > jim@jim-ubuntu-10:~/poky/yocto-build$
>         >
>         
>         
>         
> 




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-02  0:45     ` Tom Zanussi
@ 2011-11-02 12:19       ` Robert P. J. Day
  2011-11-02 14:18         ` Tom Zanussi
  2011-11-02 14:24       ` Jim Abernathy
  2011-11-03 19:32       ` James Abernathy
  2 siblings, 1 reply; 26+ messages in thread
From: Robert P. J. Day @ 2011-11-02 12:19 UTC (permalink / raw)
  To: Tom Zanussi; +Cc: yocto@yoctoproject.org


  just to clarify any overlooked issues ...

On Tue, 1 Nov 2011, Tom Zanussi wrote:

> ... I captured the steps I used below, which should work in the same
> way for you.
>
> trz@elmorro:/usr/local/dev/yocto$ mkdir bsp-test; cd bsp-test
> trz@elmorro:/usr/local/dev/yocto/bsp-test$ git clone git://git.yoctoproject.org/poky
> trz@elmorro:/usr/local/dev/yocto/bsp-test$ cd poky
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ git checkout -b edison origin/edison
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ git clone git://git.yoctoproject.org/meta-intel.git
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ cd meta-intel
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ git checkout -b edison origin/edison
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ cp -a meta-crownbay/ meta-mymachine
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ rm meta-mymachine/conf/machine/crownbay.conf
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ mv meta-mymachine/conf/machine/crownbay-noemgd.conf meta-mymachine/conf/machine/mymachine.conf

  should one still change the NAME or DESCRIPTION comments in that new
mymachine.conf file to reflect "mymachine" as the dev-manual suggests,
or can one just leave them referring to crownbay?  recall that the
current dev-manual claims that you "need" to make those changes.  if
you don't, that claim should be softened.

  also, there's no mention of editing "layer.conf" to reflect
"mymachine" as directed in dev-manual:

  BBFILE_COLLECTIONS += "mymachine"

should that not be done?  again, the current dev-manual states that
that change is "needed".

> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ rm -rf meta-mymachine/recipes-bsp/formfactor/formfactor/crownbay/
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ mv meta-mymachine/recipes-bsp/formfactor/formfactor/crownbay-noemgd meta-mymachine/recipes-bsp/formfactor/formfactor/mymachine
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ rm -rf meta-mymachine/recipes-graphics/xorg-xserver/xserver-xf86-config/crownbay

  don't you also have to rename "crownbay-noemgd/" to "mymachine/"
under that recipes-graphics/ directory as well, as the dev-manual
directs?  you don't mention that here.  you also don't mention making
editing changes to recipes-core/tasks/task-core-tools.bbappend as
dev-manual suggests.  not necessary?

> Here's the resulting linux-yocto_3.0.bbappend:
>
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ cat meta-mymachine/recipes-kernel/linux/linux-yocto_3.0.bbappend
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>
> COMPATIBLE_MACHINE_mymachine = "mymachine"
> KMACHINE_mymachine  = "yocto/standard/common-pc/atom-pc"
> KERNEL_FEATURES_append_mymachine += " cfg/smp.scc"
>
> SRCREV_machine_pn-linux-yocto_mymachine ?= "1e18e44adbe79b846e382370eb29bc4b8cd5a1a0"
> SRCREV_meta_pn-linux-yocto_mymachine ?= "d05450e4aef02c1b7137398ab3a9f8f96da74f52"

  ok, just took that verbatim.

> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ source oe-init-build-env
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ bitbake core-image-sato
>
> NOTE: Tasks Summary: Attempted 4426 tasks of which 247 didn't need to be rerun and 0 failed.
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/build

  other than sourcing from one directory level up and making the
appropriate changes in conf/local.conf to refer to "mymachine", no
difference here.  just started the build ...

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-02 12:19       ` Robert P. J. Day
@ 2011-11-02 14:18         ` Tom Zanussi
  2011-11-02 14:35           ` Robert P. J. Day
  0 siblings, 1 reply; 26+ messages in thread
From: Tom Zanussi @ 2011-11-02 14:18 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: yocto@yoctoproject.org

On Wed, 2011-11-02 at 05:19 -0700, Robert P. J. Day wrote:
> just to clarify any overlooked issues ...
> 
> On Tue, 1 Nov 2011, Tom Zanussi wrote:
> 
> > ... I captured the steps I used below, which should work in the same
> > way for you.
> >
> > trz@elmorro:/usr/local/dev/yocto$ mkdir bsp-test; cd bsp-test
> > trz@elmorro:/usr/local/dev/yocto/bsp-test$ git clone git://git.yoctoproject.org/poky
> > trz@elmorro:/usr/local/dev/yocto/bsp-test$ cd poky
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ git checkout -b edison origin/edison
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ git clone git://git.yoctoproject.org/meta-intel.git
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ cd meta-intel
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ git checkout -b edison origin/edison
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ cp -a meta-crownbay/ meta-mymachine
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ rm meta-mymachine/conf/machine/crownbay.conf
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ mv meta-mymachine/conf/machine/crownbay-noemgd.conf meta-mymachine/conf/machine/mymachine.conf
> 
>   should one still change the NAME or DESCRIPTION comments in that new
> mymachine.conf file to reflect "mymachine" as the dev-manual suggests,
> or can one just leave them referring to crownbay?  recall that the
> current dev-manual claims that you "need" to make those changes.  if
> you don't, that claim should be softened.
> 

Right, not strictly needed, only for consistency, so the language should
be softened, I agree.

>   also, there's no mention of editing "layer.conf" to reflect
> "mymachine" as directed in dev-manual:
> 
>   BBFILE_COLLECTIONS += "mymachine"
> 
> should that not be done?  again, the current dev-manual states that
> that change is "needed".
> 

That is needed, but the steps that required editing files aren't easily
captured in a transcript, so I didn't capture those, but they are still
required.  I should have added a <do editing step xxx from the doc here>
to make that clear, though I did mention that other than the
kernel .bbappend, the steps I went through were pretty much as
described.  Anyway, hopefully we can get the changes from this thread in
the doc and it will then all fit together.

> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ rm -rf meta-mymachine/recipes-bsp/formfactor/formfactor/crownbay/
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ mv meta-mymachine/recipes-bsp/formfactor/formfactor/crownbay-noemgd meta-mymachine/recipes-bsp/formfactor/formfactor/mymachine
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ rm -rf meta-mymachine/recipes-graphics/xorg-xserver/xserver-xf86-config/crownbay
> 
>   don't you also have to rename "crownbay-noemgd/" to "mymachine/"
> under that recipes-graphics/ directory as well, as the dev-manual
> directs?  you don't mention that here.  you also don't mention making

Right, I missed that step.  It still builds, though there would be
problems with X at runtime due to this.

> editing changes to recipes-core/tasks/task-core-tools.bbappend as
> dev-manual suggests.  not necessary?
> 

Yes, necessary, again, I didn't add the notes about editing.

Tom

> > Here's the resulting linux-yocto_3.0.bbappend:
> >
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ cat meta-mymachine/recipes-kernel/linux/linux-yocto_3.0.bbappend
> >
> > FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> >
> > COMPATIBLE_MACHINE_mymachine = "mymachine"
> > KMACHINE_mymachine  = "yocto/standard/common-pc/atom-pc"
> > KERNEL_FEATURES_append_mymachine += " cfg/smp.scc"
> >
> > SRCREV_machine_pn-linux-yocto_mymachine ?= "1e18e44adbe79b846e382370eb29bc4b8cd5a1a0"
> > SRCREV_meta_pn-linux-yocto_mymachine ?= "d05450e4aef02c1b7137398ab3a9f8f96da74f52"
> 
>   ok, just took that verbatim.
> 
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ source oe-init-build-env
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ bitbake core-image-sato
> >
> > NOTE: Tasks Summary: Attempted 4426 tasks of which 247 didn't need to be rerun and 0 failed.
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/build
> 
>   other than sourcing from one directory level up and making the
> appropriate changes in conf/local.conf to refer to "mymachine", no
> difference here.  just started the build ...
> 
> rday
> 




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-02  0:45     ` Tom Zanussi
  2011-11-02 12:19       ` Robert P. J. Day
@ 2011-11-02 14:24       ` Jim Abernathy
  2011-11-02 14:41         ` Tom Zanussi
  2011-11-03 19:32       ` James Abernathy
  2 siblings, 1 reply; 26+ messages in thread
From: Jim Abernathy @ 2011-11-02 14:24 UTC (permalink / raw)
  To: Tom Zanussi; +Cc: yocto@yoctoproject.org

okay, what you mentioned as the steps below, I agree with, but a couple
I don't understand. first, in the linux-yocto_3.0.bbappend file, why is
the KMACHINE statement changed to common-pc/atom-pc? If I look st eh
section of the doc in A.5.2.4 talking about going to
cgit/cgit.cgi/linux-yocto-3.0 to get the latest commit strings, I see
that it agrees with the path in #2, but not sure why??

Second, I looked at your cat of the same file containing the SRCREV
commit strings and I don't see that they agree with the commits on the
website even just this morning.  Can you explain that? Should I just use
the ones in  your cat output or eventually the corrected Dev. Manual?

Jim A

On Tue, 2011-11-01 at 19:45 -0500, Tom Zanussi wrote:
> Hi James,
> 
> I'm still not sure what happened in your case to cause this problem, but
> I just went through the Appendix A example pretty much as described, and
> got a good build out of it.  There was one particular part of the
> example that wasn't exactly clear and that could definitely cause some
> build problems if you did it incorrectly (the section that makes changes
> to linux-yocto_3.0.bbappend, which in the example has a custom branch in
> the .bbappend file, but has the explanation using atom-pc).
> 
> I'll work with Scott to make sure that part gets cleaned up, along with
> the other comments that should get pulled in, but in the meantime, I
> captured the steps I used below, which should work in the same way for
> you.
> 
> trz@elmorro:/usr/local/dev/yocto$ mkdir bsp-test; cd bsp-test
> trz@elmorro:/usr/local/dev/yocto/bsp-test$ git clone git://git.yoctoproject.org/poky
> trz@elmorro:/usr/local/dev/yocto/bsp-test$ cd poky
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ git checkout -b edison origin/edison
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ git clone git://git.yoctoproject.org/meta-intel.git
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ cd meta-intel
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ git checkout -b edison origin/edison
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ cp -a meta-crownbay/ meta-mymachine
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ rm meta-mymachine/conf/machine/crownbay.conf
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ mv meta-mymachine/conf/machine/crownbay-noemgd.conf meta-mymachine/conf/machine/mymachine.conf
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ rm -rf meta-mymachine/recipes-bsp/formfactor/formfactor/crownbay/
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ mv meta-mymachine/recipes-bsp/formfactor/formfactor/crownbay-noemgd meta-mymachine/recipes-bsp/formfactor/formfactor/mymachine
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ rm -rf meta-mymachine/recipes-graphics/xorg-xserver/xserver-xf86-config/crownbay
> 
> ----
> The Developer's Manual seems to want to base the BSP on atom-pc for
> this example, so we need to specify the atom-pc branch and get the
> SRCREVs for atom-pc or the step that modifies the
> linux-yocto_3.0.bbappend.  So in
> meta-yocto/recipes-kernel/linux/linux-yocto_3.0.bbappend, we find both
> the KMACHINE branch we need, and the SRCREV on that branch we need for
> edison.  Since that doesn't specify the meta branch, but the base
> recipe does, we can look at the SRCREV_meta there
> (meta/recipes-kernel/linux/linux-yocto_3.0.bb) for the SRCREV of the
> meta branch, which already matches what we're using, so no change
> needed there.
> 
> Here's the resulting linux-yocto_3.0.bbappend:
> 
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ cat meta-mymachine/recipes-kernel/linux/linux-yocto_3.0.bbappend
> 
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> 
> COMPATIBLE_MACHINE_mymachine = "mymachine"
> KMACHINE_mymachine  = "yocto/standard/common-pc/atom-pc"
> KERNEL_FEATURES_append_mymachine += " cfg/smp.scc"
> 
> SRCREV_machine_pn-linux-yocto_mymachine ?= "1e18e44adbe79b846e382370eb29bc4b8cd5a1a0"
> SRCREV_meta_pn-linux-yocto_mymachine ?= "d05450e4aef02c1b7137398ab3a9f8f96da74f52"
> 
> ----
> 
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ source oe-init-build-env
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ bitbake core-image-sato
> 
> NOTE: Tasks Summary: Attempted 4426 tasks of which 247 didn't need to be rerun and 0 failed.
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/build
> 
> 
> Tom
> 
> 
> On Tue, 2011-11-01 at 12:48 -0700, James Abernathy wrote:
> > Just to clear up the basics, Prior to following Appendix A verbatim, I
> > did the following
> > 1. install prerequisites from GS guide
> > 2. git clone git://git.yoctoproject.org/poky
> > 3. cd poky
> > 4. git clone git://git.yoctoproject.org/meta-intel.git
> >  
> > I did not install the poky-extras. I assumed it only had to be
> > installed if you installed the kernel source for modification like in
> > Appendix b
> >  
> > Jim a
> > 
> > 
> > 
> >  
> > On Tue, Nov 1, 2011 at 3:40 PM, Tom Zanussi <tom.zanussi@intel.com>
> > wrote:
> >         Hi,
> >         
> >         On Tue, 2011-11-01 at 11:37 -0700, James Abernathy wrote:
> >         > I tried to duplicate the Yocto Project Decelopment Manual
> >         Appendix A
> >         > build of a Crownbay NOEMGD image,  no changes just dulicate
> >         the
> >         > instructions.  This is using the latest Yocto 1.1.  I did
> >         get a long
> >         > way down the line, but had a fatal error in the last 2
> >         steps.
> >         >
> >         > The only change I had to make was related to A.5.2.4.  The
> >         commit
> >         > string for the SRCREV_meta_pn was different on the
> >         > git.yoctoproject.org/cgit/cgi for the Meta commit so I used
> >         what I
> >         > found online.  The first section of 126 task completed
> >         without error.
> >         > The next section of 4394 tasks failed on 4393.  Not sure if
> >         the error
> >         > is obvious, but I wanted to run it by someone. Console error
> >         log
> >         > below:
> >         >
> >         
> >         
> >         Hmm, not sure what's going on here - I'm sure this example was
> >         verified
> >         several times, but just to make sure, what you're doing is
> >         going through
> >         'Appendix A. BSP Development Example' verbatim and getting
> >         this?
> >         
> >         The SRCREVs in either case look ok for this, so that shouldn't
> >         be the
> >         problem...
> >         
> >         But let me go over the steps myself and see what I come up
> >         with - will
> >         let you know either way...
> >         
> >         Tom
> >         
> >         
> >         >  NOTE: package core-image-sato-1.0-r0: task do_bootimg:
> >         Started
> >         > ERROR: Function 'build_boot_bin' failed
> >         >
> >         (see /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418 for further information)
> >         > ERROR: Logfile of failure stored
> >         >
> >         in: /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418
> >         > Log data follows:
> >         > | install: cannot stat
> >         >
> >         `/home/jim/poky/yocto-build/tmp/sysroots/mymachine/kernel/bzImage': No
> >         > such file or directory
> >         > | ERROR: Function 'build_boot_bin' failed
> >         >
> >         (see /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418 for further information)
> >         > NOTE: package core-image-sato-1.0-r0: task do_bootimg:
> >         Failed
> >         > ERROR: Task 9
> >         > (/home/jim/poky/meta/recipes-sato/images/core-image-sato.bb,
> >         > do_bootimg) failed with exit code '1'
> >         > ERROR:
> >         '/home/jim/poky/meta/recipes-sato/images/core-image-sato.bb'
> >         > failed
> >         > jim@jim-ubuntu-10:~/poky/yocto-build$
> >         >
> >         
> >         
> >         
> > 
> 
> 




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-02 14:18         ` Tom Zanussi
@ 2011-11-02 14:35           ` Robert P. J. Day
  0 siblings, 0 replies; 26+ messages in thread
From: Robert P. J. Day @ 2011-11-02 14:35 UTC (permalink / raw)
  To: Tom Zanussi; +Cc: yocto@yoctoproject.org


... all of tom's stuff snipped ...

  ok, based on combining everything in the last several posts, my
build for core-image-sato for the new "mymachine" bsp just finished
successfully on my 64-bit ubuntu 11.10 system.  happy, happy, joy,
joy.  must write this all down somewhere. :-)

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-02 14:24       ` Jim Abernathy
@ 2011-11-02 14:41         ` Tom Zanussi
  2011-11-02 15:07           ` Jim Abernathy
  0 siblings, 1 reply; 26+ messages in thread
From: Tom Zanussi @ 2011-11-02 14:41 UTC (permalink / raw)
  To: Jim Abernathy; +Cc: yocto@yoctoproject.org

On Wed, 2011-11-02 at 07:24 -0700, Jim Abernathy wrote:
> okay, what you mentioned as the steps below, I agree with, but a couple
> I don't understand. first, in the linux-yocto_3.0.bbappend file, why is
> the KMACHINE statement changed to common-pc/atom-pc? If I look st eh
> section of the doc in A.5.2.4 talking about going to
> cgit/cgit.cgi/linux-yocto-3.0 to get the latest commit strings, I see
> that it agrees with the path in #2, but not sure why??
> 

This is part of the confusion I mentioned about this section that needs
to be cleaned up.  Basically, for this example, to keep things simple,
we want to use an already-existing branch in the repo.  The branch that
was somewhat vaguely chosen for this example was the atom-pc branch.  So
this should be the branch specified in the KMACHINE, which my
corrected .bbappend shows, rather than the "yocto/standard/mymachine" in
the example code.

The mention of cgit/cgit.cgi/linux-yocto-3.0 to get the latest commit
strings is correct assuming you're working from master.  But this
example is working from edison, where there commits to use are
essentially set in stone and contained in the SRCREVs in the .bb
and .bbappends in the edison branch.

Again, this is part of the confusion in this section that needs cleaning
up.

> Second, I looked at your cat of the same file containing the SRCREV
> commit strings and I don't see that they agree with the commits on the
> website even just this morning.  Can you explain that? Should I just use
> the ones in  your cat output or eventually the corrected Dev. Manual?
> 

I got these commits from the kernel .bb and .bbappends captured in the
edison branch, as mentioened above.

Tom

> Jim A
> 
> On Tue, 2011-11-01 at 19:45 -0500, Tom Zanussi wrote:
> > Hi James,
> > 
> > I'm still not sure what happened in your case to cause this problem, but
> > I just went through the Appendix A example pretty much as described, and
> > got a good build out of it.  There was one particular part of the
> > example that wasn't exactly clear and that could definitely cause some
> > build problems if you did it incorrectly (the section that makes changes
> > to linux-yocto_3.0.bbappend, which in the example has a custom branch in
> > the .bbappend file, but has the explanation using atom-pc).
> > 
> > I'll work with Scott to make sure that part gets cleaned up, along with
> > the other comments that should get pulled in, but in the meantime, I
> > captured the steps I used below, which should work in the same way for
> > you.
> > 
> > trz@elmorro:/usr/local/dev/yocto$ mkdir bsp-test; cd bsp-test
> > trz@elmorro:/usr/local/dev/yocto/bsp-test$ git clone git://git.yoctoproject.org/poky
> > trz@elmorro:/usr/local/dev/yocto/bsp-test$ cd poky
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ git checkout -b edison origin/edison
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ git clone git://git.yoctoproject.org/meta-intel.git
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ cd meta-intel
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ git checkout -b edison origin/edison
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ cp -a meta-crownbay/ meta-mymachine
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ rm meta-mymachine/conf/machine/crownbay.conf
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ mv meta-mymachine/conf/machine/crownbay-noemgd.conf meta-mymachine/conf/machine/mymachine.conf
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ rm -rf meta-mymachine/recipes-bsp/formfactor/formfactor/crownbay/
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ mv meta-mymachine/recipes-bsp/formfactor/formfactor/crownbay-noemgd meta-mymachine/recipes-bsp/formfactor/formfactor/mymachine
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ rm -rf meta-mymachine/recipes-graphics/xorg-xserver/xserver-xf86-config/crownbay
> > 
> > ----
> > The Developer's Manual seems to want to base the BSP on atom-pc for
> > this example, so we need to specify the atom-pc branch and get the
> > SRCREVs for atom-pc or the step that modifies the
> > linux-yocto_3.0.bbappend.  So in
> > meta-yocto/recipes-kernel/linux/linux-yocto_3.0.bbappend, we find both
> > the KMACHINE branch we need, and the SRCREV on that branch we need for
> > edison.  Since that doesn't specify the meta branch, but the base
> > recipe does, we can look at the SRCREV_meta there
> > (meta/recipes-kernel/linux/linux-yocto_3.0.bb) for the SRCREV of the
> > meta branch, which already matches what we're using, so no change
> > needed there.
> > 
> > Here's the resulting linux-yocto_3.0.bbappend:
> > 
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ cat meta-mymachine/recipes-kernel/linux/linux-yocto_3.0.bbappend
> > 
> > FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> > 
> > COMPATIBLE_MACHINE_mymachine = "mymachine"
> > KMACHINE_mymachine  = "yocto/standard/common-pc/atom-pc"
> > KERNEL_FEATURES_append_mymachine += " cfg/smp.scc"
> > 
> > SRCREV_machine_pn-linux-yocto_mymachine ?= "1e18e44adbe79b846e382370eb29bc4b8cd5a1a0"
> > SRCREV_meta_pn-linux-yocto_mymachine ?= "d05450e4aef02c1b7137398ab3a9f8f96da74f52"
> > 
> > ----
> > 
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ source oe-init-build-env
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ bitbake core-image-sato
> > 
> > NOTE: Tasks Summary: Attempted 4426 tasks of which 247 didn't need to be rerun and 0 failed.
> > trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/build
> > 
> > 
> > Tom
> > 
> > 
> > On Tue, 2011-11-01 at 12:48 -0700, James Abernathy wrote:
> > > Just to clear up the basics, Prior to following Appendix A verbatim, I
> > > did the following
> > > 1. install prerequisites from GS guide
> > > 2. git clone git://git.yoctoproject.org/poky
> > > 3. cd poky
> > > 4. git clone git://git.yoctoproject.org/meta-intel.git
> > >  
> > > I did not install the poky-extras. I assumed it only had to be
> > > installed if you installed the kernel source for modification like in
> > > Appendix b
> > >  
> > > Jim a
> > > 
> > > 
> > > 
> > >  
> > > On Tue, Nov 1, 2011 at 3:40 PM, Tom Zanussi <tom.zanussi@intel.com>
> > > wrote:
> > >         Hi,
> > >         
> > >         On Tue, 2011-11-01 at 11:37 -0700, James Abernathy wrote:
> > >         > I tried to duplicate the Yocto Project Decelopment Manual
> > >         Appendix A
> > >         > build of a Crownbay NOEMGD image,  no changes just dulicate
> > >         the
> > >         > instructions.  This is using the latest Yocto 1.1.  I did
> > >         get a long
> > >         > way down the line, but had a fatal error in the last 2
> > >         steps.
> > >         >
> > >         > The only change I had to make was related to A.5.2.4.  The
> > >         commit
> > >         > string for the SRCREV_meta_pn was different on the
> > >         > git.yoctoproject.org/cgit/cgi for the Meta commit so I used
> > >         what I
> > >         > found online.  The first section of 126 task completed
> > >         without error.
> > >         > The next section of 4394 tasks failed on 4393.  Not sure if
> > >         the error
> > >         > is obvious, but I wanted to run it by someone. Console error
> > >         log
> > >         > below:
> > >         >
> > >         
> > >         
> > >         Hmm, not sure what's going on here - I'm sure this example was
> > >         verified
> > >         several times, but just to make sure, what you're doing is
> > >         going through
> > >         'Appendix A. BSP Development Example' verbatim and getting
> > >         this?
> > >         
> > >         The SRCREVs in either case look ok for this, so that shouldn't
> > >         be the
> > >         problem...
> > >         
> > >         But let me go over the steps myself and see what I come up
> > >         with - will
> > >         let you know either way...
> > >         
> > >         Tom
> > >         
> > >         
> > >         >  NOTE: package core-image-sato-1.0-r0: task do_bootimg:
> > >         Started
> > >         > ERROR: Function 'build_boot_bin' failed
> > >         >
> > >         (see /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418 for further information)
> > >         > ERROR: Logfile of failure stored
> > >         >
> > >         in: /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418
> > >         > Log data follows:
> > >         > | install: cannot stat
> > >         >
> > >         `/home/jim/poky/yocto-build/tmp/sysroots/mymachine/kernel/bzImage': No
> > >         > such file or directory
> > >         > | ERROR: Function 'build_boot_bin' failed
> > >         >
> > >         (see /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418 for further information)
> > >         > NOTE: package core-image-sato-1.0-r0: task do_bootimg:
> > >         Failed
> > >         > ERROR: Task 9
> > >         > (/home/jim/poky/meta/recipes-sato/images/core-image-sato.bb,
> > >         > do_bootimg) failed with exit code '1'
> > >         > ERROR:
> > >         '/home/jim/poky/meta/recipes-sato/images/core-image-sato.bb'
> > >         > failed
> > >         > jim@jim-ubuntu-10:~/poky/yocto-build$
> > >         >
> > >         
> > >         
> > >         
> > > 
> > 
> > 
> 
> 




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-02 14:41         ` Tom Zanussi
@ 2011-11-02 15:07           ` Jim Abernathy
  2011-11-02 15:34             ` Tom Zanussi
  0 siblings, 1 reply; 26+ messages in thread
From: Jim Abernathy @ 2011-11-02 15:07 UTC (permalink / raw)
  To: Tom Zanussi; +Cc: yocto@yoctoproject.org


> > Second, I looked at your cat of the same file containing the SRCREV
> > commit strings and I don't see that they agree with the commits on the
> > website even just this morning.  Can you explain that? Should I just use
> > the ones in  your cat output or eventually the corrected Dev. Manual?
> > 
> 
> I got these commits from the kernel .bb and .bbappends captured in the
> edison branch, as mentioened above.


That's a lot clearer now.  So does this mean that If I'm working with
edison branch, should I have to change the commits strings at all???

Because the commit strings from your cat'ing of the your file don't
agree with what is in my clone of the edison branch for poky or
meta-intel. Or am I missing something else (likely).

Jim A



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-02 15:07           ` Jim Abernathy
@ 2011-11-02 15:34             ` Tom Zanussi
  2011-11-02 19:18               ` Jim Abernathy
  0 siblings, 1 reply; 26+ messages in thread
From: Tom Zanussi @ 2011-11-02 15:34 UTC (permalink / raw)
  To: Jim Abernathy; +Cc: yocto@yoctoproject.org

On Wed, 2011-11-02 at 08:07 -0700, Jim Abernathy wrote:
> > > Second, I looked at your cat of the same file containing the SRCREV
> > > commit strings and I don't see that they agree with the commits on the
> > > website even just this morning.  Can you explain that? Should I just use
> > > the ones in  your cat output or eventually the corrected Dev. Manual?
> > > 
> > 
> > I got these commits from the kernel .bb and .bbappends captured in the
> > edison branch, as mentioened above.
> 
> 
> That's a lot clearer now.  So does this mean that If I'm working with
> edison branch, should I have to change the commits strings at all???
> 

The commits in the doc should work - the SRCREV_machine is the last
commit on the edison branch for yocto/standard/common-pc/atom-pc and the
SRCREV_meta is also valid in edison, though in between the time the doc
was written and the time meta-intel was released for edison, the meta
SRCREV was bumped up to a later commit, which is the one I used in my
'cat'ed file.  Either one should be fine.  So no, you can directly use
the SRCREVS in the manual and don't have to change those at all.

> Because the commit strings from your cat'ing of the your file don't
> agree with what is in my clone of the edison branch for poky or
> meta-intel. Or am I missing something else (likely).
> 

Those commit strings identify commits in the linux-yocto_3.0 repo
(http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-3.0/).  The
specific commits used for edison are captured in the linux-yocto_3.0 .bb
and .bbappend files mentioned previously. 

Tom 

> Jim A
> 




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-02 15:34             ` Tom Zanussi
@ 2011-11-02 19:18               ` Jim Abernathy
  2011-11-02 19:36                 ` Tom Zanussi
  0 siblings, 1 reply; 26+ messages in thread
From: Jim Abernathy @ 2011-11-02 19:18 UTC (permalink / raw)
  To: Tom Zanussi; +Cc: yocto@yoctoproject.org



Well, I finally got a "successful" build without erros of the Appendix A
example for Crownbay, but the image created was only 216MB in size and
kernel panic'ed because it couldn't find a valid root file system.

I'm going to try again from scratch and see if I missed anything. If
that fails, I'll report out.

Jim A



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-02 19:18               ` Jim Abernathy
@ 2011-11-02 19:36                 ` Tom Zanussi
  2011-11-02 20:07                   ` Jim Abernathy
  0 siblings, 1 reply; 26+ messages in thread
From: Tom Zanussi @ 2011-11-02 19:36 UTC (permalink / raw)
  To: Jim Abernathy; +Cc: yocto@yoctoproject.org

On Wed, 2011-11-02 at 12:18 -0700, Jim Abernathy wrote:
> 
> Well, I finally got a "successful" build without erros of the Appendix A
> example for Crownbay, but the image created was only 216MB in size and
> kernel panic'ed because it couldn't find a valid root file system.
> 

That size doesn't sound right.  Here's mine:

-rw-r--r-- 1 trz trz 358715392 2011-11-01 19:11 core-image-sato-mymachine-20111101223904.hddimg

And what kind of machine are you booting it on?

Tom

> I'm going to try again from scratch and see if I missed anything. If
> that fails, I'll report out.
> 


> Jim A
> 




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-02 19:36                 ` Tom Zanussi
@ 2011-11-02 20:07                   ` Jim Abernathy
  2011-11-02 20:18                     ` Tom Zanussi
  0 siblings, 1 reply; 26+ messages in thread
From: Jim Abernathy @ 2011-11-02 20:07 UTC (permalink / raw)
  To: Tom Zanussi; +Cc: yocto@yoctoproject.org

On Wed, 2011-11-02 at 14:36 -0500, Tom Zanussi wrote:

> And what kind of machine are you booting it on?
> 
> Tom

I'm building on Core i5 desktop with Ubuntu 10.10.  One of the odd
things I've noticed during the build is it takes the usual long time
(couple of hours) to build. However when it get to task ~4000, it jumps
quickly to 43xx close to the end. Not sure if it's missing something
critical and I've not set some parameter about the Root file system
somewhere.

Jim



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-02 20:07                   ` Jim Abernathy
@ 2011-11-02 20:18                     ` Tom Zanussi
  2011-11-02 22:05                       ` Jim Abernathy
  0 siblings, 1 reply; 26+ messages in thread
From: Tom Zanussi @ 2011-11-02 20:18 UTC (permalink / raw)
  To: Jim Abernathy; +Cc: yocto@yoctoproject.org

On Wed, 2011-11-02 at 13:07 -0700, Jim Abernathy wrote:
> On Wed, 2011-11-02 at 14:36 -0500, Tom Zanussi wrote:
> 
> > And what kind of machine are you booting it on?
> > 
> > Tom
> 
> I'm building on Core i5 desktop with Ubuntu 10.10.  One of the odd
> things I've noticed during the build is it takes the usual long time
> (couple of hours) to build. However when it get to task ~4000, it jumps

Yeah, that's not out of line with expectations.  You are using
BB_NUMBER_THREADS and PARALLEL make in your local.conf, I assume.

> quickly to 43xx close to the end. Not sure if it's missing something
> critical and I've not set some parameter about the Root file system
> somewhere.
> 

I wouldn't pay too much attention to the task numbers themselves - some
tasks take very little time and finish in quick progression.  And
there's nothing specific about a root filesystem setting in the appendix
instructions, we're just copying existing working settings, but there is
something wrong with your build nonetheless.

I'm planning on submitting a patch to the appendix as soon as I can
today or tomorrow morning, which I'll work through and verify, so you
shouldn't have to do any guesswork and shouldn't run into any of these
kinds of problems...

Tom

> Jim
> 




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-02 20:18                     ` Tom Zanussi
@ 2011-11-02 22:05                       ` Jim Abernathy
  0 siblings, 0 replies; 26+ messages in thread
From: Jim Abernathy @ 2011-11-02 22:05 UTC (permalink / raw)
  To: Tom Zanussi; +Cc: yocto@yoctoproject.org

I'm noticing fetcher failures while my bitbake is working. They are
listed as warning. Do I ignore these??

WARNING: Fetcher failure for URL: 'None'. Fetch command export
HOME="/home/jim"; export SSH_AGENT_PID="1500"; export
SSH_AUTH_SOCK="/tmp/keyring-Zcbzax/ssh"; export
GIT_CONFIG="/home/jim/bsp-test/poky/build/tmp/sysroots/i686-linux/usr/etc/gitconfig"; export PATH="/home/jim/bsp-test/poky/build/tmp/sysroots/i686-linux/usr/bin/core2-poky-linux:/home/jim/bsp-test/poky/build/tmp/sysroots/mymachine/usr/bin/crossscripts:/home/jim/bsp-test/poky/build/tmp/sysroots/i686-linux/usr/sbin:/home/jim/bsp-test/poky/build/tmp/sysroots/i686-linux/usr/bin:/home/jim/bsp-test/poky/build/tmp/sysroots/i686-linux/sbin:/home/jim/bsp-test/poky/build/tmp/sysroots/i686-linux//bin:/home/jim/bsp-test/poky/scripts:/home/jim/bsp-test/poky/bitbake/bin/:/home/jim/bsp-test/poky/scripts:/home/jim/bsp-test/poky/bitbake/bin/:/home/jim/bsp-test/poky/scripts:/home/jim/bsp-test/poky/bitbake/bin/:/home/jim/bsp-test/poky/scripts:/home/jim/bsp-test/poky/bitbake/bin/:/home/jim/poky/scripts:/home/jim/poky/bitbake/bin/:/home/jim/poky/scripts:/home/jim/poky/bitbake/bin/:/home/jim/CodeSourcery/Sourcery_G++_Lite/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/jim/bsp-test/poky/scripts"; /usr/bin/env wget -t 5 -q --passive-ftp --no-check-certificate -P /home/jim/bsp-test/poky/build/downloads 'https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-1.04.tar.gz' failed with signal 4, output:

> 
> 




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Build error while following Appendix A. Yocto Project Development manual
  2011-11-02  0:45     ` Tom Zanussi
  2011-11-02 12:19       ` Robert P. J. Day
  2011-11-02 14:24       ` Jim Abernathy
@ 2011-11-03 19:32       ` James Abernathy
  2 siblings, 0 replies; 26+ messages in thread
From: James Abernathy @ 2011-11-03 19:32 UTC (permalink / raw)
  To: Tom Zanussi; +Cc: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 8125 bytes --]

I had some success, so I thought I'd report that out:

Following a combination of the Yocto Project Development Manual and Tom's
notes below, I got a successful
build and the image booted from a USB flash drive on a Crownbay Development
platform, without EMGD GFX driver.
The only change I needed to make it bootable from Tom's instructions was to
make KMACHINE_mymachine = "yocto/standard/crownbay" and
put in the correct SRCREV commit strings for the crownbay using the
"howto" instructions in Appendix A.5.2.4 6th paragraph.

Now on to making the EMGD image work.

Jim A

On Tue, Nov 1, 2011 at 8:45 PM, Tom Zanussi <tom.zanussi@intel.com> wrote:

> Hi James,
>
> I'm still not sure what happened in your case to cause this problem, but
> I just went through the Appendix A example pretty much as described, and
> got a good build out of it.  There was one particular part of the
> example that wasn't exactly clear and that could definitely cause some
> build problems if you did it incorrectly (the section that makes changes
> to linux-yocto_3.0.bbappend, which in the example has a custom branch in
> the .bbappend file, but has the explanation using atom-pc).
>
> I'll work with Scott to make sure that part gets cleaned up, along with
> the other comments that should get pulled in, but in the meantime, I
> captured the steps I used below, which should work in the same way for
> you.
>
> trz@elmorro:/usr/local/dev/yocto$ mkdir bsp-test; cd bsp-test
> trz@elmorro:/usr/local/dev/yocto/bsp-test$ git clone git://
> git.yoctoproject.org/poky
> trz@elmorro:/usr/local/dev/yocto/bsp-test$ cd poky
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ git checkout -b edison
> origin/edison
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ git clone git://
> git.yoctoproject.org/meta-intel.git
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ cd meta-intel
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ git checkout
> -b edison origin/edison
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ cp -a
> meta-crownbay/ meta-mymachine
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ rm
> meta-mymachine/conf/machine/crownbay.conf
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ mv
> meta-mymachine/conf/machine/crownbay-noemgd.conf
> meta-mymachine/conf/machine/mymachine.conf
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ rm -rf
> meta-mymachine/recipes-bsp/formfactor/formfactor/crownbay/
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ mv
> meta-mymachine/recipes-bsp/formfactor/formfactor/crownbay-noemgd
> meta-mymachine/recipes-bsp/formfactor/formfactor/mymachine
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ rm -rf
> meta-mymachine/recipes-graphics/xorg-xserver/xserver-xf86-config/crownbay
>
> ----
> The Developer's Manual seems to want to base the BSP on atom-pc for
> this example, so we need to specify the atom-pc branch and get the
> SRCREVs for atom-pc or the step that modifies the
> linux-yocto_3.0.bbappend.  So in
> meta-yocto/recipes-kernel/linux/linux-yocto_3.0.bbappend, we find both
> the KMACHINE branch we need, and the SRCREV on that branch we need for
> edison.  Since that doesn't specify the meta branch, but the base
> recipe does, we can look at the SRCREV_meta there
> (meta/recipes-kernel/linux/linux-yocto_3.0.bb) for the SRCREV of the
> meta branch, which already matches what we're using, so no change
> needed there.
>
> Here's the resulting linux-yocto_3.0.bbappend:
>
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/meta-intel$ cat
> meta-mymachine/recipes-kernel/linux/linux-yocto_3.0.bbappend
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>
> COMPATIBLE_MACHINE_mymachine = "mymachine"
> KMACHINE_mymachine  = "yocto/standard/common-pc/atom-pc"
> KERNEL_FEATURES_append_mymachine += " cfg/smp.scc"
>
> SRCREV_machine_pn-linux-yocto_mymachine ?=
> "1e18e44adbe79b846e382370eb29bc4b8cd5a1a0"
> SRCREV_meta_pn-linux-yocto_mymachine ?=
> "d05450e4aef02c1b7137398ab3a9f8f96da74f52"
>
> ----
>
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ source oe-init-build-env
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky$ bitbake core-image-sato
>
> NOTE: Tasks Summary: Attempted 4426 tasks of which 247 didn't need to be
> rerun and 0 failed.
> trz@elmorro:/usr/local/dev/yocto/bsp-test/poky/build
>
>
> Tom
>
>
> On Tue, 2011-11-01 at 12:48 -0700, James Abernathy wrote:
>  > Just to clear up the basics, Prior to following Appendix A verbatim, I
> > did the following
> > 1. install prerequisites from GS guide
> > 2. git clone git://git.yoctoproject.org/poky
> > 3. cd poky
> > 4. git clone git://git.yoctoproject.org/meta-intel.git
> >
> > I did not install the poky-extras. I assumed it only had to be
> > installed if you installed the kernel source for modification like in
> > Appendix b
> >
> > Jim a
> >
> >
> >
> >
> > On Tue, Nov 1, 2011 at 3:40 PM, Tom Zanussi <tom.zanussi@intel.com>
> > wrote:
> >         Hi,
> >
> >         On Tue, 2011-11-01 at 11:37 -0700, James Abernathy wrote:
> >         > I tried to duplicate the Yocto Project Decelopment Manual
> >         Appendix A
> >         > build of a Crownbay NOEMGD image,  no changes just dulicate
> >         the
> >         > instructions.  This is using the latest Yocto 1.1.  I did
> >         get a long
> >         > way down the line, but had a fatal error in the last 2
> >         steps.
> >         >
> >         > The only change I had to make was related to A.5.2.4.  The
> >         commit
> >         > string for the SRCREV_meta_pn was different on the
> >         > git.yoctoproject.org/cgit/cgi for the Meta commit so I used
> >         what I
> >         > found online.  The first section of 126 task completed
> >         without error.
> >         > The next section of 4394 tasks failed on 4393.  Not sure if
> >         the error
> >         > is obvious, but I wanted to run it by someone. Console error
> >         log
> >         > below:
> >         >
> >
> >
> >         Hmm, not sure what's going on here - I'm sure this example was
> >         verified
> >         several times, but just to make sure, what you're doing is
> >         going through
> >         'Appendix A. BSP Development Example' verbatim and getting
> >         this?
> >
> >         The SRCREVs in either case look ok for this, so that shouldn't
> >         be the
> >         problem...
> >
> >         But let me go over the steps myself and see what I come up
> >         with - will
> >         let you know either way...
> >
> >         Tom
> >
> >
> >         >  NOTE: package core-image-sato-1.0-r0: task do_bootimg:
> >         Started
> >         > ERROR: Function 'build_boot_bin' failed
> >         >
> >         (see
> /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418
> for further information)
> >         > ERROR: Logfile of failure stored
> >         >
> >         in:
> /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418
> >         > Log data follows:
> >         > | install: cannot stat
> >         >
> >
> `/home/jim/poky/yocto-build/tmp/sysroots/mymachine/kernel/bzImage': No
> >         > such file or directory
> >         > | ERROR: Function 'build_boot_bin' failed
> >         >
> >         (see
> /home/jim/poky/yocto-build/tmp/work/mymachine-poky-linux/core-image-sato-1.0-r0/temp/log.do_bootimg.31418
> for further information)
> >         > NOTE: package core-image-sato-1.0-r0: task do_bootimg:
> >         Failed
> >         > ERROR: Task 9
> >         > (/home/jim/poky/meta/recipes-sato/images/core-image-sato.bb,
> >         > do_bootimg) failed with exit code '1'
> >         > ERROR:
> >         '/home/jim/poky/meta/recipes-sato/images/core-image-sato.bb'
> >         > failed
> >         > jim@jim-ubuntu-10:~/poky/yocto-build$
> >         >
> >
> >
> >
> >
>
>
>

[-- Attachment #2: Type: text/html, Size: 9756 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2011-11-03 19:42 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-01 18:37 Build error while following Appendix A. Yocto Project Development manual James Abernathy
2011-11-01 19:40 ` Tom Zanussi
2011-11-01 19:48   ` James Abernathy
2011-11-01 19:55     ` Tom Zanussi
2011-11-01 20:04       ` James Abernathy
2011-11-02  0:45     ` Tom Zanussi
2011-11-02 12:19       ` Robert P. J. Day
2011-11-02 14:18         ` Tom Zanussi
2011-11-02 14:35           ` Robert P. J. Day
2011-11-02 14:24       ` Jim Abernathy
2011-11-02 14:41         ` Tom Zanussi
2011-11-02 15:07           ` Jim Abernathy
2011-11-02 15:34             ` Tom Zanussi
2011-11-02 19:18               ` Jim Abernathy
2011-11-02 19:36                 ` Tom Zanussi
2011-11-02 20:07                   ` Jim Abernathy
2011-11-02 20:18                     ` Tom Zanussi
2011-11-02 22:05                       ` Jim Abernathy
2011-11-03 19:32       ` James Abernathy
2011-11-01 21:37   ` Robert P. J. Day
2011-11-01 21:46     ` Tom Zanussi
2011-11-01 21:54       ` Tom Zanussi
2011-11-01 22:47         ` Robert P. J. Day
2011-11-01 23:16           ` Tom Zanussi
2011-11-01 23:27             ` Robert P. J. Day
2011-11-01 21:56       ` Robert P. J. Day

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.