Forum Discussion
Altera_Forum
Honored Contributor
20 years agoCompiling mkfs.jffs2
Hello All,
I am having a little problem compiling the source code for mkfs.jffs2 in the nios 2 ide. I downloaded the source from psyent.com and everytime I try to compile the source, the IDE complains that it cannot find the zlib.h file. I did a file search and found the zlib.h in the linux files directory. I manually added that directory to the include path and then it complains that the funcitions deflate, deflate_init, inflate, etc cannot are undefined in compr_zlib.c Is there something missing in the source or is is something I am doing wrong. -F3 Replies
- Altera_Forum
Honored Contributor
Hi flong,
> I am having a little problem compiling the source code for mkfs.jffs2 in the nios 2 ide. ... > Is there something missing in the source or is is something I am doing wrong. Nothing is missing from the source, you're doing something wrong -- build it from the shell command line. Remember, you're not cross-compiling in this case. Regards, --Scott - Altera_Forum
Honored Contributor
Hey Scott,
Thanks for the reply. Why dont I have to cross compile. THis program does run on NIOS right, so doesnt that mean cross compiling? - Altera_Forum
Honored Contributor
Hi flong,
> Why dont I have to cross compile. THis program does run on NIOS right, > so doesnt that mean cross compiling? It _can_ run under uclinux -- but it's normally used on a development host to create the jffs2 file system image that gets programmed into flash. BTW: You should probably build the tool on a unix host (linux, solaris) -- under cygwin the file permissions (most notably the execute bits) don't get set. Regards, --Scott