Skip to contentSkip to conversation

JFFS oopses on mount

DISCUSSION David Vrabel 2 participants 5 messages Aug 18, 2000 – Aug 22, 2000 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

JFFS oopses during mounting. Are the latest CVS sources likely to fix this problem (last checked out Aug 16th)? If not how can I go about finding out what the problem is? Unfortunatly I had to disable debugging because the problem didn't occur with it enabled (sending masses of debugging information via a serial link reduces greatly the number of test iterations). I do have more images of the flash than you can shake a stick at though.

Possibly a message of interest jffs_garbage_collect_now(): free_size == 0. This is BAD.

David Vrabel

To unsubscribe, send "unsubscribe mtd" to [email protected]

#1 lore raw
Quoted 3 lines · [email protected] said:

Possibly a message of interest

jffs_garbage_collect_now(): free_size == 0. This is BAD.

I sincerely hope that the latest CVS sources fix this problem. We've been chasing it for days, and we _think_ it's fixed.

--
dwmw2

To unsubscribe, send "unsubscribe mtd" to [email protected]

#2 lore raw
Quoted 8 lines · David Woodhouse
Quoted 3 lines · [email protected] said:

Possibly a message of interest

jffs_garbage_collect_now(): free_size == 0. This is BAD.

I sincerely hope that the latest CVS sources fix this problem. We've been chasing it for days, and we _think_ it's fixed.

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.

David Vrabel

To unsubscribe, send "unsubscribe mtd" to [email protected]

#3 lore raw
Quoted 2 lines · [email protected] said:

I have an image of the flash which causes the oops but I have no idea
what to do with it.

bzip2 it and stick it up for FTP or mail it to me @cygnus.co.uk, preferably along with instructions on how to recreate it.

--
dwmw2

To unsubscribe, send "unsubscribe mtd" to [email protected]

#4 lore raw
In reply to David Vrabel
Quoted 4 lines · [email protected] 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 [email protected]