1
0
forked from ports/opt

nvidia: updated to version 510.47.03

This commit is contained in:
Matt Housh 2022-02-02 12:13:19 -06:00
parent 23c2a07cbb
commit 8939a8d52f
4 changed files with 113 additions and 62 deletions

@ -2,6 +2,8 @@ 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 etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/nvidia-powerd
drwxr-xr-x root/root etc/vulkan/
drwxr-xr-x root/root etc/vulkan/icd.d/
-rw-r--r-- root/root etc/vulkan/icd.d/nvidia_icd.json
@ -24,64 +26,67 @@ drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/nvidia-debugdump
-rwsr-xr-x root/root usr/bin/nvidia-modprobe
-rwxr-xr-x root/root usr/bin/nvidia-persistenced
-rwxr-xr-x root/root usr/bin/nvidia-powerd
-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/
lrwxrwxrwx root/root usr/lib/libEGL_nvidia.so.0 -> libEGL_nvidia.so.470.94
-rwxr-xr-x root/root usr/lib/libEGL_nvidia.so.470.94
lrwxrwxrwx root/root usr/lib/libGLESv1_CM_nvidia.so.1 -> libGLESv1_CM_nvidia.so.470.94
-rwxr-xr-x root/root usr/lib/libGLESv1_CM_nvidia.so.470.94
lrwxrwxrwx root/root usr/lib/libGLESv2_nvidia.so.2 -> libGLESv2_nvidia.so.470.94
-rwxr-xr-x root/root usr/lib/libGLESv2_nvidia.so.470.94
lrwxrwxrwx root/root usr/lib/libGLX_nvidia.so.0 -> libGLX_nvidia.so.470.94
-rwxr-xr-x root/root usr/lib/libGLX_nvidia.so.470.94
lrwxrwxrwx root/root usr/lib/libEGL_nvidia.so.0 -> libEGL_nvidia.so.510.47.03
-rwxr-xr-x root/root usr/lib/libEGL_nvidia.so.510.47.03
lrwxrwxrwx root/root usr/lib/libGLESv1_CM_nvidia.so.1 -> libGLESv1_CM_nvidia.so.510.47.03
-rwxr-xr-x root/root usr/lib/libGLESv1_CM_nvidia.so.510.47.03
lrwxrwxrwx root/root usr/lib/libGLESv2_nvidia.so.2 -> libGLESv2_nvidia.so.510.47.03
-rwxr-xr-x root/root usr/lib/libGLESv2_nvidia.so.510.47.03
lrwxrwxrwx root/root usr/lib/libGLX_nvidia.so.0 -> libGLX_nvidia.so.510.47.03
-rwxr-xr-x root/root usr/lib/libGLX_nvidia.so.510.47.03
-rwxr-xr-x root/root usr/lib/libOpenCL.so.1.0.0
lrwxrwxrwx root/root usr/lib/libcuda.so -> libcuda.so.470.94
lrwxrwxrwx root/root usr/lib/libcuda.so.1 -> libcuda.so.470.94
-rwxr-xr-x root/root usr/lib/libcuda.so.470.94
-rwxr-xr-x root/root usr/lib/libnvcuvid.so.470.94
-rwxr-xr-x root/root usr/lib/libnvidia-cbl.so.470.94
-rwxr-xr-x root/root usr/lib/libnvidia-cfg.so.470.94
-rwxr-xr-x root/root usr/lib/libnvidia-compiler.so.470.94
-rwxr-xr-x root/root usr/lib/libnvidia-eglcore.so.470.94
-rwxr-xr-x root/root usr/lib/libnvidia-encode.so.470.94
-rwxr-xr-x root/root usr/lib/libnvidia-fbc.so.470.94
-rwxr-xr-x root/root usr/lib/libnvidia-glcore.so.470.94
-rwxr-xr-x root/root usr/lib/libnvidia-glsi.so.470.94
-rwxr-xr-x root/root usr/lib/libnvidia-glvkspirv.so.470.94
-rwxr-xr-x root/root usr/lib/libnvidia-gtk2.so.470.94
-rwxr-xr-x root/root usr/lib/libnvidia-gtk3.so.470.94
-rwxr-xr-x root/root usr/lib/libnvidia-ifr.so.470.94
lrwxrwxrwx root/root usr/lib/libnvidia-ml.so -> libnvidia-ml.so.470.94
lrwxrwxrwx root/root usr/lib/libnvidia-ml.so.1 -> libnvidia-ml.so.470.94
-rwxr-xr-x root/root usr/lib/libnvidia-ml.so.470.94
lrwxrwxrwx root/root usr/lib/libnvidia-ngx.so -> libnvidia-ngx.so.470.94
lrwxrwxrwx root/root usr/lib/libnvidia-ngx.so.1 -> libnvidia-ngx.so.470.94
-rwxr-xr-x root/root usr/lib/libnvidia-ngx.so.470.94
lrwxrwxrwx root/root usr/lib/libnvidia-opencl.so -> libnvidia-opencl.so.470.94
lrwxrwxrwx root/root usr/lib/libnvidia-opencl.so.1 -> libnvidia-opencl.so.470.94
-rwxr-xr-x root/root usr/lib/libnvidia-opencl.so.470.94
lrwxrwxrwx root/root usr/lib/libnvidia-opticalflow.so -> libnvidia-opticalflow.so.470.94
lrwxrwxrwx root/root usr/lib/libnvidia-opticalflow.so.1 -> libnvidia-opticalflow.so.470.94
-rwxr-xr-x root/root usr/lib/libnvidia-opticalflow.so.470.94
lrwxrwxrwx root/root usr/lib/libnvidia-ptxjitcompiler.so -> libnvidia-ptxjitcompiler.so.470.94
lrwxrwxrwx root/root usr/lib/libnvidia-ptxjitcompiler.so.1 -> libnvidia-ptxjitcompiler.so.470.94
-rwxr-xr-x root/root usr/lib/libnvidia-ptxjitcompiler.so.470.94
-rwxr-xr-x root/root usr/lib/libnvidia-rtcore.so.470.94
-rwxr-xr-x root/root usr/lib/libnvidia-tls.so.470.94
lrwxrwxrwx root/root usr/lib/libnvoptix.so -> libnvoptix.so.470.94
lrwxrwxrwx root/root usr/lib/libnvoptix.so.1 -> libnvoptix.so.470.94
-rwxr-xr-x root/root usr/lib/libnvoptix.so.470.94
lrwxrwxrwx root/root usr/lib/libcuda.so -> libcuda.so.510.47.03
lrwxrwxrwx root/root usr/lib/libcuda.so.1 -> libcuda.so.510.47.03
-rwxr-xr-x root/root usr/lib/libcuda.so.510.47.03
-rwxr-xr-x root/root usr/lib/libnvcuvid.so.510.47.03
-rwxr-xr-x root/root usr/lib/libnvidia-cfg.so.510.47.03
-rwxr-xr-x root/root usr/lib/libnvidia-compiler.so.510.47.03
lrwxrwxrwx root/root usr/lib/libnvidia-egl-gbm.so -> libnvidia-egl-gbm.so.1.1.0
lrwxrwxrwx root/root usr/lib/libnvidia-egl-gbm.so.1 -> libnvidia-egl-gbm.so.1.1.0
-rwxr-xr-x root/root usr/lib/libnvidia-egl-gbm.so.1.1.0
-rwxr-xr-x root/root usr/lib/libnvidia-eglcore.so.510.47.03
-rwxr-xr-x root/root usr/lib/libnvidia-encode.so.510.47.03
-rwxr-xr-x root/root usr/lib/libnvidia-fbc.so.510.47.03
-rwxr-xr-x root/root usr/lib/libnvidia-glcore.so.510.47.03
-rwxr-xr-x root/root usr/lib/libnvidia-glsi.so.510.47.03
-rwxr-xr-x root/root usr/lib/libnvidia-glvkspirv.so.510.47.03
-rwxr-xr-x root/root usr/lib/libnvidia-gtk2.so.510.47.03
-rwxr-xr-x root/root usr/lib/libnvidia-gtk3.so.510.47.03
lrwxrwxrwx root/root usr/lib/libnvidia-ml.so -> libnvidia-ml.so.510.47.03
lrwxrwxrwx root/root usr/lib/libnvidia-ml.so.1 -> libnvidia-ml.so.510.47.03
-rwxr-xr-x root/root usr/lib/libnvidia-ml.so.510.47.03
lrwxrwxrwx root/root usr/lib/libnvidia-ngx.so -> libnvidia-ngx.so.510.47.03
lrwxrwxrwx root/root usr/lib/libnvidia-ngx.so.1 -> libnvidia-ngx.so.510.47.03
-rwxr-xr-x root/root usr/lib/libnvidia-ngx.so.510.47.03
lrwxrwxrwx root/root usr/lib/libnvidia-opencl.so -> libnvidia-opencl.so.510.47.03
lrwxrwxrwx root/root usr/lib/libnvidia-opencl.so.1 -> libnvidia-opencl.so.510.47.03
-rwxr-xr-x root/root usr/lib/libnvidia-opencl.so.510.47.03
lrwxrwxrwx root/root usr/lib/libnvidia-opticalflow.so -> libnvidia-opticalflow.so.510.47.03
lrwxrwxrwx root/root usr/lib/libnvidia-opticalflow.so.1 -> libnvidia-opticalflow.so.510.47.03
-rwxr-xr-x root/root usr/lib/libnvidia-opticalflow.so.510.47.03
lrwxrwxrwx root/root usr/lib/libnvidia-ptxjitcompiler.so -> libnvidia-ptxjitcompiler.so.510.47.03
lrwxrwxrwx root/root usr/lib/libnvidia-ptxjitcompiler.so.1 -> libnvidia-ptxjitcompiler.so.510.47.03
-rwxr-xr-x root/root usr/lib/libnvidia-ptxjitcompiler.so.510.47.03
-rwxr-xr-x root/root usr/lib/libnvidia-rtcore.so.510.47.03
-rwxr-xr-x root/root usr/lib/libnvidia-tls.so.510.47.03
lrwxrwxrwx root/root usr/lib/libnvoptix.so -> libnvoptix.so.510.47.03
lrwxrwxrwx root/root usr/lib/libnvoptix.so.1 -> libnvoptix.so.510.47.03
-rwxr-xr-x root/root usr/lib/libnvoptix.so.510.47.03
lrwxrwxrwx root/root usr/lib/nvidia-drm_gbm.so -> libnvidia-allocator.so.510.47.03
drwxr-xr-x root/root usr/lib/nvidia/
drwxr-xr-x root/root usr/lib/nvidia/xorg/
lrwxrwxrwx root/root usr/lib/nvidia/xorg/libglxserver_nvidia.so -> libglxserver_nvidia.so.470.94
lrwxrwxrwx root/root usr/lib/nvidia/xorg/libglxserver_nvidia.so.1 -> libglxserver_nvidia.so.470.94
-rwxr-xr-x root/root usr/lib/nvidia/xorg/libglxserver_nvidia.so.470.94
lrwxrwxrwx root/root usr/lib/nvidia/xorg/libglxserver_nvidia.so -> libglxserver_nvidia.so.510.47.03
lrwxrwxrwx root/root usr/lib/nvidia/xorg/libglxserver_nvidia.so.1 -> libglxserver_nvidia.so.510.47.03
-rwxr-xr-x root/root usr/lib/nvidia/xorg/libglxserver_nvidia.so.510.47.03
drwxr-xr-x root/root usr/lib/vdpau/
lrwxrwxrwx root/root usr/lib/vdpau/libvdpau_nvidia.so -> libvdpau_nvidia.so.470.94
lrwxrwxrwx root/root usr/lib/vdpau/libvdpau_nvidia.so.1 -> libvdpau_nvidia.so.470.94
-rwxr-xr-x root/root usr/lib/vdpau/libvdpau_nvidia.so.470.94
lrwxrwxrwx root/root usr/lib/vdpau/libvdpau_nvidia.so -> libvdpau_nvidia.so.510.47.03
lrwxrwxrwx root/root usr/lib/vdpau/libvdpau_nvidia.so.1 -> libvdpau_nvidia.so.510.47.03
-rwxr-xr-x root/root usr/lib/vdpau/libvdpau_nvidia.so.510.47.03
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/
@ -93,11 +98,14 @@ drwxr-xr-x root/root usr/share/X11/xorg.conf.d/
-rw-r--r-- root/root usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
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/egl/
drwxr-xr-x root/root usr/share/egl/egl_external_platform.d/
-rw-r--r-- root/root usr/share/egl/egl_external_platform.d/15_nvidia_gbm.json
drwxr-xr-x root/root usr/share/glvnd/
drwxr-xr-x root/root usr/share/glvnd/egl_vendor.d/
-rw-r--r-- root/root usr/share/glvnd/egl_vendor.d/10_nvidia.json
drwxr-xr-x root/root usr/share/nvidia/
-rw-r--r-- root/root usr/share/nvidia/nvidia-application-profiles-470.94-key-documentation
-rw-r--r-- root/root usr/share/nvidia/nvidia-application-profiles-470.94-rc
-rw-r--r-- root/root usr/share/nvidia/nvidia-application-profiles-510.47.03-key-documentation
-rw-r--r-- root/root usr/share/nvidia/nvidia-application-profiles-510.47.03-rc
drwxr-xr-x root/root usr/share/pixmaps/
-rw-r--r-- root/root usr/share/pixmaps/nvidia-settings.png

