- 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
CL-SOM-iMX7 # run bootcmd