From: David Woodhouse <dwmw2@infradead.org>
To: Dvir Oren <dviro@lucidvon.com>
Cc: MTD <mtd@infradead.org>
Subject: Re: next step
Date: Mon, 08 May 2000 10:19:11 +0100 [thread overview]
Message-ID: <9688.957777551@devel2.axiom.internal> (raw)
In-Reply-To: <14613.19866.269661.531112@jodie.local>
dvir@lucidvon.com said:
> Also, David once told me that fdisking /dev/nftla when nftl.o is
> loaded (which will always be true if you are using a kernel with the
> MTD drivers build-in) might not work. This is to be checked with
> David.
>
Any access to /dev/nftla (including fdisk) _requires_ the nftl.o module to
be loaded. But you shouldn't have any of it mounted if you're
repartitioning it, as with any other block device.
What I pointed out to you was that you shouldn't have nftl.o loaded when you
use nftl_format to completely reinitialise the NFTL on the flash - because
nftl.o will cache some information off the (original) nftl format, and will
get utterly confused when you you change it all.
NFTL is like a filesystem, which resides on the actual flash (/dev/mtd0).
When you load the nftl.o module, it's like mounting that filesystem.
Unlike a normal filesystem, NFTL provides a block device (on top of which
you will generally put another, normal, filesystem), and the nftl.o module
'mounts' the NFTL from the flash as soon as it's loaded.
So when you use nftl_format or anything else to access the flash directly,
you will utterly confuse the NFTL code if it's still present - because it's
always 'mounted'. It's just like writing directly to a block device while
it's mounted. Hence, you have to remove the NFTL support before writing
directly to the flash. Unless you're only updating the firmware, which
doesn't affect the area in which the NFTL is stored on the flash.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
next prev parent reply other threads:[~2000-05-08 9:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-03 13:26 next step Rodrigo Moya
2000-05-03 13:39 ` David Woodhouse
[not found] ` <14613.18040.415068.143363@jodie.local>
2000-05-07 11:03 ` Dvir Oren
2000-05-08 9:19 ` David Woodhouse [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-05-03 14:16 Rodrigo Moya
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=9688.957777551@devel2.axiom.internal \
--to=dwmw2@infradead.org \
--cc=dviro@lucidvon.com \
--cc=mtd@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