Need help getting JFFS2 working with kernel 2.4.19
Hello all,
I am new here and I am having trouble getting the JFFS2 code
working/compiling with the 2.4.19 kernel . I get multiple definition errors when the kernel is linking.
Many thanks in advance,
Conn
Signature · 16 lines
***************************************************************** If you live at home long enough, your parents will move out. (Warning they may try to sell their house out from under you.) ***************************************************************** Conn Clark Engineering Stooge [email protected] Electronic Systems Technology Inc. www.esteem.com Stock Ticker Symbol ELST "[email protected]" Copyright 2000 By Electronic Systems Technology This email address may be used to communicate to Conn Clark provided it is not being used for advertisement purposes, unless prior written consent is given. This email address may not be sold under any circumstances. All other rights reserved.
Quoted 4 lines · [email protected] said:
I am new here and I am having trouble getting the JFFS2 code working/
compiling with the 2.4.19 kernel . I get multiple definition errors when the kernel is linking.
Might help if you showed us the errors?
--
dwmw2
Quoted 10 lines · Conn Clark
Hello all,
I am new here and I am having trouble getting the JFFS2 code
working/compiling with the 2.4.19 kernel . I get multiple definition errors when the kernel is linking.Many thanks in advance,
Conn
I figured it out. The jffs2 zlib was conflicting with the zlib
used bye ppp compresion. I just had to remove zlib.o from the COMPR_OBJS definition in the Makefile.
Sorry for the lack of details. I figured it out yesterday but
mailed this post to myself instead of the list. Sorry again.
Thanks anyways
Conn
Signature · 16 lines
***************************************************************** If you live at home long enough, your parents will move out. (Warning they may try to sell their house out from under you.) ***************************************************************** Conn Clark Engineering Stooge [email protected] Electronic Systems Technology Inc. www.esteem.com Stock Ticker Symbol ELST "[email protected]" Copyright 2000 By Electronic Systems Technology This email address may be used to communicate to Conn Clark provided it is not being used for advertisement purposes, unless prior written consent is given. This email address may not be sold under any circumstances. All other rights reserved.
Quoted 4 lines · [email protected] said:
I figured it out. The jffs2 zlib was conflicting with the zlib used
bye ppp compresion. I just had to remove zlib.o from theCOMPR_OBJSdefinition in theMakefile.
There's a better fix in 2.4.20-pre2 and at ftp.kernel.org:/pub/linux/kernel/people/dwmw2/shared-zlib/
Get the latest patch (2.4.19-pre10) and it should apply to most 2.4 kernels.
--
dwmw2
Quoted 7 lines · David Woodhouse
Quoted 4 lines · [email protected] said:
I figured it out. The jffs2 zlib was conflicting with the zlib used
bye ppp compresion. I just had to remove zlib.o from theCOMPR_OBJSdefinition in theMakefile.
Quoted 7 lines
There's a better fix in 2.4.20-pre2 and at ftp.kernel.org:/pub/linux/kernel/people/dwmw2/shared-zlib/
Get the latest patch (2.4.19-pre10) and it should apply to most 2.4 kernels.
--
dwmw2
I take it that this patch wasn't submitted to Marcelo or Marcelo didn't get it integrated the final 2.4.19 then?
Is there anything else I need to do or will the patch fix everything?
Thanks
Conn
Signature · 16 lines
***************************************************************** If you live at home long enough, your parents will move out. (Warning they may try to sell their house out from under you.) ***************************************************************** Conn Clark Engineering Stooge [email protected] Electronic Systems Technology Inc. www.esteem.com Stock Ticker Symbol ELST "[email protected]" Copyright 2000 By Electronic Systems Technology This email address may be used to communicate to Conn Clark provided it is not being used for advertisement purposes, unless prior written consent is given. This email address may not be sold under any circumstances. All other rights reserved.
Quoted 17 lines · Conn Clark
Quoted 7 lines · David Woodhouse
Quoted 4 lines · [email protected] said:
I figured it out. The jffs2 zlib was conflicting with the zlib used
bye ppp compresion. I just had to remove zlib.o from theCOMPR_OBJSdefinition in theMakefile.Quoted 7 lines
There's a better fix in 2.4.20-pre2 and at ftp.kernel.org:/pub/linux/kernel/people/dwmw2/shared-zlib/
Get the latest patch (2.4.19-pre10) and it should apply to most 2.4 kernels.
--
dwmw2
Quoted 9 lines
I take it that this patch wasn't submitted to Marcelo or Marcelo didn't get it integrated the final 2.4.19 then?
Is there anything else I need to do or will the patch fix everything?
Thanks
Conn
I applied the patch and now it won't compile again.
here is what the compiler pukes out.
ppc_8xx-ld -T arch/ppc/vmlinux.lds -Ttext 0xc0000000 -Bstatic
arch/ppc/kernel/head_8xx.o init/main.o init/version.o init/do_mounts.o \ --start-group \ arch/ppc/kernel/kernel.o arch/ppc/mm/mm.o arch/ppc/lib/lib.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o arch/ppc/math-emu/math-emu.o \ drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/mtd/mtdlink.o drivers/pcmcia/pcmcia.o drivers/macintosh/macintosh.o arch/ppc/8xx_io/8xx_io.o \ net/network.o \ /192esrc/area51/linux-2.4.19/lib/lib.a \ --end-group \ -o vmlinux
fs/fs.o: In function `zlib_compress':
fs/fs.o(.text+0x42c30): undefined reference to zlib_deflateInit_' fs/fs.o(.text+0x42c30): relocation truncated to fit: R_PPC_REL24 zlib_deflateInit_ fs/fs.o(.text+0x42cd4): undefined reference to zlib_deflate' fs/fs.o(.text+0x42cd4): relocation truncated to fit: R_PPC_REL24 zlib_deflate fs/fs.o(.text+0x42ce4): undefined reference to zlib_deflateEnd' fs/fs.o(.text+0x42ce4): relocation truncated to fit: R_PPC_REL24 zlib_deflateEndfs/fs.o(.text+0x42d4c): undefined reference to zlib_deflate' fs/fs.o(.text+0x42d4c): relocation truncated to fit: R_PPC_REL24 zlib_deflate fs/fs.o(.text+0x42d58): undefined reference to zlib_deflateEnd' fs/fs.o(.text+0x42d58): relocation truncated to fit: R_PPC_REL24 zlib_deflateEndfs/fs.o: In function zlib_decompress':
fs/fs.o(.text+0x42e24): undefined reference to zlib_inflateInit_' fs/fs.o(.text+0x42e24): relocation truncated to fit: R_PPC_REL24 zlib_inflateInit_ fs/fs.o(.text+0x42e80): undefined reference to zlib_inflate' fs/fs.o(.text+0x42e80): relocation truncated to fit: R_PPC_REL24 zlib_inflate fs/fs.o(.text+0x42ea4): undefined reference to zlib_inflateEnd' fs/fs.o(.text+0x42ea4): relocation truncated to fit: R_PPC_REL24 zlib_inflateEndfs/fs.o: In function jffs2_zlib_init':
fs/fs.o(.text.init+0x1868): undefined reference to `zlib_deflate_workspacesize' fs/fs.o(.text.init+0x1868): relocation truncated to fit: R_PPC_REL24 zlib_deflate_workspacesize
fs/fs.o(.text.init+0x1890): undefined reference to `zlib_deflate_workspacesize' fs/fs.o(.text.init+0x1890): relocation truncated to fit: R_PPC_REL24 zlib_deflate_workspacesize
fs/fs.o(.text.init+0x18a8): undefined reference to `zlib_inflate_workspacesize' fs/fs.o
Blah Blah Blah.
I take it there are still a few more things I must do?
here is some additional info on my system.
My processor is a PPC MPC850.
My flash chip 1 intel 28F320C3B 16 bit mode
Thanks
Conn
Signature · 16 lines
***************************************************************** If you live at home long enough, your parents will move out. (Warning they may try to sell their house out from under you.) ***************************************************************** Conn Clark Engineering Stooge [email protected] Electronic Systems Technology Inc. www.esteem.com Stock Ticker Symbol ELST "[email protected]" Copyright 2000 By Electronic Systems Technology This email address may be used to communicate to Conn Clark provided it is not being used for advertisement purposes, unless prior written consent is given. This email address may not be sold under any circumstances. All other rights reserved.
Quoted 4 lines · [email protected] said:
I take it that this patch wasn't submitted to Marcelo or Marcelo
didn't get it integrated the final 2.4.19 then?Is there anything else I need to do or will the patch fix everything?
It's in 2.4.20-pre2. We figured it was a little too intrusive to go into 2.4.19.
--
dwmw2
Quoted 1 line · [email protected] said:
I applied the patch and now it won't compile again.
Did you run 'make oldconfig'?
--
dwmw2