[SOLVED] NVIDIA-364.19 drivers will not install with kernel 4.6
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.
NVIDIA-364.19 drivers will not install with kernel 4.6
For adventurous Slackers who are trying the just-released 4.6, and own NVIDIA hardware may have come up against a small problem: namely, that the driver won't install. I did some Googling, and came up with a solution. Save the attached file to the directory where your NVIDIA driver .run file is located (Remember to rename the file!) Run the following command:
Code:
./NVIDIA-Linux-x86_64-364.19.run --extract-only
This will extract the contents without running the installer.
Code:
cd NVIDIA-Linux-x86_64-364.19
patch -p1 < ../nvidia-patch-364.19_4.6.patch
Then, of course, run the nvidia-installer utility, like so:
There is any patch for NVIDIA-Linux-x86-304.131 with kernel 4.4.10 without patching the kernel itself?
I tried to patch and compile the kernel but I got "VFS: Unable to mount root fs on unknown-block". I tried a lot of kernel=/dev/(something) but nothing work for me.
You need to rebuilt your kernel using this mtrr.patch in order to build NVidia 304.131
go to /usr/src/linux-4.4.10
patch -p1 < /path/to/mtrr.patch
cp /boot/config-huge-4.4.10 .config
make oldconfig
make bzImage
cp arch/x86/boot/bzImage /boot/vmlinuz-huge-4.4.10
/sbin/lilo -v
reboot
After that, you can reinstall NVidia driver again.
Fixed it for me.
You can patch any of the kernels I would guess. Like the SMP or whatever just make sure you use the one you need.
You need to rebuilt your kernel using this mtrr.patch in order to build NVidia 304.131
go to /usr/src/linux-4.4.10
patch -p1 < /path/to/mtrr.patch
cp /boot/config-huge-4.4.10 .config
make oldconfig
make bzImage
cp arch/x86/boot/bzImage /boot/vmlinuz-huge-4.4.10
/sbin/lilo -v
reboot
After that, you can reinstall NVidia driver again.
Fixed it for me.
You can patch any of the kernels I would guess. Like the SMP or whatever just make sure you use the one you need.
Thanks for the answer.
I already did all of that but with a simple difference. I used config-generic-smp-4.4.1-smp (on previous kernel) as config. Can that cause my error at boot?
I get that instructions from SlackHacks git repo of Willy Sudiarto Raharjo.
As soon as I can, I will try with config-huge-4.4.10.
I actually might need this in the future as I do HPC with the Nvidia GTX Titan X.
You're welcome. I thought running the 4.6 kernel an important upgrade since, according to this article, it includes some important security features. I have a somewhat paranoid attitude regarding security on my system; the simplicity of Slackware makes manual patching against security vulnerabilities, when not in -current, a relatively painless process, including unofficial kernel upgrades. Of course, it does help that Pat puts the config file in /testing.
Last edited by 1337_powerslacker; 05-19-2016 at 04:33 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.