[U-Boot] [PATCH RFC] OMAP5: uEVM: Enable USB EHCI functionality (preliminary, not tested)

Lubomir Popov
2013-05-16T14:56:57Z

Hi Tom,

On 16/05/13 15:28, Tom Rini wrote:
> On Thu, May 16, 2013 at 11:23:00AM +0300, Lubomir Popov wrote:
>
>> Hi Tom,
>>
>> Thanks for testing. One more thing needs fixing, my fault.
>> I forgot that the mux_data.h file comes from the sEVM w/o
>> any modification. Not only USB shall not work...
>>
>> Fix is in http://patchwork.ozlabs.org/patch/244233/
>
> No change.
>
>> Please see comments inline below.
>
> Ah right, thought so after reading over the SRM.
>
I found here a couple of old uEVMs (the old 750-2617 board
type with OMAP5432 ES1.0 and the old DDR3 power scheme).
One was HS, so of no use directly (no time to play with
image signing). On the GP, I get the following:

U-Boot SPL 2013.04-11569-ge3db066-dirty (May 16 2013 - 16:18:35)
OMAP5432 ES1.0

U-Boot SPL 2013.04-11569-ge3db066-dirty (May 16 2013 - 16:18:35)
OMAP5432 ES1.0
SDRAM: identified size not same as expected size identified: 4 expected: 40000000
OMAP SD/MMC: 0
spl: fat register err - -1
### ERROR ### Please RESET the board ###

<reset>

U-Boot SPL 2013.04-11569-ge3db066-dirty (May 16 2013 - 16:18:35)
OMAP5432 ES1.0

U-Boot SPL 2013.04-11569-ge3db066-dirty (May 16 2013 - 16:18:35)
OMAP5432 ES1.0
SDRAM: identified size not same as expected size identified: 4 expected: 40000000
OMAP SD/MMC: 0
spl: fat register err - -1
### ERROR ### Please RESET the board ###

<...>

The same U-Boot (yesterday's u-boot-ti/master), just configured for
my SOM5_EVB board:

U-Boot SPL 2013.04-11569-ge3db066-dirty (May 16 2013 - 16:14:17)
OMAP5430 ES1.0

U-Boot SPL 2013.04-11569-ge3db066-dirty (May 16 2013 - 16:14:17)
OMAP5430 ES1.0
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img

U-Boot 2013.04-11569-ge3db066-dirty (May 16 2013 - 16:14:17)

CPU : OMAP5430 ES1.0
Board: MM Solutions SOM5 EVB
I2C: ready
DRAM: 2 GiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

In: serial
Out: serial
Err: serial
Net: No ethernet found.
Hit any key to stop autoboot: 0
mmc0 is current device
reading boot.scr
109 bytes read in 3 ms (35.2 KiB/s)
Running bootscript from mmc0 ...
## Executing script at 82000000
** File not found /boot/zImage **
SOM5_EVB # usb start
(Re)start USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 6 USB Device(s) found
scanning usb for storage devices... 3 Storage Device(s) found
scanning usb for ethernet devices... 1 Ethernet Device(s) found
SOM5_EVB # usb tree
USB device tree:
1 Hub (480 Mb/s, 0mA)
| u-boot EHCI Host Controller
|
+-2 Mass Storage (480 Mb/s, 98mA)
| USB Mass Storage Device 6fc59c7217b150
|
+-3 Hub (480 Mb/s, 2mA)
| |
| +-4 Mass Storage (480 Mb/s, 96mA)
| | Generic Ultra Fast Media Reader 000000264001
| |
| +-5 Mass Storage (480 Mb/s, 200mA)
| FSC MEMORYBIRD USB2 C157040817120315AA
|
+-6 Vendor specific (480 Mb/s, 500mA)

SOM5_EVB #

I guess something at very low level mem init does not match the 5432 ES1.0
or the DDRs. So unfortunately I can't get to U-Boot and test USB.

Also please notice that the SPL now seems to be executed twice (on both
boards). This was not the case until recently, at least with the mainline.
Anything to do with all those relocation discussions/patches?

Best regards,
Lubo