Boot from sd card

  • I like to boot our PicoMODA9 from SD card (using the micro sd slot monted on the PicoMODA9) as our image based in fus-image-std with dotnet is too big to install it in NAND:


    I followed the steps from:

    Boot Yocto image von SD Card in armStone MX8MP


    The only difference is that I used

    Code
    1. setenv mmcdev 1

    instead of

    Code
    1. setenv mmcdev 2

    as with setenv mmcdev 2, the system does not boot



    The system seems to boot but stucks with

    Code
    1. Waiting for root device /dev/mmcblk/p2...

    I didn't found any documentation of how to copy the yocto bukld image to the sd card.

    I copied it from the deploy/images directory with:

    Code
    1. sudo dd if=fus-image-std-fsimx6.sysimg of=/dev/sdb bs=1M conv=fsync

    Can you tell me, what I did wrong?

  • Hello Festus,


    I can see two faults from your Information.


    1. from what I can tell by your dd comand you might be writing to the wrong device. /dev/sdb looks like an usb device to me. Your SD card should look like /dev/mmcblk[dev number].


    2. While the other Post you linked set mmcdev, the right variable on A9 Boards is usdhcdev. Set it to your SD card before running "run .rootfs_mmc" to your SD card. This command also assumes user partition 2, as the command is writen for mmc based Boards which always uses that partition for the rootfs. You can simply change te partition by editing the rootfs environment variable.


    Here are the commands I used:


    Code
    1. PicoMODA9 # setenv usdhcdev 1
    2. PicoMODA9 # run .rootfs_mmc
    3. PicoMODA9 # editenv rootfs
    4. edit: root=/dev/mmcblk1p1 rootwait
    5. PicoMODA9 # saveenv
    6. Saving Environment to NAND... Erasing NAND...
    7. Erasing at 0x220000 -- 100% complete.
    8. Writing to NAND... OK
    9. OK


    I tested the comands on the fsimx6-Y2024.04.1 release.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • I think /dev/sdb is correct. The card is plugged into an USB/SD adapter.


    I followed your instructions above and it seems to work, but instead of using /dev/mmcblk1p1 (Line 4) I had to use /devmmcblk0p2.

    With these settings, my board boots now.