- Use the following U-Boot commands to configure NAND as the main storage for both Linux kernel and root filesystem images:
setenv bootdelay 3
setenv loadaddr 0x80800000
setenv fdtaddr 0x83000000
setenv nandroot "ubi0:rootfs rootfstype=ubifs ubi.mtd=rootfs rw"
setenv loadimage 'nand read ${loadaddr} 0 0x600000'
setenv loadfdt 'nand read ${fdtaddr} 0x980000 0x10000'
setenv bootargs "console=ttymxc0,115200 root=${nandroot}"
setenv bootcmd 'run loadimage; run loadfdt; bootz ${loadaddr} - ${fdtaddr}'
- To save this configuration:
saveenv
run bootcmd