JFFS2 on NAND problems on ppc linux-2.4.21-pre2
csperandeo at intrinsyc.com
Wed Apr 9 20:20:46 EDT 2003
Wondering if anyone has experienced a bug described as follows.
I am using the linux powerpc kernel 2.4.21-pre2. We are using a March 09
2003 snapshot for MTD/JFFS2 from http://www.linux-mtd.infradead.org/.
After rebooting the device we occasionally receive the following:
jffs2_get_inode_nodes(): CRC failed on node at 0x00d8a9c0: Read 0xffffffff,
jffs2_get_inode_nodes(): Data CRC failed on node at 0x00d89a8c: Read
0xbaa193f5, calculated 0xcdd1fe6c Checked all inodes but still 0x1c20 bytes
of unchecked space? kernel BUG at gc.c:140!
Oops: Exception in kernel mode, sig: 4
NIP: C00A0420 XER: 00000000 LR: C00A0420 SP: C033FF10 REGS: c033fe60 TRAP:
MSR: 00009030 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
TASK = c033e000 'jffs2_gcd_mtd1' Last syscall: -1
last math 00000000 last altivec 00000000
PLB0: bear= 0x00000000 acr= 0x00000000 besr= 0x00000000
PLB0 to OPB: bear= 0x00000000 besr0= 0x00000000 besr1= 0x00000000
GPR00: C00A0420 C033FF10 C033E000 00000018 00001030 00000001 00000020 C01F0000
GPR08: 00003DA8 C01A5D04 00000000 C033FE30 82004028 1001F598 00FE4100 007FFF2F
GPR16: 00000000 00000001 007FFF00 FFFFFFFF 00FDF920 00000000 00F9F548 00000002
GPR24: 00000000 C01AB4AC 00000000 FFFFFFFF 00000000 C035CDB8 C03CF0F8 C03CF0C4
C00A0420 C00A3790 C0006F00
It appears that something has gone wrong with the garbage collection thread
(at least that is one of the theories). Inserting a delay before actually
rebooting the device seems to remedy the problem somewhat but does not make
the problem dissappear.
Is it possible that the garbage collection thread is not given enough time to
do its works before the device is rebooted?
Any solution or suggestions on what avenues to a solution would be greatly
Intrinsyc Software, Inc.
10th Floor, 700 West Pender St.
Vancouver, BC V6C 1G8
e. csperandeo at intrinsyc.com
Intrinsyc. Accelerate your Vision.
This communication and the information it contains are intended for the
organization to whom it is addressed. Its contents are confidential and may
be protected in law. Unauthorized use, copying or disclosure of any of it
may be unlawful. If you are not the intended recipient, we ask that you
contact us immediately and take notice that any distribution or copying of
this communication is strictly prohibited.
More information about the linux-mtd