jffs2 and nand mtd
Alex Karev
lineum at mail.ru
Thu Aug 11 03:31:21 EDT 2005
Hello
While we mount empty jffs2 and then copying files it's ok, after
remount/reboot. the files have zero gaps ~2kb at some (stable?)
locations, and filesytem is broken that way.
install procedure following:
#flash_eraseall -j /dev/mtd0
#mount -t jffs2 /dev/mtdblock0 /mnt
#cp ...
at this stage files looks ok.
#umount
#mount
zero gaps appear in data on flash and lot of debug info with some
Eeps, sometimes kernel panic.
Also we try to use mkfs.jffs2, same result.
#mkfs.jffs2 -e 0x4000 -l -n .... or #mkfs.jffs2 -e 0x4000 -p -l -n
.... with different variations.
#flash_eraseall -j /dev/mtd0
#nandwrite -j /dev/mtd0 root_fs.jffs2
#mount ...
#umount ...
#mount ...
... usually have debug output, sometimes kernel panic.
Hardware:
ST VEGA PC.
General SW BIOS with extension.
SAMSUNG NAND K9F2808U0C. ports: 0x300 data, 0x301 cmd; erase block 16Kb
according documentation. no ecc 16Mb
Software:
Our NAND driver implementation, derived from edb7312.c
2 partition
Linux kernel 2.4.29 with patch from mtd c vs.
More information about the linux-mtd
mailing list