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.

NAND partitioning in AM437x GP EVM

Hi ,


   I am using AM437x GP EVM, which has 512MB nand. I want to partition the nand into two 256MB (nand0 , nand1)and again divide each partition into 10 parts. And change the booting arguments from nand0 to nand1 and vice versa during run time. How can i achieve this?

   Also i would like to know that why in the kernel log shows creating 10 partitions for nand on every boot. Is it for every boot the partitions are created? As per my understanding NAND partitions are created already at u-boot level. Please let me know if my understanding is correct.


Regards,

Sai

  • Hi Sai,

    I'm forwarding this to the SW team.

  • Hi Sai,
    what you try to achieve involves a great effort.
    Partitioning is set in the device tree file. You can check 'am437x-gp-evm.dts' how the 10 partitions are configured there.
    The best way to achieve your goal, is probably to create not 10 but 2 x10 ( with properly calculated addressing) so that the NAND works like two physical chips but with offset of half the size of the NAND.
    Regards,
    Boyko
  • Hi Boyko ,

    Thanks for your reply.
    My understanding is that nand partitions are done at u-boot level only. When we give mtdparts in u-boot it list downs all the partitions. So i think partitions for nand are done at u-boot level or is it just the offset that is indicated at the u-boot level. If so how to update the new partitions at u-boot level. Please let me know.

    Regards,
    Sai