This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/PROCESSOR-SDK-AM437X: NAND boot on GP EVM

Part Number: PROCESSOR-SDK-AM437X


Tool/software: Linux

Hi,

Does AM437x_GP_EVM support boot from NAND flash memory? If so, what do I need to do?

Thanks.

Jerry

  • Hello Jerry,

    Yes, it does.

    I am writing this guide assuming that you have already installed and using the latest Processor SDK.

    First, create SD card with the create-sdcard.sh script and copy <Processor SDK>/filesystem/arago-base-tisdk-image-am437x-evm.ubi to <SD card>/home/root/.

    Put the SD card to AM437x EVM, power it on and stop the booting in U-Boot console. Then execute these commands.

    nand erase.chip
    mmc rescan
    fatload mmc 0 0x82000000 MLO
    nand write 0x82000000 NAND.SPL
    nand write 0x82000000 NAND.SPL.backup1
    nand write 0x82000000 NAND.SPL.backup2
    nand write 0x82000000 NAND.SPL.backup3

    fatload mmc 0 0x82000000 u-boot.img
    nand write 0x82000000 NAND.u-boot

    ext4load mmc 0:2 0x82000000 /boot/zImage
    nand write 0x82000000 NAND.kernel

    ext4load mmc 0:2 0x82000000 /boot/am437x-gp-evm.dtb
    nand write 0x82000000 NAND.u-boot-spl-os

    mw.b 0x82000000 0xFF 0x8600000

    ext4load mmc 0:2 0x82000000 /home/root/arago-base-tisdk-image-am437x-evm.ubi
    nand write 0x82000000 NAND.file-system

    setenv bootcmd run nandboot
    saveenv

    Power off the board, detach the SD card and set-up SW11 switch with SYSBOOT mode from TRM Table 5-10 where the NAND is selected as first boot device.

    Alternatively you can transfer the images trough TFTP.

    setenv ipaddr xxx.xxx.xxx.xxx
    setenv serverip xxx.xxx.xxx.xxx
    nand erase.chip
    tftpboot 0x82000000 MLO
    nand write 0x82000000 NAND.SPL
    nand write 0x82000000 NAND.SPL.backup1
    nand write 0x82000000 NAND.SPL.backup2
    nand write 0x82000000 NAND.SPL.backup3

    tftpboot 0x82000000 u-boot.img
    nand write 0x82000000 NAND.u-boot

    tftpboot 0x82000000 zImage
    nand write 0x82000000 NAND.kernel

    tftpboot 0x82000000 am437x-gp-evm.dtb
    nand write 0x82000000 NAND.u-boot-spl-os

    mw.b 0x82000000 0xFF 0x8600000

    tftpboot 0x82000000 arago-base-tisdk-image-am437x-evm.ubi
    nand write 0x82000000 NAND.file-system

    setenv bootcmd run nandboot
    saveenv

    Note: Please, also check out the AM437X Errata Rev. A, Advisory 15.

    Best regards,
    Kemal