Welcome! Log In Create A New Profile

Advanced

[Solved] EHCI timed out on TD - token=XXXX

Posted by rayvt 
Re: [Solved] EHCI timed out on TD - token=XXXX
December 18, 2018 08:14PM
noah,

> usb_ready_retry=15

If you don't see u-boot outputs a message about this max retry period when initializing the USB drive, then the patch was not completed. I've must have missed something.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: [Solved] EHCI timed out on TD - token=XXXX
December 20, 2018 05:47AM
noah,

My test is OK using a 4TB USB HDD.

U-Boot 2015.10-tld-3 (Dec 08 2018 - 03:07:20 -0800)
OXNAS OX820

DRAM:  128 MiB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   dwmac.40400000
Hit any key to stop autoboot:  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)

Use USB retry period from the environment: 15 second(s)
2 Storage Device(s) found

Reset IDE: SATA PHY not ready for device 0
ide_preinit failed

Partition Map for USB device 0  --   Partition Type: EFI

Part	Start LBA	End LBA		Name
	Attributes
	Type GUID
	Partition GUID
  1	0x00000100	0x3a3817cf	"Linux filesystem"
	attrs:	0x0000000000000000
	type:	0fc63daf-8483-4772-8e79-3d69d8477de4
	guid:	5192d3ed-6b2c-40b3-9075-20232ae0f336


Partition Map for USB device 1  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	15630336  	17f04d84-01	83 Boot
loading envs from usb 0 ...

So I am not sure why it this message about "15 seconds retry" did not show in your log (it should). Your box "Timeout on TD" error seems to occured too early.

Use USB retry period from the environment: 15 second(s)

Like daviddyer has recommended, make sure your power supply is OK.

Is that a USB HDD with separate power source? or is it a 2.5" USB HDD that you expect to draw powwer from the USB port?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: [Solved] EHCI timed out on TD - token=XXXX
December 20, 2018 09:51AM
eeee.... i am using usb memorysticks for booting, so there is no external power source for that.
I hope that small fact doesn't render all your hard work meaningless ...
Re: [Solved] EHCI timed out on TD - token=XXXX
December 20, 2018 03:34PM
noah Wrote:
-------------------------------------------------------
> eeee.... i am using usb memorysticks for booting,
> so there is no external power source for that.
> I hope that small fact doesn't render all your
> hard work meaningless ...

No not meaningless at all:) it should be done sooner or later.

But USB stick problem is a little bit diferent. You should try using a different stick brand, such as Sandisk.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: [Solved] EHCI timed out on TD - token=XXXX
March 30, 2019 11:33PM
Hi ray,

Please check your PM.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: [Solved] EHCI timed out on TD - token=XXXX
April 04, 2020 05:56AM
Hi Ray,

You might want to participate in this email discussion:

https://lists.denx.de/pipermail/u-boot/2020-March/401877.html

With your help, this issue "EHCI timed out on TD" could be resolved in mainline, and thus will benefit us all.

Your solution might not be the final (I still seeing the error in some rare instances), but it does help most of scenarios,

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: [Solved] EHCI timed out on TD - token=XXXX
July 14, 2023 10:55PM
Hi Bodhi!

I'm running into similar problems on a Netgear Stora with a large number of different USB flash drives/SD card in adapters. I have the uboot.2017.07-tld-1.netgear_ms2110.mtd0.kwb, which has this version output:

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:45:22 -0700)
Netgear-MS2110

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0 
Netgear Stora> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Partition Map for USB device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	7742464   	00000000-01	83
loading envs from usb 0 ...
EHCI timed out on TD - token=0x128d80
EHCI timed out on TD - token=0x4008d80
EHCI timed out on TD - token=0x128d80
EHCI timed out on TD - token=0x4008d80
EHCI timed out on TD - token=0x128d80
 ** ext4fs_devread read error -

I don't see the usb_max_blk env variable when I printenv, so am I correct in assuming that this fix isn't in this version? Is there a way to patch it or rebuilt it from scratch? I have re-compiled things from scratch in Linux, though not for a while.

I was able to get the whole process to work on an external hard drive in a USB enclosure, and, incredibly slowly, on a Lexar 32GB flash drive partitioned down to just 4 GB. I also have an older Sandisk on order. But I've run into this same problem on about 4 other different flash drives.

Thanks for the help!

-Scott
Re: [Solved] EHCI timed out on TD - token=XXXX
July 15, 2023 12:27AM
thebitmaster Wrote:
-------------------------------------------------------
> Hi Bodhi!
>
> I'm running into similar problems on a Netgear
> Stora with a large number of different USB flash
> drives/SD card in adapters. I have the
> uboot.2017.07-tld-1.netgear_ms2110.mtd0.kwb, which
> has this version output:
>
>
> U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:45:22
> -0700)
> Netgear-MS2110
> 
Based on the output from your U-Boot you've actually loaded the older 2016.05 version not the newer 2017.07!  The link for the newer U-Boot for Netgear Stora is:

uboot.2017.07-tld-1.netgear_ms2110.bodhi.tar or
https://www.dropbox.com/s/2hrhrwxn9v0892u/uboot.2017.07-tld-1.netgear_ms2110.bodhi.tar
md5
1b09317e896ad928104a1edce459a9f5
sha256
8f5e8b5b33e3979b05698a09a92f99cd41ed04121993058f9b2469122fd280a7
Re: [Solved] EHCI timed out on TD - token=XXXX
July 15, 2023 04:38AM
Scott,

> U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:45:22
> -0700)
> Netgear-MS2110

You had installed U-Boot 2016.05-tld-1. Now upgrade to the uboot.2017.07-tld-1 version.

Also, the "EHCI timed out on TD" was not completely fixed in version uboot.2017.07-tld-1 either. It will be hit and miss. YMMV.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: