IMX8MP SD/eMMC boot

Hi, Iโ€™m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


To boot from the SD card instead of the eMMC on the IMX8MP platform, you need to adjust the U-Boot environment variables. Here are the steps you should follow:

  1. Modify U-Boot Environment Variables:

    • Check Boot Order: Ensure that the boot order prioritizes the SD card over the eMMC. You can do this by setting the appropriate environment variables such as bootargs and bootcmd.
    • Set Bootargs: Use the command setenv bootargs <your_sd_card_args> to specify the SD card as the source for the kernel and filesystem.
    • Set Bootcmd: Modify the bootcmd variable to ensure it attempts to boot from the SD card first. For example, you might set it to mmc dev 1; mmc read ... to specify the SD card as the boot device.
  2. Save Changes:

    • After making changes to the environment variables, save them using the saveenv command to make the changes persistent across reboots.
  3. Verify SD Card Functionality:

    • Use the mmc list command in U-Boot to verify that the SD card is detected.
    • Ensure the SD card is properly formatted and contains a valid bootable image.

By following these steps, you should be able to configure your IMX8MP platform to boot from the SD card instead of the eMMC.

Please, also check if these links can help you solve your problem:

Patch u-boot device tree with Yocto.