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

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-03-06, 06:37 AM   #1
JaXXoN
Registered User
 
Join Date: Jul 2005
Location: Munich
Posts: 910
Default Unified Xen and real-time preemption patch for 1.0-9625

Hi all!

The patch attached to this post will make the nvidia linux graphics
driver version 1.0-9625 working for Xen or real-time preemption
enabled Linux kernels.

The kernel driver module has been compiled against and tested with
the following kernels on Fedora Core 5 (32 bit):

o 2.6.17-1.2187_FC5smp (standard FC5 kernel)
o 2.6.17-1.2187_FC5xen0 (FC5 xen kernel)
o 2.6.18-rt3 (vanilla kernel + real-time preemption patch)

Please note that when compiling for xen kernels, you will have
to apply "SYSSRC" for "make" or otherwise the build will fail!

The patch may work for x86_64 as well, but has not been
tested. Feedback appreciated.

regards

Bernhard
Attached Files
File Type: txt patch-nv-1.0-9625-xenrt.txt (4.0 KB, 16098 views)
JaXXoN is offline   Reply With Quote
Old 10-10-06, 07:33 PM   #2
cheval-maxime
Registered User
 
Join Date: Oct 2006
Posts: 5
Default Re: Unified Xen and real-time preemption patch for 1.0-9625

I'am running ubuntu (egdy eft 2.6.17-10), how can i apply this patch?
cheval-maxime is offline   Reply With Quote
Old 10-11-06, 05:35 AM   #3
cheval-maxime
Registered User
 
Join Date: Oct 2006
Posts: 5
Default Re: Unified Xen and real-time preemption patch for 1.0-9625

i use the following commands :

Code:
patch NVIDIA-Linux-x86-1.0-9625-pkg1.run patch-nv-1.0-9625-xenrt.txt
that's wright? because return error :


Code:
patching file NVIDIA-Linux-x86-1.0-9625-pkg1.run
Hunk #1 FAILED at 42.
1 out of 1 hunk FAILED -- saving rejects to file NVIDIA-Linux-x86-1.0-9625-pkg1.run.rej
can't find file to patch at input line 34
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN nv-1.0-9625/nv-linux.h nv-1.0-9625-xenrt/nv-linux.h
|--- nv-1.0-9625/nv-linux.h     2006-09-26 21:33:37.000000000 +0200
|+++ nv-1.0-9625-xenrt/nv-linux.h       2006-10-03 01:15:42.000000000 +0200
--------------------------
File to patch:

somebody can help me ?
cheval-maxime is offline   Reply With Quote
Old 10-11-06, 06:42 AM   #4
JaXXoN
Registered User
 
Join Date: Jul 2005
Location: Munich
Posts: 910
Default Re: Unified Xen and real-time preemption patch for 1.0-9625

Quote:
Originally Posted by cheval-maxime
I'am running ubuntu (egdy eft 2.6.17-10), how can i apply this patch?
Please try this:

Boot your system with a "normal" kernel (no xen or rt) and install the
nvidia driver package as appropriate for your distribution. Then
perform the following steps (assuming the driver package and
the patch are located in the same directory and you are logged
in as root):

Code:
sh NVIDIA-Linux-x86-1.0-9625-pkg1.run --extract-only
cd NVIDIA-Linux-x86-1.0-9625-pkg1/usr/src/nv
patch -p1 < ../../../../patch-nv-1.0-9625-xenrt.txt
make SYSSRC=$KERNEL_SOURCE_DIR module
cp nvidia.ko $KERNEL_VIDEODRIVER_DIR
depmod -a $KERNEL_VERSION
where

$KERNEL_SOURCE_DIR is something like
"/usr/src/kernels/2.6.17-1.2187_FC5xen0-i686"

$KERNEL_VIDEODRIVER_DIR is something like
"/lib/modules/2.6.17-1.2187_FC5xen0/kernel/drivers/video"

$KERNEL_VERSION is something like:
"2.6.17-1.2187_FC5xen0"

regards

Bernhard
JaXXoN is offline   Reply With Quote
Old 10-11-06, 01:24 PM   #5
cheval-maxime
Registered User
 
Join Date: Oct 2006
Posts: 5
Default Re: Unified Xen and real-time preemption patch for 1.0-9625

line : "make SYSSRC="/usr/src/xen-headers-2.6.17-5-generic-xen0/" module"

return :
Code:
:~/Desktop/NVIDIA-Linux-x86-1.0-9625-pkg1/usr/src/nv$ make SYSSRC="/usr/src/xen-headers-2.6.17-5-generic-xen0/" module

NVIDIA: calling KBUILD...
make CC=cc  KBUILD_VERBOSE=1 -C /usr/src/xen-headers-2.6.17-5-generic-xen0/ SUBDIRS=/home/ax/Desktop/NVIDIA-Linux-x86-1.0-9625-pkg1/usr/src/nv modules
Makefile:495: /usr/src/xen-headers-2.6.17-5-generic-xen0/arch/i386/Makefile: Aucun fichier ou répertoire de ce type  ENGLISH:NO SUCH FILE OR DIRECTORY
make[2]: *** Pas de règle pour fabriquer la cible «  /usr/src/xen-headers-2.6.17-5-generic-xen0/arch/i386/Makefile ». Arrêt.
NVIDIA: left KBUILD.
my "normal" kernel is : 2.6.17-10-386
but package avalaible for xen are only generic,server or bigiron.
No problem with version?
cheval-maxime is offline   Reply With Quote
Old 10-11-06, 02:09 PM   #6
JaXXoN
Registered User
 
