7 Modify the uboot-env and genimage files to boot from NAND Flash

  1. In the explorer, navigate to buildroot-external-microchip > board > microchip > sam9x60_curiosity.
  2. Open the uboot-env.txt file.
  3. 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

  4. Modify bootcmd_boot as follows:

    Bootcmd_boot=nand read 0x21000000 0x00180000 0x00080000; nand read 0x22000000 0x00200000 0x00600000;bootz 0x22000000 – 0x21000000

  5. Click Save and close the file.
  6. In the same directory, open the genimage.cfg file.
  7. Modify the files section as follows:

    Files = {

    “zImage”,

    “at91-sam9x60_curiosity.dtb”,

    “boot.bin”,

    “u-boot.bin”

    }

  8. Click Save and close the file.