i.mx6ull u-boot usb mass storage not detectable

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.mx6ull u-boot usb mass storage not detectable

2,448件の閲覧回数
m_wolowik
Contributor I

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
Net: FEC0 [PRIME]
Warning: FEC0 (eth0) using random MAC address - 46:79:2e:d4:3f:03

Somlabs iMX6ULL # usb start
starting USB...
USB0: USB EHCI 1.00
USB1: USB EHCI 1.00
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. */
...

mdelay(100);
} 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.

0 件の賞賛
返信
2 返答(返信)

2,056件の閲覧回数
m_wolowik
Contributor I

Thanks Igor,

I did as You suggested. This topic can be removed or close.

Best Regards

Michal

0 件の賞賛
返信

2,056件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Michal

SoMLabs uboot is not supported by nxp and this may be posted on uboot mail list

U-Boot Info Page 

supported software is described on nxp official software page

i.MX Software|NXP 

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

0 件の賞賛
返信