Jffs2 Magic bitmask problem
Babla Bunty
babla.bunty at gmail.com
Wed Oct 25 09:21:00 EDT 2006
Hi all,
I always get following warning while mounting mtd partition:
Reading data from NAND FLASH without ECC is not recommended
Empty flash at 0x001f85b8 ends at 0x001f85f0
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f85f0:
0xffff instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f85f4:
0x0219 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f85fc:
0xaf8c instead
Following is the output of cat /proc/mtd:
dev: size erasesize name
mtd0: 00030000 00004000 "NAND partition 0 : Bootloader"
mtd1: 001d0000 00004000 "NAND partition 1 : Kernel"
mtd2: 00200000 00004000 "NAND partition 2 : NAND Root"
mtd3: 07c00000 00004000 "NAND partition 3 : Romfs partition"
>From the above output,it is clear that erase size is 16K.
And i have erase the the mtd2 with following command:
flash_eraseall -j /dev/mtd/2
As jffs2 expects magic bitmask in first page of block.It seems jffs2
is trying to find magic bitmask in wrong page.
I am using 2.6.17 linux kernel .
Could somebody help ???
Regards,
Babla.
More information about the linux-mtd
mailing list