Transclusion: UCM-iMX7: U-Boot: Boot from eMMC

From Compulab Mediawiki
Revision as of 12:45, 22 August 2017 by Ilya (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • 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:
env default -a
setenv bootdelay 3
setenv kernel zImage
setenv loadaddr 0x80800000
setenv fdtfile imx7d-sbc-ucm-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
  • To boot Linux type:
boot