[U-Boot] EHCI timed out on TD - token=0x80008d80

Andreas Neubacher neubacher.andreas at gmail.com
Thu Sep 8 15:19:23 CEST 2016


Hi Marek & Team :),

i'm facing the same issue as Manju and all the others on the web (see mail
below). i've tested it on different hardware-platforms and different
uboot-versions...
- ATMEL G45 (custom board), uboot 2015.01
- ATMEL G45 (custom board), uboot 2013.03
- ATMEL SAMA5D36 (custom board), uboot 2016.03
- ATMEL SAMA5D36 (custom board), uboot-mainline

what we did:
we are using usb-memory-sticks for updating our complete
system (rootfs, kernel, etc.) and somtimes copy files larger than 50MB from
USB to RAM (fatload usb 0 $loadaddr file.bin).
we've tested different speed-classes, different stick-sizes and different
quality-standards of the usb-sticks. from all the different type of sticks
we've tested, we found some 'bad sticks' where we get the error-msg

EHCI timed out on TD - token=0x9e008d80
EHCI timed out on TD - token=0x1e008d80
EHCI timed out on TD - token=0x1e008d80

... in all uboot-versions and on all different boards the behaviour is the same
-> so IMHO the issue depends on the 'bad usb-stick(s)' we are using.

so we investigated the 'bad usb-sticks' with different diagnostic-tools on
windows(10) and linux(ubuntu) host-machines without any result...

means: it looks like the 'bad-stick' on any host-machine is working as
expected (good r/w performance, no timeouts, no issues, etc.)


if i can do further investigations please let me know :)


br,
Andy



Hello Marek,


If the USB is detected successfully, then below are the logs.


U-Boot > usb start
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... New Device 0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index
0x0 length 0x40
set address 1
usb_control_msg: request: 0x5, requesttype: 0x0, value 0x1 index 0x0 length 0x0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index
0x0 length 0x12
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index
0x0 length 0x9
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index
0x0 length 0x19
get_conf_no 0 Result 25, wLength 25
if 0, ep 0
##EP epmaxpacketin[1] = 8
set configuration 1
usb_control_msg: request: 0x9, requesttype: 0x0, value 0x1 index 0x0 length 0x0
new device strings: Mfr=1, Product=2, SerialNumber=0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x300 index
0x0 length 0xFF
USB device number 1 default language ID 0x1
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x301 index
0x1 length 0xFF
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x302 index
0x1 length 0xFF
Manufacturer u-boot
Product      EHCI Host Controller
SerialNumber
usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 index
0x0 length 0x4
usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 index
0x0 length 0x8
usb_control_msg: request: 0x0, requesttype: 0xA0, value 0x0 index 0x0 length 0x4
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x1 length 0x0
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
usb_control_msg: request: 0x1, requesttype: 0x23, value 0x10 index 0x1
length 0x0
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x4 index 0x1 length 0x0
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
usb_control_msg: request: 0x1, requesttype: 0x23, value 0x14 index 0x1
length 0x0
New Device 1
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index
0x0 length 0x40
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x4 index 0x1 length 0x0
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
usb_control_msg: request: 0x1, requesttype: 0x23, value 0x14 index 0x1
length 0x0
set address 2
usb_control_msg: request: 0x5, requesttype: 0x0, value 0x2 index 0x0 length 0x0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index
0x0 length 0x12
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index
0x0 length 0x9
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index
0x0 length 0x20
get_conf_no 0 Result 32, wLength 32
if 0, ep 0
if 0, ep 1
##EP epmaxpacketin[1] = 512
##EP epmaxpacketout[2] = 512
set configuration 1
usb_control_msg: request: 0x9, requesttype: 0x0, value 0x1 index 0x0 length 0x0
new device strings: Mfr=1, Product=2, SerialNumber=3
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x300 index
0x0 length 0xFF
USB device number 2 default language ID 0x409
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x301 index
0x409 length 0xFF
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x302 index
0x409 length 0xFF
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x303 index
0x409 length 0xFF
Manufacturer JetFlash
Product      Mass Storage Device
SerialNumber 99TL2DWA1OQMAIUS
2 USB Device(s) found
USB1:   USB EHCI 1.00
scanning bus 1 for devices... New Device 2
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index
0x0 length 0x40
set address 3
usb_control_msg: request: 0x5, requesttype: 0x0, value 0x3 index 0x0 length 0x0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index
0x0 length 0x12
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index
0x0 length 0x9
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index
0x0 length 0x19
get_conf_no 0 Result 25, wLength 25
if 0, ep 0
##EP epmaxpacketin[1] = 8
set configuration 1
usb_control_msg: request: 0x9, requesttype: 0x0, value 0x1 index 0x0 length 0x0
new device strings: Mfr=1, Product=2, SerialNumber=0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x300 index
0x0 length 0xFF
USB device number 3 default language ID 0x1
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x301 index
0x1 length 0xFF
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x302 index
0x1 length 0xFF
Manufacturer u-boot
Product      EHCI Host Controller
SerialNumber
usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 index
0x0 length 0x4
usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 index
0x0 length 0x8
usb_control_msg: request: 0x0, requesttype: 0xA0, value 0x0 index 0x0 length 0x4
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x1 length 0x0
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
usb_control_msg: request: 0x1, requesttype: 0x23, value 0x10 index 0x1
length 0x0
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x4 index 0x1 length 0x0
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
usb_control_msg: request: 0x1, requesttype: 0x23, value 0x14 index 0x1
length 0x0
New Device 3
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index
0x0 length 0x40
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x4 index 0x1 length 0x0
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
usb_control_msg: request: 0x1, requesttype: 0x23, value 0x14 index 0x1
length 0x0
set address 4
usb_control_msg: request: 0x5, requesttype: 0x0, value 0x4 index 0x0 length 0x0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index
0x0 length 0x12
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index
0x0 length 0x9
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index
0x0 length 0x20
get_conf_no 0 Result 32, wLength 32
if 0, ep 0
if 0, ep 1
##EP epmaxpacketin[1] = 512
##EP epmaxpacketout[2] = 512
set configuration 1
usb_control_msg: request: 0x9, requesttype: 0x0, value 0x1 index 0x0 length 0x0
new device strings: Mfr=1, Product=2, SerialNumber=3
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x300 index
0x0 length 0xFF
USB device number 4 default language ID 0x409
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x301 index
0x409 length 0xFF
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x302 index
0x409 length 0xFF
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x303 index
0x409 length 0xFF
Manufacturer JetFlash
Product      Mass Storage Device
SerialNumber 99TL2DWA1OQMAIUS
2 USB Device(s) found
scan end
       scanning usb for storage devices... usb_control_msg: request:
