[U-Boot] Creating partitions on NAND flash

Afzal Nadirshah Afzal_Nadirshah at mindtree.com
Fri Mar 6 11:36:29 CET 2009


Hi All,

I would like to partition the NAND flash on a canyonlands board. As per my understanding, the partitioning is done using the "add_mtd_partitions" function in the file "drivers/mtd/mtdpart.c".

I also understand that the information about a partition is stored in the structure : "struct mtd_partition" .
I could not find out where this structure is getting populated in the u-boot code.

Could somebody point out the file in which these partitions are created? I am also interested in knowing the file in which the different start / end addresses for these partitions are defined.

On DaVinci EVM's I have found something like this when the u-boot comes up :

       Creating 5 MTD partitions on "nand_davinci.0":
       0x00000000-0x00060000 : "bootloader"
       0x00060000-0x00200000 : "params"
       0x00200000-0x00400000 : "kernel"
       0x00400000-0x01800000 : "filesystem"
       0x01800000-0x02000000 : "data"


My aim is to add more such partitions on the NAND flash on my board. Any information regarding partitioning the flash is highly appreciated.

Thanks in advance.


Regards,
Afzal Nadirshah


http://www.mindtree.com/email/disclaimer.html


More information about the U-Boot mailing list