All of lore.kernel.org
 help / color / mirror / Atom feed
* proper recipe to build for BBB using the meta-ti layer?
@ 2013-07-07 12:00 Robert P. J. Day
  2013-07-08 18:14 ` Tom Rini
  0 siblings, 1 reply; 11+ messages in thread
From: Robert P. J. Day @ 2013-07-07 12:00 UTC (permalink / raw)
  To: meta-ti mailing list


  until recently, i was using the meta-beagleboard layer to build
artifacts for my beaglebone black but i just switched over to using
meta-ti to sync up with a colleague and was wondering if there's a
posted recipe for building a bootable SD card as i ran into trouble.

  on my attempt last night, i got what looked like a good build
creating a core-image-minimal, copied just the MLO and u-boot.img
files to my SD card, and booted from it to verify at least the proper
creation of the bootloader, but got this:

U-Boot SPL 2013.01.01 (Jul 06 2013 - 18:41:10)
OMAP SD/MMC: 0
** Partition 1 not valid on device 0 **
spl: fat register err - -1
### ERROR ### Please RESET the board ###

  this is exactly the same SD card i was using with meta-beagleboard
generated image files. everything else about the build seemed fine.
can someone verify a known good recipe for this? is there
something different about the creation of the SD card? i'm currently
doing another build from scratch to see if i messed anything 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] 11+ messages in thread

* Re: proper recipe to build for BBB using the meta-ti layer?
  2013-07-07 12:00 proper recipe to build for BBB using the meta-ti layer? Robert P. J. Day
@ 2013-07-08 18:14 ` Tom Rini
  2013-07-08 18:30   ` Robert P. J. Day
  0 siblings, 1 reply; 11+ messages in thread
From: Tom Rini @ 2013-07-08 18:14 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: meta-ti mailing list

On Sun, Jul 07, 2013 at 08:00:05AM -0400, Robert P. J. Day wrote:

> U-Boot SPL 2013.01.01 (Jul 06 2013 - 18:41:10)
> OMAP SD/MMC: 0
> ** Partition 1 not valid on device 0 **
> spl: fat register err - -1
> ### ERROR ### Please RESET the board ###
> 
>   this is exactly the same SD card i was using with meta-beagleboard
> generated image files. everything else about the build seemed fine.
> can someone verify a known good recipe for this? is there
> something different about the creation of the SD card? i'm currently
> doing another build from scratch to see if i messed anything up.

Can you see if backporting
http://git.denx.de/?p=u-boot.git;a=commitdiff;h=9d956e0fefa39ba49250f61e3c7aa3dadafdb7fd
fixes the problem?  It should apply cleanly.  Thanks!

-- 
Tom


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

* Re: proper recipe to build for BBB using the meta-ti layer?
  2013-07-08 18:14 ` Tom Rini
@ 2013-07-08 18:30   ` Robert P. J. Day
  2013-07-08 19:07     ` Tom Rini
  0 siblings, 1 reply; 11+ messages in thread
From: Robert P. J. Day @ 2013-07-08 18:30 UTC (permalink / raw)
  To: Tom Rini; +Cc: meta-ti mailing list

On Mon, 8 Jul 2013, Tom Rini wrote:

> On Sun, Jul 07, 2013 at 08:00:05AM -0400, Robert P. J. Day wrote:
>
> > U-Boot SPL 2013.01.01 (Jul 06 2013 - 18:41:10)
> > OMAP SD/MMC: 0
> > ** Partition 1 not valid on device 0 **
> > spl: fat register err - -1
> > ### ERROR ### Please RESET the board ###
> >
> >   this is exactly the same SD card i was using with meta-beagleboard
> > generated image files. everything else about the build seemed fine.
> > can someone verify a known good recipe for this? is there
> > something different about the creation of the SD card? i'm currently
> > doing another build from scratch to see if i messed anything up.
>
> Can you see if backporting
> http://git.denx.de/?p=u-boot.git;a=commitdiff;h=9d956e0fefa39ba49250f61e3c7aa3dadafdb7fd
> fixes the problem?  It should apply cleanly.  Thanks!

  i'll give that a shot this evening and let you know. just to recap,
i used OE and the meta-beagleboard layer to build for my BBB and
copied to the first (bootable FAT) partition nothing but the MLO and
u-boot.img images, and that let me boot to u-boot, which is all i was
after.

 i then did an OE build using meta-ti, copied *those* generated MLO