0xFE, requesttype: 0xA1, value 0x0 index 0x0 length 0x1
EHCI timed out on TD - token=0x80008c80
usb_control_msg: request: 0xFF, requesttype: 0x21, value 0x0 index 0x0
length 0x0
EHCI timed out on TD - token=0x80008d80
usb_control_msg: request: 0xFF, requesttype: 0x21, value 0x0 index 0x0
length 0x0
EHCI timed out on TD - token=0x80008d80
usb_control_msg: request: 0xFF, requesttype: 0x21, value 0x0 index 0x0
length 0x0
EHCI timed out on TD - token=0x80008d80
usb_control_msg: request: 0xFF, requesttype: 0x21, value 0x0 index 0x0
length 0x0
EHCI timed out on TD - token=0x80008d80
usb_control_msg: request: 0xFF, requesttype: 0x21, value 0x0 index 0x0
length 0x0
EHCI timed out on TD - token=0x80008d80
error in inquiry
usb_control_msg: request: 0xFE, requesttype: 0xA1, value 0x0 index 0x0
length 0x1
1 Storage Device(s) found

I would be really happy to receive your help.


Regards,
Manju


----- Original Message -----
From: "Manjunath" <manjunath at tes-dst.com
<http://lists.denx.de/mailman/listinfo/u-boot>>
To: "u-boot" <u-boot at lists.denx.de
<http://lists.denx.de/mailman/listinfo/u-boot>>
Cc: marex at denx.de <http://lists.denx.de/mailman/listinfo/u-boot>,
"marek vasut" <marek.vasut at gmail.com
<http://lists.denx.de/mailman/listinfo/u-boot>>
Sent: Thursday, April 21, 2016 11:19:03 AM
Subject: Fwd: EHCI timed out on TD - token=0x80008d80

----- Forwarded Message -----
From: "Manjunath" <manjunath at tes-dst.com
<http://lists.denx.de/mailman/listinfo/u-boot>>
To: "fabio estevam" <fabio.estevam at nxp.com
<http://lists.denx.de/mailman/listinfo/u-boot>>
Sent: Wednesday, April 20, 2016 4:03:05 PM
Subject: Re: EHCI timed out on TD - token=0x80008d80

Hi Fabio,

No it doesn't.


I enabled debug prints and i get the following.


U-Boot > usb start
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... New Device 0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index
0x0 length 0x40
set address 1
usb_control_msg: request: 0x5, requesttype: 0x0, value 0x1 index 0x0 length 0x0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index
0x0 length 0x12
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index
0x0 length 0x9
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index
0x0 length 0x19
get_conf_no 0 Result 25, wLength 25
if 0, ep 0
##EP epmaxpacketin[1] = 8
set configuration 1
usb_control_msg: request: 0x9, requesttype: 0x0, value 0x1 index 0x0 length 0x0
new device strings: Mfr=1, Product=2, SerialNumber=0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x300 index
0x0 length 0xFF
USB device number 1 default language ID 0x1
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x301 index
0x1 length 0xFF
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x302 index
0x1 length 0xFF
Manufacturer u-boot
Product      EHCI Host Controller
SerialNumber
usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 index
0x0 length 0x4
usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 index
0x0 length 0x8
usb_control_msg: request: 0x0, requesttype: 0xA0, value 0x0 index 0x0 length 0x4
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x1 length 0x0
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
1 USB Device(s) found
USB1:   USB EHCI 1.00
scanning bus 1 for devices... New Device 1
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index
0x0 length 0x40
set address 2
usb_control_msg: request: 0x5, requesttype: 0x0, value 0x2 index 0x0 length 0x0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index
0x0 length 0x12
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index
0x0 length 0x9
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index
0x0 length 0x19
get_conf_no 0 Result 25, wLength 25
if 0, ep 0
##EP epmaxpacketin[1] = 8
set configuration 1
usb_control_msg: request: 0x9, requesttype: 0x0, value 0x1 index 0x0 length 0x0
new device strings: Mfr=1, Product=2, SerialNumber=0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x300 index
0x0 length 0xFF
USB device number 2 default language ID 0x1
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x301 index
0x1 length 0xFF
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x302 index
0x1 length 0xFF
Manufacturer u-boot
Product      EHCI Host Controller
SerialNumber
usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 index
0x0 length 0x4
usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 index
0x0 length 0x8
usb_control_msg: request: 0x0, requesttype: 0xA0, value 0x0 index 0x0 length 0x4
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x1 length 0x0
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
1 USB Device(s) found
scan end
       scanning usb for storage devices... 0 Storage Device(s) found



Regards,
Manju

----- Original Message -----
From: "fabio estevam" <fabio.estevam at nxp.com
<http://lists.denx.de/mailman/listinfo/u-boot>>
To: "Manjunath" <manjunath at tes-dst.com
<http://lists.denx.de/mailman/listinfo/u-boot>>
Sent: Monday, April 18, 2016 6:16:18 PM
Subject: Re: EHCI timed out on TD - token=0x80008d80

Hi Manju,

Does setting USB_MAX_XFER_BLK to 32767 solve this issue?

Regards,

Fabio Estevam

________________________________________
From: Manjunath <manjunath at tes-dst.com
<http://lists.denx.de/mailman/listinfo/u-boot>>
Sent: Monday, April 18, 2016 4:14:08 AM
To: Fabio Estevam
Subject: EHCI timed out on TD - token=0x80008d80

Hello Fabio,

Hope you are doing well. I needed your help in solving one issue that
i am stuck with.

The issue is regarding u-boot 2013.04 version. This version supports
USB. The issue i am facing is,

EHCI timed out on TD - token=0x80008d80

This time out error occurs when i flash u-boot first time on the
board. But first time even though this error is seen the USB is
detected and content of USB can be accessed./


For the second time when i reboot, the same USB key is not detected
since i get below error,

U-Boot > usb start

(Re)start USB...

USB0:   USB EHCI 1.00

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

USB1:   USB EHCI 1.00

scanning bus 1 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


Please let me know what is your view on this. Since you are a member
of u-boot community i am assuming that somebody would have had this
issue before. I have tried mailing to u-boot team but i didn't get any
response.


I need your help.

Regards,
Manju


More information about the U-Boot mailing list