JFFS2 and NAND problems

Armin Schindler acs at sysgo.de
Wed Jan 8 08:51:48 EST 2003


I use the latest CVS MTD together with a 16MB NAND Flash and
JFFS2. Creating and reading files seems to work very good,
but when I want to remove files I get error messages like:

 Short write in obliterating obsoleted node at 0x00876804: 20
 Node totlen on flash (0x00000002) != totlen in node ref (0x000002dc)

After umount, when I try to mount it again I get:

Empty flash at 0x0082bbf8 ends at 0x0082bc00
jffs2_scan_eraseblock(): Node at 0x008341fc {0x1985, 0xe002, 0x00000002) has invalid CRC 0x00000004 (calculated 0x3b50c69b)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00834214: 0x01f5 instead

If "Verify NAND page writes" is enabled, and I try to write the
response is: 
Write error in obliterating obsoleted node at 0x00ff800c: -5
Write of 2151 bytes at 0x00ff875c failed. returned -5, retlen 0
Not marking the space at 0x00ff875c as dirty because the flash driver returned retlen zero
ARGH. About to write node to 0x00ff875c on flash, but there are data already the re:
0x00ff875c: 19 85 e0 02 00 00 08 67 ce 51 d9 44 00 00 00 02

When I use e.g. ext2 or store data directly with the mtd character
device, the flash doesn't show any problem.

When using an AMD 1MB NOR Flash with JFFS2 the problem doesn't appear.

It seems to be a problem of JFFS2 together with the NAND flash.
Could this be something with a wrong block size ?

Thanks for any help. 


Armin Schindler <acs at sysgo.de>
Am Pfaffenstein 14
D-55270 Klein-Winternheim / Germany
phone: +49 6136 9948-0
fax  : +49 6136 9948-10

More information about the linux-mtd mailing list