Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-11-2003, 07:28 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 4

Rep: Reputation: 0
Lightbulb How do I recompile the kernel?

Any one know any good links for reompiling the kernel for a fesh lamb to the slaughter?


Eeazzy Now!
Old 11-11-2003, 07:58 PM   #2
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
DrOzz created a thread / HowTO on kernel compiling.

Newbie Guide To Compiling A Kernel
Old 11-12-2003, 10:09 AM   #3
Bruce Hill
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Fedora, Gentoo, Ubuntu (all servers at work are openSUSE)
Posts: 6,931

Rep: Reputation: 128Reputation: 128
Re: How do I recompile the kernel?

Originally posted by christong
Any one know any good links for reompiling the kernel for a fesh lamb to the slaughter?


Eeazzy Now!

What distribution are you using?

If you will update your user cp and put it there, it will help you to get more and better replies. The thread mentioned is good, but it may not work for your distribution. For instance, I'm using Debian, and there is a particular way to recompile a Debian kernel that isn't the same as in that thread. While it may work, I believe that tutorial is Slackware specific.
Old 11-12-2003, 11:37 AM   #4
LQ Newbie
Registered: Oct 2003
Location: Mexico City
Distribution: gentto 1.4/Mandy 9.2/RedHat 9.0/Solaris/HPUX
Posts: 21

Rep: Reputation: 15

To recompile your kernel please ffollow these steps
cd /usr/src/linux
make xconfig <-----if you want the grphical interface to configure the new kernel behaviour
make menuconfig<----text interface
make dep
make bzImage
make modules
make modules_install

If you have a intel based paltform after the kernel is compiled go to:
cd /usr/src/linux/arch/i386/boot
cp -p bzImage /boot/mynewkernel
cd /boot
before creating your image file go to:
and check the directory you have there is ually something like 2.xx.yy
where xx and yy is the kernel version you are compiling.

mkinitrd 2.xx.yy initrd.img

now you should add the kernel and the image files to either lilo or gurb

Old 11-12-2003, 12:29 PM   #5
Senior Member
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Check out also...


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to recompile kernel 2.4.21-15.EL zameer_india Linux - Newbie 2 12-24-2004 02:02 AM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 05:32 PM
Recompile kernel 2.6 heema Linux - General 3 05-26-2004 11:29 AM
9.2 kernel recompile dukeinlondon Mandriva 3 11-10-2003 07:34 AM
Recompile Kernel ? Amerist Linux - Newbie 5 04-16-2002 05:13 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:57 PM.

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