Patch for 325.08 on Linux 3.10
  1 / 2    
Here is a patch that allows for the installation of Nvidia 325.08 on the newly-released Linux 3.10.
Here is a patch that allows for the installation of Nvidia 325.08 on the newly-released Linux 3.10.
Attachments

3.10.patch.txt

#1
Posted 07/02/2013 01:57 AM   
how do you patch .run file ? I get this can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -U 3 -H -d -r -N -- nv-i2c.c.orig nv-i2c.c |--- nv-i2c.c.orig 2013-07-01 21:45:45.241886356 -0400 |+++ nv-i2c.c 2013-07-01 21:38:49.532484245 -0400 --------------------------
how do you patch .run file ?

I get this
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -U 3 -H -d -r -N -- nv-i2c.c.orig nv-i2c.c
|--- nv-i2c.c.orig 2013-07-01 21:45:45.241886356 -0400
|+++ nv-i2c.c 2013-07-01 21:38:49.532484245 -0400
--------------------------

#2
Posted 07/02/2013 04:54 AM   
here is a -p1 patch from unpacked package root. In fact I had only to change 2 lines from the 319.23 patch
here is a -p1 patch from unpacked package root.

In fact I had only to change 2 lines from the 319.23 patch

#3
Posted 07/02/2013 05:36 AM   
How do I apply this? Thanks!
How do I apply this? Thanks!

#4
Posted 07/04/2013 04:06 AM   
1. cd into the unpacked archive 2. patch -p1 < file
1. cd into the unpacked archive
2. patch -p1 < file

#5
Posted 07/04/2013 10:21 AM   
Thanks, patch worked fine. My htpc is now using kernel 3.10 and vdpau is working like a champ! :)
Thanks, patch worked fine. My htpc is now using kernel 3.10 and vdpau is working like a champ! :)

#6
Posted 07/05/2013 06:56 PM   
In my experience, I had to change 6 lines in the nvidia-drivers-linux-3.10.patch.txt because I'm using the latest 325-08 driver. Patch was successful :-)
In my experience, I had to change 6 lines in the nvidia-drivers-linux-3.10.patch.txt because I'm using the latest 325-08 driver. Patch was successful :-)

#7
Posted 07/05/2013 09:46 PM   
@Robert_SoCal: Great! I'm also using the latest 325-08 driver! But: Can we get a little bit more details? Or better a new patch-file? The result of the last patch (nvidia-drivers-linux-3.10.patch.txt): can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c |--- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c 2013-04-26 00:22:30.000000000 -0400 |+++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c 2013-05-13 05:20:55.571981365 -0400 -------------------------- File to patch: NVIDIA-Linux-x86_64-325.08.run patching file NVIDIA-Linux-x86_64-325.08.run Hunk #1 FAILED at 311. Hunk #2 FAILED at 324. 2 out of 2 hunks FAILED -- saving rejects to file NVIDIA-Linux-x86_64-325.08.run.rej can't find file to patch at input line 35 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c |--- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c 2013-04-26 00:22:30.000000000 -0400 |+++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c 2013-05-22 04:52:45.229495748 -0400 -------------------------- File to patch: NVIDIA-Linux-x86_64-325.08.run patching file NVIDIA-Linux-x86_64-325.08.run Hunk #1 FAILED at 60. Hunk #2 FAILED at 134. Hunk #3 FAILED at 166. Hunk #4 FAILED at 180. Hunk #5 FAILED at 193. Hunk #6 FAILED at 201. Hunk #7 FAILED at 233. Hunk #8 FAILED at 282. Hunk #9 FAILED at 346. Hunk #10 FAILED at 469. Hunk #11 FAILED at 513. Hunk #12 FAILED at 553. Hunk #13 FAILED at 571. Hunk #14 FAILED at 587. Hunk #15 FAILED at 595. 15 out of 15 hunks FAILED -- saving rejects to file NVIDIA-Linux-x86_64-325.08.run.rej Thank you for help!
@Robert_SoCal: Great! I'm also using the latest 325-08 driver!

