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