MTD Partitions

Josh Boyer jwboyer at
Fri Sep 22 20:08:59 EDT 2006

On 9/22/06, Nikhil Bansal (nikbansa) <nikbansa at> wrote:
> Hi,
> >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.

You might want to take a look at UBI.  It can do much of what you are
looking for, depending on how complex things are.  It's still a work
in progress, but it's usable.


More information about the linux-mtd mailing list