Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi Scott,
As you mentioned: >(2) Create a device table file and use the -D, --devtable option to mkfs.jffs2 >The second option is very convenient since you don't need to be root, and you basically >have built-in documentation for /dev ;-) 1. I take the mkfs.jffs.c form mtd-util and compiler it as application project but it report too many error (incompatible types in assignment and crc32.h: No such file or directory) even I change the include file to <linux/crc32.h>. make -k all no emulation specific options. nios2-elf-gcc -nostdinc -D__linux__ -O2 -I"c:/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.uClibc_1.4.0"/include -I/cygdrive/c/altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1//include -fno-optimize-sibling-calls -mhw-mul -mhw-mulx -O0 -g -I"c:/altera/workspace/ep2c35Linux/build/include" -Wall -c -o mkfs.jffs2.o mkfs.jffs2.c mkfs.jffs2.c:45:19: crc32.h: No such file or directory mkfs.jffs2.c: In function `write_dirent': mkfs.jffs2.c:509: error: incompatible types in assignment mkfs.jffs2.c:510: error: incompatible types in assignment mkfs.jffs2.c:511: error: incompatible types in assignment 2. The /dev…. is read only filesystem how can I create the mtd device on it? Please give me some hints or show me how to do. Thanks again. Best regards,