LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-14-2005, 10:11 AM   #1
magisbladius
LQ Newbie
 
Registered: Apr 2005
Posts: 3

Rep: Reputation: 0
Failed to load the NVIDA kernal module


I installed the NVIDIA driver and it worked for several reboots. Now it results in a "failed to load the NVIDA kernal module". Then I tried to reinstall it and it said to locate the source kernal. So I found out the following and was wondering how to do it:

Quote:
If you are going to install nVidia display drivers, copy the new kernel source directory to /usr/src and set up the "linux" symlink in that directory to point to the new kernel source directory, then run the installer as you normally would.
I didn't do any kernal recompile or kernal upgrades, and I'm confused about the above instructions.
 
Old 04-14-2005, 10:51 AM   #2
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,845

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
If you had Nvidia installed and working, then there is another problem. What I would do is uninstall the driver, then reinstall again. Just append "--uninstall" (without quotes) to the Nvidia run script. Then re-install as normal.
 
Old 04-14-2005, 01:37 PM   #3
magisbladius
LQ Newbie
 
Registered: Apr 2005
Posts: 3

Original Poster
Rep: Reputation: 0
I uninstalled it, then when trying to install it resulted in the same error requesting to specify the correct source kernel directory.
 
Old 04-14-2005, 02:01 PM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Try :
Code:
sh NVIDIA-Linux-x86-XXX.pkg.run -k $(uname -r)
 
Old 04-14-2005, 03:09 PM   #5
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
from " Makefile-kbuild " script from nvidia installer :

-------------
# Determine location of the Linux kernel source tree. Allow users to override
# the default (i.e. automatically determined) kernel source location with the
# SYSSRC directive; this new directive replaces NVIDIA's SYSINCLUDE.
#

KERNEL_MODLIB := /lib/modules/$(shell uname -r)

ifdef SYSSRC
KERNEL_SOURCES := $(SYSSRC)
KERNEL_HEADERS := $(KERNEL_SOURCES)/include
else
KERNEL_UNAME := $(shell uname -r)
KERNEL_SOURCES := $(shell test -d $(KERNEL_MODLIB)/source && echo $(KERNEL_MODLIB)/source || echo $(KERNEL_MODLIB)/build)
KERNEL_HEADERS := $(KERNEL_SOURCES)/include
endif
-------------

It will find the kernel-sources following the link : " /lib/modules/`uname -r`/source
or " /lib/modules/`uname -r`/build "

check if those links are correct and , if so , just run the installer.

egag
 
Old 04-14-2005, 03:12 PM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
You right egag uname -r is here but for some reason, sometimes the
installer just fails if you don't tell it -k <kernel version>
 
Old 04-14-2005, 03:42 PM   #7
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
are you sure that it is " -k <kernel version> " ?

in the info inside the main script it sais :
---------
"--kernel-source-path=[KERNEL SOURCE PATH]"
" The directory containing the kernel source files that should be"
" used when compiling the NVIDIA kernel module. When not"
" specified, the installer will use '/lib/modules/\`uname"
" -r\`/build', if that directory exists. Otherwise, it will use"
" '/usr/src/linux'."
----------

i think this description is written by another person than the writer of the build script,
as i couldn't find a " /usr/src/linux " path in the build script.
so the " -k " option might also work ( and maybe "--kernel-source-path=[KERNEL SOURCE PATH]" will not )

edit : " -k <kernel version> " will work. just see it....

egag

Last edited by egag; 04-14-2005 at 03:47 PM.
 
Old 04-14-2005, 04:20 PM   #8
magisbladius
LQ Newbie
 
Registered: Apr 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Code:
sh NVIDIA-Linux-x86-XXX.pkg.run -k $(uname -r)
Helped me to reinstall it, but did not help with the kernal
problem.....then I looked at the very first failed message and it was

Code:
~/nvidia.o: init_module: no such device
So I remembered from my my previous Debian install (before Slackware) that I used "nv" instead of "nvidia" for the drivers. So I went to xorg.conf and changed

Code:
Driver "nvidia"
to

Code:
Driver "nv"
Now it works!
 
Old 04-14-2005, 04:24 PM   #9
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
yes , that works.
...only.....now your using the xorg-driver (nv ) and not the nvidia one. (nvidia ).

egag
 
Old 04-14-2005, 04:27 PM   #10
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Try :modprobe nvidia
and change nv to nvidia in xorg.conf, then startx
 
  


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
Xorg -- (EE) Failed to load module "glx" (loader failed, 7) windowsrefugeeX Linux - Software 10 09-23-2009 05:51 PM
xorg: Failed to load module... NullDevice23 Linux - Hardware 4 08-05-2006 09:01 AM
ver:10.2, after startx, (EE)Failed to load module ...\..\libglx.a catfox Mandriva 5 07-07-2005 10:40 AM
X11 - failed to load module keyboard hnad Slackware 2 09-15-2004 05:12 AM
(EE) Failed to load module error Seventh Linux - Newbie 8 02-23-2004 02:16 PM

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

All times are GMT -5. The time now is 02:18 AM.

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