samsung nand jffs2 errors
eugene.kozlov at promwad.com
eugene.kozlov at promwad.com
Wed Jan 17 09:42:57 EST 2007
Hello
I have good working samsung 64MB k9f1208uob nand flash on 2.6.16 kernel
with at91rm9200 patch and our board specific patches:
md5sum on images writed to /dev/mtdblock/1 is ok.
But when i use jffs2 its returned errors and wrong md5sum on images writed
to jffs2.
To prepare jffs2 image i use: mkfs.jffs2 -o jffs2_image -s 512 -e 16384 -d
jffs2_dir -p 0x4000 -n
I erase flash with "flash_eraseall /dev/mtd/1" from mtd utils and copy
image to flash by nandwrite.
When mount - get such: (this happens on free space, nanddump below)
1)
jffs2_scan_eraseblock(): Node at 0x00178008 {0x1985, 0x2003, 0x00000008)
has invalid CRC 0x00000000 (calculated 0x6b7c27e6)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0017800c:
0x0008 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00178018:
0xff7f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0017801c:
0xffff instead
JFFS2: Erase block at 0x00178000 is not formatted. It will be erased
and sometimes
2)
mtd->read(0x400 bytes from 0x16d0000) returned ECC error
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x016d0000:
0x03f3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x016d0004:
0xffff instead
Empty flash at 0x016d0008 ends at 0x016d0038
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x016d0038:
0xffff instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x016d003c:
0x0ca7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x016d0040:
0xf3f0 instead
Empty flash at 0x016d0044 ends at 0x016d0070
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x016d0070:
0xffff instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x016d0074:
0x3f0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x016d0078:
0x65ff instead
Empty flash at 0x016d007c ends at 0x016d00ac
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x016d00ac:
0xaaff instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x016d00b0:
0xff0f instead
Further such events for this erase block will not be printed
Empty flash at 0x016d00b8 ends at 0x016d00e4
Empty flash at 0x016d00f0 ends at 0x016d0120
Empty flash at 0x016d012c ends at 0x016d0158
Empty flash at 0x016d0164 ends at 0x016d0194
Empty flash at 0x016d01a0 ends at 0x016d01cc
Empty flash at 0x016d01d8 ends at 0x016d0200
This usual nanddump:
/mnt/dataflash/nanddump -l 1 -p /dev/mtd/1 -s 0x3f18000
No ECC status information available: Inappropriate ioctl for device
Block size 16384, page size 512, OOB size 16
Dumping data starting at 0x03f18000 and ending at 0x03f18001...
0x03f18000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f18010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f18020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f18030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f18040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f18050: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f18060: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f18070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f18080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f18090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f180a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f180b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f180c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f180d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f180e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f180f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f18100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f18110: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f18120: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f18130: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f18140: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f18150: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f18160: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f18170: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f18180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f18190: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f181a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f181b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f181c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f181d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f181e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x03f181f0: 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
Thanks for advice
More information about the linux-mtd
mailing list