Compiling JFFS3

Bernhard Priewasser
2005-08-10T08:32:45Z

Hello,

when trying to compile JFFS3 kernel module out-of-the-box, I get
(pathnames stripped):

> ~/mtd/fs/jffs3> make
> make -C /lib/modules/2.6.11.4-21.7-default/build SUBDIRS=`pwd`
mtd=`pwd` modules
> make[1]: Entering directory `/usr/src/linux-2.6.11.4-21.7'
> CC [M] /mtd/fs/jffs3/compr.o
> In file included from /mtd/fs/jffs3/nodelist.h:205,
> from /mtd/fs/jffs3/compr.h:27,
> from /mtd/fs/jffs3/compr.c:17:
> /mtd/fs/jffs3/debug.h: In function `jffs3_dbg_wbuf_acct_sanity_check':
> /mtd/fs/jffs3/debug.h:366: error: structure has no member named
`wbuf_pagesize'
> /mtd/fs/jffs3/debug.h:366: error: structure has no member named
`wbuf_len'
> /mtd/fs/jffs3/debug.h:367: error: structure has no member named
`wbuf_ofs'
> /mtd/fs/jffs3/debug.h:367: error: structure has no member named
`wbuf_len'
> /mtd/fs/jffs3/debug.h:367: error: structure has no member named
`wbuf_pagesize'
> /mtd/fs/jffs3/debug.h:367: error: structure has no member named
`wbuf_len'
> make[2]: *** [/mtd/fs/jffs3/compr.o] Error 1
> make[1]: *** [_module_/mtd/fs/jffs3] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.11.4-21.7'
> make: *** [modules] Error 2

In jffs3.h, line 296ff, the write-behind and oob stuff (wbuf_* ...) is
not added because CONFIG_JFFS3_FS_WRITEBUFFER is not defined.

Have a look at mtd/include/linux/config.h, line 38. Shouldn't
> #define CONFIG_JFFS3_FS_WRITEBUFFER 1
be added there to consider JFFS_3_ too, not only JFFS_2_?

Regards,
Bernhard