LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-30-2005, 11:26 AM   #1
PsychosisNode
Member
 
Registered: Apr 2003
Location: Reading, Berkshire, IN-GER-LUND!!!
Distribution: Mandriva 2006
Posts: 228

Rep: Reputation: 30
NVidia driver trouble with custom kernel


Hello, I am using Mandriva LE2005 with a custom kernel built from the 2.6.11-11 source from kernel.org and the kraxel patches (to get my Nova-T DVB card working). However when I installed the latest NV drivers, the kernel module compiles allright but won't install, I get this error message:
Code:
FATAL: Error inserting nvidia (/lib/modules/2.6.11-kraxel1/kernel/drivers/video/nvidia.ko): Invalid module format
The only other tweaks made to the kernel are to turn preempability on, and to disable a bunch of laptop-specific stuff that I don't need.

X still works on the "nv" driver

I've read that this can happen if the module and the kernel were compiled by different versions of GCC, but AFAIK they were both compiled using ther version that shipped with LE2005, unless the NV installer has it's own internal version or something.

Any help is much appreciated.
TIA

EDIT:

I've just noticed that this appears on the output of dmesg:
Code:
nvidia: version magic '2.6.11-kraxel1 SMP preempt PENTIUM4 4KSTACKS gcc-3.4' should be '2.6.11-kraxel1 preempt K7 gcc-3.4'
Sounds like something to do with the problem but I have no idea how to sort it out! The version info after the "should be" is the correct info, so I'm assuming the module compiled for SMP P4 for some reason? Does anyone know how to change this behaviour?

I ran the installer with
Code:
sh ./NVIDIA-installer-xxx.run -k $(uname -r)

Last edited by PsychosisNode; 05-30-2005 at 12:24 PM.
 
Old 05-31-2005, 12:53 PM   #2
PsychosisNode
Member
 
Registered: Apr 2003
Location: Reading, Berkshire, IN-GER-LUND!!!
Distribution: Mandriva 2006
Posts: 228

Original Poster
Rep: Reputation: 30
Cool FIXED

This problem was fixed after another kernel recompilation - the NVidia drivers now install properly. The problem was that for some reason the autoconf.h file in /usr/src/linux/include/linux generated on the first compile was incorrect, hence the version-magic errors in dmesg. This file is used to, amongst other things, provide the kernel configuration information needed to compile extra kernel modules.

Warning: DO NOT TRY TO SOLVE THIS BY EDITING AUTOCONF.H - A module compiled in this way, upon loading, will take the system out badly (need to Alt+SysRq+B), and I lost a RAID0 array because of it. Just recompile.

Cheers!
 
Old 05-31-2005, 01:18 PM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Excellent - congrats PsychosisNode for solving the problem, and thanks for posting back with the solution that worked for you. This could be a huge help to future visitors who have the same question. -- J.W.
 
  


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
trouble compiling modules against custom fedora core 4 kernel blahJake Linux - Software 6 12-16-2006 06:54 AM
Kernel upgraded, nvidia driver trouble jaakkop Slackware 20 08-06-2005 11:37 AM
Trouble with new nVidia driver installation...no nvidia logo and KDE no start up mdb Linux - Software 8 08-18-2004 09:45 AM
NVIDIA driver for custom kernel UltimaGuy Linux - Newbie 7 10-16-2003 08:02 AM
Nvidia Driver and Kernel trouble Vipes Linux - Hardware 6 06-05-2003 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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