combine 2 mtds into a single mtd device?

Kluba, Patrik pajko at halom.u-szeged.hu
Tue Nov 9 03:54:22 EST 2004


Hi!

Look at drivers/mtdconcat.c. This implements a device concatenation layer.
Every function is included to handle multiple MTD devices as a virtual
one. The virtual device must be created with the exported
mtd_concat_create function, and must be destroyed with the
mtd_concat_destroy after use. This function does not register devices, you
should write a module which calls mtd_concat_create with proper parameters
and registers the newly created device.
For example, drivers/mtd/maps/dilnetpc.c is a good starting point.

--
pajko


On Tue, 09 Nov 2004 16:32:02 +0800, <mjabe at sina.com.tw> wrote:

> The follow is my MTD partition:
>
> How to combine MTD1 and MTD2 into a single mtd device?




More information about the linux-mtd mailing list