FYI - inserting module for NVIDIA 304.131 (possibly 340.xxx) and kernel 4.4.14<
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
FYI - inserting module for NVIDIA 304.131 (possibly 340.xxx) and kernel 4.4.14<
Recently I was doing upgrade from 14.1 to 14.2 and hit the wall of buggy nvidia blob.
The kernel module driver 304.131 build nice for kernel 4.4.14 but couldn't be loaded during boot time.
I have red somewhere on the LQ Slackware forum that if you want to load kernel module you have to patch the kernel or wait to NVIDIA devs do their job.
Since i don't like to mess with smarter than me i would not touch this source code.
Instead of that I've founded patch for driver 304.131. I think that this can be useful for 340 series too.
patch:
Code:
--- a/nv-linux.h
+++ b/nv-linux.h
@@ -256,6 +256,15 @@
#include <linux/seq_file.h>
#endif
+/*
+ * As of version 304.131, os-agp.c and os-mtrr.c still use deprecated
+ * kernel APIs for mtrr which are no longer exported since 4.3, causing
+ * the module to error out when loaded.
+ */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,3,0)
+#undef CONFIG_MTRR
+#endif
+
#if !defined(NV_VMWARE) && defined(CONFIG_MTRR)
#include <asm/mtrr.h>
#endif
Yes indeed.
@willysr
I've looked at yours solution and You patched the kernel. Maybe it is good way to do it, but personally I don't know if other apps or drivers would need that instructions in kernel to run properly.
@RadicalDreamer
You are right.
I'd to modify slackbuild script downloaded from slackbuilds.org through sbopkg's possibility of package customization. I've added patch command accordingly to Slackbook's manual on writing slackbuilds scripts. Pure one resulted dmesg errors about mtrr's during module insertion.
BTW on my machine (AMD Sempron 2600, KT333, agp8), compiling the kernel would took ages.
I did an upgrade 14.1-> 14.2 slackware system, but there was a nvidia fault. After trying rebuilt kernel using mtrr.pacth, I found fault and module errors on
/var/log/nvidia-installer.log.
Nvidia messages pointed to use steps using beyond make oldconfig
make prepare
I did, but unfortunatelly there was kernel error again.
For now there is another nvidia-kernel installed since 14.1. Do you think it can be causing this installer problem?
FWIW I just did a fresh 14.2 32 bit install with 4.14.4 kernel om an older laptop with a Quadro 570m. I blacklisted nouveau and just used nVidia's 340.96 install script from runlevel 3 and it loads and works perfectly, even on HD videos so far.
I run this copy correctly during system procedures.
I tried it again and used another nvidia-driver ( 340.88) and my nvidia-installer.log shows:
ERROR: Kernel configuration is invalid ; and include/generated/autoconf.h or include/config/auto.conf are missing
Disabling kernel driverīs install and reading nvidia.ko
And after trying
make prepare; and make bzImage
returned cpu-kernel erros
Last edited by vivanguarda; 07-17-2016 at 08:32 PM.
Reason: And after trying a make prepare option, make bzImage returned cpu-kernel error
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.