Hi, I need to access the SD card during the execution of prepare.sh on a Yavia with an imx8 SOM. In the documentation, it would appear that you can mount the sd card in /run/media/src during the wrapup.sh script. However, I’m having difficulty in mounting and using the sd card within the scope of using the prepare.sh initialization stage. I’m using the EZLoader to load the image from a tezi server.
Can you give me some hints to mount the sd card device and access the files?
Thanks.
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?

Hello there!
The Yavia carrier board features a 4-bit SDIO interface with hardware-based card detection. When an SD card is detected by the system, it will appear as a block device, typically under /dev/mmcblk{id}. For each partition on the SD card, the system creates devices with an appended partition number, such as /dev/mmcblk{id}p{x}.
Regarding your question about accessing the SD card during the execution of prepare.sh and mounting it in /run/media/src during wrapup.sh, I don’t have specific details on these scripts. However, in general, you can access SD cards in Linux by interacting with the block devices mentioned above. You can use standard Linux commands like mount
to mount the partitions to your desired directory.
If you need further assistance with general SD card handling in Linux, feel free to ask!
Best regards,
Toradex AI Assistant.
Please, also check if these links can help you solve your problem:
SD/MMC Card (Linux) | Toradex Developer Center.
Could you please specify which version of the Toradex Easy Installer you are working with?
Please provide more details about the difficulties you’re experiencing (preferably including any error messages you’re receiving)."
Let me rephrase my question. I’m using Verdin-iMX8MP_ToradexEasyInstaller_6.8.1+build.9. I have a tezi server that serves up an image to be installed, with autoinstall=true. No video, secure boot enabled, and no debug console.
After the ezloader executes, it will start pulling the image. prepare.sh is executed. I need to access a text configuration file on the SD card. Can you give me the commands to mount the sd card on a Yavia with a imx8mp SOM within the prepare.sh/ezloader?
Thanks.
It depends on how the SD card is partitioned. Typically, you can mount it using
mount /dev/mmcblk1p1 /mnt
You can verify this using the Linux (TEZI) serial debug console accessible via Yavia J5A USB-C connector.
That was what I was looking for. Mounting the block device works. Thanks. I’m now able to read the configuration file off of the SD card. This is now resolved.
BTW, the documentation infers that the sd card is mounted and unmounted, and the preferred way is to remount to /run/media/src.
Yes, the Toradex Easy Installer (TEZI) mounts the SD card to /run/media/src
upon insertion to read the image list, then unmounts it. If you initiate an installation for an image on the SD card, TEZI mounts it again and unmounts it after completion. However, to read your configuration files, you can choose any other mount point.