jffs2 as a filesystem on Compact Flash-help!!

Nitin Kalra nitinkalra12 at gmail.com
Wed Sep 14 04:12:23 EDT 2005


hi all...
im new to jffs2 and need some help. im trying to put a jffs2 image on
a compact flash and then mount the CF (sdb2) and do basic op. like
read,write,modify on the mounted image.
i have done the following steps..
*     ./mkfs.jffs2 -d <path> -o <image-name>  (default erase size is 64 KiB)
*      insmod /lib/modules/2.6.12/kernel/drivers/mtd/devices/blkmtd.ko
device=/dev/sdb2  erasesz=64
*    ./flash_erase /dev/mtd0
*     dd if=<image-name> of=/dev/mtd0
*     mount -t jffs2 /dev/mtd0 /mnt/cf

at this last step when i chk the dmesg  it halts showing the message
"cleanmarker node found at 0x004c8c00  not first node in block (0x004c0000)"
"perhaps the file system was created with wrong erase size"
and some header file related messages...

well when i did the same steps by taking an additional hard-drive  it
worked fine but taking CF it is not doing fine.....

can any one suggest some method or where im wrong or with what
erasesize i should try making image or anything else....
thanks in advance.
nitin.




More information about the linux-mtd mailing list