Page 1 of 1
3.*-RT kernels and the NVidia drivers - PATCH
Posted: Tue Nov 22, 2011 12:19 pm
by trulan
Hi all,
For those of you interested in using the 3.0 or 3.2 RT_PREEMPT patch who also need the NVidia proprietary drivers, here is a patch: (And no, this one does not violate the GPL.)
http://article.gmane.org/gmane.linux.rt.user/7478
I have not tested this yet, but I intend to in the next few days. Be advised, the author of the patch reports that some hardware locks up with this kernel-driver combination. If my past experience is any indication, I'll be one of the lucky ones to see the hard-freezes.
Happy testing!
Re: 3.*-RT kernels and the NVidia drivers - PATCH
Posted: Tue Nov 22, 2011 6:46 pm
by trulan
I found some time to play with this today. So far, I can get the NVidia module to build, but X fails to start on my system. (big surprise) Anyway, here's the basic steps to patching and building the NVidia driver for a 3.0-rt kernel. I've attached the patch, as the original patch on the mailing list got a bit mangled along the way.
1. Download the latest NVidia driver package:
Code: Select all
wget ftp://download.nvidia.com/XFree86/Linux-x86/290.10/NVIDIA-Linux-x86-290.10.run
2. Extract the package:
Code: Select all
sh NVIDIA-Linux-x86-290.10.run --extract-only
3. Apply the patch:
Code: Select all
cd NVIDIA-Linux-x86-290.10/kernel/
bzcat ~/nvidia_linux_3.0-rt.patch.tar.bz2 | patch -p1
4. Stop X and install the driver:
(or add sudo the rest of the commands, depending on your distro)
(or service gdm stop, or however you kill X on your distro)
Code: Select all
cd ~/NVIDIA-Linux-x86-290.10
nvidia-installer
5. Finally, reboot.
Re: 3.*-RT kernels and the NVidia drivers - PATCH
Posted: Fri Jan 20, 2012 1:22 pm
by yossarianuk
Hi.
Is the patch correct ?
I ask as I down loaded the version from
http://www.linuxmusicians.com/download/file.php?id=91
The patch has the line
#if !defined(__SEMAPHORE_INITIALIZER) && rather than && at the end...
Also when applying the patch I get
---------------------------
patching file nv-linux.h
Hunk #1 succeeded at 265 (offset 3 lines).
Hunk #2 succeeded at 852 with fuzz 2 (offset -2 lines).
patch unexpectedly ends in middle of line
---------------------------
Strangely it works for me on one machine (with nvidia 450GTS) however doesn't on my other system Nvidia 8400SE - Black screen when entering X.
Any ideas?