diff options
author | Matt Housh <jaeger@crux.nu> | 2015-01-01 14:12:56 -0600 |
---|---|---|
committer | Matt Housh <jaeger@crux.nu> | 2015-01-01 14:12:56 -0600 |
commit | f97c4690af166a35048aaddf57a41eb7ce1c379d (patch) | |
tree | 9b51d53cd70818ed2cc4c6fa7493f5350244e55c | |
parent | 7a91a9d54efac68f1ffc73ffe77967492288501c (diff) | |
download | opt-f97c4690af166a35048aaddf57a41eb7ce1c379d.tar.gz opt-f97c4690af166a35048aaddf57a41eb7ce1c379d.tar.xz |
nvidia-sl: initial import, version 343.36
-rw-r--r-- | nvidia-sl/.footprint | 65 | ||||
-rw-r--r-- | nvidia-sl/.md5sum | 2 | ||||
-rw-r--r-- | nvidia-sl/90-nvidia-uvm.rules | 1 | ||||
-rw-r--r-- | nvidia-sl/Pkgfile | 84 | ||||
-rw-r--r-- | nvidia-sl/README | 44 |
5 files changed, 196 insertions, 0 deletions
diff --git a/nvidia-sl/.footprint b/nvidia-sl/.footprint new file mode 100644 index 000000000..4ed943e65 --- /dev/null +++ b/nvidia-sl/.footprint @@ -0,0 +1,65 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/OpenCL/ +drwxr-xr-x root/root etc/OpenCL/vendors/ +-rw-r--r-- root/root etc/OpenCL/vendors/nvidia.icd +drwxr-xr-x root/root lib/ +drwxr-xr-x root/root lib/modules/ +drwxr-xr-x root/root lib/modules/<kernel-version>/ +drwxr-xr-x root/root lib/modules/<kernel-version>/extra/ +-rw-r--r-- root/root lib/modules/<kernel-version>/extra/nvidia-uvm.ko +-rw-r--r-- root/root lib/modules/<kernel-version>/extra/nvidia.ko +drwxr-xr-x root/root lib/udev/ +drwxr-xr-x root/root lib/udev/rules.d/ +-rw-r--r-- root/root lib/udev/rules.d/90-nvidia-uvm.rules +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/nvidia-debugdump +-rwxr-xr-x root/root usr/bin/nvidia-persistenced +-rwxr-xr-x root/root usr/bin/nvidia-settings +-rwxr-xr-x root/root usr/bin/nvidia-smi +-rwxr-xr-x root/root usr/bin/nvidia-xconfig +drwxr-xr-x root/root usr/lib/ +-rwxr-xr-x root/root usr/lib/libGL.so.343.36 +lrwxrwxrwx root/root usr/lib/libGL_so_1_2_nvidia -> libGL.so.343.36 +lrwxrwxrwx root/root usr/lib/libOpenCL.so -> libOpenCL.so.1.0.0 +-rwxr-xr-x root/root usr/lib/libOpenCL.so.1.0.0 +-rwxr-xr-x root/root usr/lib/libcuda.so.343.36 +lrwxrwxrwx root/root usr/lib/libnvcuvid.so -> libnvcuvid.so.343.36 +lrwxrwxrwx root/root usr/lib/libnvcuvid.so.1 -> libnvcuvid.so.343.36 +-rwxr-xr-x root/root usr/lib/libnvcuvid.so.343.36 +-rwxr-xr-x root/root usr/lib/libnvidia-cfg.so.343.36 +-rwxr-xr-x root/root usr/lib/libnvidia-compiler.so.343.36 +-rwxr-xr-x root/root usr/lib/libnvidia-encode.so.343.36 +-rwxr-xr-x root/root usr/lib/libnvidia-fbc.so.343.36 +-rwxr-xr-x root/root usr/lib/libnvidia-glcore.so.343.36 +-rwxr-xr-x root/root usr/lib/libnvidia-ifr.so.343.36 +lrwxrwxrwx root/root usr/lib/libnvidia-ml.so -> libnvidia-ml.so.343.36 +lrwxrwxrwx root/root usr/lib/libnvidia-ml.so.1 -> libnvidia-ml.so.343.36 +-rwxr-xr-x root/root usr/lib/libnvidia-ml.so.343.36 +-rwxr-xr-x root/root usr/lib/libnvidia-opencl.so.343.36 +-rwxr-xr-x root/root usr/lib/libnvidia-tls.so.343.36 +drwxr-xr-x root/root usr/lib/tls/ +-rwxr-xr-x root/root usr/lib/tls/libnvidia-tls.so.343.36 +drwxr-xr-x root/root usr/lib/vdpau/ +lrwxrwxrwx root/root usr/lib/vdpau/libvdpau_nvidia.so -> libvdpau_nvidia.so.343.36 +lrwxrwxrwx root/root usr/lib/vdpau/libvdpau_nvidia.so.1 -> libvdpau_nvidia.so.343.36 +-rwxr-xr-x root/root usr/lib/vdpau/libvdpau_nvidia.so.343.36 +drwxr-xr-x root/root usr/lib/xorg/ +drwxr-xr-x root/root usr/lib/xorg/modules/ +drwxr-xr-x root/root usr/lib/xorg/modules/drivers/ +-rwxr-xr-x root/root usr/lib/xorg/modules/drivers/nvidia_drv.so +drwxr-xr-x root/root usr/lib/xorg/modules/extensions/ +-rwxr-xr-x root/root usr/lib/xorg/modules/extensions/libglx.so.343.36 +lrwxrwxrwx root/root usr/lib/xorg/modules/extensions/libglx_so_nvidia -> libglx.so.343.36 +-rwxr-xr-x root/root usr/lib/xorg/modules/libnvidia-wfb.so.343.36 +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/nvidia-persistenced.1.gz +-rw-r--r-- root/root usr/man/man1/nvidia-settings.1.gz +-rw-r--r-- root/root usr/man/man1/nvidia-smi.1.gz +-rw-r--r-- root/root usr/man/man1/nvidia-xconfig.1.gz +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/applications/ +-rw-r--r-- root/root usr/share/applications/nvidia-settings.desktop +drwxr-xr-x root/root usr/share/pixmaps/ +-rw-r--r-- root/root usr/share/pixmaps/nvidia-settings.png diff --git a/nvidia-sl/.md5sum b/nvidia-sl/.md5sum new file mode 100644 index 000000000..7e860b173 --- /dev/null +++ b/nvidia-sl/.md5sum @@ -0,0 +1,2 @@ +4511024cc556d0c6e7c467b6789524e2 90-nvidia-uvm.rules +dfdf53ee8787455fe92a760ffa6badcb NVIDIA-Linux-x86_64-343.36-no-compat32.run diff --git a/nvidia-sl/90-nvidia-uvm.rules b/nvidia-sl/90-nvidia-uvm.rules new file mode 100644 index 000000000..3df8a3ab0 --- /dev/null +++ b/nvidia-sl/90-nvidia-uvm.rules @@ -0,0 +1 @@ +KERNEL=="nvidia_uvm", RUN+="/bin/bash -c '/bin/mknod -m 660 /dev/nvidia-uvm c $(grep nvidia-uvm /proc/devices | cut -d \ -f 1) 0; /bin/chgrp video /dev/nvidia-uvm'" diff --git a/nvidia-sl/Pkgfile b/nvidia-sl/Pkgfile new file mode 100644 index 000000000..3793e89a7 --- /dev/null +++ b/nvidia-sl/Pkgfile @@ -0,0 +1,84 @@ +# Description: nVIDIA Linux Display Driver (short lived branch version) +# URL: http://www.nvidia.com/ +# Maintainer: Matt Housh, jaeger at morpheus dot net +# Depends on: gtk gl-select + +name=nvidia-sl +version=343.36 +release=1 +source=(http://us.download.nvidia.com/XFree86/Linux-x86_64/$version/NVIDIA-Linux-x86_64-$version-no-compat32.run \ + 90-nvidia-uvm.rules) + +build() { + sh NVIDIA-Linux-x86_64-$version-no-compat32.run --extract-only + cd NVIDIA-Linux-x86_64-$version-no-compat32 + + # libraries + install -d $PKG/usr/lib/{tls,vdpau} + install -m 0755 libGL.so.$version $PKG/usr/lib + install -m 0755 libOpenCL.so.1.0.0 $PKG/usr/lib + install -m 0755 libcuda.so.$version $PKG/usr/lib + install -m 0755 libnvidia-cfg.so.$version $PKG/usr/lib + install -m 0755 libnvidia-compiler.so.$version $PKG/usr/lib + install -m 0755 libnvidia-encode.so.$version $PKG/usr/lib + install -m 0755 libnvidia-fbc.so.$version $PKG/usr/lib + install -m 0755 libnvidia-glcore.so.$version $PKG/usr/lib + install -m 0755 libnvidia-ifr.so.$version $PKG/usr/lib + install -m 0755 libnvidia-ml.so.$version $PKG/usr/lib + install -m 0755 libnvidia-opencl.so.$version $PKG/usr/lib + install -m 0755 libnvidia-tls.so.$version $PKG/usr/lib + install -m 0755 libnvcuvid.so.$version $PKG/usr/lib + install -m 0755 tls/libnvidia-tls.so.$version $PKG/usr/lib/tls + install -m 0755 libvdpau_nvidia.so.$version $PKG/usr/lib/vdpau + + ln -s libvdpau_nvidia.so.$version $PKG/usr/lib/vdpau/libvdpau_nvidia.so.1 + ln -s libvdpau_nvidia.so.$version $PKG/usr/lib/vdpau/libvdpau_nvidia.so + + ln -s libnvcuvid.so.$version $PKG/usr/lib/libnvcuvid.so.1 + ln -s libnvcuvid.so.$version $PKG/usr/lib/libnvcuvid.so + + ln -s libnvidia-ml.so.$version $PKG/usr/lib/libnvidia-ml.so.1 + ln -s libnvidia-ml.so.$version $PKG/usr/lib/libnvidia-ml.so + + ln -s libOpenCL.so.1.0.0 $PKG/usr/lib/libOpenCL.so + + # xorg driver/extensions + install -d $PKG/usr/lib/xorg/modules/{drivers,extensions} + install -m 0755 nvidia_drv.so $PKG/usr/lib/xorg/modules/drivers + install -m 0755 libglx.so.$version $PKG/usr/lib/xorg/modules/extensions + install -m 0755 libnvidia-wfb.so.$version $PKG/usr/lib/xorg/modules + + # nvidia programs amd man-pages + install -d $PKG/usr/{bin,man/man1} + install -m 0755 nvidia-{debugdump,persistenced,settings,smi,xconfig} \ + $PKG/usr/bin + install -m 0644 nvidia-{persistenced,settings,smi,xconfig}.1.gz \ + $PKG/usr/man/man1 + + # desktop file and icon + install -d $PKG/usr/share/{applications,pixmaps} + sed -i 's:__UTILS_PATH__:/usr/bin: ; s:__PIXMAP_PATH__:/usr/share/pixmaps:' nvidia-settings.desktop + install -m 0644 nvidia-settings.desktop $PKG/usr/share/applications + install -m 0644 nvidia-settings.png $PKG/usr/share/pixmaps + + # additional symlinks required by gl-select + ln -s libGL.so.$version $PKG/usr/lib/libGL_so_1_2_nvidia + ln -s libglx.so.$version $PKG/usr/lib/xorg/modules/extensions/libglx_so_nvidia + + # opencl icd file + install -m 0644 -D nvidia.icd $PKG/etc/OpenCL/vendors/nvidia.icd + + # nvidia-uvm module udev rule + install -d $PKG/lib/udev/rules.d + install -m 0644 $SRC/90-nvidia-uvm.rules $PKG/lib/udev/rules.d/90-nvidia-uvm.rules + + # kernel module + cd kernel + IGNORE_CC_MISMATCH=1 make module + install -D -m 0644 nvidia.ko $PKG/lib/modules/`uname -r`/extra/nvidia.ko + + # nvidia-uvm module + cd uvm + IGNORE_CC_MISMATCH=1 make module + install -D -m 0644 nvidia-uvm.ko $PKG/lib/modules/`uname -r`/extra/nvidia-uvm.ko +} diff --git a/nvidia-sl/README b/nvidia-sl/README new file mode 100644 index 000000000..719bfc407 --- /dev/null +++ b/nvidia-sl/README @@ -0,0 +1,44 @@ + +README for nvidia 1xx.xx + + + +*** NOTE for nvidia with udev *** + +If using udev, add your user to the "video" group to be able to +use the nvidia devices required for 3d to function properly. + + +*** NOTE for users of legacy hardware *** + +Before installing this port, take a look at the Legacy GPU list on +nvidia's site: http://www.nvidia.com/object/IO_32667.html + +If your hardware is supported by either the 1.0-96xx or 1.0-71xx +driver series, install the corresponding port instead of this one. + + + +POST-INSTALL + +Use opt/gl-select from ports to select the correct gl/glx +libraries and extensions like so: + + # gl-select use nvidia + + +POST-REMOVE + +Use opt/gl-select from ports to revert to the xorg gl/glx libraries +and extensions like so: + + # gl-select use xorg + + +When UPGRADING/DOWNGRADING the nvidia port (where the version changes), +use gl-select to revert to xorg and then re-select nvidia in order to +refresh the libGLcore and libGL symlinks, like so: + + # prt-get update nvidia + # gl-select use xorg; gl-select use nvidia + |