LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-22-2006, 05:03 PM   #1
Yorrix
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Rep: Reputation: 0
nVidia Installation Issue


Hi everyone,

Sorry to bother, but hard as I have tried I just cannot seem to get around this issue trying to install an old graphics card I have under Linux (a GForce 5200 before anyone asks how old ). I have, however, found it mentioned that nVidia drivers are so easy to install! Oh yeah, I'm good.

Anyway, hopefully someone can point out where I have gone wrong here; afterall I'm still learning a lot about Linux. My OS is Slackware 10.2, and the kernel version is 2.4.31. Furthermore I do have the sources installed and have explicitly given the path to ensure it is looking at the right place. Everytime I have tried to get the installer to compile the kernel interface it has failed though.

I have also extracted the source with the relevant command and tried to make the install that way, but it seems to issue the similar complaints. It did seem to make nvidia.o, however, and following some advice I read, insmod seems to back this up. I tried reconfiguring my xorg.conf to see if it might have been OK anyway, but it kept failing. I was semi-expecting this, but it said that no screen was defnined (and yes, I did change the screen entry).

Right, I think that is about all the information you may need on what I have tried. Here is the nvidia log of the install:

Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Wed Mar 22 00:02:37 2006

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     : true
  no questions            : false
  silent                  : false
  no backup               : false
  kernel module only      : false
  sanity                  : false
  add this kernel         : false
  no runlevel check       : false
  no network              : false
  no ABI note             : false
  no RPMs                 : false
  force tls               : (not specified)
  force compat32 tls      : (not specified)
  X install prefix        : /usr/X11R6
  OpenGL install prefix   : /usr
  compat32 install prefix : (not specified)
  installer install prefix: /usr
  utility install prefix  : /usr
  kernel name             : (not specified)
  kernel include path     : (not specified)
  kernel source path      : /usr/src/linux-2.4.31
  kernel output path      : (not specified)
  kernel install path     : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /tmp
  ftp mirror              : ftp://download.nvidia.com
  RPM file list           : (not specified)

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: No)
-> No precompiled kernel interface was found to match your kernel; this means
   that the installer will need to compile a new kernel interface.
-> Performing CC test with CC="cc".
-> Using the kernel source path '/usr/src/linux-2.4.31' as specified by the
   '--kernel-source-path' commandline option.
-> Kernel source path: '/usr/src/linux-2.4.31'
-> Kernel output path: '/usr/src/linux-2.4.31'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Cleaning kernel module build directory.
   executing: 'cd ./usr/src/nv; make clean'...
   rm -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o  nv-linux.o nv_comp
   iler.h *.d NVdriver nvidia.o
   rm -f stprof stprof.o symtab.h
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make module SYSSRC=/usr/src/linux-2.4.31 SYSOUT
   =/usr/src/linux-2.4.31'...
   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 -fno-common -UDEBUG -
   U_DEBUG -DNDEBUG -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -DNV
   RM -DDYNAMIC_SLI  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=
   8178  -DNV_REMAP_PAGE_RANGE_4_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMA
   P_4_PRESENT  -I. -I/usr/src/linux-2.4.31/include -Wsign-compare -Wno-cast-qu
   al -Wno-error nv.c
   cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wp
   arentheses -Wpointer-arith  -Wno-multichar  -Werror -O -fno-common -UDEBUG -
   U_DEBUG -DNDEBUG -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -DNV
   RM -DDYNAMIC_SLI  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=
   8178  -DNV_REMAP_PAGE_RANGE_4_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMA
   P_4_PRESENT  -I. -I/usr/src/linux-2.4.31/include -Wsign-compare -Wno-cast-qu
   al -Wno-error nv-vm.c
   
   cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wp
   arentheses -Wpointer-arith  -Wno-multichar  -Werror -O -fno-common -UDEBUG -
   U_DEBUG -DNDEBUG -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -DNV
   RM -DDYNAMIC_SLI  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=
   8178  -DNV_REMAP_PAGE_RANGE_4_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMA
   P_4_PRESENT  -I. -I/usr/src/linux-2.4.31/include -Wsign-compare -Wno-cast-qu
   al -Wno-error os-agp.c
   cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wp
   arentheses -Wpointer-arith  -Wno-multichar  -Werror -O -fno-common -UDEBUG -
   U_DEBUG -DNDEBUG -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -DNV
   RM -DDYNAMIC_SLI  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=
   8178  -DNV_REMAP_PAGE_RANGE_4_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMA
   P_4_PRESENT  -I. -I/usr/src/linux-2.4.31/include -Wsign-compare -Wno-cast-qu
   al -Wno-error os-interface.c
   cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wp
   arentheses -Wpointer-arith  -Wno-multichar  -Werror -O -fno-common -UDEBUG -
   U_DEBUG -DNDEBUG -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -DNV
   RM -DDYNAMIC_SLI  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=
   8178  -DNV_REMAP_PAGE_RANGE_4_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMA
   P_4_PRESENT  -I. -I/usr/src/linux-2.4.31/include -Wsign-compare -Wno-cast-qu
   al -Wno-error os-registry.c
   ld -r -o nv-linux.o nv.o nv-vm.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 source files.
       Please make sure you have installed the kernel source files for your
       kernel and that they are properly configured; on Red Hat Linux systems,
       for example, be sure you have the 'kernel-source' RPM installed.  If you
       know the correct kernel source files are installed, you may specify the
       kernel source path with the '--kernel-source-path' command line option.
-> Kernel module load error: Warning: loading ./usr/src/nv/nvidia.o will taint
   the kernel: non-GPL license - NVIDIA
   See (URL removed) for information about tainted
   modules
   ./usr/src/nv/nvidia.o: init_module: No such device
   ./usr/src/nv/nvidia.o: Hint: insmod errors can be caused by incorrect module
   parameters, including invalid IO or IRQ parameters.
   You may find more information in syslog or the output from dmesg
-> Kernel messages:
   pciehp: PCI Express Hot Plug Controller Driver version: 0.5
   pci_hotplug: PCI Hot Plug PCI Core version: 0.5
   shpchp: shpc_init : shpc_cap_offset == 0
   shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
   pci_hotplug: PCI Hot Plug PCI Core version: 0.5
   pciehp: PCI Express Hot Plug Controller Driver version: 0.5
   pci_hotplug: PCI Hot Plug PCI Core version: 0.5
   shpchp: shpc_init : shpc_cap_offset == 0
   shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
   pci_hotplug: PCI Hot Plug PCI Core version: 0.5
   pciehp: PCI Express Hot Plug Controller Driver version: 0.5
   pci_hotplug: PCI Hot Plug PCI Core version: 0.5
   shpchp: shpc_init : shpc_cap_offset == 0
   shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
   pci_hotplug: PCI Hot Plug PCI Core version: 0.5
   pciehp: PCI Express Hot Plug Controller Driver version: 0.5
   pci_hotplug: PCI Hot Plug PCI Core version: 0.5
   shpchp: shpc_init : shpc_cap_offset == 0
   shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
   pci_hotplug: PCI Hot Plug PCI Core version: 0.5
   pciehp: PCI Express Hot Plug Controller Driver version: 0.5
   eth0: Setting full-duplex based on MII #1 link partner capability of 45e1.
   NVRM: No NVIDIA graphics adapter found!
   NVRM: No NVIDIA graphics adapter found!
   NVRM: No NVIDIA graphics adapter found!
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 (URL removed).
Here is the make install too, just in case this gives any different information that might help:

Code:
cd usr/src/nv; make install
make[1]: Entering directory `/root/downloads/drivers/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv'
ld -r -o nvidia.o nv-linux.o nv-kernel.o
mkdir -p /lib/modules/2.4.31/kernel/drivers/video && \
install -m 0664 -o root -g root nvidia.o /lib/modules/2.4.31/kernel/drivers/video/nvidia.o && \
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:/bin:/sbin" depmod -a && \
        PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:/bin:/sbin" modprobe nvidia && \
echo "nvidia.o installed successfully."; \

Warning: loading /lib/modules/2.4.31/kernel/drivers/video/nvidia.o will taint the kernel: non-GPL license - NVIDIA
  See (URL Removed) for information about tainted modules
/lib/modules/2.4.31/kernel/drivers/video/nvidia.o: init_module: No such device
/lib/modules/2.4.31/kernel/drivers/video/nvidia.o: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg
/lib/modules/2.4.31/kernel/drivers/video/nvidia.o: insmod /lib/modules/2.4.31/kernel/drivers/video/nvidia.o failed
/lib/modules/2.4.31/kernel/drivers/video/nvidia.o: insmod nvidia failed
make[2]: *** [package-install] Error 255
make[1]: *** [install] Error 2
make[1]: Leaving directory `/root/downloads/drivers/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv'
make: *** [kernel_module_install] Error 2
Thanks in advance for any help you may be able give.
 
