Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: kernel compile, i tried to compile kernel... but...< Next Oldest | Next Newest >
Divago Offline





Group: Members
Posts: 83
Joined: April 2007
Posted: Sep. 25 2007,10:21 QUOTE

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
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Sep. 25 2007,11:47 QUOTE

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
Back to top
Profile PM 
Divago Offline





Group: Members
Posts: 83
Joined: April 2007
Posted: Sep. 25 2007,13:13 QUOTE

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 )?
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Sep. 25 2007,13:30 QUOTE

load gnu-utils

but I think this is for DSL-N...?
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Sep. 25 2007,13:43 QUOTE

There is a version for dsl-n here
Back to top
Profile PM 
4 replies since Sep. 25 2007,10:21 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: kernel compile

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code