JFFS2 IO
Eric Hammerle
ehammerle at spectracomcorp.com
Mon Mar 22 17:03:07 EST 2004
Hi,
I'm currently developing on a custom board running uClinux kernel 2.4.20-uc0
on an
ARM7TDMI. We use Intel J3 Strataflash and are using jffs2 as our fs. I've
run into a
problem where after FTPing a binary file around 1.3 megs, upon reboot the fs
outputs
a single warning such as:
jffs2_scan_inode_node(): Data CRC failed on node at 0x0060000c: Read
0x17a11a74,
calculated 0xedda2a7c
Unfortunately, the garbage collector never reclaims this node, so any
subsequent reboot
will print out the same message. This wouldn't be a problem, but if I
upload the file to the
board one or two more times I get many print outs similar to:
jffs2_scan_dirent_node(): Name CRC failed on node at 0x0052d8b4: Read
0xd7d56506
, calculated 0xe489d5cc
jffs2_scan_dirent_node(): Name CRC failed on node at 0x0052d910: Read
0x3c262956
, calculated 0xc2dbebe9
jffs2_scan_dirent_node(): Name CRC failed on node at 0x0052d940: Read
0x8b4199a0
, calculated 0x8c19c269
jffs2_scan_dirent_node(): Name CRC failed on node at 0x0052d99c: Read
0x3640ef2e
, calculated 0x0b987af9
The board then boots into single user mode with most of the fs missing. The
same
effect can be achieved from copying the file described above several times.
I patched
my jffs2 and mtd to add the changes found in kernel version 2.4.21 and this
improved
the situation for smaller files, but larger files suffer from this problem.
I've found that if I remove the file instead of moving it from the upload
directory, I start
getting error messages similar to:
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a16190:
0x0044 in
stead
Should I try patching further or could this be related to alignment problems
related to
some of the alignment troubles found in the ARM7TDMI's?
TIA
E. Hammerle
More information about the linux-mtd
mailing list