* combine 2 mtds into a single mtd device?
@ 2004-11-09 8:32 mjabe
2004-11-09 8:54 ` Kluba, Patrik
0 siblings, 1 reply; 2+ messages in thread
From: mjabe @ 2004-11-09 8:32 UTC (permalink / raw)
To: linux-mtd
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 637 bytes --]
The follow is my MTD partition:
+-------------+
| MTD1 | (size 3M)
+-------------+
| Bootloader | (size 128K)
+-------------+
| MTD2 | (size 3M)
+-------------+
| MTD3 |
+-------------+
How to combine MTD1 and MTD2 into a single mtd device?
So if I have a image(5M), wehn I do "dd" command, mtd driver
will copy 3M into MTD1 and copy 2M into MTD2.
Thanks.
===================================================================
·s®ö¥ô§A¶l¡G§K¶O 10MB «H½c+¬Ûï+Ó¤Hºô¶
http://mp.sina.com.tw/help/help.html
===================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: combine 2 mtds into a single mtd device?
2004-11-09 8:32 combine 2 mtds into a single mtd device? mjabe
@ 2004-11-09 8:54 ` Kluba, Patrik
0 siblings, 0 replies; 2+ messages in thread
From: Kluba, Patrik @ 2004-11-09 8:54 UTC (permalink / raw)
To: linux-mtd
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@sina.com.tw> wrote:
> The follow is my MTD partition:
>
> How to combine MTD1 and MTD2 into a single mtd device?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-09 8:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-09 8:32 combine 2 mtds into a single mtd device? mjabe
2004-11-09 8:54 ` Kluba, Patrik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox