LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-12-2005, 10:37 PM   #1
jCarlson917
LQ Newbie
 
Registered: Oct 2005
Distribution: Mandriva 2006
Posts: 10

Rep: Reputation: 1
nVidia Driver and Kernel Module Problems


Hello, I am having problems installing nVidia driver on my computer. I am using Mandriva LE2005.

After shutting down X, I typed in

Code:
sh NVIDIA-Linux-x86-1.0-5336-pkg1.run
and press enter, then accepted the license thing. Then it says "No precompiled kernel interface was found to math your kernel;" and the install could not be completed.

However, I am pretty sure I have the kernel sources installed:

Code:
[root@192 ~]# uname -r
2.6.11-6mdk
[root@192 ~]# rpm -qa|grep kernel-*
kernel-source-2.6-2.6.11-6mdk
kernel-2.6.11.6mdk-1-1mdk
kernel-source-stripped-2.6-2.6.11-6mdk
[root@192 ~]#
I installed "kernel-source-2.6-2.6.11-6mdk" from the file "kernel-source-2.6-2.6.11-6mdk.i586.rpm" which I downloaded from rpmfind.net

I am using GeForce4 MX 420.

Any help on how to solve this problem is greatly appreciated, thanks.

-Jack Carlson

Last edited by jCarlson917; 11-13-2005 at 12:42 PM.
 
Old 11-13-2005, 01:50 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Let the installer compile the kernel interface and all should work.
 
Old 11-13-2005, 04:12 AM   #3
kamowa
Member
 
Registered: Sep 2004
Location: Eau Claire, WI
Distribution: Fedora Core 12
Posts: 91

Rep: Reputation: 15
you can see if the latest nvidia driver will work, i think its version 7676

http://www.nvidia.com/object/linux_d..._1.0-7676.html
 
Old 11-13-2005, 12:45 PM   #4
jCarlson917
LQ Newbie
 
Registered: Oct 2005
Distribution: Mandriva 2006
Posts: 10

Original Poster
Rep: Reputation: 1
I downloaded the latest nVidia driver (1.0-7676) and I was able to get past the "No precompiled kernel interface was found to math your kernel;" error by typing:

Code:
sh NVIDIA-Linux-x86-1.0-7676-pkg1.run --kernel-source-path="/usr/src/linux-2.6.11-6mdk"
But now I get a new error:

Code:
ERROR: Unable to build the NVIDIA kernel module interface.
Heres the contents of "/var/log/nvidia-installer.log"

Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Nov 13 10:33:10 2005

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.6.11-6mdk
  kernel output path      : (not specified)
  kernel install path     : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /root/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: 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/linux-2.6.11-6mdk' as specified by
   the '--kernel-source-path' commandline option.
-> Kernel source path: '/usr/src/linux-2.6.11-6mdk'
-> Performing CC test with CC="cc".
-> Performing rivafb check.
-> Cleaning kernel module build directory.
   executing: 'cd ./usr/src/nv; make clean'...
   rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-
   agp.o os-interface.o os-registry.o nvidia.mod.o
   rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
   rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
   rm -f -rf .tmp_versions
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make module SYSSRC=/usr/src/linux-2.6.11-6mdk S
   YSOUT=/usr/src/linux-2.6.11-6mdk'...
   
   NVIDIA: calling KBUILD...
   make CC=cc  KBUILD_VERBOSE=1 -C /usr/src/linux-2.6.11-6mdk SUBDIRS=/root/tmp
   /selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/src/nv modules
   mkdir -p /root/tmp/selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/src/nv/.tm
   p_versions
   make -f scripts/Makefile.build obj=/root/tmp/selfgz10128/NVIDIA-Linux-x86-1.
   0-7676-pkg1/usr/src/nv
   echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /root/tmp/selfgz101
   28/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/src/nv/nv_compiler.h
     cc -Wp,-MD,/root/tmp/selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/src/nv
   /.nv.o.d -nostdinc -isystem /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3/inclu
   de -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-str
   ict-aliasing -fno-common -ffreestanding -O2     -fno-omit-frame-pointer -pip
   e  -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -Iinclude/as
   m-i386/mach-default -Wdeclaration-after-statement  -I/root/tmp/selfgz10128/N
   VIDIA-Linux-x86-1.0-7676-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wsw
   itch
    -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith  -Wno-multichar  -
   Werror -O -fno-common -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOS
   E_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_N
   AMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_P
   ATCHLEVEL=7676  -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_REMAP
   _PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRE
   SENT -DNV_VMAP_4_PRESENT  -DMODULE -DKBUILD_BASENAME=nv -DKBUILD_MODNAME=nvi
   dia -c -o /root/tmp/selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/src/nv/nv
   .o /root/tmp/selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/src/nv/nv.c
   In file included from include/linux/pci.h:480,
                    from /root/tmp/selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/u
   sr/src/nv/nv-linux.h:69,
                    from /root/tmp/selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/u
   sr/src/nv/nv.c:14:
   include/linux/device.h:64: error: syntax error before "pm_message_t"
   include/linux/device.h:64: warning: function declaration isn't a prototype
   In file included from /root/tmp/selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/u
   sr/src/nv/nv-linux.h:69,
                    from /root/tmp/selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/u
   sr/src/nv/nv.c:14:
   include/linux/pci.h:670: error: syntax error before "pm_message_t"
   include/linux/pci.h:670: warning: function declaration isn't a prototype
   include/linux/pci.h:826: error: syntax error before "pm_message_t"
   include/linux/pci.h:826: warning: function declaration isn't a prototype
   In file included from include/linux/dmapool.h:14,
                    from include/linux/pci.h:863,
                    from /root/tmp/selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/u
   sr/src/nv/nv-linux.h:69,
                    from /root/tmp/selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/u
   sr/src/nv/nv.c:14:
   include/asm/io.h: In function `check_signature':
   include/asm/io.h:242: warning: wrong type argument to increment
   /root/tmp/selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/src/nv/nv.c: In fun
   ction `nvos_get_agp_device_by_class':
   /root/tmp/selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/src/nv/nv.c:467: wa
   rning: implicit declaration of function `pci_find_class'
   /root/tmp/selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/src/nv/nv.c:467: wa
   rning: assignment makes pointer from integer without a cast
   /root/tmp/selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/src/nv/nv.c:481: wa
   rning: assignment makes pointer from integer without a cast
   /root/tmp/selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/src/nv/nv.c: In fun
   ction `nvos_count_devices':
   /root/tmp/selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/src/nv/nv.c:3449: w
   arning: assignment makes pointer from integer without a cast
   /root/tmp/selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/src/nv/nv.c:3455: w
   arning: assignment makes pointer from integer without a cast
   make[3]: *** [/root/tmp/selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/src/n
   v/nv.o] Error 1
   make[2]: *** [_module_/root/tmp/selfgz10128/NVIDIA-Linux-x86-1.0-7676-pkg1/u
   sr/src/nv] Error 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [module] Error 1
   make: *** [module] Error 2
-> 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.
 
Old 11-13-2005, 03:05 PM   #5
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
I remember having the same problem with version 7167. I had to get a patch from nvidia's website. The instructions are there, too and isn't too difficult.
 
Old 11-13-2005, 03:37 PM   #6
jCarlson917
LQ Newbie
 
Registered: Oct 2005
Distribution: Mandriva 2006
Posts: 10

Original Poster
Rep: Reputation: 1
Can u give me an URL to the webpage where I can download the patch please? I looked all over nvidia.com but can't find it.

BTW is there an RPM or some other way to install nVidia driver?
 
Old 11-13-2005, 05:21 PM   #7
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
I had the exact same problem with Kernel 2.6.11 and 7676. I ended up going back to an old version of the NV driver for a temp fix. If you upgrade to a newer kernel (anything in the 13s) it should work for you, well it did when I did anyhow. If you do not want to upgrade the kernel you can go back in NVs archive and get an older version of the driver, I think I had to go back to 67 somthing, or 64, cant remember, but it was like 4 or 5 version back.

hth
 
Old 11-13-2005, 06:04 PM   #8
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Post the output of
Code:
rpm -qa | grep kernel
There are RPMs for it for Mandriva but you only get them if you're a club member or buy a powerpack boxed set.

BTW does this help: http://wiki.linuxquestions.org/wiki/...ake.2FMandriva
 
Old 11-13-2005, 11:08 PM   #9
jCarlson917
LQ Newbie
 
Registered: Oct 2005
Distribution: Mandriva 2006
Posts: 10

Original Poster
Rep: Reputation: 1
Code:
[root@192 ~]# rpm -qa | grep kernel
kernel-source-2.6-2.6.11-6mdk
kernel-2.6.11.6mdk-1-1mdk
kernel-source-stripped-2.6-2.6.11-6mdk
[root@192 ~]# uname -r
2.6.11-6mdk
[root@192 ~]#
When I searched for "kernel-source" in Rpmdrake, it displayed a package called "kernel-source-2.6-2.6.11-12mdk" Do you think it will help if I upgrade to 12mdk?

Also, when I tried an older version (1.0-6629) it gave me the same error, plus a new error about rivafb.
 
Old 11-13-2005, 11:48 PM   #10
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
When I searched for "kernel-source" in Rpmdrake, it displayed a package called "kernel-source-2.6-2.6.11-12mdk" Do you think it will help if I upgrade to 12mdk?
Not unless you also update the kernel package to 2.6.11-12mdk. This doesn't happen automatically through rpmdrake - you probably have to do something like
Code:
urpmi.update -a
urpmi kernel
Also try removing the kernel-source-stripped. I don't know why you'd need to have that installed too.
 
Old 11-14-2005, 06:37 AM   #11
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
Sorry for taking so long. This is where I got the patch for version 7167

http://www.nvnews.net/vbulletin/showthread.php?t=47405

I don't see a patch for 7676. But I've been using 7167 with kernels 2.6.11, 13, 13.2, 14 and now 14.1. I've been satisfied with the performance of my geforce2 MX400 so I hadn't bothered to look for a newer driver.
 
  


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
Problems with Nvidia-driver and kernel 2.6.14 victorh Debian 26 11-28-2005 03:09 PM
nvidia instalation problems / Sblive driver problems Colonel-1990 Linux - Software 13 02-14-2005 05:48 PM
Nvidia driver and Kernel 2.6.3 jriis Debian 6 04-15-2004 03:00 AM
kernel 2.6.3--bk8 and NVIDIA-Linux-x86-1.0-5336 video driver from Nvidia zdenkod Linux - Hardware 2 03-09-2004 05:38 AM
help!--nvidia driver for 2.6 kernel ?! oskernel Linux - Hardware 1 10-30-2003 05:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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