LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-14-2004, 10:50 PM   #1
Tyir
Member
 
Registered: Sep 2003
Distribution: Slackware 9.1 with fluxbox
Posts: 259

Rep: Reputation: 30
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...

Last edited by Tyir; 01-14-2004 at 10:52 PM.
 
Old 01-14-2004, 11:01 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941

Rep: Reputation: 137Reputation: 137
Which Nvidia card do you have?

Which Nvidia driver file did you install?
 
Old 01-14-2004, 11:05 PM   #3
Tyir
Member
 
Registered: Sep 2003
Distribution: Slackware 9.1 with fluxbox
Posts: 259

Original Poster
Rep: Reputation: 30
GeForce 2 GTS...Latest from website: NVIDIA-Linux-x86-1.0-5328-pkg1.run
 
Old 01-14-2004, 11:11 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941

Rep: Reputation: 137Reputation: 137
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.
 
Old 01-14-2004, 11:30 PM   #5
Tyir
Member
 
Registered: Sep 2003
Distribution: Slackware 9.1 with fluxbox
Posts: 259

Original Poster
Rep: Reputation: 30
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
 
Old 01-14-2004, 11:37 PM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941

Rep: Reputation: 137Reputation: 137
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.
 
Old 01-14-2004, 11:42 PM   #7
Tyir
Member
 
Registered: Sep 2003
Distribution: Slackware 9.1 with fluxbox
Posts: 259

Original Poster
Rep: Reputation: 30
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

Last edited by Tyir; 01-14-2004 at 11:49 PM.
 
Old 01-15-2004, 12:00 AM   #8
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941

Rep: Reputation: 137Reputation: 137
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?
 
Old 01-15-2004, 12:09 AM   #9
Tyir
Member
 
Registered: Sep 2003
Distribution: Slackware 9.1 with fluxbox
Posts: 259

Original Poster
Rep: Reputation: 30
Its all in 2.4.22

yes, same errors, it finished the same
 
Old 01-15-2004, 12:14 AM   #10
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941

Rep: Reputation: 137Reputation: 137
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.
 
Old 01-15-2004, 12:19 AM   #11
Tyir
Member
 
Registered: Sep 2003
Distribution: Slackware 9.1 with fluxbox
Posts: 259

Original Poster
Rep: Reputation: 30
3.3.2

ther prob is the kernel was made with a lower one I am assuming...
 
Old 01-15-2004, 12:24 AM   #12
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941

Rep: Reputation: 137Reputation: 137
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.
 
Old 01-15-2004, 12:41 AM   #13
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941

Rep: Reputation: 137Reputation: 137
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
 
Old 01-15-2004, 11:09 AM   #14
Tyir
Member
 
Registered: Sep 2003
Distribution: Slackware 9.1 with fluxbox
Posts: 259

Original Poster
Rep: Reputation: 30
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!

Last edited by Tyir; 01-15-2004 at 11:29 AM.
 
Old 01-15-2004, 04:58 PM   #15
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941

Rep: Reputation: 137Reputation: 137
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NVIDIA drivers doesn't install crud Slackware 1 03-08-2005 08:41 PM
Can't install nvidia drivers.. porrblomman Linux - Newbie 1 12-20-2004 11:59 AM
Getting out of X to install nvidia drivers r3dhatter Debian 12 05-09-2004 08:19 PM
Yes i was able to install the NVIDIA drivers! Tyir General 9 10-11-2003 09:45 PM
install NVIDIA drivers serji Linux - General 5 07-06-2003 03:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration