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.

Moving boot partition to Flash memory

Hi Experts,

How to compile the Linux sdk so that the MLO,uboot and kernel image should be moved to flash memory and boot from the same ?

The rootfs can be placed in the mmc card itslef.

What could be boot mode pin selection for the above configuration ? I am using AM335x GP EVM..

  • Hi,

    There are no specific build options for using the binaries on the NAND flash.

    Just follow these instructions to flash the binaries to the NAND:

    U-Boot# mmc rescan
    U-Boot# nand erase.chip
    U-Boot# fatload mmc 0 0x81000000 MLO
    U-Boot# cp.b 0x81000000 0x81020000 20000
    U-Boot# cp.b 0x81000000 0x81040000 20000
    U-Boot# cp.b 0x81000000 0x81060000 20000
    U-Boot# fatload mmc 0 0x81080000 u-boot.img
    U-Boot# fatload mmc 0 0x81280000 uImage
    U-Boot# nand write 0x81000000 0x0 0x780000

    Then you need to modify the NAND environment variables (nandargs) like this:

    root=${mmcroot} rootfstype=${mmcrootfstype}

    Best regards,
    Miroslav