7 Modify the uboot-env and genimage files to boot from NAND Flash
- In the explorer, navigate to buildroot-external-microchip > board > microchip > sam9x60_curiosity.
- Open the uboot-env.txt file.
- In the bootargs section,
modify the mtdparts values as
follows:
mtdparts=atmel_nand:256k(bootstrap)ro,512k(uboot)ro,256K(env),256k(env_redundent),256k(spare),512k(dtb),6M(kernel)ro,-(rootfs) rootfstype=ubifs ubi.mtd=7 root=ubi0:rootfs
- Modify bootcmd_boot as
follows:
Bootcmd_boot=nand read 0x21000000 0x00180000 0x00080000; nand read 0x22000000 0x00200000 0x00600000;bootz 0x22000000 – 0x21000000
- Click Save and close the file.
- In the same directory, open the genimage.cfg file.
- Modify the files section
as follows:
Files = {
“zImage”,
“at91-sam9x60_curiosity.dtb”,
“boot.bin”,
“u-boot.bin”
}
- Click Save and close the file.