BBB usb boot fails on SPL tftp

69 views
Skip to first unread message

Ravi Kumar Prasad

unread,
Jun 11, 2017, 4:18:31 PM6/11/17
to BeagleBoard GSoC
Hi,
I'm porting BBBlfs bootloader server to nodejs. Now, after receiving tftp request for SPL, I'm transferring SPL.
I built spl/uboot with config am335x_evm_usbspl_defconfig . After SPL transfer it fails to boot, here's the serial output:

U-Boot SPL 2017.07-rc1-00163-g8cb3ce6 (Jun 11 2017 - 01:09:02)
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

Please help me to debug this problem.
Thanks
Ravi

Jason Kridner

unread,
Jun 12, 2017, 12:43:08 PM6/12/17
to beaglebo...@googlegroups.com, Tom Rini, stefan...@toradex.com, u-b...@lists.denx.de, beagl...@googlegroups.com
Stefan,

I see you submitted this defconfig:

I have a Google Summer of Code student intern attempting to use it and he's seeing it hang without entering UMS mode. Details are below.

Can you give any advice on how you tested this?

I believe he still needs to do something to explicitly enable UMS. Can you confirm?

Ravi,

If Stefan cannot answer, I'd suggest adjusting the default boot command to invoke UMS. Have you been able to stop the boot process using the serial port and get to the u-boot console? At the console, have you tried running the 'ums' command?

Regards,
Jason

--
You received this message because you are subscribed to the Google Groups "BeagleBoard GSoC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard-gs...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ravi Kumar Prasad

unread,
Jun 12, 2017, 1:42:40 PM6/12/17
to BeagleBoard GSoC, tom....@gmail.com, stefan...@toradex.com, u-b...@lists.denx.de, beagl...@googlegroups.com


On Monday, June 12, 2017 at 10:13:08 PM UTC+5:30, Jason Kridner wrote:
Stefan,

I see you submitted this defconfig:

I have a Google Summer of Code student intern attempting to use it and he's seeing it hang without entering UMS mode. Details are below.

Can you give any advice on how you tested this?

I believe he still needs to do something to explicitly enable UMS. Can you confirm?

Ravi,

If Stefan cannot answer, I'd suggest adjusting the default boot command to invoke UMS.
But SPL isn't booting first :( 
Have you been able to stop the boot process using the serial port and get to the u-boot console? At the console, have you tried running the 'ums' command?
Yes, I tried running ums command from console, => ums 0 mmc 1 and the emmc was mounted as mass storage device. 

Michael Welling

unread,
Jun 12, 2017, 7:30:02 PM6/12/17
to beaglebo...@googlegroups.com, tom....@gmail.com, stefan...@toradex.com, u-b...@lists.denx.de, beagl...@googlegroups.com
On Mon, Jun 12, 2017 at 10:42:40AM -0700, Ravi Kumar Prasad wrote:
>
>
> On Monday, June 12, 2017 at 10:13:08 PM UTC+5:30, Jason Kridner wrote:
> >
> > Stefan,
> >
> > I see you submitted this defconfig:
> > https://lists.denx.de/pipermail/u-boot/2016-November/272425.html
> >
> > I have a Google Summer of Code student intern attempting to use it and
> > he's seeing it hang without entering UMS mode. Details are below.
> >
> > Can you give any advice on how you tested this?
> >
> > I believe he still needs to do something to explicitly enable UMS. Can you
> > confirm?
> >
> > Ravi,
> >
> > If Stefan cannot answer, I'd suggest adjusting the default boot command to
> > invoke UMS.
> >
> But SPL isn't booting first :(

It was a configuration issue. I sent a patch to the U-Boot mailinglist.

Should see it after it approved by the moderator.

>
> > Have you been able to stop the boot process using the serial port and get
> > to the u-boot console? At the console, have you tried running the 'ums'
> > command?
> >
> Yes, I tried running ums command from console, => ums 0 mmc 1 and the emmc
> was mounted as mass storage device.
>

