Hi Dmitry,
> Please explain to me what is exactly JFFS2 ?
Journaling Flash File System II. Here's a very good starting point:
http://www.enseirb.fr/~kadionik/embedded/u.../howto_mtd.html (
http://www.enseirb.fr/~kadionik/embedded/uclinux/mtd/howto_mtd.html)
> Where can I get it ?
It's already in the Microtronix distribution.
> How can I compile that filesystem to use on uClinux ?
Enable JFFS2 when configuring the kernel. You'll need an appropriate mtd
mapping driver and chip driver. If you're using CFI flash, you can use the
one (or both) of the CFI chip drivers already in the source tree.
> And how can I use it instead of the romfs which can be built using the
> Linux Filesystem Project from NIOS II IDE ?
This is a bit more involved & it's much easier if you have a linux development
platform (e.g. RH9). Basically, you create a directory tree on your development
system that contains all of the inodes (regular, special, etc) that you want
for your Nios system, then use the mkfs.jffs2 utility to create a binary image
that you program into your flash.
BTW: If you're using the AMDLV065D, you'll probably have to deal with the
"erase" bug in the CFI chip driver ... I haven't had time to look at the
code yet ... so I got lazy & just used cramfs instead ;-)
Regards,
--Scott