View Full Version : Kernal Compile
MrWh1t3
28th May 2004, 04:39 PM
I was wondering for some info on how to recompile a kernel..maybe some links or maybe even if someone has a how-to doc or something...yes i have searched google and i have found some but i havent found that one that makes 100% to me so i guess i was looking for more info on it. thanks in advance
foolish
28th May 2004, 05:01 PM
Please understand that I'm not trying to make fun of you, but if you can't spell kernel right, don't try to compile one. You don't need to compile your own kernel, in most cases, its a waste of time. Tell us why you want to do this, and I'll tell you why you shouldn't.
MrWh1t3
28th May 2004, 05:03 PM
i just basically want to learn how to do it nothing really major about it..one of those things just want to learn more about i guess
ghaefb
28th May 2004, 05:09 PM
There are a lot of good tutorials on how to compile 2.6 kernel.. just use google :)
But you have to know a lot about your computer hardware...
Usually it's like this:
1.) (get kernel source, under /usr/src)
2.) make gconfigure (menuconfig, xconfig),(you really need to know what you are doing here!)
3.) make (compile source)
4.) make modules
5.) make modules_install
6.) make install (add to grub menu)
ndv
28th May 2004, 05:15 PM
first download the source code for you
www.kernel.org is a good start
then uncompress it in a subfolder of
/usr/src
it a standard location beter stick to the tradition
enter inside the directory and type
make oldconfig
this crates for you a .config file that shall be based on your running kernel then
make xconfig
navigate through the bazilliions of options enabling and disabling the function you want
then if it is a 2.4 kernel type
make dep
if 2.6 go directly to the next steps:
make modules
(and sip a good looong coffe)
make modules_install
make bzImage
(note the capital "I" has to be preserved when iusuing the command)
make install
and....
reboot
(good luck)
standard disclaimer:
better have some reading before...
you can do some bad bad minstakes...
nicola
kbradl1
28th May 2004, 05:15 PM
Although it is true you most likely don't need to compile your own kernel, learning to do so can really increase your linux knowledge.
A good, yet slightly out-of-date document for building your own kernel can be found at:
https://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/s1-custom-kernel-modularized.html
The gist of it is:
cd /usr/src/<kerneldir>
make xconfig
make dep
make clean
make bzImage
make modules
make modules_install
make install
in order to understand these commands you need to read the guide.
ndv
28th May 2004, 05:19 PM
ghaefb, don't you make bzImage???
I know the order of compilation may vary, but you really surprise me!!
is it a mistake or does it really works also this way??
nicola
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.