PDA

View Full Version : problem installing NVIDIA-Linux-x86-1.0-4349.run


LUDWIG
04-18-03, 02:12 PM
Ok,Here's my situation:

Installed RH8 a few weeks ago and downloaded the kernel source for the 2.4.20 kernel.I compiled and built it without problems.

Now,I want to install the Nvidia drivers for my GF4 ti4200.This is what I did:

1.Downloaded NVIDIA-Linux-x86-1.0-4349.run
2.Exited X and cd-ed to the directory with NVIDIA-Linux-x86-1.0-4349.run in
3.#sh NVIDIA-Linux-x86-1.0-4349.run
4.The installer mentioned that I had no precompiled kernel interface to match my kernel and the installer will attempt to download a kernel interface for your kernel from the NVIDIA ftp site (ftp://download.nvidia.com)
5.It began to download and then stopped withthe error message:

ERROR: Unable to load the kernel module 'nvidia.o'. This is most likely
because the kernel module was built using the wrong kernel header files.
Please make sure you have installed the kernel header files for your
kernel; on Red Hat Linux systems, for example, be sure you have the
'kernel-source' rpm installed. If you know the correct kernel header
files are installed, you may specify the kernel include path with the
'--kernel-include-path' commandline option.
-> Kernel module load error: ./usr/src/nv/nvidia.o: kernel-module version
mismatch
./usr/src/nv/nvidia.o was compiled for kernel version 2.4.20V2
while this kernel is version 2.4.20.

The error message mentions the last kernel that I built but subsequently deleted (2.4.20V2).My current kernel is Linux-2.4.20.

Does anyone have any suggestions as to how I can proceed from here?
I'm not sure exactly what kernel header files are (although I have the kernel source and a symlink installed) and I'm not sure what the " '--kernel-include-path' commandline option." is.

Can someone please help me?


thanks,
Ludwig

Andy Mecham
04-18-03, 04:31 PM
You're probably still pointing at your 2.4.20-v2 sources. Make sure your build symlinks are pointing at the right kernel source tree. (/lib/modules/`uname -r`/build, for example) The NVIDIA driver requires your kernel sources to match the configuration of the running kernel to correctly compile.

--andy

LUDWIG
04-19-03, 03:07 AM
When I built the kernel,I put a symlink :
ln -s usr/src/Linux-2.4.20 /usr/src/Linux

I used this symlink to compile both the 2.4.20 and the 2.4.20V2 kernels since they both use the same kernel source.

Any idea about what to do,Andy?

Andy Mecham
04-19-03, 03:40 AM
What kernel are your sources currently configured for? Your kernel source configuration *must* match your running kernel to build the driver correctly.

--andy

LUDWIG
04-19-03, 03:42 AM
Originally posted by Andy Mecham
What kernel are your sources currently configured for? Your kernel source configuration *must* match your running kernel to build the driver correctly.

--andy
Hi Andy.
I'm not sure what my 'sources' are and what they are configured for. How can I check?

Andy Mecham
04-22-03, 02:19 PM
"Sources" refers to your kernel sources. "Configured" means you can type 'make bzImage' and produce the same kernel you're running - ie: your .config file represents the current running kernel.

--andy