nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Problem compiling kernel module (http://www.nvnews.net/vbulletin/showthread.php?t=155472)

duffrecords 09-24-10 07:49 PM

Problem compiling kernel module
 
I am running a non-standard kernel (2.6.33-29-realtime-pae), and I'm having trouble installing any NVIDIA driver (185, 190, 195, 256), apparently because it's looking for source files in a different location. At first I tried installing the driver through the package manager, then through two of the Ubuntu PPAs, and finally using the binary from nvidia.com. This is the error reported when running the binary installer:

-> Building kernel module:
executing: 'cd ./kernel; make module SYSSRC=/lib/modules/2.6.33-29-realtime-
pae/build SYSOUT=/lib/modules/2.6.33-29-realtime-pae/build'...
NVIDIA: calling KBUILD...
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/generated/autoconf.h or include/config/auto.conf are
missing.";\
echo " Run 'make oldconfig && make prepare' on kernel src to fix it
."; \
echo; \
/bin/false)

Both autoconf.h and auto.conf are in the directories mentioned above. I saw several posts recommending commenting out any reference to ".owner = THIS_MODULE" but that didn't make a difference.

AaronP 09-25-10 11:22 AM

Re: Problem compiling kernel module
 
This is a quirk of KBUILD: when compiling with verbose output enabled, it prints the code that would print that error if those files were missing. It's not actually an error unless you see the "ERROR: Kernel configuration is invalid" message being printed out later without the "echo" command in front of them.


All times are GMT -5. The time now is 02:56 AM.

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