Bugreport: mkfs.jffs2
Hi,
I want to report two bugs on mkfs.jffs2 Revision 1.44
1.
I tried to create a file sytem image with this commandline.
mkfs.jffs2 -l -e 0x20000 -D devtable.txt -d rootfs -o test.img
The file devtable.txt contains a line
----8<-----/dev/input d 755 0 0 - - - - -
----8<-----
and the rootfs directory contains a directory
rootfs/dev/input
Of course it is my fault that I put the /dev/input directory in the device table and in the rootfs. But never the less the result is a jffs2 image which is not usable. Mounting it on the host with mtdram mtdblock .... freezes the PC and on the target I cannot mount it too.
So there should be an error message or something like "Omitting directory xyz from devtable already present"
2.
It is not possible to create a directory with devtable in "/" Devtable contains this line
/opt d 755 0 0 - - - - -
I get this message:
mkfs.jffs2: skipping device_table entry '/opt': no parent directory!
Please put me on CC, I am not subscribed to list.
Wolfram
Signature · 11 lines
Dipl.-Ing. Wolfram Gettert Software Engineer Embedded Systems Mixed Mode GmbH Lochhamer Schlag 17 D-82166 Gräfelfing/München Tel. +49-89-89868.0 Fax +49-89-89868.222 mailto:[email protected] http://www.mixed-mode.de Mixed Mode - Your Partner for Systems Engineering!
Quoted 10 lines · Wolfram Gettert
Hi,
I want to report two bugs on mkfs.jffs2 Revision 1.441.
I tried to create a file sytem image with this commandline.mkfs.jffs2 -l -e
0x20000-D devtable.txt -d rootfs -o test.imgThe file devtable.txt contains a line
Quoted 7 lines
----8<-----
/dev/inputd 755 0 0 - - - - -
----8<-----and the rootfs directory contains a directory
rootfs/dev/input
So what is the problem?
I am using mkfs.jffs2: revision 1.43 with devtable entries like
/dev/input d 755 0 0 - - - - - /dev/input/event c 640 0 0 13 64 0 1 1
and it works just fine...
--
Steven
Quoted 4 lines
I'm having some trouble mounting a JFFS2 root partition as rw at boot/init time, and would appreciate any insight that you guys can provide.
General suggestions:
* Make sure you use the latest mkfs.jffs2;
* Try to exclude summary patch and to see what happens;
* Enable JFFS2 debugging messages and provide the output in the next
report;
* Make sure you put your JFFS2 image on the flash correctly. To do
this you might erase your flash (flash_eraseall -j), mount it and copy your files there by means of "cp -r -a";
--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.