LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Can't install NVIDIA drivers on 2.4 (https://www.linuxquestions.org/questions/slackware-14/cant-install-nvidia-drivers-on-2-4-a-134954/)

Tyir 01-14-2004 10:50 PM

Can't install NVIDIA drivers on 2.4
 
Ok, I got my net wokring again, by getting the bare.i kernel from the cd... But not i can't install the nvidia drivers
I remmoved my previous ones, in case those were causing a problem
These are the official ones, the newest build, and this is the error I get:
Code:


nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Jan 15 04:44:44 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 include path    : (not specified)
  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.
-> Kernel include path: '/lib/modules/2.4.22/build/include'
-> Performing cc_version_check with CC="cc".
-> Cleaning kernel module build directory.
  executing: 'cd ./usr/src/nv; make clean'...
  rm -f nv.o os-agp.o os-interface.o os-registry.o  nv-linux.o nv_compiler.h *
  .d NVdriver nvidia.o
-> Building kernel module:
  executing: 'cd ./usr/src/nv; make nvidia.o SYSINCLUDE=/lib/modules/2.4.22/bu
  ild/include'...
  echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > nv_compiler.h
  cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wp
  arentheses -Wpointer-arith  -Wno-multichar  -Werror -O -MD -D__KERNEL__ -DMO
  DULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KE
  RNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=5
  328  -DNV_UNIX  -DNV_LINUX  -DNV_INT64_OK  -DNVCPU_X86      -DREMAP_PAGE_
  RANGE_4  -I. -I/lib/modules/2.4.22/build/include -Wno-cast-qual -Wno-error n
  v.c
  cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wp
  arentheses -Wpointer-arith  -Wno-multichar  -Werror -O -MD -D__KERNEL__ -DMO
  DULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KE
  RNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=5
  328  -DNV_UNIX  -DNV_LINUX  -DNV_INT64_OK  -DNVCPU_X86      -DREMAP_PAGE_
  RANGE_4  -I. -I/lib/modules/2.4.22/build/include -Wno-cast-qual -Wno-error o
  s-agp.c
  cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wp
  arentheses -Wpointer-arith  -Wno-multichar  -Werror -O -MD -D__KERNEL__ -DMO
  DULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KE
  RNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=5
  328  -DNV_UNIX  -DNV_LINUX  -DNV_INT64_OK  -DNVCPU_X86      -DREMAP_PAGE_
  RANGE_4  -I. -I/lib/modules/2.4.22/build/include -Wno-cast-qual -Wno-error o
  s-interface.c
  os-interface.c:729: warning: `wb_list' defined but not used
  cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wp
  arentheses -Wpointer-arith  -Wno-multichar  -Werror -O -MD -D__KERNEL__ -DMO
  DULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KE
  RNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=5
  328  -DNV_UNIX  -DNV_LINUX  -DNV_INT64_OK  -DNVCPU_X86      -DREMAP_PAGE_
  RANGE_4  -I. -I/lib/modules/2.4.22/build/include -Wno-cast-qual -Wno-error o
  s-registry.c
  ld -r -o nv-linux.o nv.o os-agp.o os-interface.o os-registry.o
  ld -r -o nvidia.o nv-linux.o nv-kernel.o
-> done.
-> Kernel module compilation complete.
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.22-xfs
  while this kernel is version 2.4.22.
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.

I don't really know what the kernel header files are, but I checked out slackware.com, and they had kernel-header packege for 2.4.20, but not 2.4.22...

Bruce Hill 01-14-2004 11:01 PM

Which Nvidia card do you have?

Which Nvidia driver file did you install?

Tyir 01-14-2004 11:05 PM

GeForce 2 GTS...Latest from website: NVIDIA-Linux-x86-1.0-5328-pkg1.run

Bruce Hill 01-14-2004 11:11 PM

Quote:

Originally posted by Tyir
GeForce 2 GTS...Latest from website: NVIDIA-Linux-x86-1.0-5328-pkg1.run
Try this one ->
http://www.nvidia.com/object/linux_d..._1.0-4496.html

I couldn't get NVIDIA-Linux-x86-1.0-5328-pkg1.run to work with Slack 9.1 and kernel 2.4.23 - it just returned a black screen when I typed startx.

I've noticed a lot of folks having trouble with that newest series of drivers, and some have used another person's patched drivers. Your card GeForce2 GTS is listed as being supported.

Tyir 01-14-2004 11:30 PM

Woah....

Code:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Jan 15 05:25:10 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 include path    : (not specified)
  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)
ERROR: Unable to connect to download.nvidia.com (temporary DNS error (try again
      later))
-> 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.
-> Kernel include path: '/lib/modules/2.4.22/build/include'
-> Cleaning kernel module build directory.
  executing: 'cd ./usr/src/nv; make clean'...
  rm -f nv.o os-agp.o os-interface.o os-registry.o  nv-linux.o nv_compiler.h *
  .d NVdriver nvidia.o
-> Building kernel module:
  executing: 'cd ./usr/src/nv; make nvidia.o SYSINCLUDE=/lib/modules/2.4.22/bu
  ild/include'...
                                                             
  You appear to be compiling the NVIDIA kernel module with 
  a compiler different from the one that was used to compile
  the running kernel. This may be perfectly fine, but there 
  are cases where this can lead to unexpected beh If you know what you are doing and want to override this 
  check, you can do so by setting IGNORE_CC_MISMATCH.       
                                                             
  In any other case, set the CC environment variable to the 
  name of the compiler that was used to compile the kernel. 
                                                             
  *** Failed cc sanity check. Bailing out! ***
  make: *** [gcc-check] Error 1
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
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.aviour and 
  system crashes.

It is true, i DIDN't compile my kernel, i got it from slackware cd..

so what is wrong with my compiler? Im SO confused :(

Bruce Hill 01-14-2004 11:37 PM

I'm not the brightest LQ guy on the block, but tell me. Were you online when you tried this install? The reason I ask is because I see this line ->
ERROR: Unable to connect to download.nvidia.com (temporary DNS error (try again
later))
and my comp did that when I tried to install and wasn't online. When I tried it online, it went to the Nvidia site and compiled for my kernel and everything was fine. I think it can't find a precompiled kernel interface because of this.

Tyir 01-14-2004 11:42 PM

Actually, yea, i was offline there, b/c i was on a loer runlevel, but it made no difference... it still can't fine a similar kernel on nvidia's ftp..it never used to for me either I think...
Code:

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.
-> Kernel include path: '/lib/modules/2.4.22/build/include'

this is the new one (w/ same finish)

So the problem is I am compiling it with a different gcc than the kernal was compiles with, i have to figure out how to ignore that

Bruce Hill 01-15-2004 12:00 AM

Okay, in that first log file you posted, I see this ->
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.22-xfs
while this kernel is version 2.4.22.
Which kernel are you running?
$ ls -aFlc /boot
will show you.

I don't understand why it tried to compile for the xfs kernel if you're not running that one.

And in my logs it didn't find a similar kernel, either, but it did compile for the kernel that I have.
Code:

Using: nvidia-installer ncurses user interface
-> License accepted.
-> There appears to already be a driver installed on your system (version: 1.0-
  4496).  As part of installing this driver (version: 1.0-4496), the existing
  driver will be uninstalled.  Are you sure you want to continue? ('no' will a
  bort installation) (Answer: Yes)
-> 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.
-> Kernel include path: '/lib/modules/2.4.23/build/include'
-> Cleaning kernel module build directory.
  executing: 'cd ./usr/src/nv; make clean'...
  rm -f nv.o os-agp.o os-interface.o os-registry.o  nv-linux.o nv_compiler.h *
  .d NVdriver nvidia.o
-> Building kernel module:
  executing: 'cd ./usr/src/nv; make nvidia.o SYSINCLUDE=/lib/modules/2.4.23/bu
  ild/include'...
<snip, snip>
  In file included from /lib/modules/2.4.23/build/include/linux/vmalloc.h:8,
                    from nv-linux.h:72,
                    from os-registry.c:14:
  /lib/modules/2.4.23/build/include/linux/highmem.h: In function `bh_kmap':
  /lib/modules/2.4.23/build/include/linux/highmem.h:20: warning: pointer of ty
  pe `void *' used in arithmetic
  ld -r -o nv-linux.o nv.o os-agp.o os-interface.o os-registry.o
  ld -r -o nvidia.o nv-linux.o nv-kernel.o
-> done.
-> Kernel module compilation complete.
-> Installing classic TLS OpenGL libraries.
-> Parsing log file:
-> done.
-> Validating previous installation:
-> done.
-> Uninstalling NVIDIA Accelerated Graphics Driver for Linux-x86 (1.0-4496):
-> done.
-> Uninstallation of existing driver: NVIDIA Accelerated Graphics Driver for
  Linux-x86 (1.0-4496) is complete.
-> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86' (1.0-4496):
  executing: './usr/src/nv/makedevices.sh'...
  executing: '/sbin/ldconfig'...
  executing: '/sbin/depmod -aq'...
-> done.
-> Driver file installation is complete.
-> Running post-install sanity check:
-> done.
-> Sanity check passed.
-> Installation of the NVIDIA Accelerated Graphics Driver for Linux-x86
  (version: 1.0-4496) is now complete.  Please update your XF86Config file as
  appropriate; see the file /usr/share/doc/NVIDIA_GLX-1.0/README for details.

You say, "this is the new one (w/ same finish)," but does it have errors?

Tyir 01-15-2004 12:09 AM

Its all in 2.4.22

yes, same errors, it finished the same

Bruce Hill 01-15-2004 12:14 AM

Which compiler do you have?

$ gcc --version

The Slack 9.1 CD includesgcc (GCC) 3.2.3, which is perfectly compatible with the Nvidia software requirements.

Tyir 01-15-2004 12:19 AM

3.3.2

ther prob is the kernel was made with a lower one I am assuming...

Bruce Hill 01-15-2004 12:24 AM

Before we start checking individual things, did you install everything with your Slack install? And, have you checked your software against the requirements in the Nividia README - Text Version file?

And do you think trying this might help you?
Quote:

Q: Can I add my own precompiled kernel interfaces to a .run file?

A: Yes, the "--add-this-kernel" .run file option will unpack the .run
file, build a precompiled kernel interface for the currently running
kernel, and repackage the .run file, appending "-custom" to the file
name. This may be useful, for example. if you administer multiple
Linux machines, each running the same kernel.
I certainly hope this helps. Alternately, there is a lot of Q&A in that Nvidia Readme file, plus they have a very good forum for these problems at their site. You may search there and find an answer.

Gotta run take my daughter to the doctor. I'll check back on you later.

Bruce Hill 01-15-2004 12:41 AM

Quote:

Originally posted by Tyir
3.3.2

ther prob is the kernel was made with a lower one I am assuming...

Slackware 9.1 comes with gcc 3.2.3 - at least my two comps have that version. And the Slackware 9.1 CD I downloaded this week has PACKAGE NAME: gcc-3.2.3-i486-2.tgz - I just checked the CD.

If you upgraded gcc to 3.3.2 then this may indeed be the problem.

You should be able to do
# removepkg <newversionofgcc>
and then
# installpkg gcc-3.2.3-i486-2.tgz
from the Slack CD 1

Use cat /var/log/packages and see if the old version is still in there and you won't even have to fool with the CD.

I hope you have a beautiful X-server running with your Nvidia card when I get back ;)

Tyir 01-15-2004 11:09 AM

Ok, that solved the gcc problem, but I still can't install it, it gives the same error as the newest driver!!

The problem is it looks for the header files at /usr/src/2.4.22

Except there isn't anything there, since I installed bare.i just now
But if i download linux 2.4.22 there from kernel.org, it says the headers are nto probperly configured

Where do i get the linux folder from bare.i? Should I look for it on the cd?

UPDATE:: Solved!!
I did a little work-around...I downloaded linux-2.4.22 from kernel.org, put it in /usr/src
then I copyied the config file from the bare.i folder on the slack cd1, then did make oldconfig, so as to emulate bare.i
then I did make dep, make clean, make bzImage
then I went back, and installed the 53something driver!

Thanks Chinaman for your help!

Bruce Hill 01-15-2004 04:58 PM

Quote:

Originally posted by Tyir
Thanks Chinaman for your help!
Glad you got it working. Hey, from a terminal, run
$ glxgears
and let us know what FPS you get.


All times are GMT -5. The time now is 11:05 AM.