public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: MikeW <mw_phil@yahoo.co.uk>
To: linux-mtd@lists.infradead.org
Subject: Re: Clarification on multiple mtdram devices - HowTo
Date: Wed, 21 Mar 2007 15:08:48 +0000 (UTC)	[thread overview]
Message-ID: <loom.20070321T154146-99@post.gmane.org> (raw)
In-Reply-To: 1174483288.3416.35.camel@zod.rchland.ibm.com

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

      reply	other threads:[~2007-03-21 15:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-19 15:32 Clarification on multiple mtdram devices MikeW
2007-03-21 12:39 ` Clarification on multiple mtdram devices - HowTo MikeW
2007-03-21 13:21   ` Josh Boyer
2007-03-21 15:08     ` MikeW [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20070321T154146-99@post.gmane.org \
    --to=mw_phil@yahoo.co.uk \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox