Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old October 10th, 2002, 12:29 PM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 7
NVdriver kernel module doesn't load

First I wasn't able to to even start OpenGL applications,so I installed Mesa 4 and now I can run Opengl apps but its damn slow (even with low resolutions),so I assume that I need drivers for my Geforce 256.Under Windows I was able to run all the new games(RtCW,RF,HL) with high resolutions(OpenGL & DirectX),so it isnt my hardware.So I went to Nvidias site and downloaded NVchooser and downloaded the RPM's that it told me.I went to a lower boot level 3 (is that the right one?) and installed them,then edited my XF86Config-4 file (like it says in the Nvidia README).But when I rebooted it said that X couldnt be started and I was in a tty.According to my XFree86.0.log file the NVdriver kernel module couldnt be loaded,fortunaly the Nvidia README says something about it:

Nothing will work if the NVdriver kernel module doesn't function
properly. If you see anything in the X log file like "(EE) NVIDIA(0):
Failed to initialize the NVdriver kernel module!" then there is
most likely a problem with the NVdriver kernel module. First, you
should verify that if you installed from rpm that the rpm was built
specifically for the kernel you are using. You should also check
that the module is loaded ('/sbin/lsmod'); if it is not loaded try
loading it explicitly with 'insmod' or 'modprobe' (be sure to exit the
X server before installing a new kernel module). If you receive errors
about unresolved symbols, then the kernel module has most likely been
built using header files for a different kernel revision than what
you are running. You can explicitly control what kernel header files
are used by building NVdriver from the NVIDIA_kernel tar file with:
'make install SYSINCLUDE=/path/to/kernel/headers'.