@ -1,7 +1,8 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/WfcfXQKRjCxXV+v0gQWe96aMQou8UvOL4pDF8n1iA6gLpa9fkZ+yCkgdA8NfvEcP4niA+sagzd19SSVnprEZgk=
SHA256 (Pkgfile) = d6904ee3fe4874ec9898121b8bcc1376a3a040bf45651b71ec766693f78b600a
SHA256 (.footprint) = 046b30a1d650314d56998f29e23fa592f9303b3a4603c26be032a73ffe66b62f
SHA256 (NVIDIA-Linux-x86_64-470.94.run) = 9585aa29330ebad9bdf22ce3ca2bac2026c85a9a32f03d7c59f714a7798500eb
RWSE3ohX2g5d/ZLAi7MQ7q+rVourNLJ8B+uWyWseHMybvrYCjBl0uT1WI+6UGcPra+Wi3UgMHdnUQWafiG2VLO1IJD/AsfRNDAc=
SHA256 (Pkgfile) = fa9cc2cc23a05b8e86fec5f91d14b86c8e25b1f9e106c5ab0979efe5760e1a39
SHA256 (.footprint) = 1fb8269761e8866e4db95a12616a42cafd9b901a9730f569d99c014293773fcb
SHA256 (NVIDIA-Linux-x86_64-510.47.03.run) = f2a421dae836318d3c0d96459ccb3af27e90e50c95b0faa4288af76279e5d690
SHA256 (90-nvidia-uvm.rules) = c35c61cebf5bf9a112ac06539bdc670a388afa4b50a7f8223a114fbeafedb140
SHA256 (10-nvidia-drm-outputclass.conf) = 4a72c70d7e348102f8c159b3f58973218bc740de1d86830f7cbee1c40744929c
SHA256 (nvidia-powerd.rc) = 93aa2a176eba74041c8f39363da303eadb611c62a5f12f3cdb1725a3e329b022

