JFFS2 with NAND flash

John Hall John.Hall at optionexist.co.uk
Thu Apr 4 10:11:36 EST 2002

On 03 April 2002 15:16, I wrote

> I'm working with the latest cvs version of jffs2 on NAND 
> flash (Smartmedia). I've managed to create a filesystem and 
> mount it fine, except I get a string of messages like this:
> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 
> 0x005d4000: 0xc0c0 instead
> I read in the archive that this might possibly be because an 
> incorrect erasesize was used with mkfs.jffs2. However, 
> mkfs.jffs2 won't allow an erasesize of less than 64K. The 
> particular flash I've got has 8K blocks. Is this the problem, 
> or is there something else I'm missing?

Using nanddump I've found that this is because I have some bad blocks on
the Smartmedia card I'm testing with. After an erase the block mentioned
above is stuck at c0c0.

Is there a utility around that will go through and test blocks, marking
bad ones as bad using the bad block flag in the oob? If not, would it be
useful to others if I wrote one?


More information about the linux-mtd mailing list