I"m trying to put nvidia binary (100.14.11) drivers on xen-sources-2.6.20-xen-r6. Used xen patches from nvidia forum ( http://www.nvnews.net/vbulletin/showthread.php?t=95483 ), and made modification on official ebuild:
Code: Select all
# Patches go below here, add brief description
...
# xen
epatch "${FILESDIR}"/NVIDIA_xen3.1.patch
...
Code: Select all
>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-100.14.11 to /
* NVIDIA-Linux-x86_64-100.14.11-pkg2.run MD5 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking NVIDIA-Linux-x86_64-100.14.11-pkg2.run ;-) ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /usr/src/linux/_dom0
* Found sources for kernel version:
* 2.6.20-xen-r6
* Checking for MTRR support ... [ ok ]
>>> Unpacking source...
Creating directory NVIDIA-Linux-x86_64-100.14.11-pkg2
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 100.14.11.....................................................................................................................................
* Applying NVIDIA_glx-defines.patch ... [ ok ]
* Applying NVIDIA_glx-glheader.patch ... [ ok ]
* Applying NVIDIA_i2c-hwmon.patch ... [ ok ]
* Applying NVIDIA_xen3.1.patch ... [ ok ]
* Converting Makefile.kbuild to use M= instead of SUBDIRS= ... [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-100.14.11/work/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv ...
* Preparing nvidia module
rm -f Makefile
sh ./conftest.sh "x86_64-pc-linux-gnu-gcc" "x86_64-pc-linux-gnu-gcc" /usr/src/linux /usr/src/linux/_dom0 cc_sanity_check full_output
sh ./conftest.sh "x86_64-pc-linux-gnu-gcc" "x86_64-pc-linux-gnu-gcc" /usr/src/linux /usr/src/linux/_dom0 select_makefile full_output
If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.
If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.
Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.
*** Unable to determine the target kernel version. ***
make: *** [select_makefile] Greška 1
....
make.conf
Code: Select all
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
ACCEPT_KEYWORDS="amd64"
FEATURES="ccache buildpkg parallel-fetch sandbox -distcc"
USE="X -arts a52 aac aalib acl acpi aim alsa ao -apache2 bash-completion bzip2 cairo caps -cups cddb cdb cdinstall cdparanoia cdr cracklib crypt cscope curl dbus doc dri dts dvb dvd dvdr dvdread exif fbcon ffmpeg firefox flac ftp foomaticdb freetype gcj gd geoip gif glut -gnome gphoto2 gpm -graphviz gstreamer -gtk hvm hal icq ieee1394 imagemagick imlib ipv6 jabber java javascript jbig jikes jpeg jpeg2k kde kdehiddenvisibility kdexdeltas ldap libcaca libwww lm_sensors mime mad memlimit mmap mmx mmxext -mono mp3 mpeg mplayer msn mysql nls ncurses nptl nptlonly nsplugin ocaml ogg openal opengl pdf perl -php png python qt3 qt4 quicktime rdesktop readline ruby sdl screen samba sasl sharedmem snmp speex spell sse sse2 ssl svg theora tidy tiff truetype unicode usb vcd videos vim-syntax vorbis wifi win32codecs wxwindows xcomposite xscreensaver xinerama xine xml xvid zlib"
VIDEO_CARDS="fbdev nvidia vesa"
CCACHE_SIZE="2G"
PORTDIR_OVERLAY="/usr/local/portage/xeffects /usr/local/portage/cyber/"
GENTOO_MIRRORS="http://193.198.184.20/gentoo/distfiles/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
FETCHCOMMAND="/usr/bin/wget -t 4 -T 10 --passive-ftp \${URI} -P \${DISTDIR}"
RESUMECOMMAND="/usr/bin/wget -c -t 4 -T 10 --passive-ftp \${URI} -P \${DISTDIR}"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
XEN_TARGET_ARCH="x86_64"
PORTAGE_ELOG_CLASSES="warn error log"
KERNEL_DIR=/usr/src/linux
KBUILD_OUTPUT=${KERNEL_DIR}/_dom0
Any solution ?




