difference between JFFS2 for NAND and NOR
Hoefle Marco
Marco.Hoefle at haslerrail.com
Tue Mar 9 04:24:27 EST 2010
Good day,
We have an imx35 board from Phytec which ships with a 32MByte NOR flash
and a 1GByte NAND flash (Samsung K9WAG08U1A)
Our root filesystem generated with
mkfs.jffs2 -r ROOTFS_DIR -o jffs.img -e 128 -l -n
works well on the NOR flash.
When we put it into the NAND it boots fine the first time. However,
after a reboot we get
Jffs_scan_inode(): CRC failed on node .... Failures
Each time a reboot causes more of those failures.
According to the NAND datasheet a block has 64 Pages (128K + 4k) Byte
1 Page = (2K + 64) Bytes
1 Block = (2K + 64)B x 64 Pages = (128K + 4K) Bytes
1 Device = (2K + 64)B x 64 Pages x8192 Blocks = 8,448 Mbits
Am I generating the jffs2 image wrong for this NAND type?
Normally we do not write on the rootfs, /var/log, /var/lock /var/run
are mapped to another partition (ext3 on the same flash).
Any hints a very appreciated,
Marco
More information about the linux-mtd
mailing list