Old 03-22-2006, 06:52 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
have you installed kernel-source packages? This assumption is based on your error message

Quote:
ERROR: Unable to load the kernel module 'nvidia.o'. This is most likely
because the kernel module was built using the wrong kernel source files.
Please make sure you have installed the kernel source files for your
kernel and that they are properly configured; on Red Hat Linux systems,
for example, be sure you have the 'kernel-source' RPM installed. If you
know the correct kernel source files are installed, you may specify the
kernel source path with the '--kernel-source-path' command line option.
another guess, try to use the same GCC version that was being used to built 2.4.31, since GCC version will affect the output (binary form of the NVidia driver)

Hope that will help you out
 
Old 03-23-2006, 03:08 AM   #3
Yorrix
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Yes, I have installed the kernel source; I went to trouble to make sure they were loaded given that very message. They are also the right ones for my kernel too.

As for GCC I don't know, the kernel I have is the kernel it installed with, as is GCC; I've made no changes to either.

I do wonder whether I should be try compiling a new kernel and then trying to updating the graphics again, but it seems a little full on for what was essentially supposed to be just a minor task initially.

Any suggestions as to how I would find out what version of GCC my kernel was compiled with? Or my version of GCC, though I assume that's just a '-V' on the end or something similar?

Thanks.
 
Old 03-23-2006, 04:34 AM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
if you have never updated your GCC, then it shouldn't be much problem. Most of the time, GCC will be upgraded in slackware-current and if you stick on the -stable version, you won't have much problem on this version.

my suggestion is that you should try to install 2.6 kernel along with the 2.4 and give it a try again. I have used 2.6.16 and NVidia-1.0.8178 (plus some patch) and it worked for me like charm. See this thread also for installing NVidia with 2.6.16 : http://www.linuxquestions.org/questi...d.php?t=427033
 
Old 03-23-2006, 06:03 AM   #5
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
welcome to slackforum and lq

Quote:
my suggestion is that you should try to install 2.6 kernel
dont jump into 2.6 now. try resolving the pro here itself.

so u r not getting the x window??
if ur in x window go to "telint 3"and run(because slack may have the modules for nvidia)
is ur nvidia installer compactible for your card.?
run the installer from root!!
u dont need to specify teh path of source, it wil search in /usr/src (run as root).
 
Old 03-23-2006, 07:40 AM   #6
spaceballs
Member
 
Registered: Jan 2005
Location: Dallas, TX
Distribution: Slackware-current
Posts: 248

Rep: Reputation: 30
This happened to me after GCC was updated. What I had to do was recompile my kernel with the new GCC, and then build the nvidia module. It worked without any problem after that.
 
Old 03-25-2006, 07:58 AM   #7
Yorrix
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks everyone for your help and suggestions. I have finally had a chance to try out your suggestions today.

I recompiled my existing kernel, tried out the nVidia installation program and it worked a charm.

Thanks again, I really appreaciate it.
 
  


Reply



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 driver issue it0hg MEPIS 7 11-13-2005 10:55 PM
issue with nvidia tuxgurz Debian 1 11-22-2004 10:17 PM
NVIDIA drivers issue :( ddtemplar Linux - Hardware 4 10-23-2004 06:53 AM
Trouble with new nVidia driver installation...no nvidia logo and KDE no start up mdb Linux - Software 8 08-18-2004 09:45 AM
Is it a monitor or nvidia issue? ccin1492 Linux - Distributions 4 02-26-2004 12:53 AM

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

All times are GMT -5. The time now is 01:13 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