uname -a
Linux tumbleweed 4.10.1-1-default #1 SMP PREEMPT Sun Feb 26 12:43:10 UTC 2017 (1ecd5af) x86_64 x86_64 x86_64 GNU/Linux
Legacy driver 340.102 and failed patch output:
./NVIDIA-Linux-x86_64-340.102.run --apply-patch kernel_4.10.patch
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 340.102.................................................................................................................................................................................................................................
can't find file to patch at input line 16
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 983a2ca221a371e08bb5ad11758a729cfa5aa88c Mon Sep 17 00:00:00 2001
|From: Alberto Milone <alberto.milone@canonical.com>
|Date: Wed, 15 Feb 2017 17:05:55 +0100
|Subject: [PATCH 1/1] Add support for Linux 4.10
|
|---
| nv-linux.h | 7 +++++++
| nv-pat.c | 40 ++++++++++++++++++++++++++++++++++++++++
| uvm/nvidia_uvm_lite.c | 4 ++++
| 3 files changed, 51 insertions(+)
|
|diff --git a/kernel/nv-linux.h b/kernel/nv-linux.h
|index e7068e3..2d62492 100644
|--- a/kernel/nv-linux.h
|+++ b/kernel/nv-linux.h
--------------------------
File to patch:
Also used
patch -p1 < path to file
in a directory created during the extraction of the run file. Just to double check the method.
the patch is from here:
https://pkgs.rpmfusion.org/cgit/nonfree/nvidia-340xx-kmod.git/plain/4.10.0_kernel.patch
thanks