3.*-RT kernels and the NVidia drivers - PATCH

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

Post Reply
trulan
Established Member
Posts: 32
Joined: Tue Jul 13, 2010 12:55 am

3.*-RT kernels and the NVidia drivers - PATCH

Post 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!
trulan
Established Member
Posts: 32
Joined: Tue Jul 13, 2010 12:55 am

Re: 3.*-RT kernels and the NVidia drivers - PATCH

Post 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:

Code: Select all

su
(or add sudo the rest of the commands, depending on your distro)

Code: Select all

service slim stop
(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.
Attachments
nvidia_linux_3.0-rt.patch.tar.bz2
(713 Bytes) Downloaded 317 times
yossarianuk
Posts: 1
Joined: Fri Jan 20, 2012 1:11 pm

Re: 3.*-RT kernels and the NVidia drivers - PATCH

Post 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?
Post Reply