[U-Boot] [PATCH 20/20] M28EVK: Enable USB HOST support

Veli-Pekka Peltola veli-pekka.peltola at bluegiga.com
Fri Nov 11 15:07:03 CET 2011


Hi Marek,

On 11/09/2011 11:18 AM, Marek Vasut wrote:
> This enables the second port, aka. the port with the USB connector on the
> M28EVK.

Which version of GCC you are using? I noticed that "usb start" freezes 
after message "scanning bus for devices..." if I had memory stick 
connected. I used GCC 4.6.1 that comes with Yocto 1.1. Without stick I 
did not have any such problems. The board is very similar to M28EVK. 
With GCC 4.3.4 it works fine.

I also tested both compilers on our Atmel AT91SAM9260 based device but I 
didn't have such problems.

Any ideas how to debug this further? I noticed some comments related to 
GCC in common/usb.c before usb_set_maxpacket_ep function. I also printed 
out i and ii in usb_set_maxpacket. Results were something that I didn't 
expect:
i: 0, ii: 0
i: 0, ii: 1
i: 4, ii: -30879
i: 4, ii: -30878

--
Veli-Pekka Peltola


More information about the U-Boot mailing list