LinuxQuestions.org
Review your favorite Linux distribution.
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 07-25-2016, 09:10 PM   #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
Patch for NVIDIA 367.35 for kernel 4.7


I downloaded the newly-released kernel 4.7 series, and as I run NVIDIA hardware, tried to use NVIDIA's latest driver release with it. Unsurprisingly, as is the case with new kernel series releases, it did not compile on the first try. Googling turned up a patch which works superbly.

For those not already in the know, a quick primer:

Download the attached patch file, and place in the directory where the driver is located.

Extract & patch the NVIDIA installer:
Code:
./NVIDIA-Linux-x86_64-367.35.run -x
cd NVIDIA-Linux-x86_64-367.35/
patch -p1 < ../4.7_kernel.patch
After rebooting, go to the extracted directory, and run the installer directly:
Code:
./nvidia-installer
You should be golden. Happy Slacking!

Regards,

Matt
Attached Files
File Type: txt 4.7_kernel.patch.txt (1.7 KB, 1095 views)
 
Old 07-26-2016, 04:03 PM   #2
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Patch for NVIDIA 367.35 for kernel 4.7

Just wondering, why a reboot after patching?

Anyway, thanks for the information!
 
Old 07-26-2016, 05:23 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 Tonus View Post
Just wondering, why a reboot after patching?

Anyway, thanks for the information!
Thanks!

To answer your question, it's so you can boot into console mode, and run the installer without X running.

Hope this answers your question.
 
Old 07-27-2016, 12:15 AM   #4
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Patch for NVIDIA 367.35 for kernel 4.7

Oh, never thought to do that! Feel more educated, thanks ;-)
 
Old 07-27-2016, 03:54 AM   #5
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 Tonus View Post
Oh, never thought to do that! Feel more educated, thanks ;-)
You're welcome!
 
Old 07-27-2016, 06:18 AM   #6
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
I believe you can apply the patch direct to the run file. If you do
Code:
sh NVIDIA...run --help
you get the options available.
I'm going from memory at the moment so forgive me if it's changed now.
 
Old 07-27-2016, 02:57 PM   #7
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 petelq View Post
I believe you can apply the patch direct to the run file. If you do
Code:
sh NVIDIA...run --help
you get the options available.
I'm going from memory at the moment so forgive me if it's changed now.
From what I can see of the options available, -A was the most relevant. Of those advanced options, only one seemed to apply to this situation:

Quote:
--apply-patch [Patch]
Apply the patch 'Patch' to the kernel interface files included
And it does not give options for patchlevels that I can see. As you can see from my OP, you need at least -p1 to apply the patch, and this option only appears to support -p0. If you can provide further illumination, it would be much appreciated. Thanks!
 
Old 07-28-2016, 03:13 AM   #8
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
I'm afraid I can't add anything more. I remember using the apply-patch option some years ago.
With this most recent kernel 4.7 I've just extracted the nvidia run file and applied the changes manually.
 
Old 07-28-2016, 06:47 AM   #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 petelq View Post
I'm afraid I can't add anything more. I remember using the apply-patch option some years ago.
With this most recent kernel 4.7 I've just extracted the nvidia run file and applied the changes manually.
That's probably the most sensible thing to do. I can't find anything online or in the help that NVIDIA provides in the .run file that provides anything about increasing the patchlevel. Glad to have been of help!

Happy Slacking!
 
1 members found this post helpful.
Old 08-06-2016, 05:11 PM   #10
pilotgi
Member
 
Registered: Apr 2002
Location: ks
Distribution: openSUSE Tumbleweed
Posts: 495

Rep: Reputation: 33
Quote:
Originally Posted by 1337_powerslacker View Post
Extract & patch the NVIDIA installer:
Code:
./NVIDIA-Linux-x86_64-367.35.run -x
cd NVIDIA-Linux-x86_64-367.35/
patch -p1 < ../4.7_kernel.patch
After rebooting, go to the extracted directory, and run the installer directly:
Code:
./nvidia-installer
You should be golden. Happy Slacking!

Regards,

Matt
Glad it worked for you. Does this method only work for Slackware? I'm using openSUSE Tumbleweed and I downloaded the patch, extracted the driver and ran the patch command and nothing happened.
 
Old 08-07-2016, 03:20 AM   #11
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
Quote:
Originally Posted by petelq View Post
I'm afraid I can't add anything more. I remember using the apply-patch option some years ago.
With this most recent kernel 4.7 I've just extracted the nvidia run file and applied the changes manually.
I remember how I originally applied the patch back then. I added an extra level of folder within the patch and then ran the run file with apply-patch.

My current method is just to open the individual files and apply the changes. There's not many and it only takes a couple of minutes.
 
Old 08-07-2016, 06:41 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 pilotgi View Post
Glad it worked for you. Does this method only work for Slackware? I'm using openSUSE Tumbleweed and I downloaded the patch, extracted the driver and ran the patch command and nothing happened.
It's been several years since I ran that distro, back when it was still SuSE (9.1!) and cannot speak for this method in any other distro. However, having said that, it should work, giving you messages about which files it patched.
 
Old 08-07-2016, 06:53 AM   #13
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 petelq View Post
I remember how I originally applied the patch back then. I added an extra level of folder within the patch and then ran the run file with apply-patch.

My current method is just to open the individual files and apply the changes. There's not many and it only takes a couple of minutes.
I don't have the level of expertise to do what you're describing. I just run the patch command as I said in my OP. It seems to work satisfactorily.
 
  


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 367.35 Linux Graphics Driver Released with VDPAU Feature Set H Support LXer Syndicated Linux News 0 07-17-2016 04:57 AM
LXer: SteamOS 2.83 Beta Brings AMD Radeon GPU-PRO RC2 and Nvidia 367.27 Video Drivers LXer Syndicated Linux News 0 06-29-2016 10:42 AM
LXer: Nvidia 367.27 Video Driver Finally Brings GeForce GTX 1080/1070 Support to Linux LXer Syndicated Linux News 0 06-13-2016 10:11 PM
kernel 2.6.26 with nvidia/ patch? donnied Linux - Hardware 2 07-20-2008 09:02 AM
nvidia kernel patch with 2.6.0 likid0 Linux - Software 0 08-15-2003 06:26 AM

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

All times are GMT -5. The time now is 08:34 PM.

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