LinuxQuestions.org
Review your favorite Linux distribution.
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 05-25-2005, 08:40 AM   #1
khh80
LQ Newbie
 
Registered: May 2005
Posts: 22

Rep: Reputation: 15
fedora kernel source


i downloaded kernel-2.6.9-1.667.src.rpm and followed the instructions :
1- Install kernel-2.6.9-1.667.src.rpm
2- Change directory to /usr/src/redhat/SPECS/, and issue the following command:

rpmbuild -bp --target=i686 kernel.spec
3- cd /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/configs
4- cp kernel-2.6.9-1.667-i686-smp.config ./.config
5- #run the following command:

make oldconfig

the output of the last command is :
make: *** No rule to make target `oldconfig'. Stop.

what the wronge in the last command
and how can i knew if i installed the kernel-source correctly
 
Old 05-25-2005, 09:55 AM   #2
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
Re: fedora kernel source

Quote:
Originally posted by khh80
4- cp kernel-2.6.9-1.667-i686-smp.config ./.config
Are you sure?
All this does is copy the config to a .config in the same directory.
Perhaps you mean:

cp kernel-2.6.9-1.667-i686-smp.config ../.config

Quote:

5- #run the following command:
make oldconfig
Make sure your .config is in the root of your source directory,
and that the last command is executed in this directory.

('ls .config' will give an error if it doesn't exist.)
 
Old 05-25-2005, 11:54 AM   #3
khh80
LQ Newbie
 
Registered: May 2005
Posts: 22

Original Poster
Rep: Reputation: 15
ok .. i excuted the following commands
3- cd /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/configs
4- cp kernel-2.6.9-1.667-i686-smp.config ../.config
5- cd ..
6- make oldconfig

it excuted correctly without the wronge message
but how can i sure that the kernel-source was install correctly
 
Old 05-25-2005, 09:10 PM   #4
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
If a make config works, then your source is installed (ie. you've just config'd it!)

However, all that 'make *config' does is configure the kernel source in PREPARATION for compilation.

ie. The new kernel itself has not been compiled or installed yet.
 
Old 05-25-2005, 09:36 PM   #5
snarkout
Member
 
Registered: Apr 2005
Location: The Land Of Entrapment
Posts: 77

Rep: Reputation: 15
In the past, I have found this to be a good but very basic guide.
 
Old 05-27-2005, 12:05 AM   #6
nhusted
LQ Newbie
 
Registered: May 2005
Posts: 14

Rep: Reputation: 0
Also try http://crab-lab.zool.ohiou.edu/kevin...n-tutorial-en/ ... a Kernel Compile tutorial by Kevin Hobbs. Very handy. Remember to copy the fedora config over first or you can't compile the kernel right. The first few lines in the config file tell rpmbuild the proper architecture of the kernel build.
 
Old 05-28-2005, 07:23 AM   #7
khh80
LQ Newbie
 
Registered: May 2005
Posts: 22

Original Poster
Rep: Reputation: 15
thanks all,
the problem with kernel-source happened when i try to install the driver for my nvidia card ,, i think that i installed the source correctly but untill now there are some error in this driver and these are the messages:
1- no matching precompiling kernel interface
2- con't find nvidia.ko module

what are that .. what is the kernel intarface and how can i download it
 
Old 05-28-2005, 12:07 PM   #8
nhusted
LQ Newbie
 
Registered: May 2005
Posts: 14

Rep: Reputation: 0
Are you using the installer from the nvidia site? If so, I suggest going to www.fedorafaq.com, download their yum.conf, and then follow their instructions to use yum to update your nvidia drivers. It works a LOT better then Nvidia's driver install.
 
Old 05-29-2005, 06:25 AM   #9
khh80
LQ Newbie
 
Registered: May 2005
Posts: 22

Original Poster
Rep: Reputation: 15
i will try it
 
Old 05-29-2005, 10:33 AM   #10
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
To install the nvidia drivers from the nvidia website, you need to install a package called kernel-devel. As root do,
Code:
#yum install kernel-devel
You don't need to the kernel source rpm.
 
Old 05-30-2005, 09:50 AM   #11
khh80
LQ Newbie
 
Registered: May 2005
Posts: 22

Original Poster
Rep: Reputation: 15
i think that all my problem is in the "nvidia.ko " module because i try to run this command : /sbin/modprobe nvidia
but a message appeared that can't find nvidia module
how can i install this module
 
Old 05-30-2005, 12:35 PM   #12
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Have you tried installing the "kernel-devel" package and then trying the nvidia installation afterwards?
 
Old 05-30-2005, 01:01 PM   #13
khh80
LQ Newbie
 
Registered: May 2005
Posts: 22

Original Poster
Rep: Reputation: 15
i tried to install kernel-devel not using yum because i have some error in it that when i run "yum install package" i have a message that need GPG key or something like this
 
Old 05-30-2005, 01:13 PM   #14
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
To solve the yum problem with gpg key you need to do something like
Code:
rpm --import /usr/share/doc/rpm-4.3.2/RPM-GPG-KEY
Make sure you enter the right rpm version.
 
Old 05-31-2005, 06:54 AM   #15
khh80
LQ Newbie
 
Registered: May 2005
Posts: 22

Original Poster
Rep: Reputation: 15
when i run" yum install kernel-devel " i have this message:
No Match for argument kernel-module-nvidia-2.6.9
Nothing to do
 
  


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
kernel source location in fedora pwardy Fedora 13 07-12-2005 02:56 AM
Fedora kernel source location help gfem Fedora 2 05-27-2005 12:50 PM
Fedora Core 3 Kernel Source poochdog Linux - Software 5 02-24-2005 05:35 AM
Fedora Core 3 - Kernel source Hockeyfan Fedora 2 11-14-2004 07:17 PM
fedora kernel source higooday Linux - Wireless Networking 1 10-07-2004 10:52 PM

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

All times are GMT -5. The time now is 01:51 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