MX51 BABBAGE board: usb in u-boot is not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MX51 BABBAGE board: usb in u-boot is not working

Jump to solution
3,185 Views
rafalwegner
Contributor II

Hi All,

I am a newbie to Freescale MX community. I have a babbage evk board and I need to be able to use USB memory sticks to re-program board via U-BOOT. Has anybody managed to get U-BOOT to support USB on the i.MX51? If so, please could you share how you did it (with patches maybe?) and any problems you encountered? I am using LTIB: L2.6.35_10.11.01_ER_source_bundle.tar.gz. U-boot version which comes with this software based on 2009.08 version.

Thanks for your help and suggestions

Rafal

Labels (1)
Tags (3)
0 Kudos
1 Solution
1,080 Views
fabio_estevam
NXP Employee
NXP Employee

Rafal,

I was not aware of this USB issue with the mainline U-boot.

In your command:

fatload usb 0 c100000 hello_world.bin

The c100000 value does not seem correct. Try 0x90800000 instead.

Also, you can also try fatload from mmc card first to make sure the load address is correct.

If you still see issues, please report it to the U-boot mailing list and I will help you from there.

As far as the mx6solo lite support, it is still not supported in mainline U-boot. I will take a look at it as well.

Regards,

Fabio Estevam

View solution in original post

0 Kudos
7 Replies
1,080 Views
fabio_estevam
NXP Employee
NXP Employee

I would suggest you to use the latest U-boot from the official repository.

USB works out of the box for mx51evk in the latest U-boot.

Regards,

Fabio Estevam

1,080 Views
rafalwegner
Contributor II

Hi Fabio

Thanks for your reply. I already tried this approach and faced other problem:

U-Boot 2013.01-rc1 (Nov 22 2012 - 02:37:18)

CPU:   Freescale i.MX51 rev3.0 at 800 MHz

Reset cause: POR

Board: MX51EVK

DRAM:  512 MiB

MMC:   FSL_SDHC: 0, FSL_SDHC: 1

*** Warning - bad CRC, using default environment

In:    serial

Out:   serial

Err:   serial

Net:   FEC

Warning: FEC using MAC address from net device

Hit any key to stop autoboot:  0

MX51EVK U-Boot > usb start

(Re)start USB...

USB0:   USB EHCI 1.00

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

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

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

MX51EVK U-Boot > fatload usb 0 c100000 hello_world.bin

reading hello_world.bin

EHCI timed out on TD - token=0xd8d80

EHCI timed out on TD - token=0x80008d80

EHCI timed out on TD - token=0x80008d80

EHCI timed out on TD - token=0x80008d80

EHCI timed out on TD - token=0x1f8c80

EHCI timed out on TD - token=0x128d80

EHCI timed out on TD - token=0xd8d80

EHCI timed out on TD - token=0x80008d80

EHCI timed out on TD - token=0x80008d80

EHCI timed out on TD - token=0x80008d80

EHCI timed out on TD - token=0x1f8c80

EHCI timed out on TD - token=0x2008d80

EHCI timed out on TD - token=0xd8d80

EHCI timed out on TD - token=0x80008d80

EHCI timed out on TD - token=0x80008d80

EHCI timed out on TD - token=0x80008d80

EHCI timed out on TD - token=0x1f8c80

EHCI timed out on TD - token=0x128d80

EHCI timed out on TD - token=0xd8d80

EHCI timed out on TD - token=0x80008d80

EHCI timed out on TD - token=0x80008d80

EHCI timed out on TD - token=0x80008d80

EHCI timed out on TD - token=0x1f8c80

EHCI timed out on TD - token=0x2008d80

EHCI timed out on TD - token=0xd8d80

EHCI timed out on TD - token=0x80008d80

EHCI timed out on TD - token=0x80008d80

EHCI timed out on TD - token=0x80008d80

EHCI timed out on TD - token=0x1f8c80

EHCI timed out on TD - token=0x128d80

EHCI timed out on TD - token=0xd8d80

EHCI timed out on TD - token=0x80008d80

EHCI timed out on TD - token=0x80008d80

EHCI timed out on TD - token=0x80008d80

Error reading cluster

** Unable to read file hello_world.bin **

Does it says anything to you?

Also, soon I will have to switch to new Freescale imx6 solo board which is not yet supported by official U-boot ;( Does anyone knows if usb will be supported in LTIB for this version?

Regards,

Rafal

0 Kudos
1,081 Views
fabio_estevam
NXP Employee
NXP Employee

Rafal,

I was not aware of this USB issue with the mainline U-boot.

In your command:

fatload usb 0 c100000 hello_world.bin

The c100000 value does not seem correct. Try 0x90800000 instead.

Also, you can also try fatload from mmc card first to make sure the load address is correct.

If you still see issues, please report it to the U-boot mailing list and I will help you from there.

As far as the mx6solo lite support, it is still not supported in mainline U-boot. I will take a look at it as well.

Regards,

Fabio Estevam

0 Kudos
1,080 Views
rafalwegner
Contributor II

Hi

You were right about this load addres above. Despite the fact that I mentioned 0xc100000 (which is default value of LOAD ADDR for arm architecture) when I changed LOAD ADDR to 0x90800000, it is working properly now (both sd and usb).

Thank you very much for your help and I am looking forward for mx6solo support in mainline U-boot (with usb :smileyhappy:).

BR, Rafal

0 Kudos
1,080 Views
fabio_estevam
NXP Employee
NXP Employee

Regarding mx6 solo support in mainline U-boot, please see the status here:

http://marc.info/?l=u-boot&m=135378629307714&w=2

As you can see it is work in progress, and we should have it supported soon.

Regards,

Fabio Estevam

0 Kudos
1,080 Views
rafalwegner
Contributor II

Hello

Do you have maybe some information regarding usb in mainline support for DualLite iMX6 processor?

BR, Rafal

0 Kudos
1,079 Views
fabio_estevam
NXP Employee
NXP Employee

mx6 dual lite is not yet supported in mainline U-boot. There have been some activities in the u-boot list about adding dual lite though. Please monitor the U-boot list.

Regards,

Fabio Estevam

0 Kudos