nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Where to find Kernel Headers (http://www.nvnews.net/vbulletin/showthread.php?t=8258)

CAMMS 03-04-03 06:43 PM

Where to find Kernel Headers
 
Hello

I'm having a great deal of difficulty getting my NVidia drivers updated ever since upgrading my Linux RH kernel to 2.4.18-24.7.

As suggested by the NVchooser I downloaded:
NVIDIA_GLX-1.0-2960.i386.rpm
NVIDIA_kernel-1.0-2960.src.rpm

However when I try to compile the NVidia kernel module I get an error indicating that the NVdriver was compiled for a different kernel version.
/lib/modules/2.4.18-24.7.xsmp/kernel/drivers/video/NVdriver was compiled for kernel version 2.4.9 while this kernel is version 2.4.18-24.7.xsmp.

This makes sence since according to:
# rpm -qa | grep kernel
kernel-smp-2.4.18-24.7.x
kernel-2.4.2-2
kernel-headers-2.4.9-34

I've only got the headers for 2.4.9.

My Question is:

How and where to I get the kernel-headers for the kernel-smp-2.4.18-24.7.x. I've downloaded kernel-2.4.18-24.7.x.src.rpm and performed a rpm --rebuild on it and it doesn't provide me with the headers. The only RPMs that it provides are:

kernel-2.4.18-24.7.x.i386.rpm
kernel-BOOT-2.4.18-24.7.x.i386.rpm
kernel-doc-2.4.18-24.7.x.i386.rpm
kernel-source-2.4.18-24.7.x.i386.rpm

I'm fresh out of ideas. I wish I'd never "Upgraded my kernel!"

Any help would be very gratefully appreciated.

Thanks

Christophe

Wolfman [TWP] 03-06-03 01:45 AM

Assuming you are booting into RH 2.4.18-XX.XX kernel. You can get the kernel source from the Redhat site. OR you can use the RH udate utility to update the kernel AND download the source files at the same time. I notice that you are running RH7.3.! Are you booting into that kernel when you try to compile the Nvidia Drivers??

As shown from you list, you need to download the 'kernel-source-2.4.18-24.7.x.i386.rpm' file. And install that before you compile the Nvidia drivers.

CAMMS 03-06-03 04:04 PM

Thanks for the reply;

I've been able to figure it out. Once I installed the kernel-source rpm, and POINTED the /usr/src/linux symlink to /usr/src/linux-2.4.18 directory everything worked like a charm.

Now I'm back up and running with my new kernel. Not the effortless upgrade I had anticipated.

Cheers


All times are GMT -5. The time now is 12:23 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.