Other Help Topics :: kernel compile



i tried to compile kernel to add sisusbvga module
i downloaded and installed some lib who someone (juanito, if i remember correctly) pointed me to

then i started
#cd /usr/src/linux-2.6.12.6
#make
it showed me a HUGE list of writing, with [CC] tag (dunno what is it :D )
then reported me
Code Sample
gzip -n -df drivers/atm/pca200e.bin.gz
gzip: invalid option -- n
BusyBox v1.00 (2006.01.20-18:21+0000) multi-call binary

Usage: gzip [OPTION]... [FILE]...

Compress FILE(s) with maximum compression.
When FILE is '-' or unspecified, reads standard input.  Implies -c.

Options:
       -c      Write output to standard output instead of FILE.gz
       -d      Decompress
       -f      Force write when destination is a terminal

make[2]: *** [drivers/atm/pca200e.bin] Error 1
make[1]: *** [drivers/atm] Error 2
make: *** [drivers] Error 2
root@0[linux-2.6.12.6]#

how can i correct this?

ty for help :D

Sometimes the error message you see is a result of an error earlier in the compile run rather than the error which caused the compile to fail.

To direct the output of the compilation to a file, you can do this:
Code Sample
$ script compile_output
$ make modules
$ <ctrl d>
$ beaver compile_output
Then you can check to see if the error you pasted above is the first error or not.

Note that to be on the safe side, you should use the 2.6.12 kernel sources, not 2.6.12.6. Here's a script I've used in the past to prepare to compile modules:
Code Sample
#!/bin/bash
#
rm -f /lib/modules/2.6.12/modules.*
cp /KNOPPIX/lib/modules/2.6.12/modules.* /lib/modules/2.6.12
#
cp /mnt/sda2/download/kernel/linux-2.6.12.tar.gz /usr/src/
cd /usr/src
tar -xzvf linux-2.6.12.tar.gz -C /usr/src
rm -f linux-2.6.12.tar.gz
#
ln -s /usr/src/linux-2.6.12 /usr/src/linux
ln -s /usr/src/linux-2.6.12/include/asm-i386 /usr/src/linux-2.6.12/include/asm
rm -f /lib/modules/2.6.12/build
ln -s /usr/src/linux-2.6.12 /lib/modules/2.6.12/build
rm -f /lib/modules/2.6.12/source
ln -s /usr/src/linux-2.6.12 /lib/modules/2.6.12/source
#
cp /mnt/sda2/download/kernel/autoconf.h /usr/src/linux-2.6.12/include/linux
cp /mnt/sda2/download/kernel/version.h /usr/src/linux-2.6.12/include/linux
cp /mnt/sda2/download/kernel/knoppix_cd/Module.symvers /usr/src/linux-2.6.12
cp /mnt/sda2/download/kernel/modpost /usr/src/linux-2.6.12/scripts/mod
#
cp -f /usr/src/linux-2.6.12/.config /usr/src/linux-2.6.12/arch/i386/defconfig
cd /usr/src/linux-2.6.12
make oldconfig
make modules_prepare
#
# EOF
where (as far as I remember) .config, autoconf.h, version.h, Module.symvers and modpost all came from the knoppix 4.0.2 iso

Ok thanks
i'll try this

btw the problem seems merely that the gzip part of busybox does not support the -n switch

what can i do to solve it (apart from changing makefile, and that's evil... no wait... EVIL... :D )?

load gnu-utils

but I think this is for DSL-N...?

There is a version for dsl-n here
Next Page...
original here.