nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Unified Xen and real-time preemption patch for 1.0-9625 (http://www.nvnews.net/vbulletin/showthread.php?t=77597)

JaXXoN 10-03-06 06:37 AM

Unified Xen and real-time preemption patch for 1.0-9625
 
1 Attachment(s)
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

cheval-maxime 10-10-06 07:33 PM

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 10-11-06 05:35 AM

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 ?

JaXXoN 10-11-06 06:42 AM

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

cheval-maxime 10-11-06 01:24 PM

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?

JaXXoN 10-11-06 02:09 PM

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

cheval-maxime 10-11-06 11:48 PM

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

paulororke 11-09-06 04:28 AM

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

mnencia 11-20-06 05:53 AM

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...

Linuxhippy 11-20-06 07:46 AM

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

nodens2099 11-20-06 12:41 PM

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

KnutJorgen 11-23-06 04:18 PM

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


All times are GMT -5. The time now is 01:31 PM.

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