JFFS oopses on mount
David Woodhouse
dwmw2 at infradead.org
Tue Aug 22 09:16:54 EDT 2000
dvrabel at arcom.co.uk said:
> It's working better than before.
> However, it oopsed again and it seems to have lost a file.
> I have an image of the flash which causes the oops but I have no idea
> what to do with it.
That image mounts and works fine here. It was powered down half-way through
an erase operation @0x40000, so we have an entire 128Kb of dirty flash, but
it handles that just fine.
Which file do you think is missing? "jffs-testfiles/8"?
Remember that cp(1) will unlink the file before creating the new one.
JFFS: Trying to mount device 1f:00.
jffs_scan_flash(): start pos = 0x0, end = 0x180000
jffs_scan_flash(): 0xff at pos 0x0.
jffs_scan_flash(): 0xff ended at pos 0x40000.
*************** Dirty flash memory or bad inode: hexdump(pos = 0x40000, len = 128):
262144: efbe ffeb bbff efff ffef eefb aeae aeae ïŸ.ë..ï..ïîû....
262160: ffbe bfab abae feaf ffef afef aaef afee .Ÿ¿......ï.ïªï.î
262176: bbef aaaf baeb ebbf eaaf beae aabf feea .ïª.ºëë¿ê.Ÿ.ª¿.ê
262192: abfe efbf aaaa baeb aeee aaae aaae eeaf ..↑ªºë.îª.ª.î.
262208: feaa bfab aaae faaa aabb abaa aaaa baae .ª¿.ª.úªª..ªªªº.
262224: bbbe fabe abbe eafb eaaa aeeb aaae eaaa .ŸúŸ.Ÿêûêª.ëª.êª
262240: ffbb efab aefa bfef aaee beee beef afef ..ï..ú¿ïªîŸîŸï.ï
262256: fbab efae aabf fbaf bfff effa efef ffff û.ï.ª¿û.¿.ïúïï..
jffs_scan_flash(): Bad checksum: checksum = 472245, raw_inode.dchksum = 1042714
jffs_scan_flash(): 0xff at pos 0xcb0e0.
jffs_scan_flash(): 0xff ended at pos 0x180000.
JFFS: Dumping the file system's hash table...
*** c->hash[1]: "" (ino: 1, pino: 0)
*** c->hash[2]: "test-files1" (ino: 2, pino: 1)
*** c->hash[3]: "test-files2" (ino: 3, pino: 1)
*** c->hash[4]: "1" (ino: 4, pino: 2)
*** c->hash[5]: "2" (ino: 5, pino: 2)
*** c->hash[6]: "8" (ino: 6, pino: 2)
*** c->hash[7]: "4" (ino: 7, pino: 2)
*** c->hash[8]: ".md5sums" (ino: 8, pino: 2)
*** c->hash[13]: ".md5sums" (ino: 13, pino: 3)
*** c->hash[18]: "1" (ino: 1982938, pino: 3)
*** c->hash[19]: "2" (ino: 1982939, pino: 3)
*** c->hash[20]: "4" (ino: 1982940, pino: 3)
/ (ino: 1, highest_version: 0, size: 0)
test-files2/ (ino: 3, highest_version: 1598, size: 0)
4 (ino: 1982940, highest_version: 2, size: 4096)
2 (ino: 1982939, highest_version: 2, size: 2048)
1 (ino: 1982938, highest_version: 2, size: 1024)
.md5sums (ino: 13, highest_version: 991740, size: 144)
test-files1/ (ino: 2, highest_version: 1598, size: 0)
.md5sums (ino: 8, highest_version: 991866, size: 144)
4 (ino: 7, highest_version: 1605, size: 4096)
8 (ino: 6, highest_version: 1613, size: 8192)
2 (ino: 5, highest_version: 1601, size: 2048)
1 (ino: 4, highest_version: 1600, size: 1024)
JFFS: GC thread pid=5477.
JFFS: Successfully mounted device 1f:00.
jffs_garbage_collect_thread(): Starting infinite loop.
thread_should_wake(): free=1003296, dirty=542760, blocksize=131072.
jffs_garbage_collect_thread(): collecting.
***jffs_garbage_collect_thread(): round #1, fmc->dirty_size = 542760
thread_should_wake(): free=1134368, dirty=411688, blocksize=131072.
thread_should_wake(): free=1134368, dirty=411688, blocksize=131072.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org
More information about the linux-mtd
mailing list