I've got a strange issue. I installed Jessie and recompiled the stock kernel (3.16.0-4-686-pae #1 SMP Debian 3.16.51-3). Simply downloaded the source for the same working kernel, compiled it with some performance options like Preemptible Desktop etc., got two files (linux-headers-3.16.51.deb and linux-image-3.16.51.deb), installed them, removed the sources and tried to install NVidia driver version 340.106 from their ftp (it got updated recently to match some new 4.x kernels) to no avail.
I'm getting this error:
Code: Select all
Makefile \
modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
The thing is that I can install it without problems under the stock kernel, but not under a recompiled one. I also used to do it successfully in Wheezy. The same happens in Stretch, btw.
The question is: what am I doing wrong, guys?
Thank you for your time and patience in advance.
Truly yours,
Alexander
P.S. The compilation procedure was:
Code: Select all
make clean
make oldconfig
make prepare
make menuconfig
make-kpkg clean
fakeroot make-kpkg --initrd kernel_image kernel_headers