Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-25-2005, 07:27 AM   #1
LQ Newbie
Registered: Aug 2005
Location: Slovakia
Distribution: Debian
Posts: 7

Rep: Reputation: 0
Question How to compile the kernel?


Please, can anybody explain me step-by-step how to compile new kernel?

What files do I need?

How to make compilation safe and what to do if something goes
wrong and system becomes too unstable?

Which directories should I backup?

Now I'm using Debian Sarge with 2.4.27 kernel.

Old 08-25-2005, 07:31 AM   #2
Registered: Jun 2005
Location: Oslo, Norway
Distribution: Slackware 11, Solaris 10, Solaris 9, Sourcemage 0.9.6
Posts: 322

Rep: Reputation: 31
Here is a nice HOWTO in PDF format.

I'm one of the authors
Old 09-13-2005, 02:11 PM   #3
LQ Newbie
Registered: Sep 2005
Location: Nordhausen
Posts: 1

Rep: Reputation: 0
Re: How to compile the kernel?

The location of the PDF has changed and is now:

Sebastian Wieseler

P.S.: Comments are welcome. :-)
Old 09-13-2005, 02:26 PM   #4
Senior Member
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
Debian Kernel upgrade/recompile
Old 09-13-2005, 04:41 PM   #5
Registered: Apr 2005
Location: Ireland
Distribution: Mepis, mdk10
Posts: 39

Rep: Reputation: 15
Old 09-14-2005, 02:49 AM   #6
Senior Member
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
hello michalceri,
although i haven't read the tuts the other guys are referring to, just like to give a piece of advise that don't mess up with the original kernel files.
During the procedure......the tuts may ask you to remove some previous files or to overwrited them......etc etc.
but don't do that.....leave them intact and make your own files in some new directory ( what i used to do is make a new directory in /boot )
and in the rest of the procedure keep on specifying the path to your files.
This way if some how you make some mistake ( there are bright chances of a newbie making mistake in kernel compilation ) you will still have your original kernel to start again with.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM
I want to compile 2.6 kernel and keep everything from 2.4 intact (dual kernel system) sina_kish Linux - Software 7 02-02-2005 09:01 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration