Hi,
I’m working with a verdin-imx8mp and am having trouble getting u-boot to detect an SD card.
My goal is mostly to validate our custom carrierboard design, to see if the SD-card interface has the right pullup so Linux, Tezi and u-boot can read data from the SD card (and all other interfaces). The SD card already works as expected in Tezi and Linux, but somehow in U-boot it fails to detect the SD card:
Verdin iMX8MP # mmc info
MMC Device 0 not found
no mmc device at slot
Maybe I am using the wrong commands to test this, but it seems like u-boot does not detect the SD card. I’ve observed this on our custom CB, but also on the Toradex dev board, so I suspect I am doing something wrong, but I cannot quite figure out what.
Should I expect u-boot to be able to read an SD card? Does this need any commands other than the mmc info
command (I also tried mmc rescan
- same result).
To clarify, I am not asking to boot u-boot from SD card (I know this is not an option) - u-boot boots from eMMC as normal but should AFAICS be able to then be able to read files from SD card (and eventually also load an image from the SD card, but I’m stranded way before that).
The full U-boot output is below, which shows the second mmc device (eMMC) is detected as expected (which makes sense, since booting from eMMC works fine).
U-Boot SPL 2022.04-6.4.0+git.dc27426aa417 (Jan 01 1970 - 00:00:00 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
Training FAILED
DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
DDR configured as single rank
SEC0: RNG instantiated
Normal Boot
WDT: Started watchdog@30280000 with servicing (60s timeout)
Trying to boot from BOOTROM
Boot Stage: Primary boot
Find img info 0x&4802e000, size 888
Download 941056, Total size 941904
NOTICE: BL31: v2.6(release):lf_v2.6-g3c1583ba0a
NOTICE: BL31: Built : 00:00:00, Jan 1 1970
U-Boot 2022.04-6.4.0+git.dc27426aa417 (Jan 01 1970 - 00:00:00 +0000)
CPU: i.MX8MP[8] rev1.1 1600 MHz (running at 1200 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 41C
Reset cause: POR
DRAM: 4 GiB
Core: 89 devices, 23 uclasses, devicetree: separate
WDT: Started watchdog@30280000 with servicing (60s timeout)
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
Model: Toradex 0063 Verdin iMX8M Plus Quad 4GB IT V1.1A
Serial#: 07321726
Carrier: Toradex Verdin Development Board V1.1C, Serial# 10996012
SEC0: RNG instantiated
BuildInfo:
- ATF 3c1583b
flash target is MMC:2
Net: eth1: ethernet@30be0000, eth0: ethernet@30bf0000 [PRIME]
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
Verdin iMX8MP # mmc info
MMC Device 0 not found
no mmc device at slot
Verdin iMX8MP # mmc list
FSL_SDHC: 1
FSL_SDHC: 2 (eMMC)
Verdin iMX8MP # mmc dev 2
switch to partitions #0, OK
mmc2(part 0) is current device
Verdin iMX8MP # mmc info
Device: FSL_SDHC
Manufacturer ID: 70
OEM: 0
Name: IX2932
Bus Speed: 200000000
Mode: HS400ES (200MHz)
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 29.1 GiB
Bus Width: 8-bit DDR
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 29.1 GiB
Boot Capacity: 4 MiB ENH
RPMB Capacity: 4 MiB ENH
Boot area 0 is not write protected
Boot area 1 is not write protected