Clarification on multiple mtdram devices - HowTo
MikeW
mw_phil at yahoo.co.uk
Wed Mar 21 11:08:48 EDT 2007
Josh Boyer <jwboyer <at> linux.vnet.ibm.com> writes:
>
>
> This is about creating a single MTD with mtdram and effectively using
> that for loopback. You had asked about creating multiple MTDs with
> mtdram. So does this fully answer your question, or?
>
> /me is a bit confused.
>
> josh
I wanted to create more than one MTD in RAM to emulate a board
with Flash memory split into several partitions, mtd0..n, mtdblock0..m
It's not immediately clear what (if any) relationship there is
between device numbers and partitions, and there's not much on the
MTD site.
I noted the existence of mtdram, but then wanted to know how best
to use it.
I noted that mtdram only appeared to be capable of creating one device,
so was looking for a way of creating several devices (mtd0...n).
I looked in the driver code but it confirmed that only one mtd
would exist, AFAICS.
>From the quoted item it looks as if you can create several mtds
by creating one mtdram and then splitting it up using mtdblock.
It would be useful if there was a proper 'howto' on this subject
on the website, since I have only been able to piece this
together by much searching.
So can some mtd drivers (mtdblock) subdivide mtd devices provided by
other drivers, for example ?
I have been looking for some kind of overall 'concept of operation'
but without much luck ATM !
If I *do* manage to put all the pieces together I will willingly
write it up on the site !
Regards,
MikeW
More information about the linux-mtd
mailing list