and u-boot.img files to the same SD card, and promptly got the error
above. so that would suggest that the meta-beagleboard layer has
something equivalent to that patch, while meta-ti doesn't.

  anyway, will report back with results ASAP.

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] 11+ messages in thread

* Re: proper recipe to build for BBB using the meta-ti layer?
  2013-07-08 18:30   ` Robert P. J. Day
@ 2013-07-08 19:07     ` Tom Rini
  2013-07-08 19:38       ` Robert P. J. Day
  0 siblings, 1 reply; 11+ messages in thread
From: Tom Rini @ 2013-07-08 19:07 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: meta-ti mailing list

On Mon, Jul 08, 2013 at 02:30:47PM -0400, Robert P. J. Day wrote:
> On Mon, 8 Jul 2013, Tom Rini wrote:
> 
> > On Sun, Jul 07, 2013 at 08:00:05AM -0400, Robert P. J. Day wrote:
> >
> > > U-Boot SPL 2013.01.01 (Jul 06 2013 - 18:41:10)
> > > OMAP SD/MMC: 0
> > > ** Partition 1 not valid on device 0 **
> > > spl: fat register err - -1
> > > ### ERROR ### Please RESET the board ###
> > >
> > >   this is exactly the same SD card i was using with meta-beagleboard
> > > generated image files. everything else about the build seemed fine.
> > > can someone verify a known good recipe for this? is there
> > > something different about the creation of the SD card? i'm currently
> > > doing another build from scratch to see if i messed anything up.
> >
> > Can you see if backporting
> > http://git.denx.de/?p=u-boot.git;a=commitdiff;h=9d956e0fefa39ba49250f61e3c7aa3dadafdb7fd
> > fixes the problem?  It should apply cleanly.  Thanks!
> 
>   i'll give that a shot this evening and let you know. just to recap,
> i used OE and the meta-beagleboard layer to build for my BBB and
> copied to the first (bootable FAT) partition nothing but the MLO and
> u-boot.img images, and that let me boot to u-boot, which is all i was
> after.

Strange.  meta-beagleboard is on v2013.04 which doesn't have that
change.

>  i then did an OE build using meta-ti, copied *those* generated MLO
> and u-boot.img files to the same SD card, and promptly got the error
> above. so that would suggest that the meta-beagleboard layer has
> something equivalent to that patch, while meta-ti doesn't.
> 
>   anyway, will report back with results ASAP.

If it fails, can you dd off the card, compress it and share a copy with
me off-list (I can provide a dropbox drop spot if needed), thanks!

-- 
Tom


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

* Re: proper recipe to build for BBB using the meta-ti layer?
  2013-07-08 19:07     ` Tom Rini
@ 2013-07-08 19:38       ` Robert P. J. Day
  2013-07-08 20:42         ` Tom Rini
  0 siblings, 1 reply; 11+ messages in thread
From: Robert P. J. Day @ 2013-07-08 19:38 UTC (permalink / raw)
  To: Tom Rini; +Cc: meta-ti mailing list

On Mon, 8 Jul 2013, Tom Rini wrote:

> On Mon, Jul 08, 2013 at 02:30:47PM -0400, Robert P. J. Day wrote:
> > On Mon, 8 Jul 2013, Tom Rini wrote:
> >
> > > On Sun, Jul 07, 2013 at 08:00:05AM -0400, Robert P. J. Day wrote:
> > >
> > > > U-Boot SPL 2013.01.01 (Jul 06 2013 - 18:41:10)
> > > > OMAP SD/MMC: 0
> > > > ** Partition 1 not valid on device 0 **
> > > > spl: fat register err - -1
> > > > ### ERROR ### Please RESET the board ###
> > > >
> > > >   this is exactly the same SD card i was using with meta-beagleboard
> > > > generated image files. everything else about the build seemed fine.
> > > > can someone verify a known good recipe for this? is there
> > > > something different about the creation of the SD card? i'm currently
> > > > doing another build from scratch to see if i messed anything up.
> > >
> > > Can you see if backporting
> > > http://git.denx.de/?p=u-boot.git;a=commitdiff;h=9d956e0fefa39ba49250f61e3c7aa3dadafdb7fd
> > > fixes the problem?  It should apply cleanly.  Thanks!
> >
> >   i'll give that a shot this evening and let you know. just to recap,
> > i used OE and the meta-beagleboard layer to build for my BBB and
> > copied to the first (bootable FAT) partition nothing but the MLO and
> > u-boot.img images, and that let me boot to u-boot, which is all i was
> > after.
>
> Strange.  meta-beagleboard is on v2013.04 which doesn't have that
> change.
>
> >  i then did an OE build using meta-ti, copied *those* generated MLO
> > and u-boot.img files to the same SD card, and promptly got the error
> > above. so that would suggest that the meta-beagleboard layer has
> > something equivalent to that patch, while meta-ti doesn't.
> >
> >   anyway, will report back with results ASAP.
>
> If it fails, can you dd off the card, compress it and share a copy with
> me off-list (I can provide a dropbox drop spot if needed), thanks!

  i had time to do the following quick test. i took my working uSD
