LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-18-2005, 07:11 PM   #1
Vizy
LQ Newbie
 
Registered: Oct 2003
Location: Slovenia
Posts: 23

Rep: Reputation: 15
NVIDIA module problem - Slackware 10.1 & kernel 2.6.**


Hi,

I have upgraded my kernel from 2.4.29 to 2.6.10, 2.6.11, 2.6.12 following a couple of different guides from:

http://www.linuxquestions.org/questions/answers/408

and

http://64.179.4.149/questions/history/127095

to

http://forums.scotsnewsletter.com/lo...hp/t11484.html

...and everytime everything goes great untill i try to install NVIDIA drivers where i get the following error: cannot build kernel module, and then the installer exits.

i get the same problem everytime so i guess i must be missing something when compiling.

I update the kernel right after slackware installs, i even dont launch Xserver or anything so older NVIDIA drivers are not the problem either.

thnx for the help guys

Ok here is the log of this miserable thing

Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu May 19 02:14:07 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     : false
  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      : (not specified)
  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.
-> There appears to already be a driver installed on your system (version: 1.0-
   7174).  As part of installing this driver (version: 1.0-7174), 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 source path: '/lib/modules/2.6.11.2/source'
-> 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=/lib/modules/2.6.11.2/source
   SYSOUT=/lib/modules/2.6.11.2/build'...
   
   NVIDIA: calling KBUILD...
   make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.11.2/build KBUILD_VERBOSE=1 -C /li
   b/modules/2.6.11.2/source SUBDIRS=/tmp/selfgz3973/NVIDIA-Linux-x86-1.0-7174-
   pkg1/usr/src/nv modules
   make -C /lib/modules/2.6.11.2/build		\
   KBUILD_SRC=/usr/src/linux-2.6.11.2	     KBUILD_VERBOSE=1	\
   KBUILD_CHECK= KBUILD_EXTMOD="/tmp/selfgz3973/NVIDIA-Linux-x86-1.0-7174-pkg1/
   usr/src/nv"	\
           -f /usr/src/linux-2.6.11.2/Makefile modules
   /usr/src/linux-2.6.11.2/Makefile:531: /usr/src/linux-2.6.11.2/arch/i386/Make
   file: No such file or directory
   make[3]: *** No rule to make target `/usr/src/linux-2.6.11.2/arch/i386/Makef
   ile'.  Stop.
   make[2]: *** [modules] 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.

Last edited by Vizy; 05-18-2005 at 07:19 PM.
 
Old 05-19-2005, 01:52 AM   #2
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
Quote:
-> 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)
I always answer NO to this question................
 
Old 05-19-2005, 01:58 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,741

Rep: Reputation: 1838Reputation: 1838Reputation: 1838Reputation: 1838Reputation: 1838Reputation: 1838Reputation: 1838Reputation: 1838Reputation: 1838Reputation: 1838Reputation: 1838
Before running the Nvidia installer, run:
Code:
modprobe -q agpgart
Regards
 
Old 05-19-2005, 03:34 AM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
Quote:
I have upgraded my kernel from 2.4.29 to 2.6.10, 2.6.11, 2.6.12 following a couple of different guides from:
So which kernel is running actually ? 2.6.12 ?
if yes, try run the installer with :
Code:
sh NVIDIA-XXX.pkg.run -k 2.6.12
 
Old 05-19-2005, 09:59 AM   #5
Vizy
LQ Newbie
 
Registered: Oct 2003
Location: Slovenia
Posts: 23

Original Poster
Rep: Reputation: 15
Hi again.

yes im running the 2.6.12 kernel and nothing of the above works

i tried modprobe -q agpgart before running the installer ....still the sam problem

what should this modprobe do ?


if i do lsmod i still see agpgart running .... should it be running ?

tried lsmod on 2.4.29 kernel & there's no agpgart instead i have nvidia module installed.


How can disable/remove agpgart from 2.6.*
 
Old 05-19-2005, 10:32 AM   #6
samac
Senior Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Linux Mint 17.1
Posts: 1,424

Rep: Reputation: 138Reputation: 138
Code:
NVIDIA: calling KBUILD...
   make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.11.2/build KBUILD_VERBOSE=1 -C /li
   b/modules/2.6.11.2/source SUBDIRS=/tmp/selfgz3973/NVIDIA-Linux-x86-1.0-7174-
   pkg1/usr/src/nv modules
   make -C /lib/modules/2.6.11.2/build		\
   KBUILD_SRC=/usr/src/linux-2.6.11.2	     KBUILD_VERBOSE=1	\
   KBUILD_CHECK= KBUILD_EXTMOD="/tmp/selfgz3973/NVIDIA-Linux-x86-1.0-7174-pkg1/
   usr/src/nv"	\
           -f /usr/src/linux-2.6.11.2/Makefile modules
   /usr/src/linux-2.6.11.2/Makefile:531: /usr/src/linux-2.6.11.2/arch/i386/Make
   file: No such file or directory
It looks like the compiler cannot find your source files, did you delete them after upgrading your kernel, or did you forget to symlink /usr/src/linux/ to /usr/src/linux-2.6.11.2/ ?

samac
 
Old 05-19-2005, 10:46 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,741

Rep: Reputation: 1838Reputation: 1838Reputation: 1838Reputation: 1838Reputation: 1838Reputation: 1838Reputation: 1838Reputation: 1838Reputation: 1838Reputation: 1838Reputation: 1838
Quote:
Kernel source path: '/lib/modules/2.6.11.2/source
Nvidia installer uses kernel version 2.6.11.2 and not 2.6.12 (which btw is in rc4 state). You can verify your kernel version running:
Code:
uname -r
As for the "modprobe -q agrgart" I read about it searching the nvidia forums, because I had the same problem as you. I've compiled my 2.6.11.10 kernel with these options:
CONFIG_AGP=m
CONFIG_AGP_INTEL=m (since my mobo uses INTEL chipset)
CONFIG_AGP_NVIDIA=m
 
Old 05-20-2005, 09:58 AM   #8
ramdog
LQ Newbie
 
Registered: May 2005
Distribution: Slack 10.1
Posts: 12

Rep: Reputation: 0
Hi,

I had the same problem as you. Searching thru the 'Slackware FAQ' on this forum, I found:

sh blah-blah.run -k 2.6.11.9

That worked perfectly for me.
 
  


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
(EE) NVIDIA(0): Failed to initialize the NVIDIA Kernel module latino Linux - Hardware 5 06-03-2008 03:55 AM
NVIDIA driver problem on slackware 10.1 kernel 2.6.12.5 kuronyu Linux - Hardware 20 10-24-2005 01:12 PM
install problem: Suse 9.2 AMD64 Nvidia 'forcedeth' kernel module croutonjones SUSE / openSUSE 1 01-16-2005 04:50 PM
Slackware 9.1 w/ 2.6.2 kernel & nvidia drivers - need assistance r_jensen11 Linux - Hardware 8 02-11-2004 07:40 PM
(EE) NVIDIA (0) Failed to initialize the NVIDIA kernel module Isjhe Mandriva 14 09-25-2003 09:29 PM

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

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