But: Can we get a little bit more details? Or better a new patch-file?

The result of the last patch (nvidia-drivers-linux-3.10.patch.txt):

can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c
|--- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c 2013-04-26 00:22:30.000000000 -0400
|+++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c 2013-05-13 05:20:55.571981365 -0400
--------------------------
File to patch: NVIDIA-Linux-x86_64-325.08.run
patching file NVIDIA-Linux-x86_64-325.08.run
Hunk #1 FAILED at 311.
Hunk #2 FAILED at 324.
2 out of 2 hunks FAILED -- saving rejects to file NVIDIA-Linux-x86_64-325.08.run.rej
can't find file to patch at input line 35
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c
|--- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c 2013-04-26 00:22:30.000000000 -0400
|+++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c 2013-05-22 04:52:45.229495748 -0400
--------------------------
File to patch: NVIDIA-Linux-x86_64-325.08.run
patching file NVIDIA-Linux-x86_64-325.08.run
Hunk #1 FAILED at 60.
Hunk #2 FAILED at 134.
Hunk #3 FAILED at 166.
Hunk #4 FAILED at 180.
Hunk #5 FAILED at 193.
Hunk #6 FAILED at 201.
Hunk #7 FAILED at 233.
Hunk #8 FAILED at 282.
Hunk #9 FAILED at 346.
Hunk #10 FAILED at 469.
Hunk #11 FAILED at 513.
Hunk #12 FAILED at 553.
Hunk #13 FAILED at 571.
Hunk #14 FAILED at 587.
Hunk #15 FAILED at 595.
15 out of 15 hunks FAILED -- saving rejects to file NVIDIA-Linux-x86_64-325.08.run.rej

Thank you for help!

#8
Posted 07/06/2013 01:34 AM   
Created a patch to fix a compilation error on the latest mainline Linux Kernel (global variable num_physpages has been removed). I noticed that my patch only works on the development kernel at [url]https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/[/url] but not on the 3.10 stable release. Use nvidia-drivers-linux-3.10.patch.txt for the 3.10 stable kernel.
Created a patch to fix a compilation error on the latest mainline Linux Kernel (global variable num_physpages has been removed).

I noticed that my patch only works on the development kernel at https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/ but not on the 3.10 stable release. Use nvidia-drivers-linux-3.10.patch.txt for the 3.10 stable kernel.
Attachments

325.08_3.10.patch.txt

#9
Posted 07/06/2013 01:20 PM   
[quote="felixrg"]Created a patch to fix a compilation error on the latest mainline Linux Kernel (global variable num_physpages has been removed).[/quote] Hello, i apply the patch and Give me this error [code]In file included from /usr/src/linux-3.10/include/uapi/linux/stddef.h:1:0, from /usr/src/linux-3.10/include/linux/stddef.h:4, from /usr/src/linux-3.10/include/uapi/linux/posix_types.h:4, from /usr/src/linux-3.10/include/uapi/linux/types.h:13, from /usr/src/linux-3.10/include/linux/types.h:5, from /usr/src/linux-3.10/include/uapi/linux/capability.h:16, from /usr/src/linux-3.10/include/linux/capability.h:15, from /usr/src/linux-3.10/include/linux/sched.h:13, from /usr/src/linux-3.10/include/linux/utsname.h:5, from /home/cr1ogen/Descargas/NVIDIA-Linux-x86_64-325.08/kernel/nv-linux.h:44, from /home/cr1ogen/Descargas/NVIDIA-Linux-x86_64-325.08/kernel/os-interface.c:15: /usr/src/linux-3.10/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’: /usr/src/linux-3.10/arch/x86/include/asm/uaccess_64.h:62:28: warning: comparison between signed and\ unsigned integer expressions [-Wsign-compare] if (likely(sz == -1 || sz >= n)) ^ /usr/src/linux-3.10/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ /home/cr1ogen/Descargas/NVIDIA-Linux-x86_64-325.08/kernel/os-interface.c: In function ‘os_get_syste\ m_memory_size’: /home/cr1ogen/Descargas/NVIDIA-Linux-x86_64-325.08/kernel/os-interface.c:244:5: error: implicit dec\ laration of function ‘get_num_physpages’ [-Werror=implicit-function-declaration] return (((NvU64)NV_NUM_PHYSPAGES * PAGE_SIZE) / RM_PAGE_SIZE); ^ cc1: some warnings being treated as errors make[3]: *** [/home/cr1ogen/Descargas/NVIDIA-Linux-x86_64-325.08/kernel/os-interface.o] Error 1 make[2]: *** [_module_/home/cr1ogen/Descargas/NVIDIA-Linux-x86_64-325.08/kernel] Error 2 make[1]: *** [sub-make] Error 2 make[1]: se sale del directorio `/usr/src/linux-3.10' NVIDIA: left KBUILD. nvidia.ko failed to build! make: *** [module] Error 1 -> Error.[/code] Thanks!!
felixrg said:Created a patch to fix a compilation error on the latest mainline Linux Kernel (global variable num_physpages has been removed).

Hello, i apply the patch and Give me this error

In file included from /usr/src/linux-3.10/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-3.10/include/linux/stddef.h:4,
from /usr/src/linux-3.10/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-3.10/include/uapi/linux/types.h:13,
from /usr/src/linux-3.10/include/linux/types.h:5,
from /usr/src/linux-3.10/include/uapi/linux/capability.h:16,
from /usr/src/linux-3.10/include/linux/capability.h:15,
from /usr/src/linux-3.10/include/linux/sched.h:13,
from /usr/src/linux-3.10/include/linux/utsname.h:5,
from /home/cr1ogen/Descargas/NVIDIA-Linux-x86_64-325.08/kernel/nv-linux.h:44,
from /home/cr1ogen/Descargas/NVIDIA-Linux-x86_64-325.08/kernel/os-interface.c:15:
/usr/src/linux-3.10/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’:
/usr/src/linux-3.10/arch/x86/include/asm/uaccess_64.h:62:28: warning: comparison between signed and\
unsigned integer expressions [-Wsign-compare]
if (likely(sz == -1 || sz >= n))
^
/usr/src/linux-3.10/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’
# define likely(x) __builtin_expect(!!(x), 1)
^
/home/cr1ogen/Descargas/NVIDIA-Linux-x86_64-325.08/kernel/os-interface.c: In function ‘os_get_syste\
m_memory_size’:
/home/cr1ogen/Descargas/NVIDIA-Linux-x86_64-325.08/kernel/os-interface.c:244:5: error: implicit dec\
laration of function ‘get_num_physpages’ [-Werror=implicit-function-declaration]
return (((NvU64)NV_NUM_PHYSPAGES * PAGE_SIZE) / RM_PAGE_SIZE);
^
cc1: some warnings being treated as errors
make[3]: *** [/home/cr1ogen/Descargas/NVIDIA-Linux-x86_64-325.08/kernel/os-interface.o] Error 1
make[2]: *** [_module_/home/cr1ogen/Descargas/NVIDIA-Linux-x86_64-325.08/kernel] Error 2
make[1]: *** [sub-make] Error 2
make[1]: se sale del directorio `/usr/src/linux-3.10'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make: *** [module] Error 1
-> Error.


Thanks!!

#10
Posted 07/06/2013 03:22 PM   
[quote="matbhm"]@Robert_SoCal: Great! I'm also using the latest 325-08 driver! But: Can we get a little bit more details? Or better a new patch-file? The result of the last patch (nvidia-drivers-linux-3.10.patch.txt): can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c |--- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c 2013-04-26 00:22:30.000000000 -0400 |+++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c 2013-05-13 05:20:55.571981365 -0400 -------------------------- File to patch: NVIDIA-Linux-x86_64-325.08.run patching file NVIDIA-Linux-x86_64-325.08.run Hunk #1 FAILED at 311. Hunk #2 FAILED at 324. 2 out of 2 hunks FAILED -- saving rejects to file NVIDIA-Linux-x86_64-325.08.run.rej can't find file to patch at input line 35 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c |--- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c 2013-04-26 00:22:30.000000000 -0400 |+++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c 2013-05-22 04:52:45.229495748 -0400 -------------------------- File to patch: NVIDIA-Linux-x86_64-325.08.run patching file NVIDIA-Linux-x86_64-325.08.run Hunk #1 FAILED at 60. Hunk #2 FAILED at 134. Hunk #3 FAILED at 166. Hunk #4 FAILED at 180. Hunk #5 FAILED at 193. Hunk #6 FAILED at 201. Hunk #7 FAILED at 233. Hunk #8 FAILED at 282. Hunk #9 FAILED at 346. Hunk #10 FAILED at 469. Hunk #11 FAILED at 513. Hunk #12 FAILED at 553. Hunk #13 FAILED at 571. Hunk #14 FAILED at 587. Hunk #15 FAILED at 595. 15 out of 15 hunks FAILED -- saving rejects to file NVIDIA-Linux-x86_64-325.08.run.rej Thank you for help![/quote] OK, here's what I did in patching the 325.08 driver: 1) Extract the Nvidia driver by typing "NVIDIA-Linux-x86_64-325.08.run --extract-only" 2) Then copy patch program "nvidia-drivers-linux-3.10.patch.txt" into the unpacked directory. 3) Open the patch program and change the following lines: diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c --- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c 2013-04-26 00:22:30.000000000 -0400 +++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c 2013-05-13 05:20:55.571981365 -0400 into: diff -ur -X - NVIDIA-Linux-x86_64-325.08.orig/kernel/nv-i2c.c NVIDIA-Linux-x86_64-325.08/kernel/nv-i2c.c --- NVIDIA-Linux-x86_64-325.08.orig/kernel/nv-i2c.c 2013-04-26 00:22:30.000000000 -0400 +++ NVIDIA-Linux-x86_64-325.08/kernel/nv-i2c.c 2013-05-13 05:20:55.571981365 -0400 4) Then perform the same action on these lines: diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c --- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c 2013-04-26 00:22:30.000000000 -0400 +++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c 2013-05-22 04:52:45.229495748 -0400 Change to: diff -ur -X - NVIDIA-Linux-x86_64-325.08.orig/kernel/nv-procfs.c NVIDIA-Linux-x86_64-325.08/kernel/nv-procfs.c --- NVIDIA-Linux-x86_64-325.08.orig/kernel/nv-procfs.c 2013-04-26 00:22:30.000000000 -0400 +++ NVIDIA-Linux-x86_64-325.08/kernel/nv-procfs.c 2013-05-22 04:52:45.229495748 -0400 5) Then SAVE your changes and then patch the file by typing "patch -p1 < nvidia-drivers-linux-3.10.patch.txt" 6) At this point, ALL of the Hunk files should have patched successfully. 7) Now you can compile the Nvidia 325.08 driver by running "nvidia-installer"
matbhm said:@Robert_SoCal: Great! I'm also using the latest 325-08 driver!

But: Can we get a little bit more details? Or better a new patch-file?

The result of the last patch (nvidia-drivers-linux-3.10.patch.txt):

can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c
|--- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c 2013-04-26 00:22:30.000000000 -0400
|+++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c 2013-05-13 05:20:55.571981365 -0400
--------------------------
File to patch: NVIDIA-Linux-x86_64-325.08.run
patching file NVIDIA-Linux-x86_64-325.08.run
Hunk #1 FAILED at 311.
Hunk #2 FAILED at 324.
2 out of 2 hunks FAILED -- saving rejects to file NVIDIA-Linux-x86_64-325.08.run.rej
can't find file to patch at input line 35
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c
|--- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c 2013-04-26 00:22:30.000000000 -0400
|+++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c 2013-05-22 04:52:45.229495748 -0400
--------------------------
File to patch: NVIDIA-Linux-x86_64-325.08.run
patching file NVIDIA-Linux-x86_64-325.08.run
Hunk #1 FAILED at 60.
Hunk #2 FAILED at 134.
Hunk #3 FAILED at 166.
Hunk #4 FAILED at 180.
Hunk #5 FAILED at 193.
Hunk #6 FAILED at 201.
Hunk #7 FAILED at 233.
Hunk #8 FAILED at 282.
Hunk #9 FAILED at 346.
Hunk #10 FAILED at 469.
Hunk #11 FAILED at 513.
Hunk #12 FAILED at 553.
Hunk #13 FAILED at 571.
Hunk #14 FAILED at 587.
Hunk #15 FAILED at 595.
15 out of 15 hunks FAILED -- saving rejects to file NVIDIA-Linux-x86_64-325.08.run.rej

Thank you for help!


OK, here's what I did in patching the 325.08 driver:

1) Extract the Nvidia driver by typing "NVIDIA-Linux-x86_64-325.08.run --extract-only"

2) Then copy patch program "nvidia-drivers-linux-3.10.patch.txt" into the unpacked directory.

3) Open the patch program and change the following lines:

diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c
--- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c 2013-04-26 00:22:30.000000000 -0400
+++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c 2013-05-13 05:20:55.571981365 -0400

into:

diff -ur -X - NVIDIA-Linux-x86_64-325.08.orig/kernel/nv-i2c.c NVIDIA-Linux-x86_64-325.08/kernel/nv-i2c.c
--- NVIDIA-Linux-x86_64-325.08.orig/kernel/nv-i2c.c 2013-04-26 00:22:30.000000000 -0400
+++ NVIDIA-Linux-x86_64-325.08/kernel/nv-i2c.c 2013-05-13 05:20:55.571981365 -0400

4) Then perform the same action on these lines:

diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c
--- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c 2013-04-26 00:22:30.000000000 -0400
+++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c 2013-05-22 04:52:45.229495748 -0400

Change to:

diff -ur -X - NVIDIA-Linux-x86_64-325.08.orig/kernel/nv-procfs.c NVIDIA-Linux-x86_64-325.08/kernel/nv-procfs.c
--- NVIDIA-Linux-x86_64-325.08.orig/kernel/nv-procfs.c 2013-04-26 00:22:30.000000000 -0400
+++ NVIDIA-Linux-x86_64-325.08/kernel/nv-procfs.c 2013-05-22 04:52:45.229495748 -0400

5) Then SAVE your changes and then patch the file by typing "patch -p1 < nvidia-drivers-linux-3.10.patch.txt"

6) At this point, ALL of the Hunk files should have patched successfully.

7) Now you can compile the Nvidia 325.08 driver by running "nvidia-installer"

#11
Posted 07/06/2013 06:10 PM   
[quote="Robert_SoCal"][quote="matbhm"]@Robert_SoCal: Great! I'm also using the latest 325-08 driver! But: Can we get a little bit more details? Or better a new patch-file? The result of the last patch (nvidia-drivers-linux-3.10.patch.txt): can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c |--- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c 2013-04-26 00:22:30.000000000 -0400 |+++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c 2013-05-13 05:20:55.571981365 -0400 -------------------------- File to patch: NVIDIA-Linux-x86_64-325.08.run patching file NVIDIA-Linux-x86_64-325.08.run Hunk #1 FAILED at 311. Hunk #2 FAILED at 324. 2 out of 2 hunks FAILED -- saving rejects to file NVIDIA-Linux-x86_64-325.08.run.rej can't find file to patch at input line 35 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c |--- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c 2013-04-26 00:22:30.000000000 -0400 |+++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c 2013-05-22 04:52:45.229495748 -0400 -------------------------- File to patch: NVIDIA-Linux-x86_64-325.08.run patching file NVIDIA-Linux-x86_64-325.08.run Hunk #1 FAILED at 60. Hunk #2 FAILED at 134. Hunk #3 FAILED at 166. Hunk #4 FAILED at 180. Hunk #5 FAILED at 193. Hunk #6 FAILED at 201. Hunk #7 FAILED at 233. Hunk #8 FAILED at 282. Hunk #9 FAILED at 346. Hunk #10 FAILED at 469. Hunk #11 FAILED at 513. Hunk #12 FAILED at 553. Hunk #13 FAILED at 571. Hunk #14 FAILED at 587. Hunk #15 FAILED at 595. 15 out of 15 hunks FAILED -- saving rejects to file NVIDIA-Linux-x86_64-325.08.run.rej Thank you for help![/quote] OK, here's what I did in patching the 325.08 driver: 1) Extract the Nvidia driver by typing "NVIDIA-Linux-x86_64-325.08.run --extract-only" 2) Then copy patch program "nvidia-drivers-linux-3.10.patch.txt" into the unpacked directory. 3) Open the patch program and change the following lines: diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c --- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c 2013-04-26 00:22:30.000000000 -0400 +++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c 2013-05-13 05:20:55.571981365 -0400 into: diff -ur -X - NVIDIA-Linux-x86_64-325.08.orig/kernel/nv-i2c.c NVIDIA-Linux-x86_64-325.08/kernel/nv-i2c.c --- NVIDIA-Linux-x86_64-325.08.orig/kernel/nv-i2c.c 2013-04-26 00:22:30.000000000 -0400 +++ NVIDIA-Linux-x86_64-325.08/kernel/nv-i2c.c 2013-05-13 05:20:55.571981365 -0400 4) Then perform the same action on these lines: diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c --- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c 2013-04-26 00:22:30.000000000 -0400 +++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c 2013-05-22 04:52:45.229495748 -0400 Change to: diff -ur -X - NVIDIA-Linux-x86_64-325.08.orig/kernel/nv-procfs.c NVIDIA-Linux-x86_64-325.08/kernel/nv-procfs.c --- NVIDIA-Linux-x86_64-325.08.orig/kernel/nv-procfs.c 2013-04-26 00:22:30.000000000 -0400 +++ NVIDIA-Linux-x86_64-325.08/kernel/nv-procfs.c 2013-05-22 04:52:45.229495748 -0400 5) Then SAVE your changes and then patch the file by typing "patch -p1 < nvidia-drivers-linux-3.10.patch.txt" 6) At this point, ALL of the Hunk files should have patched successfully. 7) Now you can compile the Nvidia 325.08 driver by running "nvidia-installer" [/quote] This patch works for me Thanks!!!!
Robert_SoCal said:
matbhm said:@Robert_SoCal: Great! I'm also using the latest 325-08 driver!

But: Can we get a little bit more details? Or better a new patch-file?

The result of the last patch (nvidia-drivers-linux-3.10.patch.txt):

can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c
|--- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c 2013-04-26 00:22:30.000000000 -0400
|+++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c 2013-05-13 05:20:55.571981365 -0400
--------------------------
File to patch: NVIDIA-Linux-x86_64-325.08.run
patching file NVIDIA-Linux-x86_64-325.08.run
Hunk #1 FAILED at 311.
Hunk #2 FAILED at 324.
2 out of 2 hunks FAILED -- saving rejects to file NVIDIA-Linux-x86_64-325.08.run.rej
can't find file to patch at input line 35
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c
|--- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c 2013-04-26 00:22:30.000000000 -0400
|+++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c 2013-05-22 04:52:45.229495748 -0400
--------------------------
File to patch: NVIDIA-Linux-x86_64-325.08.run
patching file NVIDIA-Linux-x86_64-325.08.run
Hunk #1 FAILED at 60.
Hunk #2 FAILED at 134.
Hunk #3 FAILED at 166.
Hunk #4 FAILED at 180.
Hunk #5 FAILED at 193.
Hunk #6 FAILED at 201.
Hunk #7 FAILED at 233.
Hunk #8 FAILED at 282.
Hunk #9 FAILED at 346.
Hunk #10 FAILED at 469.
Hunk #11 FAILED at 513.
Hunk #12 FAILED at 553.
Hunk #13 FAILED at 571.
Hunk #14 FAILED at 587.
Hunk #15 FAILED at 595.
15 out of 15 hunks FAILED -- saving rejects to file NVIDIA-Linux-x86_64-325.08.run.rej

