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-
NVIDIA: calling KBUILD...
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/generated/autoconf.h or include/config/auto.conf are
echo " Run 'make oldconfig && make prepare' on kernel src to fix it
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.