Join Date: Jul 2005
Location: Munich
Posts: 910
Default Re: Unified Xen and real-time preemption patch for 1.0-9625

Quote:
Originally Posted by cheval-maxime
Code:
:~/Desktop/NVIDIA-Linux-x86-1.0-9625-pkg1/usr/src/nv$ make SYSSRC="/usr/src/xen-headers-2.6.17-5-generic-xen0/" module
I guess this "xen-headers" package only includes *.h files
which is not sufficient for building kernel-modules.
Please check if there is some kind of kernel development
package around for your xen0 kernel (like it is for FC5).
If this is not the case, then i guess you need to recompile
and install the xen0 kernel manually in order to setup
the right infrastructure for kernel module compilation.

regards

Bernhard
JaXXoN is offline   Reply With Quote
Old 10-11-06, 11:48 PM   #7
cheval-maxime
Registered User
 
Join Date: Oct 2006
Posts: 5
Default Re: Unified Xen and real-time preemption patch for 1.0-9625

Yeeeaaaahhhhh !!!!!!
works fine,
after add kernel-source compilation ("cp" of "make" result)

conclusion : works on ubuntu edgy eft 6.10 2.6.17-10 with xen 2.6.17-5 packages.
6:36am... i can go to sleep happy.
many thanks
cheval-maxime is offline   Reply With Quote
Old 11-09-06, 04:28 AM   #8
paulororke
Registered User
 
Join Date: Oct 2006
Posts: 2
Default Re: Unified Xen and real-time preemption patch for 1.0-9625

I posted this on http://www.nvnews.net/vbulletin/showthread.php?t=78632 but think it might be better here. I have tried the steps described here alas without joy. I did not build the xen kernel but used the rpms that came with FC6.

I can get xen running without the nvidia drivers or else the plain kernel with this driver. I would love to see the twinview with the xen kernel if possible.


nvidia driver version: NVIDIA-Linux-x86_64-1.0-9629-pkg2
Motherboard: MSI K9N Platinum
Graphics card: ASUS EN7300GS (Nvidia7300)
Processor: AMD X2 4200
RAM: 2048MB DDR2
Kernel: kernel-2.6.18-1.2798.fc6 and kernel-xen-2.6.18-1.2798.fc6
Xen version: xen-3.0.3-0.1.rc3

Have I missed something?
Please and thanks.

Paul
paulororke is offline   Reply With Quote

Old 11-20-06, 05:53 AM   #9
mnencia
Registered User
 
Join Date: Nov 2006
Location: Italy
Posts: 1
Send a message via MSN to mnencia Send a message via Skype™ to mnencia
Default Re: Unified Xen and real-time preemption patch for 1.0-9625

If you are a debian user, you can find an unofficial package for 1.0.9629 drivers with xen patch applied at

http://www.prato.linux.it/~mnencia/debian/nvidia

You can point your apt to:

deb http://www.prato.linux.it/~mnencia/debian nvidia/
deb-src http://www.prato.linux.it/~mnencia/debian nvidia/

I hope this is useful for someone...
mnencia is offline   Reply With Quote
Old 11-20-06, 07:46 AM   #10
Linuxhippy
Registered User
 
Join Date: Feb 2004
Posts: 585
Default Re: Unified Xen and real-time preemption patch for 1.0-9625

Quote:
Originally Posted by paulororke
I can get xen running without the nvidia drivers or else the plain kernel with this driver. I would love to see the twinview with the xen kernel if possible.
I doubt this will ever be possible...

lg Clemens
Linuxhippy is offline   Reply With Quote
Old 11-20-06, 12:41 PM   #11
nodens2099
Registered User
 
Join Date: Apr 2006
Posts: 9
Default Re: Unified Xen and real-time preemption patch for 1.0-9625

Quote:
I doubt this will ever be possible...
I run just this setup on my debian sid @home. Xen kernel with 9626 driver and twinview. I even use beryl
nodens2099 is offline   Reply With Quote
Old 11-23-06, 04:18 PM   #12
KnutJorgen
Registered User
 
Join Date: Dec 2003
Posts: 38
Default Re: Unified Xen and real-time preemption patch for 1.0-9625

I am able to compile but not to load nvidia with latest fedora kernel.

WARNING: /lib/modules/2.6.18-1.2857.fc6xen/extra/nvidia/nvidia.ko needs unknown symbol preempt_schedule
WARNING: /lib/modules/2.6.18-1.2857.fc6xen/extra/nvidia/nvidia.ko needs unknown symbol add_preempt_count
WARNING: /lib/modules/2.6.18-1.2857.fc6xen/extra/nvidia/nvidia.ko needs unknown symbol debug_smp_processor_id
WARNING: /lib/modules/2.6.18-1.2857.fc6xen/extra/nvidia/nvidia.ko needs unknown symbol sub_preempt_count
KnutJorgen 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


All times are GMT -5. The time now is 07:58 PM.


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