Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 03-04-07, 08:47 PM   #1
JaXXoN
Registered User
 
Join Date: Jul 2005
Location: Munich
Posts: 910
Default [Installation Instruction] nvidia driver with kernel-rt-2.6.20-0119.rt8 on FC6

Hi!

For those of you Fedora Core 6 users who like to try out realtime preemption,
but are not willing to patch, compile and install a kernel from scratch, Ingo Molnar
is now maintaining approptiate kernel RPM packages. However, if you like to
use the nvidia linux graphics driver, with the most recent precompiled -rt kernel,
then you need to get around a few obstacles. Here is a step-by-step installation
instruction:


0. Make sure your installation does 3D acceleration with a standard kernel
(i.e. 2.6.19-1.2911.fc6)


1. Install the RT kernel:

wget http://people.redhat.com/mingo/realt...9.rt8.i686.rpm
wget http://people.redhat.com/mingo/realt...9.rt8.i686.rpm
rpm -i kernel-rt-2.6.20-0119.rt8.i686.rpm
rpm -i kernel-rt-devel-2.6.20-0119.rt8.i686.rpm


2. Modifiy "modpost" in order to accept non-GPL modules:

2a. Goto to the modpost directory

Code:
cd /usr/src/kernels/2.6.20-0119.rt8-i686/scripts/mod
2b. Delete the following two lines (1197-1198) in file modpost.c:

Code:
if (!mod->gpl_compatible)
   check_for_gpl_usage(exp->export, basename, exp->name);
2c. Recompile modpost

Code:
gcc -o modpost modpost.c file2alias.c sumversion.c

3. Unpack, patch and compile the nvidia driver module

Code:
cd $PATH_TO_NVIDIA_DRIVER_PACKAGE
wget "http://www.nvnews.net/vbulletin/attachment.php?attachmentid=23993&d=1171124108"
sh NVIDIA-Linux-x86-1.0-9746-pkg1.run --extract-only
cd NVIDIA-Linux-x86-1.0-9746-pkg1/usr/src/nv
patch -p1 < ../../../../patch-nv-1.0-9746_realtime-preempt.txt
make SYSSRC=/usr/src/kernels/2.6.20-0119.rt8-i686 module
Where $PATH_TO_NVIDIA_DRIVER_PACKAGE is the directory where you have
saved the nvidia driver package.


4. Manually define the missing symbol entry for "paravirt_ops"

Code:
PARAVIRT_OPS=`grep "D paravirt_ops" /boot/System.map-2.6.20-0119.rt8 | colrm 9`
ld -m elf_i386 --defsym paravirt_ops=0x$PARAVIRT_OPS -r -o nvidia.ko nvidia.o nvidia.mod.o

5. Install the nvidia kernel module

Code:
cp nvidia.ko /lib/modules/2.6.20-0119.rt8/kernel/drivers/video/
depmod -a 2.6.20-0119.rt8

Limitations
This instruction has only beed tested with 32-bit FC6. It may work for 64-bit,
but make sure to use "colrm 17" instead of "colrm 9" in step 4.


Feedback appreciated

Bernhard
JaXXoN is offline   Reply With Quote
Old 03-06-07, 04:31 PM   #2
r.c.
Registered User
 
Join Date: May 2006
Posts: 13
Default Re: [Installation Instruction] nvidia driver with kernel-rt-2.6.20-0119.rt8 on FC6

Does 32bit fc6 not use gcc 4.1.1, or did Ingo start compiling with the newer compiler? The reason I ask is that I just went through the process of installing the latest driver on the rt8 kernel on an x86_64 system.

As for my experience on x86_64, I did not have to do most of what you wrote, but I did have to recompile the kernel itself, since the driver warned of being compiled with a different version of gcc than what the kernel was compiled with.

I also had to change a couple of flags in nv.c, as described elsewhere on these boards, but I don't see that in your instructions. Since I'm not doing any virtualization or SELinux, I didn't have to do anything else.
r.c. is offline   Reply With Quote
Old 03-06-07, 06:48 PM   #3
JaXXoN
Registered User
 
Join Date: Jul 2005
Location: Munich
Posts: 910
Default Re: [Installation Instruction] nvidia driver with kernel-rt-2.6.20-0119.rt8 on FC6

Quote:
Originally Posted by r.c.
As for my experience on x86_64, I did not have to do most of what you wrote, but I did have to recompile the kernel itself,
Right, when compiling your own kernel, then you can easily disable
paravirt_ops and won't run into troubles with GPL-only symbols.
However, this post was intended to support Ingo's precompiled RPMs ...

Quote:
Originally Posted by r.c.
since the driver warned of being compiled with a different version of gcc than what the kernel was compiled with.
Right, but i haven't experienced any stability issues so far. The potential
compiler incompatibilities mostly apply to C++, AFAIK. Otherwise
you would be in serious trouble with the nv-kernel.o object file that
comes with the driver, or do you know which compiler nvidia used for it?

