Dear Sir.
I purchased an i.MX 8QuadXPlus MEK
Tag information on the platform:
TDA7459
SCH-29683 REV D4
700-29683 REV C2
On this platform, I try to enable the mass storage function in the uboot environment to access the SD card or eMMC.
But no matter what, when sending "usb start", Uboot will print USB error information.
I have tried uboot 2022.04 and uboot 2018.03 and have the same problem.
Could you please provide me with help or suggestions?
Below is the log printed by uboot, I hope it can help you analyze this problem.
=============================================================
U-Boot 2018.03-4.14.98-2.3.0+g0e207921e9 (Dec 19 2019 - 02:35:38 +0000)
CPU: Freescale i.MX8QXP revC A35 at 1200 MHz at 33C
Model: Freescale i.MX8QXP MEK
Board: iMX8QXP MEK
Boot: SD1
DRAM: 2.8 GiB
VService: Connection is ok on MU mu@5d230000
TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x50]
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... Run CMD11 1.8V switch
*** Warning - bad CRC, using default environment
Failed (-5)
[pcie_ctrlb_sata_phy_init_rc] LNK DOWN 8600000
In: serial
Out: serial
Err: serial
BuildInfo:
- SCFW 5a35e406, SECO-FW f449a0d2, IMX-MKIMAGE 25560004, ATF 09c5cc9
- U-Boot 2018.03-4.14.98-2.3.0+g0e207921e9
Run CMD11 1.8V switch
switch to partitions #0, OK
mmc1 is current device
flash target is MMC:1
Run CMD11 1.8V switch
Net:
Warning: ethernet@5b040000 using MAC address from ROM
eth0: ethernet@5b040000 [PRIME]
Warning: ethernet@5b050000 (eth1) using random MAC address - 06:6a:e0:c6:80:75
, eth1: ethernet@5b050000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
=>
=>
=>
=> usb start
starting USB...
USB0: Port not available.
USB1: Failed to initialize board for USB
probe failed, error -1
=>
=====================================
U-Boot 2022.04-lf_v2022.04+g181859317bf (Mar 21 2025 - 14:00:09 +0800)
CPU: NXP i.MX8QXP RevC A35 at 1200 MHz at 32C
Model: NXP i.MX8QXP MEK
Board: iMX8QXP MEK
Boot: SD1
DRAM: 3 GiB
TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x50]
Core: 257 devices, 28 uclasses, devicetree: separate
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... jimmy mmc_init(struct mmc *mmc)
OK
[*]-Video Link 0it6263_i2c_reg_read, read err 3
faill to read from it6263 revision, ret 3
(1280 x 720)
[0] dpu@56180000, video
[1] lvds-channel@0, display
[2] lvds-to-hdmi-bridge@4c, video_bridge
In: serial
Out: serial
Err: serial
BuildInfo:
- SCFW 6638c032, SECO-FW c9de51c0, IMX-MKIMAGE cbb99377, ATF 3c1583b
- U-Boot 2022.04-lf_v2022.04+g181859317bf
switch to partitions #0, OK
mmc1 is current device
flash target is MMC:1
Net: eth0: ethernet@5b040000 [PRIME], eth1: ethernet@5b050000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
=>
=>
=> ums 0 mmc 1
UMS: LUN 0, dev mmc 1, hwpart 0, sector 0x0, count 0x1dacc00 (Notes: Under this command, the Windows PC does not find any USB devices.)
CTRL+C - Operation aborted
=> ums 0 mmc 1
UMS: LUN 0, dev mmc 1, hwpart 0, sector 0x0, count 0x1dacc00
CTRL+C - Operation aborted
=> usb start
starting USB...
Bus usb@5b0d0000: Port not available.
Bus usbh3: Failed to initialize board for USB
probe failed, error -1
=> usb info
========================
Here do you want to boot from SD card , which kind of SD are you using?
For the i.MX8QXP support boot:
The boot ROM supports the following boot devices:
• SD/MMC
• NAND flash
• FlexSPI NOR flash (on FlexSPI0)
• Serial downloader support on USB 2.0 OTG and USB 3.0 (as 2.0)
Dear Rita
Thank you for you reply.
I use a SanDisk SD card Class 10 16GB (this SD card was given as a gift when I purchased this platform, and the default uboot version in the SD card is U-Boot SPL 2018.03-4.14.98-2.3.0+g0e207921e9).
I boot the system through the SD card.
In my application scenario, after the platform is booting, I want to use the mass storage function to access the SD card or eMMC through PC in uboot.
Unfortunately, I found that the USB didn't seem to work. (Win11 or Ubuntu didn't find the USB mass storage device)
So I tried to issue the "usb start" command in the uboot environment. And UART of uboot prints error log.
Could you provide me with any advice or help on this issue?
Dear Rita
Thank you for your feedback.
Yes, I have tested the SD card in the uboot environment before.
In fact, SD works well in the uboot environment, so I think this problem should have nothing to do with SD. I also used an analyzer to confirm that, the hardware(SD and USB) is good.
I think this problem may be caused by the configuration settings of the USB of uboot released by NXP or a problem with the driver.
But I don't know which part is causing it, so could you please give me some suggestions?
U-Boot SPL 2018.03-4.14.98-2.3.0+g0e207921e9 (Dec 19 2019 - 02:35:38 +0000)
Normal Boot
Trying to boot from MMC2_2
Load image from MMC/SD 0x5b400
U
U-Boot 2018.03-4.14.98-2.3.0+g0e207921e9 (Dec 19 2019 - 02:35:38 +0000)
CPU: Freescale i.MX8QXP revC A35 at 1200 MHz at 25C
Model: Freescale i.MX8QXP MEK
Board: iMX8QXP MEK
Boot: SD1
DRAM: 2.8 GiB
VService: Connection is ok on MU mu@5d230000
TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x50]
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... Run CMD11 1.8V switch
*** Warning - bad CRC, using default environment
Failed (-5)
[pcie_ctrlb_sata_phy_init_rc] LNK DOWN 8600000
In: serial
Out: serial
Err: serial
BuildInfo:
- SCFW 5a35e406, SECO-FW f449a0d2, IMX-MKIMAGE 25560004, ATF 09c5cc9
- U-Boot 2018.03-4.14.98-2.3.0+g0e207921e9
Run CMD11 1.8V switch
switch to partitions #0, OK
mmc1 is current device
flash target is MMC:1
Run CMD11 1.8V switch
Net:
Warning: ethernet@5b040000 using MAC address from ROM
eth0: ethernet@5b040000 [PRIME]
Warning: ethernet@5b050000 (eth1) using random MAC address - 9a:38:0c:d5:2b:e4
, eth1: ethernet@5b050000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
=>
=>
=>
=>
=>
=> mmc list
FSL_SDHC: 0
FSL_SDHC: 1 (SD)
=> ums 0 mmc 1
UMS: LUN 0, dev 1, hwpart 0, sector 0x0, count 0x1dacc00
couldn't find an available UDC
g_dnl_register: failed!, error: -19
g_dnl_register failed=>
UMS: LUN 0, dev 1, hwpart 0, sector 0x0, count 0x1dacc00
couldn't find an available UDC
g_dnl_register: failed!, error: -19
g_dnl_register failed=> usb start
starting USB...
USB0: Port not available.
USB1: clkvld is incorrect = 0xd0b03827
XHCI-imx8 init hccr 0x000000005b130000 and hcor 0x000000005b130080 hc_length 128
Register 2000820 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 1 for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
=> ums 0 mmc 1
UMS: LUN 0, dev 1, hwpart 0, sector 0x0, count 0x1dacc00
couldn't find an available UDC
g_dnl_register: failed!, error: -19
g_dnl_register failed=> usb storage
No storage devices, perhaps not 'usb start'ed..?
=>