MTD Partitions

Michael Trimarchi trimarchi at
Sun Sep 24 14:19:33 EDT 2006

Nikhil Bansal (nikbansa) wrote:

>>From what I understand you need to provide the partitioning details of
>MTD devices at the compile time. I was wondering if there is any way to
>partition a flash device at runtime based on the sectors. For Example:
>partition 1 from sector 1 to sector 10, partition 2 from sector 11 to
>sector 20. 
>The thing is that we have a board with a flash chip on it and
>configuration of this chip may vary based on several factors. I don't
>have the luxury of compiling the kernel for each such requirement :( I
>think I read somewhere that at this point, partitioning can be done at
>compile time only but just wanted to confirm.
>By the way, we can keep the number of partitions fixed but size needs to
>be varied. Please let me know if it can be done.
>Thanks in advance,
>Linux MTD discussion mailing list
I think that you can use cmdline partition option in the kernel. I use 
it in the IXDP465
Regards Michael

More information about the linux-mtd mailing list