25.05.2024, 18:19 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
Autor Nachricht
LinuxGeek
Titel: Recompiling the Kanotix Kernel?  BeitragVerfasst am: 25.11.2006, 18:57 Uhr



Anmeldung: 24. Okt 2004
Beiträge: 39

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.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Crest
Titel: RE: Recompiling the Kanotix Kernel?  BeitragVerfasst am: 25.11.2006, 19:56 Uhr



Anmeldung: 03. Okt 2006
Beiträge: 415
Wohnort: Berlin
(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
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
LinuxGeek
Titel:   BeitragVerfasst am: 26.11.2006, 03:57 Uhr



Anmeldung: 24. Okt 2004
Beiträge: 39

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.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Crest
Titel:   BeitragVerfasst am: 26.11.2006, 04:05 Uhr



Anmeldung: 03. Okt 2006
Beiträge: 415
Wohnort: Berlin
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.
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
LinuxGeek
Titel:   BeitragVerfasst am: 26.11.2006, 07:39 Uhr



Anmeldung: 24. Okt 2004
Beiträge: 39

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.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
TheJoker
Titel:   BeitragVerfasst am: 26.11.2006, 10:52 Uhr



Anmeldung: 15. Jul 2005
Beiträge: 100

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
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
mzilikazi
Titel:   BeitragVerfasst am: 26.11.2006, 14:44 Uhr
Team Member
Team Member


Anmeldung: 17. Dez 2003
Beiträge: 1109
Wohnort: Ganymede
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.

_________________
Ubuntu - An ancient African word for "Can't install Debian"
 
 Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
Crest
Titel:   BeitragVerfasst am: 26.11.2006, 14:47 Uhr



Anmeldung: 03. Okt 2006
Beiträge: 415
Wohnort: Berlin
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)
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
LinuxGeek
Titel:   BeitragVerfasst am: 27.11.2006, 08:09 Uhr



Anmeldung: 24. Okt 2004
Beiträge: 39

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
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
brummer
Titel:   BeitragVerfasst am: 27.11.2006, 14:31 Uhr



Anmeldung: 11. Jul 2006
Beiträge: 117

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
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Beiträge vom vorherigen Thema anzeigen:     
Gehe zu:  
Alle Zeiten sind GMT + 1 Stunde
Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
PNphpBB2 © 2003-2007 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.