Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Debian Jessie 8.10 (custom kernel) + NVidia

Need help with peripherals or devices?
Post Reply
Message
Author
User avatar
TheExplorer
Posts: 254
Joined: 2010-05-31 15:04

[SOLVED] Debian Jessie 8.10 (custom kernel) + NVidia

#1 Post by TheExplorer »

Hello, Gurus :)

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)
You can see the full log here.

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
Last edited by TheExplorer on 2018-02-09 12:22, edited 2 times in total.
Money is the evil of all root. Be free. Use Linux.

User avatar
smoki
Posts: 146
Joined: 2011-08-03 05:04
Location: Srbija, kude snajka posvađa dva sina

Re: Debian Jessie 8.10 + NVidia

#2 Post by smoki »

TheExplorer wrote:
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)
You can see the full log here.

It looks at either, one or another location:
/usr/src/linux-headers-3.16.51/include/generated/autoconf.h
/usr/src/linux-headers-3.16.51/include/config/auto.conf


Search a bit around where your autoconf.h or auto.conf are

User avatar
TheExplorer
Posts: 254
Joined: 2010-05-31 15:04

Re: Debian Jessie 8.10 + NVidia

#3 Post by TheExplorer »

It looks at either, one or another location:
/usr/src/linux-headers-3.16.51/include/generated/autoconf.h
/usr/src/linux-headers-3.16.51/include/config/auto.conf
Yeah, I can see this. The problem is that it works under the supplied kernel and it used to work in Wheezy (either supplied or recompiled one).
I wonder if there is someone who did the same and what could be the possible solution for that. Symlinks?..
Money is the evil of all root. Be free. Use Linux.

User avatar
smoki
Posts: 146
Joined: 2011-08-03 05:04
Location: Srbija, kude snajka posvađa dva sina

Re: Debian Jessie 8.10 + NVidia

#4 Post by smoki »

Symlinks yeah but i dunno why are yours somewhere elsewhere, main problem is that these files are not at expected location for your custom kernel for some reason... look at wheezy and jessie kernels:

Wheezy kernel:
https://packages.debian.org/wheezy/i386 ... e/filelist
/usr/src/linux-headers-3.2.0-4-686-pae/include/config/auto.conf
/usr/src/linux-headers-3.2.0-4-686-pae/include/generated/autoconf.h

Jessie kernel, again files are there:
https://packages.debian.org/jessie-upda ... e/filelist
/usr/src/linux-headers-3.16.0-4-686-pae/include/config/auto.conf
/usr/src/linux-headers-3.16.0-4-686-pae/include/generated/autoconf.h
When you make deb kernel with kernel-package, linux-headers-xyz should be again in the same place just different by 'osrelease' or 'uname -r' path

Likely some kernel-package bug as you are probably doing (or nvidia installer) something it does not like :lol:

https://bugs.debian.org/cgi-bin/pkgrepo ... el-package

I don't have nvidia really :D, maybe this bug maybe not:
https://bugs.debian.org/cgi-bin/bugrepo ... bug=772681

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Debian Jessie 8.10 + NVidia

#5 Post by stevepusser »

Are you getting the Nvidia drivers from Nvidia or the Debian non-free repository?
MX Linux packager and developer

User avatar
TheExplorer
Posts: 254
Joined: 2010-05-31 15:04

Re: Debian Jessie 8.10 + NVidia

#6 Post by TheExplorer »

NVidia driver version 340.106 from their ftp
Haven't tried NVidia from Debian repos yet under the recompiled kernel, but I installed it previously under the stock kernel. There were no problems. The thing is that it installs OK under the stock kernel. SO, I guess the problem is really somewhere else. Probably, in the kernel-package or something, as smoki said. Maybe I should try and recompile the kernel using another method like make deb-pkg.
Money is the evil of all root. Be free. Use Linux.

User avatar
TheExplorer
Posts: 254
Joined: 2010-05-31 15:04

[SOLVED] Re: Debian Jessie 8.10 + NVidia

#7 Post by TheExplorer »

UPDATE:

Everything went fine under my new kernel recompiled with make deb-pkg.
So, there is definately a bug somewhere in the kernel-package.

I'm marking this thread as solved.
Money is the evil of all root. Be free. Use Linux.

User avatar
smoki
Posts: 146
Joined: 2011-08-03 05:04
Location: Srbija, kude snajka posvađa dva sina

Re: [SOLVED] Debian Jessie 8.10 + NVidia

#8 Post by smoki »

Yeah, even debian-handbook says that deb-pkg is recommended way nowdays, indirectly by mentionied "good old days of kernel-package" :D
CULTURE The good old days of kernel-package
Before the Linux build system gained the ability to build proper Debian packages, the recommended way to build such packages was to use make-kpkg from the kernel-package package.
https://debian-handbook.info/browse/sta ... ation.html

it is just that about 20 years of make-kpkg can't be forgotten easely, so people still tend to stick to that.

User avatar
TheExplorer
Posts: 254
Joined: 2010-05-31 15:04

Re: [SOLVED] Debian Jessie 8.10 + NVidia

#9 Post by TheExplorer »

Yes, you are right. I also noticed this announcement but didn't attach too much weight to it unfortunately. Well, live and learn... :)
Money is the evil of all root. Be free. Use Linux.

User avatar
smoki
Posts: 146
Joined: 2011-08-03 05:04
Location: Srbija, kude snajka posvađa dva sina

Re: [SOLVED] Debian Jessie 8.10 + NVidia

#10 Post by smoki »

TheExplorer wrote:Yes, you are right. I also noticed this announcement but didn't attach too much weight to it unfortunately. Well, live and learn... :)
You see kernel-package is not even available in Stretch :P

https://packages.debian.org/jessie/kernel-package

But there seems to be some kind of desire to it, so people backported it recently :idea: Who knows, maybe make-kpkg still covers some cases that deb-pkg don't - so either it is that or it is pure "i can't forget" desire, dunno what could else be :D

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: [SOLVED] Debian Jessie 8.10 + NVidia

#11 Post by stevepusser »

If all you're going to do it rebuild the Debian kernel with a config change, why not use the standard Debian packaging tools to build the kernel packages? it worked for us at MX Linux to backport the upstream 4.14 kernel or port it over from stretch-backports with a boost to kernel context switches to 1000 Hz.
MX Linux packager and developer

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: [SOLVED] Debian Jessie 8.10 + NVidia

#12 Post by stevepusser »

If all you're going to do it rebuild the Debian kernel with a config change, why not use the standard Debian packaging tools to build the kernel packages? it worked for us at MX Linux to backport the upstream 4.14 kernel or port it over from stretch-backports with a boost to kernel context switches to 1000 Hz.

I think it will take a lot longer, since it converts a lot of docs to another format for the linux-docs package, though. Plus builds a giant -dbg package.
MX Linux packager and developer

User avatar
TheExplorer
Posts: 254
Joined: 2010-05-31 15:04

Re: [SOLVED] Debian Jessie 8.10 + NVidia

#13 Post by TheExplorer »

stevepusser wrote:why not use the standard Debian packaging tools?
What do you mean? I used this method.

Thank you.
Money is the evil of all root. Be free. Use Linux.

Post Reply