LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-17-2016, 08:01 AM   #1
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 862
Blog Entries: 9

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
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:

Code:
./nvidia-installer
It should install without a hitch.

Happy Slacking!

Regards,

Matt
Attached Files
File Type: txt nvidia-patch-364.19_4.6.patch.txt (1.6 KB, 663 views)
 
Old 05-18-2016, 08:49 AM   #2
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,120

Rep: Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290
Good to know!
Many Thanks!
 
Old 05-18-2016, 07:05 PM   #3
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 862

Original Poster
Blog Entries: 9

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
Quote:
Originally Posted by cwizardone View Post
Good to know!
Many Thanks!
You're welcome!
 
1 members found this post helpful.
Old 05-19-2016, 07:23 AM   #4
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 567

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
Many many thanks.

I actually might need this in the future as I do HPC with the Nvidia GTX Titan X.
 
Old 05-19-2016, 09:15 AM   #5
jotapdiez
Member
 
Registered: Apr 2010
Location: -current
Distribution: Slackware
Posts: 47

Rep: Reputation: 2
Hi!

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.

Thanks in advance
 
1 members found this post helpful.
Old 05-19-2016, 12:20 PM   #6
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Rep: Reputation: 37
If you mean 32bit Slackware

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.
Attached Files
File Type: txt mtrr.txt (1.7 KB, 66 views)

Last edited by TarFile; 05-19-2016 at 12:23 PM.
 
1 members found this post helpful.
Old 05-19-2016, 01:03 PM   #7
jotapdiez
Member
 
Registered: Apr 2010
Location: -current
Distribution: Slackware
Posts: 47

Rep: Reputation: 2
Quote:
Originally Posted by TarFile View Post
If you mean 32bit Slackware

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.

Thanks a lot
 
Old 05-19-2016, 01:07 PM   #8
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Rep: Reputation: 37
Yes that would cause it to not work.
 
Old 05-19-2016, 03:33 PM   #9
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 862

Original Poster
Blog Entries: 9

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
Quote:
Originally Posted by aragorn2101 View Post
Many many thanks.

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.
 
1 members found this post helpful.
Old 05-23-2016, 02:55 PM   #10
jotapdiez
Member
 
Registered: Apr 2010
Location: -current
Distribution: Slackware
Posts: 47

Rep: Reputation: 2
Quote:
Originally Posted by TarFile View Post
Yes that would cause it to not work.
Thanks, that works like a charm.
 
Old 05-23-2016, 08:07 PM   #11
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
FYI... The 367.18-betas are available now:

http://www.geforce.com/drivers/results/102879

Check and see if they build against kernel 4.6.
 
2 members found this post helpful.
Old 05-24-2016, 10:20 AM   #12
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 862

Original Poster
Blog Entries: 9

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
Quote:
Originally Posted by ReaperX7 View Post
FYI... The 367.18-betas are available now:

http://www.geforce.com/drivers/results/102879

Check and see if they build against kernel 4.6.
Indeed they do. I knew NVIDIA wouldn't be long in coming out with new drivers to fix the issue; it is part of the reason I switched camps.

Regards,

Matt
 
Old 05-24-2016, 10:29 AM   #13
Toutatis
Member
 
Registered: Feb 2013
Posts: 412

Rep: Reputation: Disabled
prboom does not work correctly with new 367.18 : I get a black screen and need to kill X.
 
Old 05-24-2016, 10:33 AM   #14
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,120

Rep: Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290
I have had a problem with disappearing wallpaper when using the 367.18 driver.
 
Old 05-24-2016, 02:17 PM   #15
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 862

Original Poster
Blog Entries: 9

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
Strange. I have had no such issues running the new driver. Perhaps it has something to do with your particular hardware setups?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Nvidia 364.12 released for Linux with official Vulkan, Mir & Wayland support LXer Syndicated Linux News 0 03-22-2016 12:30 AM
LXer: Nvidia 364.12 Linux Driver Out Now with Vulkan 1.0, Wayland, and Mir Support LXer Syndicated Linux News 0 03-21-2016 01:03 PM
Cannot install NVidia drivers after kernel upgrade MattZ Linux - Newbie 10 08-23-2005 08:58 PM
Install nVidia drivers? (Need Kernel source!) Jojo87 Linux - Newbie 6 02-15-2004 12:32 AM
How to install nVidia drivers + new kernel? Jojo87 Linux - Newbie 2 01-26-2004 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration