MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I've just compiled my new kernel. I had the kernel sources installed so I did this:
# cd /usr/src/linux*
# make mrproper
# make xconfig
from there on i configured the kernel and the things/features i needed support for, after that i ran:
# make
# make bzImage
# make modules
# make modules_install
# make install
# /sbin/lilo
I did all that and the kernel compiled successfully, i rebooted and i had the custom kernel added to lilo and i booted into it with no problems, even the bootsplash was still working. The kernel never complained about anything! If i do a uname -a this is what i get:
[mike@linux mike]$ uname -a
Linux linux 2.6.3-4mdkcustom #1 Tue Mar 9 00:40:32 GMT 2004 i686 unknown unknown GNU/Linux
Was I right with the way I went about compiling? Like with the steps i did?
Yes, that's why it worked.
I don't think you needed to run /sbin/lilo, I think "make install" does that. You could also look into kernel versioning if you run several kernels with different things installed as modules, and you could consider building with gcc-2.95 if it's not your default compiler. You could also do the "make install" step by hand so that you have more control over the process.
heh cool, its the first time i've compiled a kernel and im just so happy i havent ran into any problems, i've read many peoples posts about kernel panics etc.
Kernel compiling is pretty easy once you have all of the correct options selected. However, that's pretty impressive that you managed to get all of the right options first time. It took me about five goes I think.
lets just say that i created a dir in my home dir as /home/mike/kernel-2.6.3 for example, and i built it from there, would it still work and do the mapping for lilo etc?
Yes, I think so. You would need to be root to do the install stuff, and certainly on my system, /lib/modules/version is linked to the source directory, so it's not the ideal place what with permissions and all, but yes it would work.
I had mine running right the very first time, ran it for three or four weeks it was booting so quick it wasn't funny, then i had to stuff around with it, could leave it alone and it crashed. I tried twice since then with no luck, when I get some more time i'll give it another go
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.