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

From Compulab Mediawiki
Revision as of 11:41, 10 July 2017 by Ilya (talk) (New page: * Use the following U-Boot commands to configure NAND as the main storage for both Linux kernel and root filesystem images: <pre> CL-SOM-iMX7 # env default -a CL-SOM-iMX7 # setenv bootdela...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • Use the following U-Boot commands to configure NAND 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 loadaddr 0x80800000
CL-SOM-iMX7 # setenv fdt_addr 0x83000000
CL-SOM-iMX7 # setenv nandroot "ubi0:rootfs rootfstype=ubifs ubi.mtd=rootfs rw"
CL-SOM-iMX7 # setenv loadimage 'nand read ${loadaddr} 0 0x600000'
CL-SOM-iMX7 # setenv loadfdt 'nand read ${fdt_addr} 0x980000 0x10000'
CL-SOM-iMX7 # setenv bootargs "console=ttymxc0,115200 root=${nandroot}"
CL-SOM-iMX7 # setenv bootcmd 'run loadimage; run loadfdt; bootz ${loadaddr} - ${fdt_addr}'
  • To save this configuration:
CL-SOM-iMX7 # saveenv
  • To boot Linux type:
CL-SOM-iMX7 # run bootcmd