LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-21-2004, 09:27 AM   #1
x2aws
LQ Newbie
 
Registered: Oct 2004
Location: Iowa
Distribution: SuSE 9.1 Pro
Posts: 11

Rep: Reputation: 0
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!!
 
Old 11-21-2004, 09:38 AM   #2
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
Did you got correct stuff in /etc/grub.conf? On FCx and RHEL you can use make install to do after all kernel compilation.
 
Old 11-21-2004, 09:52 AM   #3
x2aws
LQ Newbie
 
Registered: Oct 2004
Location: Iowa
Distribution: SuSE 9.1 Pro
Posts: 11

Original Poster
Rep: Reputation: 0
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!!
 
Old 11-21-2004, 10:00 AM   #4
wiraone
Member
 
Registered: Nov 2003
Location: Diawang-awangan
Distribution: Ubuntu Hoary!
Posts: 319

Rep: Reputation: 30
Do 'make install' will take care the grub.conf too.. you do not need to modify your grub.conf manually.
 
Old 11-21-2004, 11:30 AM   #5
x2aws
LQ Newbie
 
Registered: Oct 2004
Location: Iowa
Distribution: SuSE 9.1 Pro
Posts: 11

Original Poster
Rep: Reputation: 0
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??
 
Old 11-21-2004, 01:59 PM   #6
wiraone
Member
 
Registered: Nov 2003
Location: Diawang-awangan
Distribution: Ubuntu Hoary!
Posts: 319

Rep: Reputation: 30
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.
 
Old 11-21-2004, 03:38 PM   #7
zWaR
Member
 
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Rep: Reputation: 35
and if u're not sure which kernel u're using, just use uname -r and it'll display your kernel version
 
Old 11-21-2004, 03:42 PM   #8
Eklipz
Member
 
Registered: Sep 2004
Posts: 85

Rep: Reputation: 15
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.
 
Old 11-21-2004, 03:46 PM   #9
zWaR
Member
 
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Rep: Reputation: 35
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.
 
Old 11-21-2004, 07:59 PM   #10
x2aws
LQ Newbie
 
Registered: Oct 2004
Location: Iowa
Distribution: SuSE 9.1 Pro
Posts: 11

Original Poster
Rep: Reputation: 0
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
 
Old 11-22-2004, 03:47 PM   #11
ksun
Member
 
Registered: Sep 2003
Posts: 52

Rep: Reputation: 15
$ locate grub.conf
/boot/grub/grub.conf
/etc/grub.conf

Make sure you are editing the right one.
 
Old 11-22-2004, 05:09 PM   #12
x2aws
LQ Newbie
 
Registered: Oct 2004
Location: Iowa
Distribution: SuSE 9.1 Pro
Posts: 11

Original Poster
Rep: Reputation: 0
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
 
Old 02-14-2005, 07:36 AM   #13
lloydie
LQ Newbie
 
Registered: Feb 2005
Location: Australia
Distribution: Fedora Core 3
Posts: 6

Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
recompiling the kernel fhameed Red Hat 2 10-06-2004 09:33 AM
Recompiling a fedora core 2 kernel for ntfs support fettouhi Fedora 2 08-07-2004 10:07 PM
facing problems recompiling kernel 2.6.5 in Fedora Core 2 fawkes.phoenix Linux - Newbie 4 07-02-2004 09:43 PM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
recompiling the kernel help SonKun Linux - General 3 09-01-2003 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration