- The default U-Boot environment configuration falls back to boot from the internal storage eMMC if no proper images are found on a micro SD card.
- Alternatively, you can use the following U-Boot commands to configure eMMC as the main storage for both Linux kernel and root filesystem images:
UCM-iMX7 # env default -a
UCM-iMX7 # setenv bootdelay 3
UCM-iMX7 # setenv image zImage
UCM-iMX7 # setenv loadaddr 0x80800000
UCM-iMX7 # setenv fdt_file imx7d-sbc-ucm-imx7.dtb
UCM-iMX7 # setenv fdt_addr 0x83000000
UCM-iMX7 # setenv mmcroot "/dev/mmcblk2p2 rootwait rw"
UCM-iMX7 # setenv loadimage 'load mmc 1:1 ${loadaddr} ${image}'
UCM-iMX7 # setenv loadfdt 'load mmc 1:1 ${fdt_addr} ${fdt_file}'
UCM-iMX7 # setenv bootargs "console=ttymxc0,115200 root=${mmcroot}"
UCM-iMX7 # setenv bootcmd 'run loadimage; run loadfdt; bootz ${loadaddr} - ${fdt_addr}'
- To save this configuration:
UCM-iMX7 # saveenv
UCM-iMX7 # boot