Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

JFFS2 kernel support

Hello all

I'm trying to add jffs2 support to a kernel (3c120 dev board) and I'm facing an strange problem.

If I checked in jffs2 support in menuconfig, _after_ compiling the kernel core and

_while compiling_ the apps , the compile process barfs


 || ( touch mtd-utils/.sgbuilt_user && make -C mtd-utils ) || exit $?
make: se ingresa al directorio `/home/eugenio/uCLinux-MMU/nios2-linux/uClinux-dist/user/mtd-utils'
unset CC CFLAGS CPPFLAGS CROSS LDFLAGS;     make -C 606f38a2221648ca5c5fa292c9f71d2ddd59fa66/ WITHOUT_XATTR=1 SUBDIRS= BUILDDIR=$PWD/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/ TARGETS="  mkfs.jffs2"
make: se ingresa al directorio `/home/eugenio/uCLinux-MMU/nios2-linux/uClinux-dist/user/mtd-utils/606f38a2221648ca5c5fa292c9f71d2ddd59fa66'
mkdir -p /home/eugenio/uCLinux-MMU/nios2-linux/uClinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/
gcc -I./include   -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o /home/eugenio/uCLinux-MMU/nios2-linux/uClinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr_lzo.o compr_lzo.c -g -Wp,-MD,/home/eugenio/uCLinux-MMU/nios2-linux/uClinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/.compr_lzo.c.dep
compr_lzo.c:29:23: error: lzo/lzo1x.h: No existe el fichero o el directorio
compr_lzo.c: In function ‘jffs2_lzo_cmpr’:
compr_lzo.c:51: error: ‘lzo_uint’ undeclared (first use in this function)
compr_lzo.c:51: error: (Each undeclared identifier is reported only once
compr_lzo.c:51: error: for each function it appears in.)
compr_lzo.c:51: error: expected ‘;’ before ‘compress_size’
compr_lzo.c:54: warning: implicit declaration of function ‘lzo1x_999_compress’
compr_lzo.c:54: error: ‘compress_size’ undeclared (first use in this function)
compr_lzo.c:56: error: ‘LZO_E_OK’ undeclared (first use in this function)
The strange thing is that it tries to compile mkfs.jffs2 using my x86 gcc compiler

:confused:

If I try to disable mtd-utils, it doesn't mind; same error while compiling mkfs.jffs2 in mtd-utils which I have previously disabled....

Adding kernel support for MTD and user apps. support for mtd-utils works fine.

No errors. It only happens when adding jffs2 kernel support and while compiling mkfs.jffs2 (mtd-utils enabled or not)

Any hints?

TIA

22 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    this is my compilation report

    good luck

    Franz Wagner
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    If both CPUs try to start Linux, things are going very wrong. This can't work as the NIOS Linux is not SMP enabled and will not be in forseeable future, as the NIOS CPU lacks many features necessary for SMP support.

    There might be some threads on multiple CPUs here, you might want to read them.

    And for questions you should start a thread with an appropriate subject line.

    -Michael

    --- Quote End ---

    hi thank you

    my system with 2 cpus is running very well

    one running uclinux and another c

    thanks