@ -4,10 +4,10 @@
# Depends on: gtk gtk3 libglvnd
name=nvidia
version=470.94
version=510.47.03
release=1
source=(https://us.download.nvidia.com/XFree86/Linux-x86_64/$version/NVIDIA-Linux-x86_64-$version.run \
90-nvidia-uvm.rules 10-nvidia-drm-outputclass.conf)
90-nvidia-uvm.rules 10-nvidia-drm-outputclass.conf nvidia-powerd.rc)
build() {
sh NVIDIA-Linux-x86_64-$version.run --extract-only
@ -21,14 +21,22 @@ build() {
ln -s libglxserver_nvidia.so.$version $PKG/usr/lib/nvidia/xorg/libglxserver_nvidia.so
ln -s libglxserver_nvidia.so.$version $PKG/usr/lib/nvidia/xorg/libglxserver_nvidia.so.1
# EGL and OpenGL ES libraries and config
install -d $PKG/usr/lib
# EGL and OpenGL ES libraries and config
install -m 0755 libGLESv1_CM_nvidia.so.$version $PKG/usr/lib/
ln -s libGLESv1_CM_nvidia.so.$version $PKG/usr/lib/libGLESv1_CM_nvidia.so.1
install -m 0755 libGLESv2_nvidia.so.$version $PKG/usr/lib/
ln -s libGLESv2_nvidia.so.$version $PKG/usr/lib/libGLESv2_nvidia.so.2
install -D -m 0644 10_nvidia.json $PKG/usr/share/glvnd/egl_vendor.d/10_nvidia.json
# GBM libraries and config
install -m 0755 libnvidia-egl-gbm.so.1.1.0 $PKG/usr/lib/
ln -s libnvidia-egl-gbm.so.1.1.0 $PKG/usr/lib/libnvidia-egl-gbm.so.1
ln -s libnvidia-egl-gbm.so.1.1.0 $PKG/usr/lib/libnvidia-egl-gbm.so
install -D -m 0644 15_nvidia_gbm.json $PKG/usr/share/egl/egl_external_platform.d/15_nvidia_gbm.json
ln -s libnvidia-allocator.so.$version $PKG/usr/lib/nvidia-drm_gbm.so
# wayland EGL library and config
#install -d $PKG/usr/share/egl/egl_external_platform.d
#install -m 0755 libnvidia-egl-wayland.so.1.0.2 $PKG/usr/lib/
@ -52,7 +60,6 @@ build() {
install -m 0755 libnvidia-glsi.so.$version $PKG/usr/lib/
install -m 0755 libnvidia-glvkspirv.so.$version $PKG/usr/lib/
install -m 0755 libnvidia-rtcore.so.$version $PKG/usr/lib/
install -m 0755 libnvidia-cbl.so.$version $PKG/usr/lib/
# vendor VDPAU library
install -D -m 0755 libvdpau_nvidia.so.$version $PKG/usr/lib/vdpau/libvdpau_nvidia.so.$version
@ -89,8 +96,9 @@ build() {
# applications
install -m 4755 nvidia-modprobe $PKG/usr/bin/
install -m 0755 nvidia-{xconfig,settings,smi,debugdump,persistenced} \
install -m 0755 nvidia-{xconfig,settings,smi,debugdump,persistenced,powerd} \
$PKG/usr/bin/
install -D -m 0755 $SRC/nvidia-powerd.rc $PKG/etc/rc.d/nvidia-powerd
# nvidia-settings UI libraries
install -m 0755 libnvidia-gtk{2,3}.so.$version $PKG/usr/lib/
@ -98,7 +106,6 @@ build() {
# encoding/decoding libraries
install -m 0755 libnvcuvid.so.$version $PKG/usr/lib/
install -m 0755 libnvidia-encode.so.$version $PKG/usr/lib/
install -m 0755 libnvidia-ifr.so.$version $PKG/usr/lib/
install -m 0755 libnvidia-fbc.so.$version $PKG/usr/lib/
# OptiX ray tracing engine

35
nvidia/nvidia-powerd.rc Executable file

@ -0,0 +1,35 @@
#!/bin/sh
#
# /etc/rc.d/nvidia-powerd: start/stop nvidia-powerd daemon
#
SSD=/sbin/start-stop-daemon
PROG=/usr/bin/nvidia-powerd
PID=/var/run/nvidia-powerd.pid
case $1 in
start)
$SSD --start --pidfile $PID --exec $PROG
;;
stop)
$SSD --stop --retry 10 --pidfile $PID
;;
restart)
$0 stop
$0 start
;;
status)
$SSD --status --pidfile $PID
case $? in
0) echo "$PROG is running with pid $(cat $PID)" ;;
1) echo "$PROG is not running but the pid file $PID exists" ;;
3) echo "$PROG is not running" ;;
4) echo "Unable to determine the program status" ;;
esac
;;
*)
echo "usage: $0 [start|stop|restart|status]"
;;
esac
# End of file