Buildroot for ARM target and JFFS2

Andrea Paterniani a.paterniani at swapp-eng.it
Fri Mar 31 01:51:39 PST 2006


Hi all!

    I'm trying to build my toolchain and rootfs for i.MX1 target (ARM920T)
to support JFFS2.
I'have already a functional toolchain for EXT2 rootfs.
Now I changed file system type to JFFS2.

My buildroot setup is the following:
a.. buildroot-0.9.27 (patched to use different package versions)
a.. linux-libc-headers-2.6.12.0
a.. binutils-2.15.91.0.2
a.. gcc-3.4.3
a.. uClibc-0.9.28
a.. busybox-1.1.0
a.. tinylogin-snaphshot
a.. dropbear-0.47

I have tried compilation for both MTD snapshot and for default source
(mtd_20050122.orig.tar.gz) with the same results.

Making buildroot I get the following error:
    ...
    gcc -I../include -O2 -Wall -g -c -o crc32.o
crc32.c -g -Wp,-MD,.crc32.c.dep
    gcc -I../include -O2 -Wall -g -c -o compr_rtime.o
compr_rtime.c -g -Wp,-MD,.compr_rtime.c.dep
    gcc -I../include -O2 -Wall -g -c -o mkfs.jffs2.o
mkfs.jffs2.c -g -Wp,-MD,.mkfs.jffs2.c.dep
    mkfs.jffs2.c:68:18: zlib.h: No such file or directory
    make[1]: *** [mkfs.jffs2.o] Error 1

Actually I can find file zlib.h inside
    .../buidroot/toolchain_build_arm_nofpu/mtd_orig/include/linux
and not inside
    .../buidroot/toolchain_build_arm_nofpu/mtd_orig/include
so I decided to add -I../include/linux to variable CFLAGS inside of
.../buidroot/toolchain_build_arm_nofpu/mtd_orig/util/Makefile

Remaking I get the following error:
    ...
    gcc -I../include -I../include/linux -O2 -Wall -g -c -o mkfs.jffs2.o
mkfs.jffs2.c -g -Wp,-MD,.mkfs.jffs2.c.dep
    gcc -I../include -I../include/linux -O2 -Wall -g -c -o compr_zlib.o
compr_zlib.c -g -Wp,-MD,.compr_zlib.c.dep
    compr_zlib.c: In function `jffs2_zlib_compress':
    compr_zlib.c:65: error: structure has no member named `zalloc'
    compr_zlib.c:66: error: structure has no member named `zfree'
    compr_zlib.c:68: warning: implicit declaration of function `deflateInit'
    compr_zlib.c:80: warning: implicit declaration of function `deflate'
    compr_zlib.c:82: warning: implicit declaration of function `deflateEnd'
    compr_zlib.c: In function `jffs2_zlib_decompress':
    compr_zlib.c:110: error: structure has no member named `zalloc'
    compr_zlib.c:111: error: structure has no member named `zfree'
    compr_zlib.c:113: warning: implicit declaration of function
`inflateInit'
    compr_zlib.c:124: warning: implicit declaration of function `inflate'
    compr_zlib.c:127: warning: implicit declaration of function `inflateEnd'
    make[1]: *** [compr_zlib.o] Error 1

Actually struct z_stream defined inside
.../buidroot/toolchain_build_arm_nofpu/mtd_orig/include/linux/zlib.h (that
has version 1.1.3) doesn't have zalloc and zfree fields.
I see that zlib version 1.2.3 defines those fields.
Any suggestion?

Thanks in advance.
Andrea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/uclibc/attachments/20060331/29f32a16/attachment-0001.html


More information about the uClibc mailing list