LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-15-2010, 10:05 PM   #1
croftad1
LQ Newbie
 
Registered: Sep 2010
Distribution: slackware
Posts: 6

Rep: Reputation: 0
Unable to load module nvidia.ko after kernel recompile


I have a fresh install of slackware 12.2 on my laptop using the stock, huge-smp 2.6.27.7 kernel. I have attempted to recompile the kernel to familiarize myself with the process. To start, I have simply changed the local version to "-custom" and made few changes to the current config. I'm following the steps posted here verbatim with the exception of setting up the environment and downloading new sources:

http://alien.slackbook.org/dokuwiki/...kernelbuilding

Booting with the new kernel seems to be ok. I'm even able to recompile the nvidia module using the installer directly from nvidia's web site. However, I would like to be able to boot back to the default kernel and use the nvidia driver. When I reboot using the original kernel and try to rerun the nvidia installer, I run into the following:

"Unable to load module 'nvidia.ko'. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb/nvidiafb is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA device(s)."

So far, I've tried to verify that none of the mentioned modules are conflicting by issuing lsmod. None are loaded. I've also tried to ensure there are no compiler version conflicts:

Code:
root@test1:~# cat /proc/version
Linux version 2.6.27.7-custom (root@test1) (gcc version 4.2.4) #1 SMP
Wed Sep 15 21:51:50 EDT 2010
root@test1:~# gcc -v
Reading specs from /usr/lib/gcc/i486-slackware-linux/4.2.4/specs
Target: i486-slackware-linux
Configured with: ../gcc-4.2.4/configure --prefix=/usr --enable-shared
--enable-languages=ada,c,c++,fortran,java,objc --enable-threads=posix
--enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose
--with-arch=i486 --target=i486-slackware-linux
--host=i486-slackware-linux
Thread model: posix
gcc version 4.2.4
I can get past the error by running the installer with the -k $(uname -r) argument, but the module fails to load on startx saying "invalid module format".

I'm sure something obvious is escaping me, but all the googling I've done so far has not helped me. I'm able to restore my system to a usable state, but am mainly interested in understanding what I'm doing wrong and how to fix it. I'll be happy to post anything else necessary. Just tell me what you want.
 
Old 09-16-2010, 12:42 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
What's the output of "ls -l /usr/src/" ?
 
Old 09-16-2010, 04:38 PM   #3
croftad1
LQ Newbie
 
Registered: Sep 2010
Distribution: slackware
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for replying, Bruce. Here is the output you asked for.

Code:
root@test1:~# ls -l /usr/src
total 8
lrwxrwxrwx  1 root root   14 2010-09-14 15:38 linux -> linux-2.6.27.7/
drwxr-xr-x 23 root root 4096 2010-09-15 22:01 linux-2.6.27.7/
drwxr-xr-x  7 root root 4096 2008-10-22 18:02 rpm/
 
Old 09-16-2010, 07:26 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Which version of the nVidia driver are you using and which card do you have?

Last edited by Bruce Hill; 09-16-2010 at 08:08 PM. Reason: added which card
 
Old 09-16-2010, 09:21 PM   #5
croftad1
LQ Newbie
 
Registered: Sep 2010
Distribution: slackware
Posts: 6

Original Poster
Rep: Reputation: 0
Vidao card is nVidia Corporation GeForce 8400M GS and the driver is NVIDIA-Linux-x86-256.53.run.
 
Old 09-17-2010, 02:51 AM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Honestly I'm grasping at straws. Have you updated your kernel
headers over time? Check "ls /var/log/packages/kernel-headers*"

Might read Common Problems and Known Issues in case
something there sticks out to you.

Last edited by Bruce Hill; 09-17-2010 at 02:53 AM.
 
  


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
Unable to load kernel module sirajrathore Linux - Networking 2 09-12-2009 05:27 PM
Unable to load the kernel module 'nvidia.ko' in FC5! saquib Fedora 2 02-18-2007 07:12 PM
ERROR: Unable to load the kernel module 'nvidia.ko' Dachy Slackware 3 07-15-2006 02:10 PM
Unable to load kernel module nvidia-o mattv Linux - Newbie 3 02-26-2004 11:05 AM
Unable to load kernel module nvidia.o innovest_11 Linux - Newbie 2 02-01-2004 11:08 AM

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

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