LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   recompiling the kernel (https://www.linuxquestions.org/questions/red-hat-31/recompiling-the-kernel-239378/)

fhameed 10-06-2004 09:03 AM

recompiling the kernel
 
Hello everyone

I have Red Hat 9....It's Shrike...dun remember the kernel version

My question

I'm a newbie 2 kernel recompilation...now how 2 go about it from scratch...will appreciate all the help i can get...

Thanks

Fahad

jpbarto 10-06-2004 09:29 AM

http://www.kernelnewbies.org/index.php3
http://www.google.com/search?q=compi...arch&hl=en&lr=

these days its pretty simple.
'make menuconfig' (pick your options and display the help for anything you don't understand)

'make bzimage'
'make modules'
'make modules_install'

word of advice though, keep your old and currently working kernel around and installed in Lilo or grub so that if the new kernel doesn't work, you can still boot your system.

hope that helps,
jpbarto

paicolman 10-06-2004 09:33 AM

Hi Fahad,

I'm also a newbie, but recompiled my kernel a couple of times by now. Don't kow if this is the best wa, but it worked for me - the general way to go is:

install the kernel sources if you don't have already. This is a package called something like "kernel-sources.....rpm" or "kernel-sources....tar.gz" The sources should then be in a directory similar to
/usr/src/linux/ (in SuSE, this is a link to the real place where the directory is, don't know about red hat - will know soon, I'll install it soon in my PC)

Now go to that directory. At first, look at your options for compiling. Type:

Code:

make help
You should get a screen full of options. One of them should be "old config", this is to compile with your present configuration. Type

Code:

make oldconfig
It takes a while spitting stuff out, you have to wait. IMPORTANT: DO NOT TURN OFF YOUR COMPUTER WHEN THIS IS FINISHED (That's the reason I will be installing red hat... I smashed my SuSE by doing that)

Now recompile the kernel. In the help it should have shown you what it does when you type "make", it should include the "make make_modules".
Code:

make
Take a coffee, some tea, a beer, watch "The Simpsons" on TV, whatever...it takes quite a while.

So, Now you have to install the services. Type:

Code:

make install
You should be done now. (think so) Any gurus to help further?


All times are GMT -5. The time now is 08:41 PM.