The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Rebuild the Dev of a non UNIX kernel... DevSer2279 High Level Programming 0 04-20-2008 06:23 PM
Kernel panic - not syncing == While RHEL AS install Crazy_murli UNIX for Dummies Questions & Answers 0 07-21-2006 03:12 AM
Error wile rebuild the kernel irasela UNIX for Advanced & Expert Users 0 02-08-2006 04:44 PM
best way to rebuild a kernel xyyz UNIX for Advanced & Expert Users 1 01-29-2003 02:47 AM
Don't Know to Rebuild Linux Kernel(URGENT) S.Vishwanath UNIX for Dummies Questions & Answers 2 06-30-2001 12:29 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-17-2002
Registered User
 

Join Date: Oct 2002
Location: Atlanta
Posts: 7
Need to rebuild and install the kernel.

Trying to install some ide raid drivers (to add some more hdds) and the instrcutions have toled me to modify some code in the kernel folder in usr/src (this is mandrake linux 9 btw). I need to then rebuild the kernel, how do I do this? Is there some file that I bring up for a whole c project (the kernel source code) so then I command it to compile? I am kinda new to Linux (but learning it well enough) so don't give me too much grief . I think I just need to run "Makefile" ...
Forum Sponsor
  #2  
Old 10-17-2002
BSeanD's Avatar
Registered User
 

Join Date: Aug 2002
Location: Melbourne, Australia
Posts: 127
Quote:
I think I just need to run "Makefile" ...
Unfortunately there's a little bit more involved in recompiling a kernel. I've not recompile a linux kernel, I use FreeBSD, but you should have look here as well as here for some documentation.

Hope this helps.
  #3  
Old 10-21-2002
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
First hint:
Read the file called README!
Run through it on a test machine before trying this with something important. It's very common to try to have to recompile several times before you get a good clean kernel the way you want it - if you really screw up, you can't boot the kernel at all (I once inadventantly left out support for my hard drive! Do'h!).

My favorite way is:
cd /usr/src/linux
make menuconfig
make dep
make bzImage
make modules
make modules_install
cp the kernel to it's final location, reconfigure LILO or GRUB or whatever, and reboot.

Make sure to leave a few hours open if this is a slower machine.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:24 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0