Mailinglist Archive: opensuse-factory (806 mails)

< Previous Next >
Re: [opensuse-factory] New Tumbleweed snapshot 20170225 NVIDIA 378.13 need a patch
* Bruno Friedmann <bruno@xxxxxxxxxxx> [02-27-17 11:04]:
On lundi, 27 février 2017 16.51:27 h CET Patrick Shanahan wrote:
* Bruno Friedmann <bruno@xxxxxxxxxxx> [02-27-17 09:31]:
Please be aware that NVIDIA 378.13.run need a patch applied to build
correctly the driver with kernel 4.10

Patch is located there
https://pkgs.rpmfusion.org/cgit/nonfree/nvidia-kmod.git/plain/
kernel_4.10.patch

Applied here, and work like a charm.

and for the unknowing of us (me), please provide the command line syntax
to apply the patch.

tks,
If you can't run the NVIDIA.run --help and pick from that your poison I would
avoid to touch or use that tool :-)

One line command allowing you to create a -custom.run

./NVIDIA-Linux-x86_64-378.13.run -a --ui=none -no-x-check --glvnd-glx-client -
k 4.10.0-1-default --apply-patch kernel_4.10.patch

When the patch will be applied, as Nvidia expect a -p0 and the patch is
formatted as -p1 you will have to anwser with file to patch.
simply remove the a/

as show below...

can't find file to patch at input line 18
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From ca8b106738521823707f3567cedb41ca158792a3 Mon Sep 17 00:00:00 2001
|From: Alberto Milone <alberto.milone@xxxxxxxxxxxxx>
|Date: Wed, 15 Feb 2017 10:53:42 +0100
|Subject: [PATCH 1/1] Add support for Linux 4.10
|
|---
| common/inc/nv-mm.h | 9 ++++--
| nvidia-drm/nvidia-drm-fence.c | 72 +++++++++++++++++++++++++++++++++++++++++
++
| nvidia-drm/nvidia-drm-gem.h | 6 ++++
| nvidia-drm/nvidia-drm-priv.h | 7 +++++
| nvidia/nv-pat.c | 40 ++++++++++++++++++++++++
| 5 files changed, 132 insertions(+), 2 deletions(-)
|
|diff --git a/kernel/common/inc/nv-mm.h b/kernel/common/inc/nv-mm.h
|index 06d7da4..e5cc56a 100644
|--- a/kernel/common/inc/nv-mm.h
|+++ b/kernel/common/inc/nv-mm.h
--------------------------
File to patch: kernel/common/inc/nv-mm.h

I get here but,

--------------------------
File to patch: kernel/common/inc/nv-mm.h
patching file kernel/common/inc/nv-mm.h
Hunk #1 FAILED at 31.
Hunk #2 FAILED at 51.
Hunk #3 FAILED at 59.
Hunk #4 FAILED at 67.
Hunk #5 FAILED at 99.
Hunk #6 FAILED at 107.
Hunk #7 FAILED at 136.
Hunk #8 FAILED at 146.
Hunk #9 FAILED at 155.
Hunk #10 FAILED at 170.
Hunk #11 FAILED at 285.
Hunk #12 FAILED at 301.
Hunk #13 FAILED at 320.
Hunk #14 FAILED at 513.
Hunk #15 FAILED at 670.
Hunk #16 FAILED at 680.
16 out of 16 hunks FAILED -- saving rejects to file
kernel/common/inc/nv-mm.h.rej
can't find file to patch at input line 253
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/kernel/nvidia-drm/nvidia-drm-gem.h
b/kernel/nvidia-drm/nvidia-drm-gem.h
|index 4ff45e8..394576b 100644
|--- a/kernel/nvidia-drm/nvidia-drm-gem.h
|+++ b/kernel/nvidia-drm/nvidia-drm-gem.h
--------------------------
File to patch:


tks,
--
(paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri
http://en.opensuse.org openSUSE Community Member facebook/ptilopteri
Photos: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535

Photos: http://wahoo.no-ip.org/piwigo @ http://linuxcounter.net
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >