FAT for NAND Flash
David Woodhouse
dwmw2 at infradead.org
Sun May 19 05:34:32 EDT 2002
studying_mtd at yahoo.com said:
> > Neither the 'mtdblock' nor
> > 'mtdchar' code is involved at all.
> As per drivers/mtd/Config.help (2.5.15) :-
> You do not need this option for use with the
> DiskOnChip devices. For those, enable NFTL support
> (CONFIG_NFTL) instead.
> it means we have to set CONFIG_MTD_BLOCK, if we are
> not using DoC but we are using JFFS2 filesystem.
> i am confused, who is correct ?
Both. You do not need CONFIG_MTD_BLOCK in the situation about which we were
talking; where you use a translation layer to mount a 'normal' file system
on a flash device. CONFIG_MTD_BLOCK provides such a translation layer itself;
just a very naïve one which doesn't do any wear levelling and can lose data
if you power down while it's writing.
Until about 2.5.10, you had to pretend to mount JFFS2 on the mtdblock
device, but it didn't actually _use_ it - just looked at the minor device
number to work out which MTD device to use. You don't need that hack any
more in 2.5.
--
dwmw2
More information about the linux-mtd
mailing list