Please note that the convention for the location of kernel
header files is in a state of transition, as is the location
of kernel modules. If the kernel module fails to load properly,
modprobe/insmod may be trying to load an older kernel module (assuming
you've upgraded). cd'ing into the directory with the new kernel
module and doing 'insmod ./NVdriver' may help.

Another cause may be that the /dev/nvidia* device files may
be missing.

Finally, the NVdriver may print error messages indicating a problem --
to view these messages please check /var/log/messages, or wherever
syslog is directed to place kernel messages.

According to /sbin/lsmod the module is NOT loaded,but how do I explicitily load it?Can someone tell me how I can install the drivers so that I can play OpenGL games?
Thanks in advance.

Reply With Quote
  #2  
Old October 10th, 2002, 12:35 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
with "insmod" (if you supply the full path) or "modprobe" for making linux search for it. (just as nVidia said in the text...)
and you should run "depmod" after installing new modules, so modprobe can find it.

if you donīt know where the module went, you can list the content of a rpm-package like this:
say the package is called nvidia.rpm, you type "rpm -q -l nvidia.rpm"
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #3  
Old October 10th, 2002, 01:38 PM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 7
I tried "depmod" and then "modprobe NVdriver" but it says that it cant find it.

When I do rpm -q -l on the nvidia kernel rmp,I get an message saying that a newer version is installed and not this rpm (so I dont know where it is).It says that the glx and kernel rpms should be the same version,and the two that the nvchooser gave me are,but appearantly I have some other version installed.So I downloaded that version and installed it,and it told me that its ready installed,so I tried -g -l,but then it said that the package wasnt installed.
This is getting really really confusing,I have absolutely no idea what I should do (and it has been months since I was able to play 3d games).

Last edited by Tuxie : October 10th, 2002 at 01:48 PM.

Reply With Quote
  #4  
Old October 10th, 2002, 01:42 PM
riv's Avatar
riv riv is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 463 riv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 37 m 50 sec
Reputation Power: 8
The NVchooser doesn't always work quit well. Which distro do you have? Try the tarball.

And look under /lib/modules/<kernel version> and see if it's there.
__________________
Words must be weighed, not counted.

Reply With Quote
  #5  
Old October 10th, 2002, 01:50 PM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 7
I have Red Hat 7.3,what am I suposed to look for that in that directory?

Reply With Quote
  #6  
Old October 10th, 2002, 05:20 PM
riv's Avatar
riv riv is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 463 riv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 37 m 50 sec
Reputation Power: 8
The NV module. While you're at it you'll see if you typed the correct module name

Reply With Quote
  #7  
Old October 11th, 2002, 03:14 PM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 7
it doesnt seem like theres a file named NVdriver,so i am stuck again.

Reply With Quote
  #8  
Old October 11th, 2002, 03:28 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
1. deinstall the driver that is currently installed.
rpm -q -a|grep -i nvidia
(find the name of the package here)
rpm -E nvidia.rpm
(maybe -D, maybe -U ; dunno, canīt remember nor lookup since iīm not using rpm anymore... "man rpm" will help you)
2. install your new driver
rpm -I nvidia-new.rpm
(again, maybe itīs "rpm -i" - find the install command yourself)
3. make the devices (mknod -c 0 0 /dev/nvidia) - see the supplied "INSTALL" or "README" and "man mknod" for the correct major and minor numbers (0 0 here)
4. setup the boot-scripts to load your driver on boot:
/etc/rc.d/boot.local:
/sbin/insmod /lib/modules/<kernel-version>/NVdriver.o
5. THEN setup X to use it. as nVidia said - if you canīt make the kernel module work, the X server wonīt work either.

if you cannot find the NVdriver.o, try this:
find /lib -name NVDriver.o

Reply With Quote
  #9  
Old October 11th, 2002, 03:29 PM
riv's Avatar
riv riv is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 463 riv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 37 m 50 sec
Reputation Power: 8
Do you have anything that says "nv" on it?

Reply With Quote
  #10  
Old October 11th, 2002, 03:34 PM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 7
Wait,I have NVdriver in the directory 2.4.18-10/kernel/drivers/video/NVdriver,but when I do uname it says that I am using 2.4.18-3 (I have two folder, 2.4.18-3 and 2.4.18-10).

Reply With Quote
  #11  
Old October 11th, 2002, 03:36 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
try to "insmod" it. if it fails, you have to get the source distribution and compile yourself. maybe it doesīnt work. since you have a -3 in your kernel version, i assume this is not a standard kernel maybe it wonīt compile at all. try to get the "official" 2.4.18. then it will work 99.5% (i never say anything is 100% )
[edit]
maybe try to get 2.4.18-10 kernel...
[/edit]

Last edited by M.Hirsch : October 11th, 2002 at 03:39 PM.

Reply With Quote
  #12  
Old October 11th, 2002, 03:41 PM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 7
I havent done anything with my kernel,this is the one that came with my RH 7.3.Hmmm,I don't think that I know how to compile/install another kernel version(tried it a couple of times some time ago,ended up ****ing it up,so I reinstalled RH).
Btw,I find this to be getting a bit complicated,just for installing a stupid card driver,stupid nvidia people.Not that I dont like a challange,but I have been trying to do this for months,and I havent played Tuxracer for such a long time!!

Last edited by Tuxie : October 11th, 2002 at 03:45 PM.

Reply With Quote
  #13  
Old October 11th, 2002, 03:48 PM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 7
When I try to install the new NVIDIA_kernel...rpm I always get:
Preparing... ########################################### [100%]
package NVIDIA_kernel-1.0-3123.rh73up_2.4.18_10 (which is newer than NVIDIA_kernel-1.0-3123.rh73up) is already installed

And always when I try to install the NVIDIA_GLX...rpm I get:
Preparing... ########################################### [100%]
package NVIDIA_GLX-1.0-3123 is already installed

Find /lib -name NVDriver.o returned to results.

Reply With Quote
  #14  
Old October 11th, 2002, 03:51 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
did you UNINSTALL the old version first?
if not, you have to use "rpm -U" instead of "rpm -i" to UPGRADE instead of INSTALL.

Reply With Quote
  #15  
Old October 11th, 2002, 03:54 PM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 7
The problem is that when I do rpm -U,I get the same message.

While according to the readme:
$ rpm -Uvh NVIDIA_kernel.i386.rpm should upgrade the it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > NVdriver kernel module doesn't load


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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