card (with artifacts from the meta-beagleboard build), and simply
flat-out replaced both the MLO and u-boot.img files in the FAT
partition with the corresponding files from the meta-ti build, and got
the error above.

  i then copied back the original MLO and u-boot.img files and the
boot worked just fine, so that validates that the card partitioning
itself seems fine.

  i'll just email you the two files in question, and you can see if
you can boot to u-boot.

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] 11+ messages in thread

* Re: proper recipe to build for BBB using the meta-ti layer?
  2013-07-08 19:38       ` Robert P. J. Day
@ 2013-07-08 20:42         ` Tom Rini
  2013-07-08 20:50           ` Robert P. J. Day
  2013-07-08 21:25           ` Robert P. J. Day
  0 siblings, 2 replies; 11+ messages in thread
From: Tom Rini @ 2013-07-08 20:42 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: meta-ti mailing list

On 07/08/2013 03:38 PM, Robert P. J. Day wrote:
> On Mon, 8 Jul 2013, Tom Rini wrote:
> 
>> On Mon, Jul 08, 2013 at 02:30:47PM -0400, Robert P. J. Day wrote:
>>> On Mon, 8 Jul 2013, Tom Rini wrote:
>>>
>>>> On Sun, Jul 07, 2013 at 08:00:05AM -0400, Robert P. J. Day wrote:
>>>>
>>>>> U-Boot SPL 2013.01.01 (Jul 06 2013 - 18:41:10)
>>>>> OMAP SD/MMC: 0
>>>>> ** Partition 1 not valid on device 0 **
>>>>> spl: fat register err - -1
>>>>> ### ERROR ### Please RESET the board ###
>>>>>
>>>>>   this is exactly the same SD card i was using with meta-beagleboard
>>>>> generated image files. everything else about the build seemed fine.
>>>>> can someone verify a known good recipe for this? is there
>>>>> something different about the creation of the SD card? i'm currently
>>>>> doing another build from scratch to see if i messed anything up.
>>>>
>>>> Can you see if backporting
>>>> http://git.denx.de/?p=u-boot.git;a=commitdiff;h=9d956e0fefa39ba49250f61e3c7aa3dadafdb7fd
>>>> fixes the problem?  It should apply cleanly.  Thanks!
>>>
>>>   i'll give that a shot this evening and let you know. just to recap,
>>> i used OE and the meta-beagleboard layer to build for my BBB and
>>> copied to the first (bootable FAT) partition nothing but the MLO and
>>> u-boot.img images, and that let me boot to u-boot, which is all i was
>>> after.
>>
>> Strange.  meta-beagleboard is on v2013.04 which doesn't have that
>> change.
>>
>>>  i then did an OE build using meta-ti, copied *those* generated MLO
>>> and u-boot.img files to the same SD card, and promptly got the error
>>> above. so that would suggest that the meta-beagleboard layer has
>>> something equivalent to that patch, while meta-ti doesn't.
>>>
>>>   anyway, will report back with results ASAP.
>>
>> If it fails, can you dd off the card, compress it and share a copy with
>> me off-list (I can provide a dropbox drop spot if needed), thanks!
> 
>   i had time to do the following quick test. i took my working uSD
> card (with artifacts from the meta-beagleboard build), and simply
> flat-out replaced both the MLO and u-boot.img files in the FAT
> partition with the corresponding files from the meta-ti build, and got
> the error above.
> 
>   i then copied back the original MLO and u-boot.img files and the
> boot worked just fine, so that validates that the card partitioning
> itself seems fine.
> 
>   i'll just email you the two files in question, and you can see if
> you can boot to u-boot.

The files both boot for me, on Beaglebone Black and White.

-- 
Tom


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

