System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Kernel source location Fedora Core 9

SOLVED
Go to solution
Vernon Brown_4
Trusted Contributor

Kernel source location Fedora Core 9

I'm trying to compile a new Linux kernel that contains the drivers for graphics card Nvidia 7300. I've done this several times but always in the past the Nvidia driver install automatically found the kernel source and recompiled the kernel. This time I'm having trouble locating the kernel source code. I'm not even sure it was installed with the Core 9 upgrade (from Fedora Core 6)

Whats a good way to find out if I have the source installed? If not, what's a good way to get it? I've tried the Add-Remove software and the kernel development modules are checked as if they are there.

Thanks for all your past help; hoping for this one :)



10 REPLIES
Steven E. Protter
Exalted Contributor

Re: Kernel source location Fedora Core 9

Shalom,

rpm -qa | grep kernel | grep devel

It will show up on that query if installed.

You can install it via yum.

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vernon Brown_4
Trusted Contributor

Re: Kernel source location Fedora Core 9

Hi Steven; thanks but rpm didn't like the query.

[root@veb2 veb]# rpm -ga
rpm: one type of query/verify may be performed at a time
[root@veb2 veb]#

I'll try to separate and do it in two.
Vernon Brown_4
Trusted Contributor

Re: Kernel source location Fedora Core 9

Results of two queries:

[root@veb2 veb]# rpm -g | grep kernel | grep devel
[root@veb2 veb]# rpm -a | grep kernel | grep devel
[root@veb2 veb]#

looks like it's not there. I think I may have trashed my yum module in the upgrade. On boot, I get a complaint that yum... does not exist.

I have the CheapBytes Linux Everything 4 DVD package. Tons of RPMs there but I don't know how to find the kernel development RPMs


20 years of retirement is making its mark I guess :)

Vernon
Vernon Brown_4
Trusted Contributor

Re: Kernel source location Fedora Core 9

Ok another try gets:

[root@veb2 ~]# rpm -qa | grep kernel | grep devel
kernel-debug-devel-2.6.22.14-72.fc6.x86_64
kernel-devel-2.6.18-1.2798.fc6.i586

The top one matches my system. Now how to get the Nvidia driver install script to find it.

Alexander Chuzhoy
Honored Contributor

Re: Kernel source location Fedora Core 9

A full source tree is not required in order to build modules against the current kernel you are using. You can simply point your Makefile to /lib/modules/`uname -r`/build.

having that said - you should have the kernel-headers rpm.
Vernon Brown_4
Trusted Contributor

Re: Kernel source location Fedora Core 9

Thanks Alexander; the Nvidia driver install script provides a brouse button for searching for the kernel source. I'll try to locate the actual files and attempt that.

Vernon
Vernon Brown_4
Trusted Contributor

Re: Kernel source location Fedora Core 9

forgot to add:

[root@veb2 ~]# rpm -qa | grep kernel | grep headers
kernel-headers-2.6.25-14.fc9.x86_64
[root@veb2 ~]#

seems I have the headers.
Vernon Brown_4
Trusted Contributor

Re: Kernel source location Fedora Core 9

I'm finally able to get the Nvidia install script to find the kernel source, but still no joy. Both source locations run but fail during the make.

I'm wondering if I can revert to an older kernel source. I would like to create the path and place it in the location that FC 6 had it. That's the last version that I could install graphics drivers for.

Will FC6_64 kernel work with FC9_64?

If so, what would be an RPM source for it? I've got the FC6 DVD.

Vernon
Steven E. Protter
Exalted Contributor
Solution

Re: Kernel source location Fedora Core 9

rpm dash que a

rpm -qa

Crappy default fonts

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vernon Brown_4
Trusted Contributor

Re: Kernel source location Fedora Core 9

Hi Steven; thanks; I finally figured it out when I realized -q was for query -- duh.

then -qal showed me the path to the files.

But now the make fails. I suspect the new gcc has depriciated some of the source statements.

Seems the new gcc don't like strings in function calls like:

dosomething("firststring", "secondstring");

Guess I'll have to wait for Nvidia to catch up or go back to FC6

Vernon