JFFS2 mounting problem
Hi all
I am working on JFFS2 MTD driver on NAND device
I try to copy file to JFFs2 partition before mounting my device to mnt partition but after mounting i do not find any file in my mount directory.
Can any one help me why i donot find any file in mount directory after mounting when device have file.
mkfs.jffs2 -d /home/jffs2stuff -o /tmp/jffs2.image cat /tmp/jffs2.image >/dev/mtdblock/0 mount -t jffs2 /dev/mtdblock/0 /mnt/
ls
--------No file available--------
but i am able to create file after mounting in jffs2 partition.
Regards
AK
Quoted 1 line · Amit Sharma
mkfs.jffs2 -d
/home/jffs2stuff-o/tmp/jffs2.image
Yoe have to set the correct options for your FLASH.
mkfs.jffs2 -e ERASEBLOCKSIZE -p NANDPAGESIZE -n -d ... -o ...
Quoted 1 line
cat
/tmp/jffs2.image>/dev/mtdblock/0
Use nandwrite for that. Read
http://linux-mtd.infradead.org/faq/nand.html
Quoted 1 line
mount -t jffs2
/dev/mtdblock/0/mnt/
tglx