Why nandwrite success but mount complain?

Kluba Patrik pajko at kukac.halom.u-szeged.hu
Thu Apr 21 07:16:45 EDT 2005

This "bug" relates to JFFS2.
User space tools are able to build a file system using 16KiB erase block size, 
but the kernel part of JFFS2 itself does not support it.
This is because JFFS2 uses kmalloc for allocating memory for jffs2_eraseblock 
structs. Smaller erase block size means more of this and more memory needed for 
storage. And kmalloc allows max. 128K allocations. (using 32K block size instead 
of 16K block size halves the memory requirements)

See jffs2_do_fill_super in fs.c

It's not very easy to circumvent this problem. Memory allocation and handling of 
jffs2_eraseblocks should be modified.


   Patrik Kluba

More information about the linux-mtd mailing list