Siduction Forum

Siduction Forum => Software - Support => Topic started by: MachinaeWolf on 2017/05/27, 04:20:14

Title: nvidia driver module won't rebuild for custom kernel
Post by: MachinaeWolf 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.
Title: Re: nvidia driver module won't rebuild for custom kernel
Post by: towo 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.

Title: Re: nvidia driver module won't rebuild for custom kernel
Post by: MachinaeWolf 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?
Title: Re: nvidia driver module won't rebuild for custom kernel
Post by: cryptosteve 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.
Title: Re: nvidia driver module won't rebuild for custom kernel
Post by: MachinaeWolf 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.
Title: Re: nvidia driver module won't rebuild for custom kernel
Post by: towo on 2017/05/27, 22:36:21
You allways speak about selfcompiled custom kernel?
If yes, how compiled, how installed?
Title: Re: nvidia driver module won't rebuild for custom kernel
Post by: MachinaeWolf 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
Title: Re: nvidia driver module won't rebuild for custom kernel
Post by: towo 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.
Title: Re: nvidia driver module won't rebuild for custom kernel
Post by: MachinaeWolf 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).
Title: Re: nvidia driver module won't rebuild for custom kernel
Post by: towo 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.
Title: Re: nvidia driver module won't rebuild for custom kernel
Post by: MachinaeWolf on 2017/05/28, 00:48:36
I am using siduction. Well cpufreq-info says I only have a powersave and performance governor.
Title: Re: nvidia driver module won't rebuild for custom kernel
Post by: towo 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.
Title: Re: nvidia driver module won't rebuild for custom kernel
Post by: MachinaeWolf 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!
Title: Re: nvidia driver module won't rebuild for custom kernel
Post by: ReinerS 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
Title: Re: nvidia driver module won't rebuild for custom kernel
Post by: towo 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.
Title: Re: nvidia driver module won't rebuild for custom kernel
Post by: MachinaeWolf on 2017/06/04, 21:52:25
I updated everything this weekend and have the 4.11.3 kernel from the repo and it built the nvidia module properly for me. I'm not sure about the nvidia-legacy driver, that's not the driver I'm using.
Title: Re: nvidia driver module won't rebuild for custom kernel
Post by: ReinerS on 2017/06/04, 21:54:44
Thank you,
I will try it tomorrow.

regards

Reiner