Help needed for jffs2

yanhy at tsinghua.org.cn yanhy at tsinghua.org.cn
Sat Aug 31 04:18:39 EDT 2002


Hi,friends!I'm new to uClinux.
I am trying to port uClinx on Coldfire M5272C3.The kernel is linux-2.4.x.
Now, if i select MTD and romfs support, the kernel works well on the target.
I can see the four pre-defined flash patitions and erase them and cp files to
them.
Now,I want to use jffs1/2 .but when i select jffs1/2 support, compiling problems 
come as:
mkfs.jffs2.c:113: `__BYTE_ORDER' undeclared here (not in a function)
mkfs.jffs2.c:114: `__BYTE_ORDER' undeclared here (not in a function)
mkfs.jffs2.c: In function `create_target_filesystem':
mkfs.jffs2.c:980: warning: assignment makes pointer from integer without a cast
mkfs.jffs2.c:981: `DT_DIR' undeclared (first use in this function)
mkfs.jffs2.c:981: (Each undeclared identifier is reported only once
mkfs.jffs2.c:981: for each function it appears in.)
mkfs.jffs2.c:991: warning: assignment makes pointer from integer without a cast
mkfs.jffs2.c:999: `DT_SOCK' undeclared (first use in this function)
mkfs.jffs2.c:1004: `DT_FIFO' undeclared (first use in this function)
mkfs.jffs2.c:1024: `DT_LNK' undeclared (first use in this function)
mkfs.jffs2.c:1039: `DT_REG' undeclared (first use in this function)
mkfs.jffs2.c:1046: `DT_CHR' undeclared (first use in this function)
mkfs.jffs2.c:1051: `DT_BLK' undeclared (first use in this function)
mkfs.jffs2.c: In function `main':
mkfs.jffs2.c:1202: `__LITTLE_ENDIAN' undeclared (first use in this function)
mkfs.jffs2.c:1206: `__BIG_ENDIAN' undeclared (first use in this function)
make[2]: *** [mkfs.jffs2.o] Error 1
make[2]: Leaving directory `/user/snap-gear-uclinux/uClinux-dist/user/mt
d-utils'

What's the matter?Do i need some jffs2 patch or fix it manually?
Thanks
Yan






More information about the linux-mtd mailing list