kanotix.com

General Support - Recompiling the Kanotix Kernel?

LinuxGeek - 25.11.2006, 18:57 Uhr
Titel: Recompiling the Kanotix Kernel?
Hi,
I'm trying to find out what the quickest way to recompile the Kanotix kernel would be. I really like the Kanotix kernel with all its patches, but wanted to enable watchdog (which is disabled - CONFIG_WATCHDOG) since one of my machines running Kanotix sometimes mysteriously crashes (can't ping or get any sort of response or anything in the log files). Any ideas? Thanks for your help.
Crest - 25.11.2006, 19:56 Uhr
Titel: RE: Recompiling the Kanotix Kernel?
(All this as root)

/usr/local/bin/install-kernel-source-vanilla.sh
in /usr/src/linux/Makefile edit the EXTRAVERSION line if you want to give your kernel your own name. Always useful when you have several different Kernels installed.
in /usr/src: make config (for settings which you don't want to change just press Enter. If you know what do to than you can probably directly open /usr/src/linux/.config with an editor and change the needed settings)
in /usr/src: make source (compiles the kernel and builds installable .deb packages, depending from your cpu speed this will take quite some time)
in /usr/src: dpkg -i *.deb

The custom kernel will not include maybe needed external modules (like ndiswrapper etc.). Watch out for answers from more experienced users Smilie
LinuxGeek - 26.11.2006, 03:57 Uhr
Titel:
Thanks for your reply Crest. But from my understanding, the steps that you showed are for a vanilla kernel. I'm basically trying to get the Kanotix kernel as is (with all the patches) and then making a small modification to the .config file. Am I right in believing that the steps that you provided are for vanilla kernels or are these kernels the Kanotix kernels with all the patches? Thanks for your help.
Crest - 26.11.2006, 04:05 Uhr
Titel:
Well, the script downloaded the kernel source and applied additionally several patches so I wouldn't call it really 'vanilla'. I have not looked into the script yet but I think it downloads the source for your current installed kernel version and applies available patches for it automaticly before you can even start configuring it.
LinuxGeek - 26.11.2006, 07:39 Uhr
Titel:
Thanks Crest. Actually, I had a look at the script and it looks like it adds the Kanotix specific patches. So yes, it looks like it's the one that I was looking for. Thanks for your help Crest.
TheJoker - 26.11.2006, 10:52 Uhr
Titel:
Zitat:
in /usr/src: make config (for settings which you don't want to change just press Enter. If you know what do to than you can probably directly open /usr/src/linux/.config with an editor and change the needed settings)


try "make menuconfig" or "make xconfig" for a GUI.

Zitat:
in /usr/src: make source (compiles the kernel and builds installable .deb packages, depending from your cpu speed this will take quite some time)


"make-kpkg kernel_image" is prefered on Debian based distris.
http://newbiedoc.sourceforge.net/system/kernel-pkg.html
mzilikazi - 26.11.2006, 14:44 Uhr
Titel:
Actually fakeroot make-kpkg is preferred and NOT in /usr/src
No need to build as root and no need to do it in /usr/src but the OP seems to already have knowledge of how to build a kernel.
Crest - 26.11.2006, 14:47 Uhr
Titel:
Atleast for 'make menuconfig' something (some package) was probably missing here, I have only received an error message. Have not tried 'make xconfig'. The 'make source' was taken from the FAQ.

mzilikazi:
Well, atleast I was building kernels several years earlier (when Kernel 2.2 was current) on some old Suse installation. Back then this process was also pretty fast done, now it takes 2 1/2 hours on my pIII-450 (already with several not needed stuff left out)
LinuxGeek - 27.11.2006, 08:09 Uhr
Titel:
Actually, I followed the instructions but when I came to run:

make xconfig (or make menuconfig)

it would run before exiting with the following error. Any ideas? Thanks for your help.

...
...
* Library routines
*
CRC-CCITT functions (CRC_CCITT) [M/y/?] m
CRC16 functions (CRC16) [M/y/?] m
CRC32 functions (CRC32) [Y/?] y
CRC32c (Castagnoli, et al) Cyclic Redundancy-Check (LIBCRC32C) [M/y/?] m
#
# configuration written to .config
#
make[2]: Leaving directory `/usr/src/linux-2.6.18-kanotix-1'
/usr/bin/make -f ./debian/rules debian/dummy_do_dep
make[2]: --no-print-directory: No such file or directory
make[2]: *** No rule to make target `--no-print-directory'. Stop.
make[2]: --no-print-directory: No such file or directory
make[2]: *** No rule to make target `--no-print-directory'. Stop.
make[2]: --no-print-directory: No such file or directory
make[2]: *** No rule to make target `--no-print-directory'. Stop.
make[2]: --no-print-directory: No such file or directory
make[2]: *** No rule to make target `--no-print-directory'. Stop.
make[2]: --no-print-directory: No such file or directory
make[2]: *** No rule to make target `--no-print-directory'. Stop.
make[2]: --no-print-directory: No such file or directory
make[2]: *** No rule to make target `--no-print-directory'. Stop.
/bin/sh: -c: line 0: unexpected EOF while looking for matching ``'
/bin/sh: -c: line 1: syntax error: unexpected end of file
/bin/sh: -c: line 0: unexpected EOF while looking for matching ``'
/bin/sh: -c: line 1: syntax error: unexpected end of file
make[2]: Entering directory `/usr/src/linux-2.6.18-kanotix-1'
debian/ruleset/misc/version_vars.mk:143: *** Error. The version number make[2]: Entering directory `/usr/src/linux-2.6.18-kanotix-1' make[2]: Leaving directory `/usr/src/linux-2.6.18-kanotix-1'.make[2]: Entering directory `/usr/src/linux-2.6.18-kanotix-1' make[2]: Leaving directory `/usr/src/linux-2.6.18-kanotix-1'.make[2]: Entering directory `/usr/src/linux-2.6.18-kanotix-1' make[2]: Leaving directory `/usr/src/linux-2.6.18-kanotix-1'make[2]: Entering directory `/usr/src/linux-2.6.18-kanotix-1' make[2]: Leaving directory `/usr/src/linux-2.6.18-kanotix-1'make[2]: Entering directory `/usr/src/linux-2.6.18-kanotix-1' make[2]: Leaving directory `/usr/src/linux-2.6.18-kanotix-1' VERSION=[make[2]: Entering directory `/usr/src/linux-2.6.18-kanotix-1' make[2]: Leaving directory `/usr/src/linux-2.6.18-kanotix-1'], PATCHLEVEL=[make[2]: Entering directory `/usr/src/linux-2.6.18-kanotix-1' make[2]: Leaving directory `/usr/src/linux-2.6.18-kanotix-1'], SUBLEVEL=[make[2]: Entering directory `/usr/src/linux-2.6.18-kanotix-1' make[2]: Leaving directory `/usr/src/linux-2.6.18-kanotix-1'], EXTRAVERSION=[make[2]: Entering directory `/usr/src/linux-2.6.18-kanotix-1' make[2]: Leaving directory `/usr/src/linux-2.6.18-kanotix-1'], iatv=[], LOCALVERSION=[make[2]: Entering directory `/usr/src/linux-2.6.18-kanotix-1' make[2]: Leaving directory `/usr/src/linux-2.6.18-kanotix-1'], UTS_RELEASE_VERSION=[], KERNELRELEASE=[ ]. is not all lowercase. Since the version ends up in the package name of the kernel image package, this is a Debian policy violation, and the packaging system shall refuse to package the image. . Stop.
make[2]: Leaving directory `/usr/src/linux-2.6.18-kanotix-1'
make[1]: *** [debian/stamp-kernel-conf] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.18-kanotix-1'
make: *** [oldconfig] Error 2
brummer - 27.11.2006, 14:31 Uhr
Titel:
it is no good idea to build the kernel in /usr/src/linux so you login root build it in your home/ login user ! dont edit the makefile without edit the UTS_RELEASE_VERSION

run the ***source.sh in a empty floder, then
make oldconfig
make xconfig to change the set you wont
fakeroot make-kpkg --revision=lg1 : kernel_image to build the kernel
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007