AnsweredAssumed Answered

Intermittent U-Boot USB Mass Storage issues with mx6sxsabresd

Question asked by Mitchell Johnson on Oct 15, 2015
Latest reply on Jun 2, 2016 by friederschrempf
Branched to a new discussion

Hi,

I'm in the process of implementing a simple u-boot based upgrade system, and have encountered some issues with large file transfers on certain USB sticks. I've seen the issue on both u-boot-imx v2015.04 and with u-boot-fslc v2015.10.

 

U-Boot 2015.10-rc4+fslc+g1fb68c8 (Oct 15 2015 - 12:45:53 -0400)

 

CPU:   Freescale i.MX6SX rev1.2 996 MHz (running at 792 MHz)

CPU:   Extended Commercial temperature grade (-20C to 105C) at 52C

Reset cause: WDOG

Board: MX6SX SABRE SDB

I2C:   ready

DRAM:  1 GiB

PMIC:  PFUZE100 ID=0x11

MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2

*** Warning - bad CRC, using default environment

 

PCI:   pcie phy link never came up

In:    serial

Out:   serial

Err:   serial

Net:   Phy 1 not found

FEC [PRIME]

Hit any key to stop autoboot:  0

=> usb start

starting USB...

USB0:   USB EHCI 1.00

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

USB1:   USB EHCI 1.00

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

       scanning usb for storage devices... 1 Storage Device(s) found

       scanning usb for ethernet devices... 0 Ethernet Device(s) found

=> load usb 0:1 ${loadaddr} rootfs-a.ext4

reading rootfs-a.ext4

EHCI timed out on TD - token=0x1e008d80

EHCI timed out on TD - token=0x9e008d80

EHCI timed out on TD - token=0x800d8d80

EHCI timed out on TD - token=0x1e008d80

Error reading cluster

** Unable to read file rootfs-a.ext4 **

 

The issue comes and goes with no pattern I've been able to discern, but is more reproducible with some USB drives than others. The rootfs-a file is ~400MiB, and the first "time out" errors occur within ~5 seconds of running the "load" command.

 

I can reproduce the issue either on the host USB port or the OTG port with the correct cable.

 

I've had no issues with a separate 8MiB file even on the most problematic of drives.

 

Does anyone have any suggestions for this? I did some fairly thorough searching and was able to find other people with the same problem, but no solutions.

Outcomes