Thank you for help!


OK, here's what I did in patching the 325.08 driver:

1) Extract the Nvidia driver by typing "NVIDIA-Linux-x86_64-325.08.run --extract-only"

2) Then copy patch program "nvidia-drivers-linux-3.10.patch.txt" into the unpacked directory.

3) Open the patch program and change the following lines:

diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c
--- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-i2c.c 2013-04-26 00:22:30.000000000 -0400
+++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-i2c.c 2013-05-13 05:20:55.571981365 -0400

into:

diff -ur -X - NVIDIA-Linux-x86_64-325.08.orig/kernel/nv-i2c.c NVIDIA-Linux-x86_64-325.08/kernel/nv-i2c.c
--- NVIDIA-Linux-x86_64-325.08.orig/kernel/nv-i2c.c 2013-04-26 00:22:30.000000000 -0400
+++ NVIDIA-Linux-x86_64-325.08/kernel/nv-i2c.c 2013-05-13 05:20:55.571981365 -0400

4) Then perform the same action on these lines:

diff -ur -X - NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c
--- NVIDIA-Linux-x86_64-319.17-no-compat32.orig/kernel/nv-procfs.c 2013-04-26 00:22:30.000000000 -0400
+++ NVIDIA-Linux-x86_64-319.17-no-compat32/kernel/nv-procfs.c 2013-05-22 04:52:45.229495748 -0400

Change to:

diff -ur -X - NVIDIA-Linux-x86_64-325.08.orig/kernel/nv-procfs.c NVIDIA-Linux-x86_64-325.08/kernel/nv-procfs.c
--- NVIDIA-Linux-x86_64-325.08.orig/kernel/nv-procfs.c 2013-04-26 00:22:30.000000000 -0400
+++ NVIDIA-Linux-x86_64-325.08/kernel/nv-procfs.c 2013-05-22 04:52:45.229495748 -0400

5) Then SAVE your changes and then patch the file by typing "patch -p1 < nvidia-drivers-linux-3.10.patch.txt"

6) At this point, ALL of the Hunk files should have patched successfully.

7) Now you can compile the Nvidia 325.08 driver by running "nvidia-installer"




This patch works for me Thanks!!!!

#12
Posted 07/06/2013 08:51 PM   
i got os-interface error too. I' on kernel 3.10.0+
i got os-interface error too.

I' on kernel 3.10.0+

#13
Posted 07/06/2013 09:12 PM   
[quote="zezadas"]i got os-interface error too. I' on kernel 3.10.0+[/quote] Use the patch nvidia-drivers-linux-3.10.patch.txt with the instrution from Robert_SoCal Sorry for my English
zezadas said:i got os-interface error too.

I' on kernel 3.10.0+


Use the patch nvidia-drivers-linux-3.10.patch.txt

with the instrution from Robert_SoCal
Sorry for my English

#14
Posted 07/06/2013 10:06 PM   
@Robert_SoCal: Thanks a lot! But it was my mistake (I'd drunken three or four glasses of redwine!): I'd forgotten, to change to unpacked archiv. The patch works very fine!
@Robert_SoCal: Thanks a lot! But it was my mistake (I'd drunken three or four glasses of redwine!): I'd forgotten, to change to unpacked archiv. The patch works very fine!

#15
Posted 07/07/2013 01:22 AM   
  1 / 2    
Scroll To Top