Latest jffs2 broken?
Peter Grayson
pgrayson at realmsys.com
Tue Aug 23 19:36:26 EDT 2005
I am trying to use the latest mtd from cvs. There appears to be a
problem with jffs2 -- I'm surprised this has not tripped up anyone else
yet. I am seeing a kernel oops when I do the following procedure: erase
an mtd partition, mount the partition as jffs2, touch a file, unmount,
and remount.
This is fully reproducible for me. I am running the latest mtd cvs (as
of 8/23/2005) on a 2.6.10 kernel. I am using a 32MB partition for this
test, but it is not obvious that the partition size matters. My nand
part has a 2048-byte page size and 128 kB eraseblock size.
I have included the output showing the problem. Debug level is set to 1.
Has anyone else run into this?
Pete
---- Debug output below ----
# flash_eraseall -jq /dev/mtd3
# mount /mnt/mtdb3
# touch /mnt/mtdb3/foo
jffs2: No clean, dirty _or_ erasable blocks to GC from! Where are they
all?
jffs2: Couldn't find erase block to garbage collect!
# umount /mnt/mtdb3
# mount /mnt/mtdb3
kernel BUG in read_unknown at fs/jffs2/readinode.c:353!
Oops: Exception in kernel mode, sig: 5 [#1]
TASK = c0601190[74] 'jffs2_gcd_mtd3' THREAD: c044c000
Last syscall: -1
NIP [c00ad818] jffs2_do_read_inode_internal+0x804/0x1220
LR [c00ad1f4] jffs2_do_read_inode_internal+0x1e0/0x1220
Call trace:
[c00ae2a4] jffs2_do_crccheck_inode+0x70/0xcc
[c00b2de4] jffs2_garbage_collect_pass+0x284/0xa80
[c00b4fc8] jffs2_garbage_collect_thread+0x1a0/0x1f4
[c0004f6c] kernel_thread+0x44/0x60
More information about the linux-mtd
mailing list