From: David Woodhouse <dwmw2@infradead.org>
To: Luke Fimmerzane <lukefimmerzane@hotmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Mapping driver
Date: Tue, 30 Mar 2004 14:15:07 +0100 [thread overview]
Message-ID: <1080652507.24117.175.camel@hades.cambridge.redhat.com> (raw)
In-Reply-To: <BAY10-F13brzvsTDWWc00016884@hotmail.com>
On Fri, 2004-03-26 at 13:51 +0000, Luke Fimmerzane wrote:
> Hi,
> I'm new to MTD an jffs2.
And to email.... your lines are too long and your 'reply' is lacking
References: which connect it to this email. Please don't do that again
-- working round the automatic filter doesn't make it nice :)
> I have some very basic questions...
> My target is ARM sc32410. It contains AMD 1Mbyte and Strata flash 32 Mb
> I've looked at the directory drivers/mtd/maps and there is no mapping
> driver. My kernel is configured to take mtdparts command line informat
> My question is do I still need a mapping driver or does using mtdparts
> provide the same functionality.
> physmap flash device: 2000000 at 8000000
> Using buffer write method
> mtd: Giving out device 0 to Physically mapped flash
> mtd0: 02000000 00040000 "Physically mapped flash"
Looks like it's found the StrataFlash and registered it whole as MTD
device number 0.
> when I do a ls -al I get ..
> # ls -al /dev/mtd/0
> /dev/mtd/0 /dev/mtd/0ro
>
> I presume ro is read only but why would it be so?
It's a device which you can use if you want only read-only access. You
can ignore it.
> Whats the difference between the two entries?
You can't open the latter for write.
> I've seen /dev/mtd0 and /dev/mtd/0. Which is correct?
Both. One's what you get without devfs, the other with devfs.
> What messages should the kernel emit if everything MTD related is going
The above looks reasonable. Did you expect the AMD flash to also be
detected? You omitted the command line from your original mail, so I
can't tell why the command line partitioning isn't working -- but the
'mtd-id' you provide has to be that used in the 'name' by the physmap
device, which is "Physically mapped flash".
I'm not actually convinced there's a way of passing a mtd-id with spaces
in it. You may need to change physmap.c
> Sorry if my questions are very basic! I'm 'slavishly' following a book
> Karim Yaghmor called " Building Embedded Linux systems" . I'm also slow
> working my way back through the mtd archives for a similar problem. Is
> an easier way of searching the archives than by going through them year
> year?
google site:lists.infradead.org ?
--
dwmw2
prev parent reply other threads:[~2004-03-30 13:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-26 13:51 Mapping driver Luke Fimmerzane
2004-03-30 13:15 ` David Woodhouse [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=1080652507.24117.175.camel@hades.cambridge.redhat.com \
--to=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=lukefimmerzane@hotmail.com \
/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