Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 02-04-04, 03:25 PM   #1
archlyn
Registered User
 
Join Date: Feb 2004
Posts: 5
Default Kernel Module install woes.

I downloaded the newest nvidia drivers (1.0.5336) and went to install them,only to find that they couldn't install the kernel module (it goes through building the interface fine and then chokes).

if I run the NVIDIA installer with the --kernel-name= option, then the module is built and supposedly installed, but if you start X using the new nVidia driver then X crashes saying that it couldn't initilize the module

I tried to do

root@localhost:~# insmod /lib/modules/2.6.2/kernel/drivers/video/nvidia.ko

and got

insmod: error inserting '/lib/modules/2.6.2/kernel/drivers/video/nvidia.ko': -1 Invalid module format

During the install procedure, I had to add the --kernel-name= commandline option in order to get it to build the kernel modules

Help please!

I'll post my xfree86 log in a sec, right now I'm using the default nv xfree86 driver
__________________
AMD AthlonXP 2400+ @ 2.0ghz | 512mb Kingston DDR RAM | Creative Labs Soundblaster Live 5.1 | GeForce 4 TI 4200 w/64mb

OSes:
Windows XP w/ SP1
Slackware 9.1 w/ 2.6.2 kernel
archlyn is offline   Reply With Quote
Old 02-04-04, 03:33 PM   #2
archlyn
Registered User
 
Join Date: Feb 2004
Posts: 5
Default here's the log.

Apparently you can't edit posts to attach files, here's the log:
Attached Files
File Type: log xfree86.0.log (28.8 KB, 100 views)
__________________
AMD AthlonXP 2400+ @ 2.0ghz | 512mb Kingston DDR RAM | Creative Labs Soundblaster Live 5.1 | GeForce 4 TI 4200 w/64mb

OSes:
Windows XP w/ SP1
Slackware 9.1 w/ 2.6.2 kernel
archlyn is offline   Reply With Quote
Old 02-04-04, 04:27 PM   #3
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default

Check the output of dmesg for additional error messages after the X startup failure - chances are the kernel detected a kernel version magic mismatch (e.g. a compiler mismatch).
zander is offline   Reply With Quote
Old 02-04-04, 05:44 PM   #4
archlyn
Registered User
 
Join Date: Feb 2004
Posts: 5
Default

Your right, there were magic version mismatches:

Code:
nvidia: version magic '2.6.2 SMP preempt K7 gcc-3.2' should be '2.6.2 SMP preempt K7 gcc-3.3'
nvidia: version magic '2.6.2 SMP preempt K7 gcc-3.2' should be '2.6.2 SMP preempt K7 gcc-3.3'
How do I fix them? I compiled the modules with the same version of gcc. The kernel modules were compiled only an hour or so after compiling and installing the new kernel.

Just in case, I'll attach a copy of my dmesg output
Attached Files
File Type: log dmesg.log (15.0 KB, 96 views)
__________________
AMD AthlonXP 2400+ @ 2.0ghz | 512mb Kingston DDR RAM | Creative Labs Soundblaster Live 5.1 | GeForce 4 TI 4200 w/64mb

OSes:
Windows XP w/ SP1
Slackware 9.1 w/ 2.6.2 kernel
archlyn is offline   Reply With Quote
Old 02-05-04, 03:23 AM   #5
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default

You didn't build nvidia.ko with the same compiler - if you had, the kernel would have loaded the module just fine. Make sure that gcc -v returns the desired versions or use CC to specify the correct compiler.
zander is offline   Reply With Quote
Old 02-05-04, 07:07 AM   #6
archlyn
Registered User
 
Join Date: Feb 2004
Posts: 5
Default

How do I do that? (I assume CC is a command that must be run?) Can you (or someone else) post an example of this?
__________________
AMD AthlonXP 2400+ @ 2.0ghz | 512mb Kingston DDR RAM | Creative Labs Soundblaster Live 5.1 | GeForce 4 TI 4200 w/64mb

OSes:
Windows XP w/ SP1
Slackware 9.1 w/ 2.6.2 kernel
archlyn is offline   Reply With Quote
Old 02-05-04, 07:14 AM   #7
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default


# cat /proc/version
Linux version 2.6.2-bk1-ck1 (root@wolf) (gcc version 2.95.4 20011002 (Debian prerelease)) #1 SMP Thu Feb 5 11:39:20 CET 2004
# gcc -v 2>&1 | tail -1
gcc version 3.3.3 20040125 (prerelease) (Debian)
# gcc-2.95 -v 2>&1 | tail -1
gcc version 2.95.4 20011002 (Debian prerelease)
# CC=gcc-2.95 sh NVI...
zander is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mageia 2 Cannot Install 71.86.15 for Riva TNT/TNT2 kbulgrien NVIDIA Linux 3 06-29-12 08:27 AM
Corrupted display - 302.17 - Dell Precision T3500 (G98 [Quadro NVS 295]) gbailey NVIDIA Linux 1 06-27-12 10:24 AM
UEFI+Nvidia - NVRM: Your system is not currently configured to drive a VGA console... interzoneuk NVIDIA Linux 0 06-26-12 04:51 AM
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 11:04 AM
X Failed to load NVdriver c00lr4c3r NVIDIA Linux 13 10-22-02 01:44 PM

All times are GMT -5. The time now is 07:25 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.