LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-02-2004, 07:04 PM   #1
Marcan
LQ Newbie
 
Registered: Aug 2003
Distribution: Slackware 9.0
Posts: 17

Rep: Reputation: 0
Problem installing nvidia drivers in 2.6.0


Got this big problem. Asked people in a swedish forum but they didn't help me much.

Now to the problem. When I try installing nvidia drivers for my graphics card in linux I recieve errors.
I followed a readme from minion.de (minion.de/files/NVIDIA_kernel-1.0-5328.README)

And did what it told me:


Code:
   # sh NVIDIA-Linux-x86-1.0-5328-pkg0.run --extract-only
   # cd NVIDIA-Linux-x86-1.0-5328-pkg0
   # tar jxf ../NVIDIA-Linux-x86-1.0-5328-pkg#.tar.bz2
   # cd usr/src/nv
   # rm -f precompiled/*
   # patch -p1 < ../../../../NVIDIA_kernel-1.0-5328-2.6.diff
   # ln -s Makefile.kbuild Makefile
   # cd ../../../..
   # NVIDIA-Linux-x86-1.0-5328-pkg0/nvidia-installer
Then I got this (taken directly from/var/log/nvidia-installer.log):

Quote:
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 (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.0/build'
-> Performing cc_version_check with CC="cc".
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
-> Building kernel module:
executing: 'cd ./usr/src/nv; make nvidia.ko SYSSRC=/lib/modules/2.6.0/build'
...
make[1]: Entering directory `/usr/src/linux-2.6.0'
*** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
make[2]: `arch/i386/kernel/asm-offsets.s' is up to date.
echo \#define NV_COMPILER \"`gcc -v 2>&1 | tail -n 1`\" > /root/download/NVI
DIA/NVIDIA-Linux-x86-1.0-5328-pkg0/usr/src/nv/nv_compiler.h
CC [M] /root/download/NVIDIA/NVIDIA-Linux-x86-1.0-5328-pkg0/usr/src/nv/nv
.o
CC [M] /root/download/NVIDIA/NVIDIA-Linux-x86-1.0-5328-pkg0/usr/src/nv/os
-agp.o
CC [M] /root/download/NVIDIA/NVIDIA-Linux-x86-1.0-5328-pkg0/usr/src/nv/os
-interface.o
CC [M] /root/download/NVIDIA/NVIDIA-Linux-x86-1.0-5328-pkg0/usr/src/nv/os
-registry.o
LD [M] /root/download/NVIDIA/NVIDIA-Linux-x86-1.0-5328-pkg0/usr/src/nv/nv
idia.o
Building modules, stage 2.
MODPOST
CC /root/download/NVIDIA/NVIDIA-Linux-x86-1.0-5328-pkg0/usr/src/nv/nv
idia.mod.o
LD [M] /root/download/NVIDIA/NVIDIA-Linux-x86-1.0-5328-pkg0/usr/src/nv/nv
idia.ko
make[1]: Leaving directory `/usr/src/linux-2.6.0'
-> done.
-> Kernel module compilation complete.
ERROR: Unable to load the kernel module 'nvidia.ko'. 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; 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' commandline option.
-> Kernel module load error: insmod: QM_MODULES: Function not implemented
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 nvidia.com.
Hope this will give you the info you need to help me.
 
Old 01-02-2004, 07:16 PM   #2
ash4stuff
Member
 
Registered: Aug 2003
Location: Viena
Distribution: Debian Sarge
Posts: 139

Rep: Reputation: 15
ok just a question, is this a new sistem or did you have the nvidia drivers installed on 2.4, and where they installed using the official nvidia installer?
 
Old 01-02-2004, 07:18 PM   #3
Marcan
LQ Newbie
 
Registered: Aug 2003
Distribution: Slackware 9.0
Posts: 17

Original Poster
Rep: Reputation: 0
It's a new system. Just after installing slackware I compiled the kernel and now I'm trying to get nvidia drivers to work.
 
Old 01-02-2004, 07:30 PM   #4
Marcan
LQ Newbie
 
Registered: Aug 2003
Distribution: Slackware 9.0
Posts: 17

Original Poster
Rep: Reputation: 0
I used files from minion.de and this site: http://www.sh.nu/download/nvidia/linux-2.6/ (5328)
 
Old 01-03-2004, 05:23 AM   #5
ash4stuff
Member
 
Registered: Aug 2003
Location: Viena
Distribution: Debian Sarge
Posts: 139

Rep: Reputation: 15
# sh NVIDIA-Linux-x86-1.0-5328-pkg0.run --extract-only
# cd NVIDIA-Linux-x86-1.0-5328-pkg0
# tar jxf ../NVIDIA-Linux-x86-1.0-5328-pkg#.tar.bz2
# cd usr/src/nv
# rm -f precompiled/*
# patch -p1 < ../../../../NVIDIA_kernel-1.0-5328-2.6.diff
# ln -s Makefile.kbuild Makefile
# cd ../../../..
# NVIDIA-Linux-x86-1.0-5328-pkg0/nvidia-installer

from what I see here, you patched the file you downloaded from http://www.sh.nu/download/nvidia/linux-2.6/

but i think you followed the wrong directions. The files that are at http://www.sh.nu/download/nvidia/linux-2.6/ are alredy patched. You only have to install them if they were a normal nvidia installer

First, you have to have your compiled kernel source or kernel headers linked to /usr/src/linux

then you just run the installer, without --extract-only
and then just follow the installer steps

Be careful at minion.de, there are many different instructiones on the site for diffeerent purposes..

ashley
I might be wrong, but this is how I understand it.
 
Old 01-03-2004, 10:22 AM   #6
Marcan
LQ Newbie
 
Registered: Aug 2003
Distribution: Slackware 9.0
Posts: 17

Original Poster
Rep: Reputation: 0
I don't quite understand the
Quote:
First, you have to have your compiled kernel source or kernel headers linked to /usr/src/linux
bit..

You mean I should download a kernel first? A tarball because I keep getting errors with them
 
Old 01-03-2004, 12:24 PM   #7
Superdude
Member
 
Registered: Oct 2003
Distribution: Slackware 9.0
Posts: 47

Rep: Reputation: 15
I had the exact same problem when installing the nvidia driver with the 2.6.0 kernel.

When switching to the 2.6.0 kernel, you need to install module-init-tools, otherwise you will get QM_MODULES: function not implemented when you try to load a module.

http://www.kernel.org/pub/linux/kern...rusty/modules/
 
Old 01-03-2004, 12:42 PM   #8
Marcan
LQ Newbie
 
Registered: Aug 2003
Distribution: Slackware 9.0
Posts: 17

Original Poster
Rep: Reputation: 0
What'd you do then? Did you run
Code:
# sh NVIDIA-Linux-x86-1.0-5328-pkg0.run --extract-only
# cd NVIDIA-Linux-x86-1.0-5328-pkg0
# tar jxf ../NVIDIA-Linux-x86-1.0-5328-pkg#.tar.bz2
# cd usr/src/nv
# rm -f precompiled/*
# patch -p1 < ../../../../NVIDIA_kernel-1.0-5328-2.6.diff
# ln -s Makefile.kbuild Makefile
# cd ../../../..
# NVIDIA-Linux-x86-1.0-5328-pkg0/nvidia-installer
?
 
Old 01-03-2004, 01:07 PM   #9
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
Quote:
Originally posted by Marcan
I don't quite understand the bit..

You mean I should download a kernel first? A tarball because I keep getting errors with them
Download the kernel source, untar it to /usr/src/[name], then do:
Code:
ln -sf [name] linux
 
Old 01-03-2004, 03:40 PM   #10
Marcan
LQ Newbie
 
Registered: Aug 2003
Distribution: Slackware 9.0
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for all help, finally I made it
 
Old 07-03-2006, 05:08 AM   #11
haibo
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Rep: Reputation: 0
Problem with installing nvidia driver under mandriva 2006

I am newbie fo linux. I try to install nvidia driver to mandriva 2006. Using "uname -a" to get "2.6.12-12mdksmp", then "urpmi kernel-source", exit X and type init 3 at root prompt. "sh NVIDIA-Linux-x86-1.0-8762-pkg1.run" and successfully install nvidia as well as editing or add "Option "NvAGP" "3" or "0 1 2" (test each seperately) and add nvidia under the head of modprobe.proload file. When startx, got the following message: "(EE) NVIDIA(0): Failure to construct a valid mode list:no modes remaining. (EE) NVIDIA(0): ***Aborting **** (EE) Screen found, but none have a usable configuration." Fatal server error: no screen found.
I do not know what I did wrong, please give any suggestions and advices! Thanks in advance!
 
Old 07-05-2006, 07:27 AM   #12
haibo
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Rep: Reputation: 0
Quota:
When switching to the 2.6.0 kernel, you need to install module-init-tools, otherwise you will get QM_MODULES: function not implemented when you try to load a module.

Hi Experts,

I try to install module-init-tools, get the following error messages:

gcc -g -O2 -Wunused -Wall -o modinfo modinfo.o zlibsupport.o
gcc -g -O2 -Wunused -Wall -o insmod.static -static insmod.o
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [insmod.static] Error 1

BTW, Where can I download the tar file of kernel source? Usually I got the kernel-source-blah.rpm. I am using Mandriva 2006, kernel-2.6.12-12mdk and try to install nvidia driver. Thanks in advance.
 
Old 07-20-2006, 02:55 AM   #13
white_cafee
LQ Newbie
 
Registered: Jul 2006
Posts: 12

Rep: Reputation: 0
Hy there, I've had the same problem
Here are somme solutions for this :
http://www.softwarecity.org/forum/vi...php?pid=22#p22
 
  


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
Problem installing NVIDIA drivers (MANDRAKE 10.0) mddb Mandriva 10 11-26-2004 08:59 AM
problem installing nvidia drivers.. kurrupt Debian 3 07-25-2004 07:44 AM
Problem while installing nvidia drivers... psydude Linux - Newbie 2 08-30-2003 02:50 PM
problem..installing nvidia drivers ironz Linux - Newbie 5 06-30-2003 11:15 PM
Problem installing NVIDIA 43.49 drivers Aurra Sing Linux - Software 5 04-25-2003 06:44 PM


All times are GMT -5. The time now is 02:21 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration