Re: [opensuse-factory] Patch for Nvidia driver 367.35 on Kernel 4.7
Patrick Shanahan wrote:
Bjoern Voigt <bjoernv@arcor.de> [07-26-16 09:32]:
Users with Kernel 4.7 e.g. from Kernel_stable repository currently need a patch for most recent stable Nvidia driver 367.35.
I attached the patch for interested users.
The idea comes from: NVIDIA – Possible Kernel 4.7 Fix for 361.45.11 and 367.18.. Posted on May 31, 2016 by RG http://rglinuxtech.com/?p=1750
Greetings, Björn Source: NVIDIA – Possible Kernel 4.7 Fix for 361.45.11 and 367.18.. Posted on May 31, 2016 by RG http://rglinuxtech.com/?p=1750
also works for Nvidia driver 367.35 I saved the patch, but do not understand how to apply.
I tried: sh ./NVIDIA-Linux-x86_64-367.35.run -aqs --apply-patch ./nvidia-367.35-kernel-4.7.patch
but that fails :( Okay. I didn't know the undocumented (?) "--apply-patch option.
You can install the patch this way. I have downloaded "NVIDIA-Linux-x86_64-367.35.run" to /usr/src. You need the "rm" command only, if the driver is already extracted to /usr/src: mybox:/usr/src # \rm -r NVIDIA-Linux-x86_64-367.35 mybox:/usr/src # sh NVIDIA-Linux-x86_64-367.35.run -x Creating directory NVIDIA-Linux-x86_64-367.35 Verifying archive integrity... OK Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 367.35 mybox:/usr/src # cd NVIDIA-Linux-x86_64-367.35/kernel/ mybox:/usr/src/NVIDIA-Linux-x86_64-367.35/kernel # patch -p1 < path-to/nvidia-367.35-kernel-4.7.patch patching file nvidia-uvm/uvm8_gpu.c patching file nvidia-uvm/uvm_linux.h patching file nvidia-drm/nvidia-drm-fb.c patching file nvidia-drm/nvidia-drm-gem.c mybox:/usr/src/NVIDIA-Linux-x86_64-367.35/kernel # cd .. mybox:/usr/src/NVIDIA-Linux-x86_64-367.35 # ./nvidia-installer Greetings, Björn -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-------- Forwarded Message -------- Subject: Re: [opensuse-factory] Patch for Nvidia driver 367.35 on Kernel 4.7 Date: Sat, 6 Aug 2016 22:22:35 +0200 From: Bjoern Voigt <bjoernv@arcor.de> To: openSUSE factory <opensuse-factory@opensuse.org> Patrick Shanahan wrote:
Bjoern Voigt <bjoernv@arcor.de> [07-26-16 09:32]:
Users with Kernel 4.7 e.g. from Kernel_stable repository currently need a patch for most recent stable Nvidia driver 367.35.
I attached the patch for interested users.
The idea comes from: NVIDIA – Possible Kernel 4.7 Fix for 361.45.11 and 367.18.. Posted on May 31, 2016 by RG http://rglinuxtech.com/?p=1750
Greetings, Björn Source: NVIDIA – Possible Kernel 4.7 Fix for 361.45.11 and 367.18.. Posted on May 31, 2016 by RG http://rglinuxtech.com/?p=1750
also works for Nvidia driver 367.35 I saved the patch, but do not understand how to apply.
I tried: sh ./NVIDIA-Linux-x86_64-367.35.run -aqs --apply-patch ./nvidia-367.35-kernel-4.7.patch
but that fails :( Okay. I didn't know the undocumented (?) "--apply-patch option.
You can install the patch this way. I have downloaded "NVIDIA-Linux-x86_64-367.35.run" to /usr/src. You need the "rm" command only, if the driver is already extracted to /usr/src: mybox:/usr/src # \rm -r NVIDIA-Linux-x86_64-367.35 mybox:/usr/src # sh NVIDIA-Linux-x86_64-367.35.run -x Creating directory NVIDIA-Linux-x86_64-367.35 Verifying archive integrity... OK Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 367.35 mybox:/usr/src # cd NVIDIA-Linux-x86_64-367.35/kernel/ mybox:/usr/src/NVIDIA-Linux-x86_64-367.35/kernel # patch -p1 < path-to/nvidia-367.35-kernel-4.7.patch patching file nvidia-uvm/uvm8_gpu.c patching file nvidia-uvm/uvm_linux.h patching file nvidia-drm/nvidia-drm-fb.c patching file nvidia-drm/nvidia-drm-gem.c mybox:/usr/src/NVIDIA-Linux-x86_64-367.35/kernel # cd .. mybox:/usr/src/NVIDIA-Linux-x86_64-367.35 # ./nvidia-installer Greetings, Björn -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org Here's the correct command: sh NVIDIA-Linux-x86_64-367.35.run --apply-patch nvidia-367.35-kernel-4.7.patch -- Cheers! Roman IRC: 551368250 ============== -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
* Roman Bysh <rbtc1@rogers.com> [08-06-16 18:41]: [...]
sh NVIDIA-Linux-x86_64-367.35.run --apply-patch nvidia-367.35-kernel-4.7.patch
sh ./NVIDIA-Linux-x86_64-367.35.run --apply-patch ./nvidia-367.35-kernel-4.7.patch Verifying archive integrity... OK Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 367.35......... ........................... can't find file to patch at input line 17 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Source: |NVIDIA – Possible Kernel 4.7 Fix for 361.45.11 and 367.18.. |Posted on May 31, 2016 by RG |http://rglinuxtech.com/?p=1750 | |also works for Nvidia driver 367.35 | |Usage: |- install Nvidia driver 367.35 preferrable with DKMS option |- cd /usr/src |- ensure that Nvidia driver 367.35 sources are installed: ls -l /usr/src/nvidia-367.35 |- dkms install -m nvidia -v 367.35 -k 4.7.0-4.g89a2ada-default |- restart Xorg | |--- nvidia-367.35/nvidia-uvm/uvm8_gpu.c 2016-07-25 10:06:45.382539059 +0200 |+++ nvidia-367.35/nvidia-uvm/uvm8_gpu.c 2016-07-26 14:36:40.647188630 +0200 -------------------------- File to patch: doesn't work here ??? -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Samstag, 6. August 2016 19:30:59 CEST Patrick Shanahan wrote:
* Roman Bysh <rbtc1@rogers.com> [08-06-16 18:41]: [...]
sh NVIDIA-Linux-x86_64-367.35.run --apply-patch nvidia-367.35-kernel-4.7.patch sh ./NVIDIA-Linux-x86_64-367.35.run --apply-patch ./nvidia-367.35-kernel-4.7.patch Verifying archive integrity... OK Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 367.35......... ........................... can't find file to patch at input line 17 Perhaps you used the wrong -p or --strip option? The text leading up to this was:
|Source: |NVIDIA – Possible Kernel 4.7 Fix for 361.45.11 and 367.18.. |Posted on May 31, 2016 by RG |http://rglinuxtech.com/?p=1750 | |also works for Nvidia driver 367.35 | |Usage: |- install Nvidia driver 367.35 preferrable with DKMS option |- cd /usr/src |- ensure that Nvidia driver 367.35 sources are installed: ls -l
/usr/src/nvidia-367.35
|- dkms install -m nvidia -v 367.35 -k 4.7.0-4.g89a2ada-default |- restart Xorg | |--- nvidia-367.35/nvidia-uvm/uvm8_gpu.c 2016-07-25
10:06:45.382539059 +0200
|+++ nvidia-367.35/nvidia-uvm/uvm8_gpu.c 2016-07-26
14:36:40.647188630 +0200 -------------------------- File to patch:
doesn't work here ??? Hello,
I attached a patch that works with the --apply-patch function of the nvidia run script. Greetings Fabian
On 08/07/2016 05:49 AM, Fabian Niepelt wrote:
On Samstag, 6. August 2016 19:30:59 CEST Patrick Shanahan wrote:
* Roman Bysh <rbtc1@rogers.com> [08-06-16 18:41]: [...]
sh NVIDIA-Linux-x86_64-367.35.run --apply-patch nvidia-367.35-kernel-4.7.patch sh ./NVIDIA-Linux-x86_64-367.35.run --apply-patch ./nvidia-367.35-kernel-4.7.patch Verifying archive integrity... OK Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 367.35......... ........................... can't find file to patch at input line 17 Perhaps you used the wrong -p or --strip option? The text leading up to this was:
|Source: |NVIDIA – Possible Kernel 4.7 Fix for 361.45.11 and 367.18.. |Posted on May 31, 2016 by RG |http://rglinuxtech.com/?p=1750 | |also works for Nvidia driver 367.35 | |Usage: |- install Nvidia driver 367.35 preferrable with DKMS option |- cd /usr/src |- ensure that Nvidia driver 367.35 sources are installed: ls -l
/usr/src/nvidia-367.35
|- dkms install -m nvidia -v 367.35 -k 4.7.0-4.g89a2ada-default |- restart Xorg | |--- nvidia-367.35/nvidia-uvm/uvm8_gpu.c 2016-07-25
10:06:45.382539059 +0200
|+++ nvidia-367.35/nvidia-uvm/uvm8_gpu.c 2016-07-26
14:36:40.647188630 +0200 -------------------------- File to patch:
doesn't work here ??? Hello,
I attached a patch that works with the --apply-patch function of the nvidia run script.
Greetings Fabian
Thank you (any everyone else on ML who shared/contributed). Works great. -- Regards, Uzair Shamim -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
* Bjoern Voigt <bjoernv@arcor.de> [08-06-16 16:27]: [...]
You can install the patch this way. I have downloaded "NVIDIA-Linux-x86_64-367.35.run" to /usr/src. You need the "rm" command only, if the driver is already extracted to /usr/src:
mybox:/usr/src # \rm -r NVIDIA-Linux-x86_64-367.35 mybox:/usr/src # sh NVIDIA-Linux-x86_64-367.35.run -x Creating directory NVIDIA-Linux-x86_64-367.35 Verifying archive integrity... OK Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 367.35 mybox:/usr/src # cd NVIDIA-Linux-x86_64-367.35/kernel/ mybox:/usr/src/NVIDIA-Linux-x86_64-367.35/kernel # patch -p1 < path-to/nvidia-367.35-kernel-4.7.patch patching file nvidia-uvm/uvm8_gpu.c patching file nvidia-uvm/uvm_linux.h patching file nvidia-drm/nvidia-drm-fb.c patching file nvidia-drm/nvidia-drm-gem.c mybox:/usr/src/NVIDIA-Linux-x86_64-367.35/kernel # cd .. mybox:/usr/src/NVIDIA-Linux-x86_64-367.35 # ./nvidia-installer
tks, works for me where "--apply-patch" did not. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (5)
-
Bjoern Voigt
-
Fabian Niepelt
-
Patrick Shanahan
-
Roman Bysh
-
Uzair Shamim