[U-Boot] Issue with USB mass storage (thumb drives)

Marek Vasut marex at denx.de
Wed Feb 3 12:12:46 CET 2016


On Wednesday, February 03, 2016 at 11:15:00 AM, Schrempf Frieder wrote:
> On 03.02.2016 10:55, Fabio Estevam wrote:
> > On Wed, Feb 3, 2016 at 7:40 AM, Marek Vasut <marex at denx.de> wrote:
> >> In that case, debug time.
> >> 
> >> Usual problems are bad routing of the tracks on the board , so try with
> >> USB 1.1 hub and if that works, that's your problem.
> > 
> > Another suggestion would be to try the 100MB transfer in Linux and see
> > if this works or not.
> > 
> > That would help us to narrow down whether this is a hardware or
> > software problem.
> 
> Thank you Marek and Fabio for your input!
> 
> I tried the file transfer in Linux and this seems to work fine.
> Also we have been using this hardware for quite some time, also with USB
> mass storage and large files in Linux and I can't remember any problems.
> For these reasons I think that the hardware is ok.
> 
> I added the DEBUG defines and here are the lines around one of the
> timeouts. With my very limited knowledge of how usb works, I can't read
> much from those messages:

It'd help if you shared your patch and the whole output. That way we can
check if something goes wrong at the beginning.

I wonder if we might be facing some misconfiguration of the USB PHY here ?

I don't have a MX6Solo . Fabio, any chance you can try ?

> dev=4ffa58e0, pipe=c0008483, buffer=4f50a1a0, length=13, req=00000000
> TOKEN=0x8d00
> dev=4ffa58e0, pipe=c0010403, buffer=4f50a1c0, length=31, req=00000000
> TOKEN=0x80008c01
> dev=4ffa58e0, pipe=c0008483, buffer=18000000, length=33553920, req=00000000
> TOKEN=0x80009d00
> dev=4ffa58e0, pipe=c0008483, buffer=4f50a180, length=13, req=00000000
> TOKEN=0x8d00
> dev=4ffa58e0, pipe=c0010403, buffer=4f50a1c0, length=31, req=00000000
> TOKEN=0x8c01
> dev=4ffa58e0, pipe=c0008483, buffer=19fffe00, length=33553920, req=00000000
> EHCI timed out on TD - token=0xac008d80
> dev=4, usbsts=0x40088, p[1]=0x18001205, p[2]=0x0
> usb_control_msg: request: 0xFF, requesttype: 0x21, value 0x0 index 0x0
> length 0x0
> dev=4ffa58e0, pipe=80000403, buffer=00000000, length=0, req=4f50a100
> req=255 (0xff), type=33 (0x21), value=0 (0x0), index=0
> TOKEN=0x8d00
> usb_control_msg: request: 0x1, requesttype: 0x2, value 0x0 index 0x81
> length 0x0
> dev=4ffa58e0, pipe=80000403, buffer=00000000, length=0, req=4f50a0c0
> req=1 (0x1), type=2 (0x2), value=0 (0x0), index=129
> TOKEN=0x8d00
> usb_control_msg: request: 0x1, requesttype: 0x2, value 0x0 index 0x2
> length 0x0
> dev=4ffa58e0, pipe=80000403, buffer=00000000, length=0, req=4f50a0c0
> req=1 (0x1), type=2 (0x2), value=0 (0x0), index=2
> TOKEN=0x8d00
> dev=4ffa58e0, pipe=c0010403, buffer=4f50a1c0, length=31, req=00000000
> TOKEN=0x80008c01
> dev=4ffa58e0, pipe=c0008483, buffer=4ffb6d40, length=18, req=00000000
> TOKEN=0x80008d00
> dev=4ffa58e0, pipe=c0008483, buffer=4f50a180, length=13, req=00000000
> TOKEN=0x8d00

Best regards,
Marek Vasut


More information about the U-Boot mailing list