jffs2 filesystem on flash problem CRC errpr

David Woodhouse dwmw2 at infradead.org
Thu Sep 16 05:23:55 EDT 2004


On Thu, 2004-09-16 at 11:10 +0800, gyf606-mtd at yahoo.com.cn wrote:
> /usr> erase /dev/mtd4
> Erase Total 1 Units
> Performing Flash Erase of length 131072 at offset 0x0 done

You erased only the first block (128KiB) of the partition.

> /usr> cp fs2.img /dev/mtd4

You wrote the image using the character device, which does not erase
first -- hence performing a bitwise 'OR' with the previous contents of
the flash.

> /usr> mount -t jffs2 /dev/mtdblock4 /mnt

You mounted it.

> jffs2_scan_dirent_node(): Name CRC failed on node at 0x00000000: Read 0xca6598d0, calculated
> 0x00000000

It was corrupt.

Use 'eraseall' instead of 'erase'.

-- 
dwmw2






More information about the linux-mtd mailing list