next step

David Woodhouse dwmw2 at infradead.org
Mon May 8 05:19:11 EDT 2000


dvir at 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 at infradead.org



More information about the linux-mtd mailing list