mkfs.jffs2 and NAND smartmedia card

Yann Rapaport yann.rapaport at 6wind.com
Wed Aug 11 04:24:16 EDT 2004


Hi!

I am currently working on installing a JFFS2 filesystem on an ARM 
system, using a Samsung NAND Smartmedia device and 2.4.20 kernel from 
montavista 3.1.

I succeed in mouting the partition and installing my filesystem in it 
using the following commands:
root:/# mount -t jffs2 /dev/mtdblock1 /mnt
root:/# cp -r /usr/admin/* /mnt

My aim is now to create my filesystem using mkfs.jffs2. When mounting 
the partition, I get ECC, CRC and magic bitmask errors.
root:/# mkfs.jffs2 -r /usr/admin -s 512 -e 16384 -b -o /dev/mtd1
root:/# mount -t jffs2 /dev/mtdblock1 /mnt
mtd->read(0x400 bytes from 0x0) returned ECC error
jffs2_scan_eraseblock(): Node at 0x00000000 {0x1985, 0xe001, 0x0000002c) 
has invalid CRC 0xa026b584 (calculated 0xa026b184)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 
0xa026 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 
0x4119 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 
0x0404 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 
0xe158 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 
0x5121 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000200: 
0x0801 instead
etc.

It seems that the OOB data is damaged...
Do you have any idea of what happens?

Thanks in advance!

-- 
Yann






More information about the linux-mtd mailing list