View Single Post
Old 08-14-06, 02:54 PM   #8
haveaniceday
Registered User
 
Join Date: Mar 2005
Location: Paderborn, Germany
Posts: 6
Default Re: [PATCH] xen-3.0.2-2 and nv-1.0-8756

Quote:
Originally Posted by JaXXoN
Could you please provide an nvidia bug report for details?
Hi Bernhard,

I think an nvidia bug report is not required. The driver itself is working. I just
looked for a way to avoid the "TLS"

So there is no analysis required.

Best regards,

Christian

PS: A small script for the "SuSE 10.1" fans.
- boot the xen kernel
- run the commands below
- reboot
- use regular sax2-configuration

Code:
NVIDIA=NVIDIA-Linux-x86-1.0-8762-pkg1.run
KERNEL=2.6.16.21-0.13-xen
PATCH=patch-nv-1.0-8756-xen-3.0.2-2.txt

cd /usr/src
if [ ! -r $NVIDIA ]
then
        echo "Please put $NVIDIA to /usr/src/"
        exit 1
fi

if [ ! -r $PATCH ]
then
        echo "Please put patch $PATCH to /usr/src/"
        exit
fi

cd /usr/src/linux
make cloneconfig
make modules_prepare
cd ..

sh ./$NVIDIA -x

NVIDIADIR=$
cd /usr/src/${NVIDIA//.run}/usr/src/nv

patch -p1 < /usr/src/$PATCH
make clean
make SYSSRC=/usr/src/linux module

XEN_TLB_FLUSH=`grep [^_]xen_tlb_flush$ /boot/System.map-$KERNEL | colrm 9`
FORCE_EVTCHN_CALLBACK=`grep [^_]force_evtchn_callback$ /boot/System.map-$KERNEL | colrm 9`
XEN_FEATURES=`grep [^_]xen_features$ /boot/System.map-$KERNEL | colrm 9`
set -x
ld -m elf_i386 --defsym xen_tlb_flush=0x${XEN_TLB_FLUSH} --defsym xen_features=0x${XEN_FEATURES} --defsym force_evtchn_callback=0x${FORCE_EVTCHN_CALLBACK} -r -o nvidia.ko nvidia.o nvidia.mod.o
cp nvidia.ko /lib/modules/$KERNEL/kernel/drivers/video/nvidia.ko
depmod -a
haveaniceday is offline   Reply With Quote