|
|
#1 | |
|
Registered User
Join Date: Jul 2005
Location: Munich
Posts: 910
|
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 |
|
|
|
|
|
|
#2 | |
|
Registered User
Join Date: Oct 2006
Posts: 5
|
I'am running ubuntu (egdy eft 2.6.17-10), how can i apply this patch?
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Oct 2006
Posts: 5
|
i use the following commands :
Code:
patch NVIDIA-Linux-x86-1.0-9625-pkg1.run patch-nv-1.0-9625-xenrt.txt 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 ? |
|
|
|
|
|
#4 | |
|
Registered User
Join Date: Jul 2005
Location: Munich
Posts: 910
|
Quote:
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 $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 |
|
|
|
|
|
|
#5 |
|
Registered User
Join Date: Oct 2006
Posts: 5
|
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. but package avalaible for xen are only generic,server or bigiron. No problem with version? |
|
|
|
|
|
#6 | |
|
Registered User
Join Date: Jul 2005
Location: Munich
Posts: 910
|
Quote:
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 |
|
|
|
|
|
|
#7 |
|
Registered User
Join Date: Oct 2006
Posts: 5
|
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 |
|
|
|
|
|
#8 |
|
Registered User
Join Date: Oct 2006
Posts: 2
|
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 |
|
|
|
|
|
#9 |
|
Registered User
|
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... |
|
|
|
|
|
#10 | |
|
Registered User
Join Date: Feb 2004
Posts: 585
|
Quote:
lg Clemens |
|
|
|
|
|
|
#11 | |
|
Registered User
Join Date: Apr 2006
Posts: 9
|
Quote:
![]() |
|
|
|
|
|
|
#12 |
|
Registered User
Join Date: Dec 2003
Posts: 38
|
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 |
|
|
|
![]() |
| Thread Tools | |
|
|