Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] nvidia driver module won't rebuild for custom kernel  (Read 5747 times)

MachinaeWolf

  • Guest
[EN] nvidia driver module won't rebuild for custom kernel
« on: 2017/05/27, 04:20:14 »
I successfully installed the 4.11.3 kernel however I couldn't get the nvidia driver to rebuild the module.
Code: [Select]
make install
sh ./arch/x86/boot/install.sh 4.11.3 arch/x86/boot/bzImage \
        System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.11.3 /boot/vmlinuz-4.11.3
run-parts: executing /etc/kernel/postinst.d/dkms 4.11.3 /boot/vmlinuz-4.11.3
Error! Bad return status for module build on kernel: 4.11.3 (x86_64)
Consult /var/lib/dkms/nvidia-current/375.39/build/make.log for more information.


The log info:
Code: [Select]
DKMS make.log for nvidia-current-375.39 for kernel 4.11.3 (x86_64)
Fri May 26 20:49:20 CDT 2017
Makefile:19: /Kbuild: No such file or directory
make[2]: *** No rule to make target '/Kbuild'.  Stop.

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.920
Re: nvidia driver module won't rebuild for custom kernel
« Reply #1 on: 2017/05/27, 11:49:06 »
Nvidia 375.39 is not compatible with kernel 4.11.x, that's why siduction has kernel 4.11 only in experimental. Until you can't find a 4.11-patch for that driver version, you are lost.

Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

MachinaeWolf

  • Guest
Re: nvidia driver module won't rebuild for custom kernel
« Reply #2 on: 2017/05/27, 17:02:21 »
Would it work to download the 4.10.15 (currently installed kernel) source from the repo and compile a custom one of that to add some things I want?

Offline cryptosteve

  • User
  • Posts: 675
Re: nvidia driver module won't rebuild for custom kernel
« Reply #3 on: 2017/05/27, 17:16:37 »
Yes, that should work. Also kernel sources 4.10.17 from kernel.org should work with debian nvidia driver.


Good luck.
- born to create drama -
CS Virtual Travel Bug: VF6G5D

MachinaeWolf

  • Guest
Re: nvidia driver module won't rebuild for custom kernel
« Reply #4 on: 2017/05/27, 19:43:41 »
That didn't go as planned
Code: [Select]
DKMS make.log for nvidia-current-375.39 for kernel 4.10.17 (x86_64)
Sat May 27 12:12:09 CDT 2017
Makefile:19: /Kbuild: No such file or directory
make[2]: *** No rule to make target '/Kbuild'.  Stop.

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.920
Re: nvidia driver module won't rebuild for custom kernel
« Reply #5 on: 2017/05/27, 22:36:21 »
You allways speak about selfcompiled custom kernel?
If yes, how compiled, how installed?
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

MachinaeWolf

  • Guest
Re: nvidia driver module won't rebuild for custom kernel
« Reply #6 on: 2017/05/27, 22:45:02 »
Both were downloaded from kernel.org then I ran as root
Code: [Select]
zcat /proc/config.gz >> .config in the directory I downloaded the kernel. Then
Code: [Select]
make silentoldconfig then
Code: [Select]
make modules_prepare
Code: [Select]
make -j5
Code: [Select]
make modules_install
Code: [Select]
make install

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.920
Re: nvidia driver module won't rebuild for custom kernel
« Reply #7 on: 2017/05/27, 22:50:33 »
That's the asolute wrong way for build and installing kernels in debian!
Your system does not know any header of that running kernel!
If you think, you need to selfbuild kernels, your should care about how to do that propper!
Kernel upstream has deb-pkg as make target, which you shouöd use, because then you get debian packages for kernel, headers and firmware (and linux-libc-dev which you should ignore) , which can be clean installed with the package manager.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

MachinaeWolf

  • Guest
Re: nvidia driver module won't rebuild for custom kernel
« Reply #8 on: 2017/05/28, 00:06:56 »
Ok then what is the right way to compile the 4.10.15 kernel (which is the one I have installed through the repo).

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.920
Re: nvidia driver module won't rebuild for custom kernel
« Reply #9 on: 2017/05/28, 00:33:58 »
You don't need to recompile anything for more governors, you only need intel_pstate=disable as kernel commandline.
Then you use acpi-cpufreq instead of the default intel-pstate.

And btw, after your discussion on #debian-next, why you ask here, if you don't use siduction or vice versa #debian-next is not a support-channel for siduction.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

MachinaeWolf

  • Guest
Re: nvidia driver module won't rebuild for custom kernel
« Reply #10 on: 2017/05/28, 00:48:36 »
I am using siduction. Well cpufreq-info says I only have a powersave and performance governor.

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.920
Re: nvidia driver module won't rebuild for custom kernel
« Reply #11 on: 2017/05/28, 00:52:49 »
Do you ever read, what's written?
Siduction is using intel-pstate by default, and with that there are only 2 governors.
So add intel_pstate=disable to your kernel command line and be happy with acpi-cpufreq, which gives you 4 governors.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

MachinaeWolf

  • Guest
Re: nvidia driver module won't rebuild for custom kernel
« Reply #12 on: 2017/05/28, 01:05:26 »
Ok, I didn't know that intel_pstate disabled the other cpu governors. Hooray disabling it worked, thank you!

Offline ReinerS

  • User
  • Posts: 1.061
Re: nvidia driver module won't rebuild for custom kernel
« Reply #13 on: 2017/06/04, 21:33:37 »
Hello,
do I understand right that nvidia-legacy-340xx driver packages also are still not yet running with kernel 4.11?

regards

Reiner
slackware => SuSE => kanotix => sidux => aptosid  => siduction

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.920
Re: nvidia driver module won't rebuild for custom kernel
« Reply #14 on: 2017/06/04, 21:49:30 »
Without patching, they are not compile against 4.11.

https://pkgs.rpmfusion.org/cgit/nonfree/nvidia-340xx-kmod.git/tree/4.11_kernel.patch

This patch should work, but you have to adapt the path.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.