USB support at u-boot

cancel
Showing results for 
Search instead for 
Did you mean: 

USB support at u-boot

Jump to solution
3,537 Views
manjunathjoshi
Contributor V

Hello All,

I am seeing that u-boot - 2013.04 has support for u-boot but what are the prerequisites that are needed to make the boot possible from USB device? Does anybody have an idea?

U-Boot > usb start

(Re)start USB...

USB0:   USB EHCI 1.00

scanning bus 0 for devices... 1 USB Device(s) found

       scanning usb for storage devices... 0 Storage Device(s) found

       scanning usb for ethernet devices... 0 Ethernet Device(s) found

These are the logs found on my board even though i have connected USB stick on HOST1.

Regards,

Manju

Labels (2)
0 Kudos
1 Solution
1,187 Views
manjunathjoshi
Contributor V

Hello All,

The USB is connected to a hub and then to the processor. That is why i was not able to see the LED blinking or the storage device.

Now i am able to see in other similar board with no hub.

So if anyone using the USB, has to make sure that the lines are connected to i-mx directly since i-mx has dedicated USB port connection.

Regards,

Manju

View solution in original post

0 Kudos
6 Replies
1,188 Views
manjunathjoshi
Contributor V

Hello All,

The USB is connected to a hub and then to the processor. That is why i was not able to see the LED blinking or the storage device.

Now i am able to see in other similar board with no hub.

So if anyone using the USB, has to make sure that the lines are connected to i-mx directly since i-mx has dedicated USB port connection.

Regards,

Manju

View solution in original post

0 Kudos
1,187 Views
BiyongSUN
NXP Employee
NXP Employee

Hi Manju,

uboot usb is supported since 3.10.17 bsp release.

But here is the concern. The usb stack in uboot is very old and weak.

lots of usb stick cannot be used. Most of them can not be used is new usb stick.

1,187 Views
fabio_estevam
NXP Employee
NXP Employee

Hi Manju,

Just to clarify: mx6 does not boot from directly USB thumb. Is this what you are trying to achieve?

You need to flash U-boot in to one of the supported media: SD/eMMC, SPI NOR, SATA, etc.

The usb support command in U-boot allows you to connect USB thumb and you can read files from it, but you cannot boot U-boot from a USB thumb.

Regards,

Fabio Estevam

0 Kudos
1,187 Views
manjunathjoshi
Contributor V

Hello Fabio,

My intention is to boot the kernel and filesystem from u-boot prompt through USB. The board already has u-boot in eMMC.

Regards,

Manju

0 Kudos
1,187 Views
sinanakman
Senior Contributor III

Hi Manju

What board is this ? Also, can you just try a more

recent (and preferably a mainline) u-boot version.

On my sabresd board, with mainline u-boot from

tip of the mainline tree, USB works fine.

Regards

Sinan Akman

0 Kudos
1,187 Views
manjunathjoshi
Contributor V

Hello Sinan,

Thanks for your reply. The board is custom one similar to SABRESD but has 2 USB hosts.

You are right. With mainline u-boot which i have, the USB is supported. I can see in the u-boot prompt. Apart from that what should i take care off in the source so that the USB device is detected.

The problem is, when i connect USB i see that power is not going to the device. We can see the USB LED blinking as soon as the kernel boots up but not at the u-boot prompt.

Regards,

Manju

0 Kudos