LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   recompiling new kernel in fedora 3 (http://www.linuxquestions.org/questions/fedora-35/recompiling-new-kernel-in-fedora-3-a-257569/)

x2aws 11-21-2004 09:27 AM

recompiling new kernel in fedora 3
 
Does anyone know the steps to recompile a new kernel in fedora core 3?? I want to replace the 2.6.9.XXX kernel with the new 2.6.10-rc3 kernel. I follow my usual steps, edit the grub to find the new kernel, system.map, initrd, etc. but at reboot it gives me a error 15, file not found? Any suggestions??

Thanks!!

nixcraft 11-21-2004 09:38 AM

Did you got correct stuff in /etc/grub.conf? On FCx and RHEL you can use make install to do after all kernel compilation.

x2aws 11-21-2004 09:52 AM

ok, here is the deal
 
I looked at grub.conf and noticed how the file was setup. I cp the files right out of /usr/src/linux/xxxx over to boot, and renamed them to reflect the kernel i was using, eg. vmlinux.2.6.9.10-rc3, etc. I followed the way fedora had grub looking and just copied it. Unlike Suse, where it just uses System.map, vmlinux, etc, my copy of fedora 3 uses System.map.2.6.9.xxx, and vmlinux.2.6.9.xxx. Should i just scratch the endings and have it just use the basics?? Let me know!!


Thanks!!

wiraone 11-21-2004 10:00 AM

Do 'make install' will take care the grub.conf too.. you do not need to modify your grub.conf manually.

x2aws 11-21-2004 11:30 AM

ok....
 
So basically, just do my make menuconfig, then make (which should take care of modules and modules_install), then make install and that should be it?? when i reboot, it should start up with the 2.6.10-rc3 kernel?? when i do reboot, how do i know what version of the kernel i am running?? is there a simple command line to type??

wiraone 11-21-2004 01:59 PM

I usually do the following when compiling a new kernel

# make oldconfig
# make menuconfig (if needed)
# make
# make modules_install
# make install

During the reboot, I will choose the new kernel that I've just compiled from GRUB menu.

zWaR 11-21-2004 03:38 PM

and if u're not sure which kernel u're using, just use uname -r and it'll display your kernel version

Eklipz 11-21-2004 03:42 PM

Just a question - I have no problem compiling kernels, I do it often on other distros, but where is the kernel source on Fedora Core 3? I want to recompile my kernel, but there is no source anywhere on my box, and I cant even seem to find the source rpm online.

zWaR 11-21-2004 03:46 PM

I believe it's on one of the CD's.

But don't spend time on searching it, go to www.kernel.org and download the recent one.

x2aws 11-21-2004 07:59 PM

ok, in need of more help
 
I did what everyone said, and it still wants to boot to the default 2.6.9 kernel. I need the 2.6.10 for the latest DVB drivers. When i read the grub conf file, it still shows the link to the vmlinuz-2.6.9.xxx file, nto the new one i just recompiled. Any more help??


Thanks!!

X2

ksun 11-22-2004 03:47 PM

$ locate grub.conf
/boot/grub/grub.conf
/etc/grub.conf

Make sure you are editing the right one.

x2aws 11-22-2004 05:09 PM

ok
 
I got the right one. when i edit it, it always comes up with a error 15:file not found when i reboot. any other suggestions?? Thed default kernel boots just fine.


X2

lloydie 02-14-2005 07:36 AM

I really don't have your answer however perhaps this info means more to you than me :)

cp arch/i386/boot/bzImage /boot/vmlinux-2.6.x
cp System.map /boot/System.map-2.6.x

sorry if really means nothing to you got it from kernelnewbies.org :)


All times are GMT -5. The time now is 07:20 AM.