When doing a "cat nv-kernel.o | strings | grep -i gcc", you will see a lot
of "GCC: (GNU) 2.95.3 20010315 (release)" so the driver core might have
been compiled with that stinking old version of gcc :-)

Quote:
Originally Posted by r.c.
I also had to change a couple of flags in nv.c, as described elsewhere on these boards, but I don't see that in your instructions.
Right, the patch you can download with the wget command as described
above already includes the change from SA_* to IRQF_*.

regards

Bernhard
JaXXoN is offline   Reply With Quote
Old 03-15-07, 09:38 PM   #4
puterguy
Registered User
 
Join Date: Jan 2003
Posts: 76
Default Re: [Installation Instruction] nvidia driver with kernel-rt-2.6.20-0119.rt8 on FC6

This seems like a real kluge & PITA.

Any idea when/if nvidia might release *fixed* 9631 binaries?
__________________
Fedora Core6/Linux 2.6.x
nVidea driver: 9631
Asus P4PE motherboard
Intel P4 2.8GHz
1.5GB PC2700 DDR Kingston
Leadtek Ultra A250 GF4 4600 128MB with VIVO/TVO
WinFast TV2000XP Deluxe
Dell 1901FP 19" LCD
Antec 400W Power Supply
puterguy is offline   Reply With Quote
Old 04-04-07, 12:50 PM   #5
JaXXoN
Registered User
 
Join Date: Jul 2005
Location: Munich
Posts: 910
Default Re: [Installation Instruction] nvidia driver with kernel-rt-2.6.20-0119.rt8 on FC6

Hi!

Just to let you know, it is not anymore necessary to patch the nvidia
kernel driver for version 1.0-9755 along with kernel 2.6.20-0119.rt8!

The situation is that nvidia replaced the problematic semaphore
synchronization method by "completions" some times ago, and the
high latency causing "wbinvd" instruction (when PAT support is
enabled) has been replaced in 2.6.19 by a fast and interruptible
sequence of "clflush" instructions.

However, you may still need to manually define missing symbols
for pre-compiled kernels (see earlier post for an example).

regards

Bernhard
JaXXoN is offline   Reply With Quote
Old 05-08-07, 03:21 PM   #6
SiVaS
Registered User
 
Join Date: Aug 2004
Posts: 4
Default Re: [Installation Instruction] nvidia driver with kernel-rt-2.6.20-0119.rt8 on FC6

hallo,

howto use this with Kernel 2.6.21 ?

modpost.c looks different:

if (!mod->gpl_compatible)
check_for_gpl_usage(exp->export, basename, exp->name);
check_for_unused(exp->export, basename, exp->name); '

what shall i remove - all 3 lines ?

i tested one time and i get this error during compile :

scripts/mod/modpost.c:1172: Warning: »check_for_gpl_usage« defined, but not used

scripts/mod/modpost.c:1197: Warning: »check_for_unused« defined, but not used

Thanks


CooSee ' Ya
__________________
" DIE NACKTHEIT IST DIE BESTE TARNUNG "
SiVaS is offline   Reply With Quote
Old 01-10-08, 03:34 AM   #7
crespowu
Registered User
 
Join Date: Jan 2008
Posts: 1
Default Re: [Installation Instruction] nvidia driver with kernel-rt-2.6.20-0119.rt8 on FC6

Thanks for the installation instruction.It saved me a lot of time.


DVD to iPod

Last edited by crespowu; 01-18-08 at 03:13 AM.
crespowu is offline   Reply With Quote
Old 02-25-09, 04:50 AM   #8
nathan3011
Registered User
 
Join Date: Feb 2009
Posts: 1
Default Re: [Installation Instruction] nvidia driver with kernel-rt-2.6.20-0119.rt8 on FC6

Quote:
Originally Posted by crespowu View Post
Thanks for the installation instruction.It saved me a lot of time.


DVD to iPod
Yeah i must say i agree with this poster, thank you so much for taking the time out of your day to post this for everyone :-) and i really aprreciate you doing Landlord Insurence for us.

Many Thanks

Last edited by nathan3011; 03-25-09 at 05:24 AM.
nathan3011 is offline   Reply With Quote

Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Corrupted display - 302.17 - Dell Precision T3500 (G98 [Quadro NVS 295]) gbailey NVIDIA Linux 1 06-27-12 10:24 AM
UEFI+Nvidia - NVRM: Your system is not currently configured to drive a VGA console... interzoneuk NVIDIA Linux 0 06-26-12 04:51 AM
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 11:04 AM
Lucid rt kernel can't load latest nvidia driver module, but generic does. marcod NVIDIA Linux 0 05-02-12 06:23 AM
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 08:49 AM

All times are GMT -5. The time now is 10:56 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.