* Re: proper recipe to build for BBB using the meta-ti layer?
  2013-07-08 20:42         ` Tom Rini
@ 2013-07-08 20:50           ` Robert P. J. Day
  2013-07-08 21:39             ` Tom Rini
  2013-07-08 21:25           ` Robert P. J. Day
  1 sibling, 1 reply; 11+ messages in thread
From: Robert P. J. Day @ 2013-07-08 20:50 UTC (permalink / raw)
  To: Tom Rini; +Cc: meta-ti mailing list

On Mon, 8 Jul 2013, Tom Rini wrote:

> On 07/08/2013 03:38 PM, Robert P. J. Day wrote:
... snip ...
> >   i had time to do the following quick test. i took my working uSD
> > card (with artifacts from the meta-beagleboard build), and simply
> > flat-out replaced both the MLO and u-boot.img files in the FAT
> > partition with the corresponding files from the meta-ti build, and got
> > the error above.
> >
> >   i then copied back the original MLO and u-boot.img files and the
> > boot worked just fine, so that validates that the card partitioning
> > itself seems fine.
> >
> >   i'll just email you the two files in question, and you can see if
> > you can boot to u-boot.
>
> The files both boot for me, on Beaglebone Black and White.

  then i'm baffled ... what recipe do you use to format the uSD card?
and did you try booting with nothing but those two files on the card?
no uImage, no uEnv.txt, etc?

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] 11+ messages in thread

* Re: proper recipe to build for BBB using the meta-ti layer?
  2013-07-08 20:42         ` Tom Rini
  2013-07-08 20:50           ` Robert P. J. Day
@ 2013-07-08 21:25           ` Robert P. J. Day
  2013-07-08 21:36             ` Denys Dmytriyenko
  1 sibling, 1 reply; 11+ messages in thread
From: Robert P. J. Day @ 2013-07-08 21:25 UTC (permalink / raw)
  To: Tom Rini; +Cc: meta-ti mailing list


  i'm willing to follow some "official" recipe line by line to build a
simple bootable SD card for my BBB using the meta-ti layer, just to
see where things seem to go wrong.

  i just started a fresh build and the first thing i got was:

WARNING: Variable key FILES_${PN}-dev (${includedir}
${FILES_SOLIBSDEV} ${libdir}/*.la ${libdir}/*.o ${libdir}/pkgconfig
${datadir}/pkgconfig ${datadir}/aclocal ${base_libdir}/*.o
${libdir}/${BPN}/*.la ${base_libdir}/*.la) replaces original key
FILES_ti-ipc-dev (${libdir}/*).
WARNING: Variable key FILES_${PN}-dev (${includedir}
${FILES_SOLIBSDEV} ${libdir}/*.la ${libdir}/*.o ${libdir}/pkgconfig
${datadir}/pkgconfig ${datadir}/aclocal ${base_libdir}/*.o
${libdir}/${BPN}/*.la ${base_libdir}/*.la) replaces original key
FILES_ti-syslink-dev (${libdir}/*).

is this expected, or is this an indication of an obvious error on my
part in terms of layer selection or something?

  in any event, i'm going to take the build through to its conclusion
and try again. open to suggestions ...

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] 11+ messages in thread

* Re: proper recipe to build for BBB using the meta-ti layer?
  2013-07-08 21:25           ` Robert P. J. Day
@ 2013-07-08 21:36             ` Denys Dmytriyenko
  0 siblings, 0 replies; 11+ messages in thread
From: Denys Dmytriyenko @ 2013-07-08 21:36 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: Tom Rini, meta-ti mailing list

On Mon, Jul 08, 2013 at 05:25:48PM -0400, Robert P. J. Day wrote:
> 
>   i'm willing to follow some "official" recipe line by line to build a
> simple bootable SD card for my BBB using the meta-ti layer, just to
> see where things seem to go wrong.
> 
>   i just started a fresh build and the first thing i got was:
> 
> WARNING: Variable key FILES_${PN}-dev (${includedir}
> ${FILES_SOLIBSDEV} ${libdir}/*.la ${libdir}/*.o ${libdir}/pkgconfig
> ${datadir}/pkgconfig ${datadir}/aclocal ${base_libdir}/*.o
> ${libdir}/${BPN}/*.la ${base_libdir}/*.la) replaces original key
> FILES_ti-ipc-dev (${libdir}/*).
> WARNING: Variable key FILES_${PN}-dev (${includedir}
> ${FILES_SOLIBSDEV} ${libdir}/*.la ${libdir}/*.o ${libdir}/pkgconfig
> ${datadir}/pkgconfig ${datadir}/aclocal ${base_libdir}/*.o
> ${libdir}/${BPN}/*.la ${base_libdir}/*.la) replaces original key
> FILES_ti-syslink-dev (${libdir}/*).
> 
> is this expected, or is this an indication of an obvious error on my
> part in terms of layer selection or something?

These 2 warnings have nothing to do with your problem.


>   in any event, i'm going to take the build through to its conclusion
> and try again. open to suggestions ...
> 
> rday
> 
> -- 
> 
> ========================================================================
> Robert P. J. Day                                 Ottawa, Ontario, CANADA
>                         http://crashcourse.ca
> 
> Twitter:                                       http://twitter.com/rpjday
> LinkedIn:                               http://ca.linkedin.com/in/rpjday
> ========================================================================
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti


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

* Re: proper recipe to build for BBB using the meta-ti layer?
  2013-07-08 20:50           ` Robert P. J. Day
@ 2013-07-08 21:39             ` Tom Rini
  2013-07-08 22:10               ` Robert P. J. Day
  0 siblings, 1 reply; 11+ messages in thread
From: Tom Rini @ 2013-07-08 21:39 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: meta-ti mailing list

On 07/08/2013 04:50 PM, Robert P. J. Day wrote:
> On Mon, 8 Jul 2013, Tom Rini wrote:
> 
>> On 07/08/2013 03:38 PM, Robert P. J. Day wrote:
> ... snip ...
>>>   i had time to do the following quick test. i took my working uSD
>>> card (with artifacts from the meta-beagleboard build), and simply
>>> flat-out replaced both the MLO and u-boot.img files in the FAT
>>> partition with the corresponding files from the meta-ti build, and got
>>> the error above.
>>>
>>>   i then copied back the original MLO and u-boot.img files and the
>>> boot worked just fine, so that validates that the card partitioning
>>> itself seems fine.
>>>
>>>   i'll just email you the two files in question, and you can see if
>>> you can boot to u-boot.
>>
>> The files both boot for me, on Beaglebone Black and White.
> 
>   then i'm baffled ... what recipe do you use to format the uSD card?
> and did you try booting with nothing but those two files on the card?
> no uImage, no uEnv.txt, etc?

I'm just using a by-hand partitioned card.  Can you please dd off a copy
of your card (so we can reproduce later) and then just zero, and then
create an MBR partition table, with the first partition table type c and
with the bootable flag set, mkfs.vfat it and copy the files in?

-- 
Tom


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

* Re: proper recipe to build for BBB using the meta-ti layer?
  2013-07-08 21:39             ` Tom Rini
@ 2013-07-08 22:10               ` Robert P. J. Day
  0 siblings, 0 replies; 11+ messages in thread
From: Robert P. J. Day @ 2013-07-08 22:10 UTC (permalink / raw)
  To: Tom Rini; +Cc: meta-ti mailing list

On Mon, 8 Jul 2013, Tom Rini wrote:

> I'm just using a by-hand partitioned card.  Can you please dd off a
> copy of your card (so we can reproduce later) and then just zero,
> and then create an MBR partition table, with the first partition
> table type c and with the bootable flag set, mkfs.vfat it and copy
> the files in?

  ok, but i'll make one more test first. i'd forgotten that the
meta-ti layer provides a sdcard_image.bbclass, so i'll let that class
build the SD card image for me by ... let's see, just adding this
line:

INHERIT += "sdcard_image"

and that class provides:

IMAGE_FSTYPES_append = " tar.bz2 sdimg"

so i need to add only that "INHERIT" line to my local.conf, correct?

  also, what is the relationship between the meta-ti and
meta-beaglebaord layers? as i read it, meta-ti is now the "official"
layer so i should use that exclusively, yes?

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] 11+ messages in thread

end of thread, other threads:[~2013-07-08 22:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-07 12:00 proper recipe to build for BBB using the meta-ti layer? Robert P. J. Day
2013-07-08 18:14 ` Tom Rini
2013-07-08 18:30   ` Robert P. J. Day
2013-07-08 19:07     ` Tom Rini
2013-07-08 19:38       ` Robert P. J. Day
2013-07-08 20:42         ` Tom Rini
2013-07-08 20:50           ` Robert P. J. Day
2013-07-08 21:39             ` Tom Rini
2013-07-08 22:10               ` Robert P. J. Day
2013-07-08 21:25           ` Robert P. J. Day
2013-07-08 21:36             ` Denys Dmytriyenko

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.