The problem was earlier in the boot than this.

> >
> > Regards,
> > Jason
> >
> > On Sun, Jun 11, 2017 at 4:18 PM Ravi Kumar Prasad <7ra...@gmail.com
> > <javascript:>> wrote:
> >
> >> Hi,
> >> I'm porting BBBlfs bootloader server to nodejs. Now, after receiving tftp
> >> request for SPL, I'm transferring SPL.
> >> I built spl/uboot with config am335x_evm_usbspl_defconfig . After SPL
> >> transfer it fails to boot, here's the serial output:
> >>
> >> U-Boot SPL 2017.07-rc1-00163-g8cb3ce6 (Jun 11 2017 - 01:09:02)
> >> SPL: failed to boot from all boot devices
> >> ### ERROR ### Please RESET the board ###

Here is a pastebin after the configuration changes were applied:
https://pastebin.com/MbKfB7bF

He should be back in business.

> >>
> >> Please help me to debug this problem.
> >> Code for server: https://github.com/ravikp7/node-beagle-boot
> >> Thanks
> >> Ravi
> >>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "BeagleBoard GSoC" group.
> >> To unsubscribe from this group and stop receiving emails from it, send an
> >> email to beagleboard-gs...@googlegroups.com <javascript:>.

Vignesh R

unread,
Jun 13, 2017, 3:09:59 AM6/13/17
to Jason Kridner, beaglebo...@googlegroups.com, Tom Rini, stefan...@toradex.com, u-b...@lists.denx.de, beagl...@googlegroups.com


On Monday 12 June 2017 10:12 PM, Jason Kridner wrote:

> I see you submitted this defconfig:
> https://lists.denx.de/pipermail/u-boot/2016-November/272425.html
>
> I have a Google Summer of Code student intern attempting to use it and he's
> seeing it hang without entering UMS mode. Details are below.
>
> Can you give any advice on how you tested this?

Could you try this patch that I posted sometime back:
https://patchwork.ozlabs.org/patch/748877/

I forgot to follow that up and looks like it did not make into the
u-boot master branch.

Regards
Vignesh
> _______________________________________________
> U-Boot mailing list
> U-B...@lists.denx.de
> https://lists.denx.de/listinfo/u-boot
>

--
Regards
Vignesh

Michael Welling

unread,
Jun 13, 2017, 11:59:30 AM6/13/17
to 'Vignesh R' via BeagleBoard GSoC, Jason Kridner, Tom Rini, stefan...@toradex.com, u-b...@lists.denx.de, beagl...@googlegroups.com
On Tue, Jun 13, 2017 at 10:07:10AM +0530, 'Vignesh R' via BeagleBoard GSoC wrote:
>
>
> On Monday 12 June 2017 10:12 PM, Jason Kridner wrote:
>
> > I see you submitted this defconfig:
> > https://lists.denx.de/pipermail/u-boot/2016-November/272425.html
> >
> > I have a Google Summer of Code student intern attempting to use it and he's
> > seeing it hang without entering UMS mode. Details are below.
> >
> > Can you give any advice on how you tested this?
>
> Could you try this patch that I posted sometime back:
> https://patchwork.ozlabs.org/patch/748877/
>

Were you able to get this to compile and fit in the SRAM?

With the latest U-Boot and your patch I get the following on compile:
arm-poky-linux-gnueabi-ld.bfd: u-boot-spl section `.rodata' will not fit in region `.sram'
arm-poky-linux-gnueabi-ld.bfd: region `.sram' overflowed by 9928 bytes
scripts/Makefile.spl:333: recipe for target 'spl/u-boot-spl' failed
make[1]: *** [spl/u-boot-spl] Error 1
Makefile:1382: recipe for target 'spl/u-boot-spl' failed
make: *** [spl/u-boot-spl] Error 2

I had to remove some of the other features to get it to fit in SRAM.

Here is the patch that I sent yesterday:
https://patchwork.ozlabs.org/patch/774899/
Reply all
Reply to author
Forward
0 new messages