LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 11-11-2003, 07:28 PM   #1
christong
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?

CJ

Eeazzy Now!
 
Old 11-11-2003, 07:58 PM   #2
Mathieu
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
http://www.linuxquestions.org/questi...threadid=73436
 
Old 11-12-2003, 10:09 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

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

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

CJ

Eeazzy Now!
Chris,

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
lyx0m
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
Cool

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:
/lib/modules
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

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

Rep: Reputation: 46
Check out www.kernelnewbies.org also...
 
  


Reply


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


All times are GMT -5. The time now is 09:31 PM.

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