View Single Post
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