How to access the SD card on the Verdin dev board?

We are running a Verdin IMx8m-plus module with the Verdin dev board with Torizon OS 6.x. We have tried different scenarios to access the SD card but the system doesn’t seem to see it. We’ve tried a the larger SD card as well as smaller ones with an adapter, but no joy. How is this accomplished?

Thanks,
Steve

Hey @Evets,

Can you ssh into the module, and post the output from lsblk before and after the SD card is inserted. The card should show up and be mountable.

By “the system not being able to see it.” Are you referring to the module*, or via a docker container? Here is some information for SD cards and docker.

Can you verify the format and if the SD card is working via other means?

-Eric

@eric.tx
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mmcblk2 179:0 0 29.1G 0 disk
`-mmcblk2p1 179:1 0 29.1G 0 part /var
/usr
/boot
/
/sysroot
mmcblk2boot0 179:32 0 4M 1 disk
mmcblk2boot1 179:64 0 4M 1 disk
zram0 253:0 0 0B 0 disk
/before/

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mmcblk2 179:0 0 29.1G 0 disk
`-mmcblk2p1 179:1 0 29.1G 0 part /var
/usr
/boot
/
/sysroot
mmcblk2boot0 179:32 0 4M 1 disk
mmcblk2boot1 179:64 0 4M 1 disk
zram0 253:0 0 0B 0 disk
/after/

This is a direct ssh into the board, not in a container. The SDCard works on my PC.

Could you also collect and share the output of the dmesg command issued immediately after the SD card is inserted?

@alex.tx
it seems that it always fails the scan.
This was before and after the insert. Nothing new.

Could you please still share a dmesg output anyway?

@alex.tx
Here (attached) is the dmesg from startup. This is with the SDCard inserted. It is a 64 GB card.
dmesg.txt (273.1 KB)

Steve

Unfortunately, the dmesg output you shared only provides log data starting from 72 hours after boot up. Could you please collect and share a boot log from the Debug UART? Additionally, for a more precise analysis, could you specify the exact version of the Torizon OS image you are using? The term 'Torizon OS 6.x’ is a bit too general. Could you please also specify if you are using a pre-built image provided by Toradex, or is it a custom build?

Version of Torizon OS is bookworm from maybe 3 months ago. How do I tell what version it is? uname -a Yields:
Linux verdin-imx8mp-14762705 5.15.77-6.2.0-devel+git.5ee7b429cf75 #1-TorizonCore SMP PREEMPT Fri Feb 17 12:53:14 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
Maybe that will tell you what you need to know?
Attached is the debug port output.

DebugPortBootOutput.txt (5.6 KB)

Do you have additional Verdin iMX8M Plus modules in your possession? If so, have you tested other modules in the same scenario?

yes we have with the same result.

Hi @Evets,

I’ve tested the Verdin iMX8M Plus Quad 8GB Wi-Fi / BT V1.1A module (the same as yours) with the Toradex-provided OS image:

TorizonCore with PREEMPT_RT 6.2.0-devel-202302+build.5 verdin-imx8mp-14932121

The SD card was recognized and mounted as expected; here’s the dmesg output:

[ 149.829545] mmc1: new high-speed SDHC card at address b368 [ 149.831090] mmcblk1: mmc1:b368 SDC 7.51 GiB [ 149.834450] mmcblk1: p1

The card was formatted as FAT32 and got mounted to /var/rootdirs/media/.

I’m still unclear about the exact OS image you are using. According to your previous post, the output of uname -a was:

rdin-imx8mp-14762705 5.15.77-6.2.0-devel+git.5ee7b429cf75 #1-TorizonCore SMP PREEMPT Fri Feb 17 12:53:14 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

If you are using this OS version, the last two lines of the boot logs should look like this:

TorizonCore with PREEMPT_RT 6.2.0-devel-202302+build.5 verdin-imx8mp-14762705 ttymxc2

verdin-imx8mp-14762705 login:

However, according to the DebugPortBootOutput.txt you provided, your boot logs look different:

TorizonCore 6.2.0-devel-202303+build.6 verdin-imx8mp-14762705 ttymxc2

verdin-imx8mp-14762705 login:

This may indicate that you are using a custom-built image and there could be an issue with the SD card driver configuration. I recommend loading a Toradex-built image and testing the SD card with it.

@alex.tx ,

I did make a change at one point to add a second SPI port, but that is gone. I did have to update to a later version now, and this is what I’m getting right at the end of the boot. This is straight off the website installed with easyinstaller:

TorizonCore 6.4.0+build.5 verdin-imx8mp-14762705 -

verdin-imx8mp-14762705 login:

unfortunately, I don’t have the SD Card right now, so I’ll have to get back to you later.

Steve

Could you please load a Toradex-built image and testing the SD card with it

@alex.tx
Yes, that is what I have now. I just don’t have an SDCard at the moment.

Steve

@alex.tx
Hello Alex,
I have torizon 6.4 on my unit now and here is my dmesg output during removal and insert.

180.596076] mmc1: card 59b4 removed
[ 186.960572] mmc1: new ultra high speed SDR104 SDXC card at address 59b4
[ 186.966776] mmcblk1: mmc1:59b4 64GB 58.9 GiB
[ 186.969295] mmcblk1: p1

So apparently, the newer version fixed this issue.

Sincerely,
Steve