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

Getting your soundcard to work, using Debian on non-i386 hardware, etc

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

Postby TheExplorer » 2018-02-05 15:29

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
TheExplorer
 
Posts: 241
Joined: 2010-05-31 15:04

Re: Debian Jessie 8.10 + NVidia

Postby smoki » 2018-02-05 19:33

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
smoki
 
Posts: 139
Joined: 2011-08-03 05:04
Location: Srbija, kude snajka posvađa dva sina

Re: Debian Jessie 8.10 + NVidia

Postby TheExplorer » 2018-02-05 19:41

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
TheExplorer
 
Posts: 241
Joined: 2010-05-31 15:04

Re: Debian Jessie 8.10 + NVidia

Postby smoki » 2018-02-05 20:04

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
smoki
 
Posts: 139
Joined: 2011-08-03 05:04
Location: Srbija, kude snajka posvađa dva sina

Re: Debian Jessie 8.10 + NVidia

Postby stevepusser » 2018-02-06 02:24

Are you getting the Nvidia drivers from Nvidia or the Debian non-free repository?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kdenlive 18.08.1, Pale Moon 28.1.0, wine-staging 3.17, qBittorrent 4.1.3, Liquorix kernel 4.18-13, Audacity 2.3.0
User avatar
stevepusser
 
Posts: 10004
Joined: 2009-10-06 05:53

Re: Debian Jessie 8.10 + NVidia

Postby TheExplorer » 2018-02-06 05:58

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: 241
Joined: 2010-05-31 15:04

[SOLVED] Re: Debian Jessie 8.10 + NVidia

Postby TheExplorer » 2018-02-06 17:10

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
TheExplorer
 
Posts: 241
Joined: 2010-05-31 15:04

Re: [SOLVED] Debian Jessie 8.10 + NVidia

Postby smoki » 2018-02-06 18:01

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
smoki
 
Posts: 139
Joined: 2011-08-03 05:04
Location: Srbija, kude snajka posvađa dva sina

Re: [SOLVED] Debian Jessie 8.10 + NVidia

Postby TheExplorer » 2018-02-06 19:43

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
TheExplorer
 
Posts: 241
Joined: 2010-05-31 15:04

Re: [SOLVED] Debian Jessie 8.10 + NVidia

Postby smoki » 2018-02-06 20:12

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
smoki
 
Posts: 139
Joined: 2011-08-03 05:04
Location: Srbija, kude snajka posvađa dva sina

Re: [SOLVED] Debian Jessie 8.10 + NVidia

Postby stevepusser » 2018-02-07 02:06

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kdenlive 18.08.1, Pale Moon 28.1.0, wine-staging 3.17, qBittorrent 4.1.3, Liquorix kernel 4.18-13, Audacity 2.3.0
User avatar
stevepusser
 
Posts: 10004
Joined: 2009-10-06 05:53

Re: [SOLVED] Debian Jessie 8.10 + NVidia

Postby stevepusser » 2018-02-07 02:09

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kdenlive 18.08.1, Pale Moon 28.1.0, wine-staging 3.17, qBittorrent 4.1.3, Liquorix kernel 4.18-13, Audacity 2.3.0
User avatar
stevepusser
 
Posts: 10004
Joined: 2009-10-06 05:53

Re: [SOLVED] Debian Jessie 8.10 + NVidia

Postby TheExplorer » 2018-02-07 05:19

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.
User avatar
TheExplorer
 
Posts: 241
Joined: 2010-05-31 15:04


Return to Hardware

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable