public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* JFFS2 on NAND, Magic bitmask 0x1985 not found
@ 2004-07-14  4:09 Pathompong Puengrostham
  2004-07-14  4:57 ` Pathompong Puengrostham
  0 siblings, 1 reply; 5+ messages in thread
From: Pathompong Puengrostham @ 2004-07-14  4:09 UTC (permalink / raw)
  To: linux-mtd

Hi all,

Could anybody help me on this please? I mounted a cleanly erased NAND 
flash , unmounted without writing anything into it and then mounted it 
again. I got the following errors.

nand_read_ecc: Failed ECC read, page 0x000000e0
mtd->read(0x400 bytes from 0x1c000) returned ECC error
jffs2_scan_eraseblock(): Node at 0x0001c008 {0x1985, 0x2003, 0x00000008) 
has invalid CRC 0xffff0000 (calculated 0x6b7c27e6)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001c00c: 
0x0008 instead
nand_read_ecc: Failed ECC read, page 0x00000120
mtd->read(0x400 bytes from 0x24000) returned ECC error
jffs2_scan_eraseblock(): Node at 0x00024008 {0x1985, 0x2003, 0x00000008) 
has invalid CRC 0xffff0000 (calculated 0x6b7c27e6)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002400c: 
0x0008 instead
...

This is the data that I dump out of the flash using "nanddump /dev/mtd3 
dump.txt 114688 1024"

0x0001c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x0001c010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
...
0x0001c1f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
   OOB Data: ff ff ff ff ff ff ff ff 85 19 03 20 08 00 00 00
0x0001c200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x0001c210: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
...
0x0001c3f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
   OOB Data: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

I can see that the magic bitmask 0x1985 is there. Why did JFFS2 look at 
the wrong place and got 0x0008 instead?

I'm using mtd snapshot 20040707.

Thank you in advance.

Regards,
Jay

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-07-14 10:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-14  4:09 JFFS2 on NAND, Magic bitmask 0x1985 not found Pathompong Puengrostham
2004-07-14  4:57 ` Pathompong Puengrostham
2004-07-14  7:41   ` Thomas Gleixner
2004-07-14  9:55     ` Pathompong Puengrostham
2004-07-14 10:39       ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox