AnsweredAssumed Answered

i.mx6ull u-boot usb mass storage not detectable

Question asked by Michał Wołowik on Dec 18, 2018
Latest reply on Dec 19, 2018 by Michał Wołowik

I try to load some images from USB flash drive. When issuing usb start with the flash drive on to the first USB I get some following information:


U-Boot 2018.09-36904-gae57ffc-dirty (Dec 18 2018 - 23:00:37 +0100)

CPU: Freescale i.MX6ULL rev1.1 792 MHz (running at 396 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 49C
Reset cause: POR
Model: SomLabs i.MX6 ULL Visionsom
Board: SomLabs visionsom 6ull
DRAM: 512 MiB
NAND: 512 MiB
Loading Environment from NAND... *** Warning - bad CRC, using default environmet

Video: 800x480x24
In: serial
Out: serial
Err: serial
Warning: FEC0 (eth0) using random MAC address - 46:79:2e:d4:3f:03

Somlabs iMX6ULL # usb start
starting USB...
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... EHCI timed out on TD - token=0x80008d80

USB device not accepting new address (error=22)
1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Somlabs iMX6ULL #

I'm trying to find the solution on different forums but without success. Hardware is OK because on U-Boot from 2017.03 it works well. Here is a list what I'm trying


  1. setenv usb_pgood_delay 10000
  2. Changed max_xfer_blk to 32768, 65535 etc.
  3. Adding extra lines into usb_storage.c

int gave_extra_time = 0;


if ((srb->sense_buf[2] == 0x02) &&
(srb->sense_buf[12] == 0x3a))
return -1;


/* If the status is "Not Ready - becoming ready", give it
* more time. Linux issues a spinup command (once) and gives
* it 100 seconds. */
if (srb->sense_buf[2] == 0x02 && srb->sense_buf[12] == 0x04 &&
gave_extra_time == 0)
gave_extra_time = retries = 1000; /* Allow 10 seconds. */

} while (retries--);

The problem is with disappearing power supply on USB. The flash drive blinks shortly and disabled at all then. Nothing helps so far. On U-Boot 2017.03 when I issue usb start, the flash drive blinks 2 times and LED in it start beam constantly. Of course, all USB flash drive operations working well.


U-Boot is available at GitHub - SoMLabs/somlabs-uboot-imx - branch 2018.09 if someone want's to check parameters.