Transclusion: CL-SOM-iMX7: U-Boot: Boot from SD

From Compulab Mediawiki
Revision as of 12:43, 22 August 2017 by Ilya (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • Use the following U-Boot commands to configure removable SD card 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/mmcblk0p2 rootwait rw"
setenv loadimage 'load mmc 0:1 ${loadaddr} ${kernel}'
setenv loadfdt 'load mmc 0: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:
run bootcmd