4 Customize at91bootstrap to boot from NAND Flash

  1. Enter the following command to modify the configurations:

    $ make at91bootstrap3-menuconfig
    The at91bootstrap Configuration window opens.

  2. In the menu, click Primary Operation.
    1. In the Primary Operation menu, ensure the Load and launch next software check box is selected. If not, select it and press Enter.

  3. In the at91bootstrap Configuration window, select Flash Memory and press Enter.
    1. In the Flash Memory menu, select Non-volatile memory to load from and press Enter.
    2. In the Non-volatile memory to load from menu, ensure NAND flash is selected. If not, select it and press Enter.
    3. In the Flash Memory menu, select NAND flash configuration and press Enter.
    4. In the NAND flash configuration menu:
      1. Select Support NAND flash ONFI detect function and press Enter.
      2. Deselect Support to use NAND flash On-Die ECC and press Enter.
    5. In the NAND flash configuration menu, select PMECC Configuration and press Enter.
    6. In the PMECC Configuration window, select Auto-detect ONFI minimum error requirement and press Enter.
    7. In the NAND flash configuration menu, select ECC Configuration and press Enter.
    8. In the ECC Configuration menu, select Using PMECC and press Enter.
    9. Press ESC twice to exit the menu.
  4. In the at91bootstrap Configuration window, select Next Software Type and press Enter.
    1. In the Next Software Type menu, ensure the U-Boot check box is selected. If not, select it and press Enter.

  5. In the at91bootstrap configuration window, select U-Boot Image Storage Setup and press Enter.
    1. In the U-Boot Image Storage Setup menu, update the Flash Offset for U-Boot, U-Boot Image Size and The External Ram Address to Load U-Boot Image details as shown in the image below and press Enter.
    2. Press ESC twice to exit the menu.
  6. Select Exit and press Enter.
    1. Click Yes.