View Single Post
Old 04-17-06, 08:57 PM   #1
JaXXoN
Registered User
 
Join Date: Jul 2005
Location: Munich
Posts: 910
Default [PATCH] xen-3.0.2-2 and nv-1.0-8756

Hi!

I created a set of patches for xen-3.0.2-2 and nv-1.0-8756 based
on the patches/discussion at:

http://www.nvnews.net/vbulletin/showthread.php?t=66383

The patches have been successfully tested on Fedora Core 4
using an Athlon AMD64 X2 4400+ and two GeForce 7800GTX
graphics cards (triple head setup). However, i experienced a
small performance drop when running glxgears (~14000FPS
instead of (~16000FPS).

You may like to try the following instructions to get things going
on your system:


1. Create a working directory and put both nvidia xen patches into
the archive directory:
Code:
mkdir -p /usr/local/xen/archive
cp <path to patch>/patch-2.6-xen-sparse-nv /usr/local/xen/archive
cp <path to patch>/patch-nv-1.0-8756-xen-3.0.2-2 /usr/local/xen/archive
2. Download the xen source package and the vanilla linux kernel tree:
Code:
cd /usr/local/xen/archive
wget http://bits.xensource.com/Xen/latest/xen-3.0.2-src.tgz
wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.tar.bz2
wget http://bits.xensource.com/Xen/latest/xen-3.0-x86_32-fc4.bin.tar
3. Prepare the xen0 kernel build:
Code:
cd /usr/local/xen
tar -xzf archive/xen-3.0.2-src.tgz
cd xen-3.0.2-2
ln -s ../archive/linux-2.6.16.tar.bz2 .
4. Patch the kernel sparse directory:
Code:
cd /usr/local/xen/xen-3.0.2-2/linux-2.6-xen-sparse
patch -p1 < /usr/local/xen/archive/patch-2.6-xen-sparse-nv
5. Build the xen0 kernel:
Code:
cd /usr/local/xen/xen-3.0.2-2
make kernels
6. Install the kernel, modules and related files:
Code:
cd /usr/local/xen/xen-3.0.2-2/linux-2.6.16-xen
cp vmlinuz /boot/vmlinuz-2.6.16-xen
cp System.map /boot/System.map-2.6.16-xen
cp .config /boot/config-2.6.16-xen
make modules_install
mkinitrd /boot/initrd-2.6.16-xen.img 2.6.16-xen
7. Create a menu option for the grub bootloader in /boot/grub/menu.lst:
Code:
title Xen 3.0 / XenLinux 2.6.16
       kernel /boot/xen-3.0.2-2.gz console=vga
       module /boot/vmlinuz-2.6.16-xen root=<root-dev> ro console=tty0
       module /boot/initrd-2.6.16-xen.img
8. Patch and compile the nvidia kernel module:
Code:
cd /usr/local/xen
cp -r <nvidia sources> nv-1.0-8756-xen-3.0.2-2
cd nv-1.0-8756-xen-3.0.2-2
patch -p1 < /usr/local/xen/archive/patch-nv-1.0-8756-xen-3.0.2-2
make clean
make SYSSRC=/usr/local/xen/xen-3.0.2-2/linux-2.6.16-xen module
9. Install the nvidia kernel module
Code:
cd /usr/local/xen/nv-1.0-8756-xen-3.0.2-2
mkdir -p /lib/modules/2.6.16-xen/kernel/drivers/video
cp nvidia.ko /lib/modules/2.6.16-xen/kernel/drivers/video
depmod -a 2.6.16-xen
10. Install the xen base and tools package:
Code:
yum install bridge-utils
cd /usr/local/xen
tar -xf /usr/local/xen/archive/xen-3.0-x86_32-fc4.bin.tar
cd xen-3.0-x86_32-fc4.bin
rpm -i xen-3.0.2.2-86.1_fc4.i386.rpm
Now reboot your system.


Feedback appreciated!

Bernhard
Attached Files
File Type: txt patch-nv-1.0-8756-xen-3.0.2-2.txt (5.4 KB, 3990 views)
File Type: txt patch-2.6-xen-sparse-nv.txt (1.5 KB, 1590 views)
JaXXoN is offline   Reply With Quote