|
|
#13 | |
|
Registered User
Join Date: Jan 2009
Posts: 19
|
I figured that out after posting. I just commented out "else" part of the code.
![]() |
|
|
|
|
|
|
#14 | |
|
Registered User
Join Date: Oct 2004
Posts: 17
|
Combining the changes in conftest.sh and nv-linux.h in one patch for convenience. It works for me. Thanks thefirstm.
|
|
|
|
|
|
|
#15 |
|
Registered User
Join Date: Apr 2006
Posts: 6
|
Thanks for the patch, it is working
![]() |
|
|
|
|
|
#16 | |
|
Registered User
Join Date: Dec 2002
Posts: 44
|
how do you apply kernel-3.0-rc1.patch.txt ? need some steps please.
I have ubuntu 10.10 x64 with 3.0-rc1 kernel. Using this command: sudo sh NVIDIA-Linux-x86_64-270.41.19.run --apply-patch kernel-3.0-rc1.patch.txt Trying to patch 275.09 x64 or 270.41.19 x64 I get this patching file conftest.sh Hunk #1 FAILED at 76. 1 out of 1 hunk FAILED -- saving rejects to file conftest.sh.rej patching file nv-linux.h Hunk #1 FAILED at 32. 1 out of 1 hunk FAILED -- saving rejects to file nv-linux.h.rej p.s. that's what I get when I try to install normal driver 275.09 x64 or 270.41.19 x64 on kernel 3.0-rc1 If you are using a Linux 2.4 kernel, please make sure you either have configured kernel sources matching your kernel or the correct set of kernel headers installed on your system. If you are using a Linux 2.6 kernel, please make sure you have configured kernel sources matching your kernel installed on your system. If you specified a separate output directory using either the "KBUILD_OUTPUT" or the "O" KBUILD parameter, make sure to specify this directory with the SYSOUT environment variable or with the equivalent nvidia-installer command line option. Depending on where and how the kernel sources (or the kernel headers) were installed, you may need to specify their location with the SYSSRC environment variable or the equivalent nvidia-installer command line option. *** Unable to determine the target kernel version. *** |
|
|
|
|
|
|
#17 |
|
Registered User
Join Date: Feb 2007
Posts: 115
|
the patch lacks the subfolder structure so you'll have to patch by hand
extract the package with -x then you can apply the patch there or just go in the single files and do the changes after all it's just adding an -O2 and replacing a 2 and a 7 with a 3 and a 1 |
|
|
|
|
|
#18 | |
|
Registered User
Join Date: Dec 2002
Posts: 44
|
Quote:
sudo sh NVIDIA-Linux-x86_64-275.09 --apply-patch patch.txt ? please give me step by step I'm not a coder ![]() |
|
|
|
|
|
|
#19 |
|
Registered User
Join Date: Feb 2007
Posts: 115
|
cd to the folder "kernel" then patch -p0 < patch.txt
|
|
|
|
|
|
#20 |
|
Registered User
Join Date: Dec 2002
Posts: 44
|
|
|
|
|
|
|
#21 |
|
Registered User
Join Date: Dec 2002
Posts: 44
|
I just tried to install patched driver with sudo ./nvidia-installer and still get the same message:
"If you are using a Linux 2.4 kernel, please make sure you either have configured kernel sources matching your kernel or the correct set of kernel headers installed on your system. If you are using a Linux 2.6 kernel, please make sure you have configured kernel sources matching your kernel installed on your system. If you specified a separate output directory using either the "KBUILD_OUTPUT" or the "O" KBUILD parameter, make sure to specify this directory with the SYSOUT environment variable or with the equivalent nvidia-installer command line option. Depending on where and how the kernel sources (or the kernel headers) were installed, you may need to specify their location with the SYSSRC environment variable or the equivalent nvidia-installer command line option." |
|
|
|
|
|
#22 |
|
Registered User
Join Date: Feb 2007
Posts: 115
|
well check by hand the conftest for the O2 that message should be generated in the case that patch wasn't applied (as for the version patch it returned an error while building, in place, if it wasn't applied). at least by doing -K --kernel-name=name it worked here (i build the modules for a newly installed kernel before starting it)
|
|
|
|
|
|
#23 | |
|
Registered User
Join Date: May 2008
Location: Relativity
Posts: 194
|
Quote:
__________________
Elephants can fly but they have no reason to. ------------------------------------------ Phenom II X3 720 @ 3.5Ghz | Asus M4A785-M | 2 Gig Crucial DDR2 @ 960 Mhz | GeForce GT 440 1024 MB | Linux 3.6.1 / Ubuntu 12.04 / W.I.N.E v1.5.14 |
|
|
|
|
|
|
#24 |
|
Registered User
Join Date: Oct 2004
Posts: 17
|
Sorry if the patch is giving people problems. I diffed in the kernel directory because the PKGBUILD (a.k.a. build script) for my Arch distro changes to that directory to compile the Nvidia module. It doesn't directly use the Nvidia installer.
For those using the Nvidia installer, here are step by step instructions, assuming both NVIDIA-Linux-x86_64-270.41.19.run (or whatever version you're using - sub in the right name if necessary in the instructions) and kernel-3.0-rc1.patch.txt are in your home directory, and that you use sudo to run the Nvidia installer: Code:
$ sh .NVIDIA-Linux-x86_64-270.41.19.run --extract-only $ cd NVIDIA-Linux-x86_64-270.41.19.run/kernel $ cat ../../kernel-3.0-rc1.patch.txt | patch -p0 $ cd .. $ sudo ./nvidia-installer |
|
|
|
![]() |
| Thread Tools | |
|
|