uboot can't load Udisk file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

uboot can't load Udisk file

1,690 Views
1282497337
Contributor II

hi 

when I used the cmd "fatload usb 0 0x30000000 a_4M.txt " download the file "a_4M.txt" this file size is 4MB okey then I download the "a_4M.txt" the file size is 15MB,is error!!!

the detail :

=> usb start
starting USB...
USB0: 
Port not available.
USB1: 
USB EHCI 1.00
scanning bus 1 for devices... 3 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
scanning usb for ethernet devices... 0 Ethernet Device(s) found
=> fatload usb 0 0x12000000 a_4M.txt
reading a_4M.txt
4913914 bytes read in 4353 ms (1.1 MiB/s)
=> fatload usb 0 0x12000000 a_15M.txt
reading a_15M.txt
EHCI timed out on TD - token=0x40008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
Error reading cluster
** Unable to read file a_15M.txt **

then I find if I download the file size biger then 6MB,this error will happen.our uboot version is 2015-04 the chip is imx6D7c ,yes I also test and verify the NXP Development board ,is same problem.

I want update the system in uboot stage use the Udisk,so how to solve this problem 
have a good day!!!!

thx

Alee

Labels (1)
0 Kudos
2 Replies

1,401 Views
igorpadykov
NXP Employee
NXP Employee

Hi Alee

one can try suggestions provided on

Intermittent U-Boot USB Mass Storage issues with mx6sxsabresd 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,401 Views
1282497337
Contributor II

Hi igor
nice! is work fine I tried to limit USB_MAX_XFER_BLK (common/usb_storage.c  line:141)to 8191 the original value is 65535

#ifdef CONFIG_USB_EHCI
/*
* The U-Boot EHCI driver can handle any transfer length as long as there is
* enough free heap space left, but the SCSI READ(10) and WRITE(10) commands are
* limited to 65535 blocks.
*/
/*#define USB_MAX_XFER_BLK 65535*/

#define USB_MAX_XFER_BLK 8191
#else
#define USB_MAX_XFER_BLK 20
#endif

Then I test load file 10M 50M and 100M and the transfer without timeouts

Thanks !!
Alee

0 Kudos