nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Problem installing NVIDIA driver on Debian (http://www.nvnews.net/vbulletin/showthread.php?t=25219)

forestial 02-22-04 06:43 PM

Problem installing NVIDIA driver on Debian
 
I have a freshly installed version of Debian 3.0r2 (woody).
Graphics card is a TNT2 RIVA (Diamond Viper V770).

When I run

sh NVIDIA-Linux-x86-1.0.5336-pkg1.run

I go through a few menu choices and it attempts to build
a kernel interface module for me. But this always fails
with the error

ERROR: Unable to determine the NVIDIA kernel module filename.

I have the kernel source in usr/src and I have the /usr/src/linux
symlink pointif to it.

The complete log file from the installer is below.



nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat Feb 21 22:16:42 2004

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel source path : /usr/src/kernel-source-2.4.18
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp site : ftp://download.nvidia.com

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> Using the kernel source path '/usr/src/kernel-source-2.4.18' as specified by
the '--kernel-source-path' commandline option.
-> Kernel source path: '/usr/src/kernel-source-2.4.18'
-> Performing cc_version_check with CC="cc".
ERROR: Unable to determine the NVIDIA kernel module filename.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.

whig 02-22-04 08:20 PM

From reading your post the installer is looking for source in /usr/src/kernel-source-2.4.18. Does that directory exist?

forestial 02-22-04 10:30 PM

>>From reading your post the installer is looking for source in /usr/src/kernel-source-2.4.18. Does that directory exist?

Yes, it does.

I should clarify that I specified the --kernel-source-path=/usr/src/kernel-source-2.4.18
on the command line.

oufresh 02-23-04 02:45 PM

debian kernel
 
NVIDIA-Linux-x86-1.0.5336-pkg1.run is unable to find a precompilated kernel. I have the source kernel in /usr/src/kernel-source-2.4.18.

forestial 02-23-04 07:43 PM

Re: debian kernel
 
Quote:

Originally posted by oufresh
NVIDIA-Linux-x86-1.0.5336-pkg1.run is unable to find a precompilated kernel. I have the source kernel in /usr/src/kernel-source-2.4.18.
Do you mean that I need to build the kernel in the kernel-source-2.4.18 directory? Currently it contains only the source itself.

gildor 02-23-04 11:16 PM

Seems like a circular error: Can't install the driver because it can't find the nvidia kernel module because the driver installer can't install it!

Sadly, I am having the same probelm as you with the exact same video card. I also recently installed woodyr2, although I updated to the 2.4.28-686 kernel.

Same result, however...

Try posting on the linux.debian.user Usenet group. I haven't been able to find anyone with the problem we are having exactly, but there is nvidia driver related threads. In fact, go to Google Groups and search for the thread: nvidia driver compiling problem. It is a current thread and Google will even let you post follwups.

I will do this myself as soon as get home from this business trip I am on so I can post my own installer log results.

kommisar 02-24-04 12:19 AM

same compiler version
 
Hi

I think I had the same problem when I tried to install the latest Nvidia drivers. My stock debian3r2 2.2.20 kernel was compiled with Gcc 2.7 but the GCC installed on my system was 2.95. When I tried to compile the nvidia drivers with the 2.95 it gave me a compiler version warning that I ignored and then gave me the module name error. When I compiled my own 2.4.18 kernel using GCC 2.95 and then tried to install the nvidia drivers the module name error went away and I was able to complete the installation.

crimarti 02-24-04 02:11 AM

Re: same compiler version
 
Quote:

Originally posted by kommisar
Hi

I think I had the same problem when I tried to install the latest Nvidia drivers. My stock debian3r2 2.2.20 kernel was compiled with Gcc 2.7 but the GCC installed on my system was 2.95. When I tried to compile the nvidia drivers with the 2.95 it gave me a compiler version warning that I ignored and then gave me the module name error. When I compiled my own 2.4.18 kernel using GCC 2.95 and then tried to install the nvidia drivers the module name error went away and I was able to complete the installation.

well, that's great but i have no idea how to compile my own kernel 2.4.18 using GCC 2.95, could you give us a step-by-step guide?, please. i'm having the same error with my ti4200.

thankz in advance!

c.

forestial 02-24-04 08:03 AM

Well I built the kernel from the kernel-sources-2.4.18 - just did
make dep
make clean
make bzImage

this worked just fine (using gcc 2.95 which is standard on debian 3.0).
By the way it produces a different kernel than the one I am running
- the make created 'bzImage' whereas I am actually running a kernel
called vmlinuz-2.4.18-bf2.4 which is what the debian installer gave me.

(crimarti - the step-by-step instructions for building the kernel are in
a HOWTO file in the Documentation directory under kernel-source-2.4.18.
I forget the exact filename but this is pretty standard stuff and I think
the three lines I listed above are all you really need.)

Anyway, building the kernel from source made no difference to my
problem with the NVIDIA installer. I am beginning to suspect that
the 5336 version of the NVIDIA stuff has some dependency on the
2.6.x kernel and won't work with 2.4.x (?)

Now I am pursuing a different approach, as outlined in
http://people.debian.org/~rdonald/index.php
Towards the end of that page he has a section titled
"Build instructions when using Debian kernels". So far I
have successfully built the nvidia-kernel package but have not
attempted to run X yet since building that. (Not clear if I also
need to build the nvidia-glx stuff or if that is optional.)

oufresh 02-24-04 08:18 AM

trying 2.6.3 kernel
 
thanks prople i'll try to compile the 2.6.3 kernel and i'll tell what happens.

evan 02-24-04 11:52 AM

I had the same problem, too. I am on debian/unstable and I think that it is because I had upgraded my gcc between my kernel compilation and the installation of nvidia drivers.

So I recompiled my kernel again (2.6.3), rebooted on it, and then installed the nvidia drivers. Then I didn't have this error anymore ("Unable to determine the NVIDIA kernel module filename")

By the way, the gcc detection script in the install script of the nvidia driver doesn't work, but this is not really a problem.

kommisar 02-24-04 03:28 PM

Need to install new kernel as well
 
Quote:

Originally posted by forestial
Well I built the kernel from the kernel-sources-2.4.18 - just did
make dep
make clean
make bzImage

this worked just fine (using gcc 2.95 which is standard on debian 3.0).
By the way it produces a different kernel than the one I am running
- the make created 'bzImage' whereas I am actually running a kernel
called vmlinuz-2.4.18-bf2.4 which is what the debian installer gave me.


Did you install your newly compiled kernel ? If not you are still running the one you installed with Debian which may not have been compiled with 2.95. I think the command to install the new kernel image is something along the lines of "dpkg -i kernel_image_2.4.18*.deb". You then probably have to re-run lilo (or grub) to make sure that the volume boot record points to the new kernel image and then reboot to get it running. Your running kernel should be compiled by the same version of gcc that you use to compile the nvidia drivers.


Quote:

Originally posted by forestial

Anyway, building the kernel from source made no difference to my
problem with the NVIDIA installer. I am beginning to suspect that
the 5336 version of the NVIDIA stuff has some dependency on the
2.6.x kernel and won't work with 2.4.x (?)

I run the 5336 drivers with a kernel image made from the 2.4.18 debian kernel source. This is not a 2.4.18 problem.


All times are GMT -5. The time now is 07:17 AM.

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