- Use the following U-Boot commands to configure eMMC as the main storage for both Linux kernel and root filesystem images:
CL-SOM-iMX7 # env default -a
CL-SOM-iMX7 # setenv bootdelay 3
CL-SOM-iMX7 # setenv image zImage
CL-SOM-iMX7 # setenv loadaddr 0x80800000
CL-SOM-iMX7 # setenv fdt_file imx7d-sbc-imx7.dtb
CL-SOM-iMX7 # setenv fdt_addr 0x83000000
CL-SOM-iMX7 # setenv mmcroot "/dev/mmcblk2p2 rootwait rw"
CL-SOM-iMX7 # setenv loadimage 'load mmc 1:1 ${loadaddr} ${image}'
CL-SOM-iMX7 # setenv loadfdt 'load mmc 1:1 ${fdt_addr} ${fdt_file}'
CL-SOM-iMX7 # setenv bootargs "console=ttymxc0,115200 root=${mmcroot}"
CL-SOM-iMX7 # setenv bootcmd 'run loadimage; run loadfdt; bootz ${loadaddr} - ${fdt_addr}'
- To save this configuration:
CL-SOM-iMX7 # saveenv
CL-SOM-iMX7 # run bootcmd