FedoraThis forum is for the discussion of the Fedora Project.
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.
I've been reading guides on updating the kernel on FC3. Guides talk about first getting kernel.src.rpm. I want to download and compile the latest 2.6.X kernel, not recompile the 2.6.9 kernel that came with FC3. Do I still have to get this kernel.src.rpm before I compile the latest kernel? Or do i just download latest 2.6.x kernel to /usr/src/ and compile it like with any normal linux distro?
yes - meaning get both kernel.src.rpm and lates 2.6.x kernel or just the latest 2.6.x? How do i get rid of the old 2.6.9 kernel and just have the latest one?
I updated and recompiled the kernel in Slackware many times. That is reason why i've asked the questions i've asked. FC3 does not have the same /usr/src/ directory as Slack and from the guides on updating the kernel in FC3 i understood that the process is not the same as in Slack and the guides do not make it clear to me on how to remove the old kernel and whether have to get and install the kernel.src.rpm if i just want to compile and install the newly downloaded kernel.
then u will get the modules installld in a diffent directory
then cp the bzimage and system.map to /boot with differnet name
after that u can make the initrd image then u can go on making an entry for that kernel in ur lilo.conf or grub.conf
I have never yet succefully updated or recompiled a kernel in FC3.
FC3 is pain in the ass comparing to Slack for example.
I have never edited a Makefile. Where is it? What is system.map and why do I need to copy it to /boot? I never touched system.map in Slack and my grub doesn't have system.map mentioned in it. What is initrd and how do i make it?
Please could you at least point me to the right guide that explains my questions above and properly explains FC3 kernel compilation/recompilation and update becasue I could not find a satisfying guide yet.
Well, in Slack, I would unpack th kernel-2.6.x.tar.bz into /usr/src/ directory, then cd into /usr/src/linux-2.6.x.
After that,
make mrproper
make menuconfig (i don't bother copying the .config file), make
su -c 'make modules_install'
make install
Then, I copy the bzImage from /usr/src/.../boot directory into /boot directory and name it vmlinuz-2.6.x.
Edit the lilo.conf, then lilo to renew the LILO menu.
If i don't want the old kernel, then i just delete the /usr/src/oldkerneldir and delete the old vmlinuz image.
That is it, but in FC3 it is not that simple, for instance, what is that /usr/src/redhat dir for.
so what if u want to again upgrade the kernel?
after you have unpacked that kernel code and made urself a kenrel
the next time u follow those commands and ,
make modules_install, will overwrite ur earlier modules
why do u have 2.4 kernel for your slack man? isn't it kind of old?
and I guess it will not overwrite the modules since it adds a prefix when u recompile
In FC3 it is that simple. The 'make install' should copy all necessary files to '/boot' and add an entry into Grub. However if you are using 'lilo' with FC3, I am uncertain as to what the behaviour is. (Grub is the default for FC3.)
The '/usr/src/redhat/' directory is where Fedora compiles and saves its RPM's. So if you install the fedora kernel source by SRPM, it will end up in '/usr/src/redhat/BUILD/kernel-2.6.X'. The difference was that before it would end up in '/usr/src/linux-x.x.x'. Where you compile your kernel is irrelevant to the compile process, the only thing is that *some* Makefiles or applications default to looking for the kerne source in '/usr/src/linux' or something.
If you are installing a fresh kernel from kernel.org, then you do not need the kernel.src.rpm from FC, unless you require the .config file from it.
Removing a kernel requires editing out the lines from grub.conf (menu.lst) and removing the corresponding files in '/boot' as well as '/lib/modules'.
Also if you use Redhat/Fedora's kernel source, the Makefile/scripts will automatically add a prefix (ex: 2.6.9-prep) to prevent you from trashing the current kernel. I do not think the kernel.org Makefile/scripts do that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.