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 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' I ran the installer with Code:
sh ./NVIDIA-installer-xxx.run -k $(uname -r) |
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! |
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. |