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

Newegg Daily Deals

Reply
 
Thread Tools
Old 11-11-08, 10:41 PM   #1
muchologo
Registered User
 
Join Date: Nov 2008
Posts: 3
Default XEN - NVIDIA - STEP BY STEP

THERE'S NO NEED TO USE ANY PATCH

STEP1
REBOOT IN NON-XEN KERNEL IN TERMINAL

sudo -s
vim /etc/inittab
change id:5:initdefault: to id:3:initdefault:
reboot

STEP2
DOWNLOAD THE DRIVERS
sudo -s
cd /usr/src/
wget http://us.download.nvidia.com/XFree8...77.80-pkg2.run (32-bit)
wget http://us.download.nvidia.com/XFree8...77.80-pkg1.run (64-bit)

STEP3
INSTALL SOME PACKAGES FOR COMPILING THE DRIVERS

/sbin/yast2 –install kernel-source gcc make

STEP4
INSTALL THE DRIVERS IN THE NON-XEN KERNEL

cd /usr/src/
sh NVIDIA-Linux-x86_64-173.14.12-pkg2.run -q
sax2 -r -m 0=nvidia
reboot

STEP5
REBOOT IN XEN KERNEL AND MAKE CONFIG

sudo -s
cd /usr/src/linux
cp arch/i386/defconfig.xen .config (32-bit)
cp arch/x86_64/defconfig.xen .config (64-bit)
make oldconfig && make scripts && make prepare

STEP6
EXTRACT THE DRIVERS FOR XEN

cd /usr/src/
sh NVIDIA* --extract-only

STEP7
COMPILE THE DRIVERS

cd /usr/src/NVIDIA*/usr/src/nv/
IGNORE_XEN_PRESENCE=y CC="gcc -DNV_VMAP_4_PRESENT -DNV_SIGNAL_STRUCT_RLIM" make SYSSRC=/usr/src/linux module

STEP8
INSTALL AND PROBE THE DRIVERS

JUST TO BE SURE WHAT'S YOUR XEN KERNEL VERSION <kernel-version> = uname -r
cp nvidia.ko /lib/modules/<kernel-version>-xen/kernel/drivers/video/
cd /lib/modules/<kernel-version>-xen/kernel/drivers/video/
depmod -a
modprobe nvidia
init5

STEP 9
IF NOT XGL IS ENABLED DURING THE PROBE

<control><Alt><F1>
init 3
gnome-xgl-switch --enable-xgl
init 5

STEP10
OPEN TERMINAL

sudo -s
vim /etc/inittab
change id:3:initdefault: to id:5:initdefault:
reboot

------------------------------------------------------------------------------------------
YOU WILL PROBABLY NEED TO REBOOT SO I ATTACH A PDF GUIDE
Please post your experience with this guide
Attached Files
File Type: pdf NVIDIA-XEN-Terminal.pdf (3.4 KB, 1247 views)
muchologo is offline   Reply With Quote
Old 11-30-08, 11:41 PM   #2
kamhw
han
 
Join Date: Nov 2008
Location: Singapore
Posts: 3
Default Re: XEN - NVIDIA - STEP BY STEP

Hi muchologo,

I've followed your instructions and it works for 177.82 & 173.14.12 on 64bit SLED 10 SP2.

However, I am unable to see my TTY via Ctrl-Alt-F1. The screen is blank. I'm able to switch back to Ctrl-Alt-F7. While in TTY1, I am able to login as root and issue a reboot. Hence, the TTY is there but I cannot see it. Also posted this but got no response from the forum so far.

Do you have any suggestions for this challenge? Thank you.
kamhw is offline   Reply With Quote
Old 12-01-08, 02:04 AM   #3
Fackamato
User
 
Join Date: Mar 2005
Posts: 366
Default Re: XEN - NVIDIA - STEP BY STEP

Quote:
Originally Posted by kamhw View Post
Hi muchologo,

I've followed your instructions and it works for 177.82 & 173.14.12 on 64bit SLED 10 SP2.

However, I am unable to see my TTY via Ctrl-Alt-F1. The screen is blank. I'm able to switch back to Ctrl-Alt-F7. While in TTY1, I am able to login as root and issue a reboot. Hence, the TTY is there but I cannot see it. Also posted this but got no response from the forum so far.

Do you have any suggestions for this challenge? Thank you.
Are you using a framebuffer, or any vga=.. kernel parameter? If, try to remove it. If not, try to use it (such as vga=791).

Try removing the "video" module as well...
Fackamato is offline   Reply With Quote
Old 12-01-08, 10:02 PM   #4
kamhw
han
 
Join Date: Nov 2008
Location: Singapore
Posts: 3
Default Re: XEN - NVIDIA - STEP BY STEP

Quote:
Originally Posted by Fackamato View Post
Are you using a framebuffer, or any vga=.. kernel parameter? If, try to remove it. If not, try to use it (such as vga=791).

Try removing the "video" module as well...
My current kernel parameter for vga is vga=0x314. For the "video" module, do you mean the parameter in the /etc/X11/xorg.conf file?

Update: I've changed my vga from 0x314 to 791 as well as without the vga parameter, there seems to be no effect and I still cannot see my TTYs. I cannot find the video module.

Appreciate any other suggestions and inputs. Thank you.

Last edited by kamhw; 12-01-08 at 10:17 PM. Reason: Updates
kamhw is offline   Reply With Quote
Old 12-29-08, 02:45 PM   #5
bvhoesel
Bert
 
Join Date: Dec 2008
Posts: 1
Default Re: XEN - NVIDIA - STEP BY STEP

Very nice work. Worked as a charm for me on XEN openSuse 10.3 64 bit and nvidia driver 177.82. Thanks for all the time and trouble it took you to share the info with us.
bvhoesel is offline   Reply With Quote
Old 12-29-08, 02:56 PM   #6
Vla
Registered User
 
Join Date: Aug 2006
Posts: 26
Default Re: XEN - NVIDIA - STEP BY STEP

You confused 64/32bit
Vla is offline   Reply With Quote
Old 12-30-08, 09:18 AM   #7
meierkurt
Registered User
 
Join Date: May 2004
Posts: 15
Default Re: XEN - NVIDIA - STEP BY STEP

Enhancement for Suse 11.1

Code:
cd /usr/src/linux
cp /usr/src/linux-2.6.27*obj/x86_64/xen/.config .config
cp /usr/src/linux-2.6.27*obj/x86_64/xen/Module.symvers .config
make oldconfig && make scripts && make prepare
Without "Module.symvers" Module cant be loaded.
meierkurt is offline   Reply With Quote
Old 12-30-08, 09:29 AM   #8
padiazg
Registered User
 
Join Date: Dec 2008
Posts: 2
Default Re: XEN - NVIDIA - STEP BY STEP

Hi, I was trying for several days to compile NVidia 173 and 177.82 under OpenSUSE 11.1 x86_64, only 177 compiled and installed.

Following your instrucctions can go a little further.

Besides of copying from arch/x86_64/defconfig.xen, I have to copy /usr/src/linux-2.6.27.7-9-obj/x86_64/xen/.config to /usr/src/linux-2.6.27.7-9/.config

Then I could start compiling, but complains about: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol hypercal_page. Any idea how to solve this?

btw, great work.
padiazg is offline   Reply With Quote

Old 12-30-08, 12:15 PM   #9
meierkurt
Registered User
 
Join Date: May 2004
Posts: 15
Default Re: XEN - NVIDIA - STEP BY STEP

Try the newest driver 180.18.
meierkurt is offline   Reply With Quote
Old 01-03-09, 03:41 AM   #10
andrewtayloruk
Registered User
 
Join Date: Dec 2008
Posts: 2
Default Re: XEN - NVIDIA - STEP BY STEP

Hi,

Thanks very much for the guide, however, I'm trying to use it on Cent OS 5.2 and the compilation of the module step isn't working.

I can't determine the exact message, but, it ends with:

NVIDIA: left KBUILD
nvidia.ko failed to build!

Any pointers?

I installed the drivers in the NON-XEN kernel fine, it worked under XEN
I installed the XEN kernel and rebooted to run level 3
I have confirmed that I'm now running the XEN kernel
I copied the .config from XEN kernel (it wasn't the same as on SUSE, defconfig but I found the equivalent
I extracted the NVIDIA drivers

It was at that point (number 7 on your guide) that it failed to compile

Any advice would be really great.

Thanks

Andrew
andrewtayloruk is offline   Reply With Quote
Old 01-03-09, 09:49 AM   #11
padiazg
Registered User
 
Join Date: Dec 2008
Posts: 2
Default Re: XEN - NVIDIA - STEP BY STEP

Quote:
Originally Posted by meierkurt View Post
Try the newest driver 180.18.
Still can't compile under OpenSUSE 11.1 x86_64. Downloaded driver 180.18 and installed it under non XEN kernel, no problems on that.

Under XEN kernel, still complains about modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol hypercal_page here:.

Code:
  Building modules, stage 2.
make -f /usr/src/linux-2.6.27.7-9/scripts/Makefile.modpost
  scripts/mod/modpost -m -a -i /usr/src/linux-2.6.27.7-9/Module.symvers -I /home/patricio/Downloads/NVidia/NVIDIA-Linux-x86_64-180.18-pkg0/usr/src/nv/Module.symvers  -o /home/patricio/Downloads/NVidia/NVIDIA-Linux-x86_64-180.18-pkg0/usr/src/nv/Module.symvers -S -K /usr/src/linux-2.6.27.7-9/Module.markers -M /home/patricio/Downloads/NVidia/NVIDIA-Linux-x86_64-180.18-pkg0/usr/src/nv/Module.markers -w  -N /dev/null -s
Some things that I'm courious about are:

Code:
NVIDIA: calling KBUILD...
make CC=gcc -DNV_VMAP_4_PRESENT -DNV_SIGNAL_STRUCT_RLIM  KBUILD_VERBOSE=1 -C /usr/src/linux SUBDIRS=/home/patricio/Downloads/NVidia/NVIDIA-Linux-x86_64-180.18-pkg0/usr/src/nv modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (		\
	echo;								\
	echo "  ERROR: Kernel configuration is invalid.";		\
	echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";	\
	echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
	echo;								\
	/bin/false)
both files exists, include/linux/autoconf.h and include/config/auto.conf, tested with:
Code:
# test -e /usr/src/linux/include/linux/autoconf.h -a -e /usr/src/linux/include/config/auto.conf && echo yes
# yes
This error happens in this part of Makefile.kbuild:

Code:
module: cc-version-check xen-sanity-check rivafb-sanity-check nvidiafb-sanity-check
	@if [ -z "$(PATCHLEVEL)" ]; then \
	 echo "failed to determine PATCHLEVEL!"; \
	 exit 1; \
	fi; \
	echo "NVIDIA: calling KBUILD..."; \
	echo "make CC=$(CC) $(KBUILD_PARAMS) modules"; \
	make "CC=$(CC)" $(KBUILD_PARAMS) modules; \
	echo "NVIDIA: left KBUILD."; \
	if ! [ -f $(MODULE_OBJECT) ]; then \
	 echo "$(MODULE_OBJECT) failed to build!"; \
	 exit 1; \
	fi
If you see the line I remarked, it calls again make but with modules as parameter. I coul'nt find the makefile that contains the rule modules.

I think this error might be because test isn't located in the /usr/src/linux directory when it is called. Just a guest.

Any ideas?
padiazg is offline   Reply With Quote
Old 01-03-09, 07:18 PM   #12
andreim
Registered User
 
Join Date: Sep 2008
Posts: 3
Default Re: XEN - NVIDIA - STEP BY STEP

Dell XPS M1330 - 8400M/GS (chipset 0x0427) - SLES10.SP2 /64 bit

1) Both of the recent drivers (177,180) build and work OK with the vanilla -smp kernel.

2) Build for the -xen kernel works just fine as in the instructions, nvidia.ko/Xen loads Ok.

3) However, any attempt to start X (X-probeonly, startx) on the -xen kernel leads to the
black screen and an overall hang of the machine within 10 seconds.

Am I alone to see this with 8400M/GS?

Thanks ahead for any comment!
andreim 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help Installing NVIDIA Tesla M2070Q in Linux RHEL5 Ferianto85 NVIDIA Linux 0 05-18-12 08:35 PM
Rumor regarding lack of 680 availability ViN86 Rumor Mill 6 05-09-12 04:48 PM
Redhat 8.0 NVIDIA works - INSTRUCTIONS STEEL1 NVIDIA Linux 267 04-15-03 06:48 PM

All times are GMT -5. The time now is 09:56 AM.


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