LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   NVidia driver trouble with custom kernel (https://www.linuxquestions.org/questions/linux-hardware-18/nvidia-driver-trouble-with-custom-kernel-328572/)

PsychosisNode 05-30-2005 11:26 AM

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)

PsychosisNode 05-31-2005 12:53 PM

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!

J.W. 05-31-2005 01:18 PM

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.


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