Also 535 driver from nvidia website does not build on FreeBSD 14
Which minor version of 535? I've tried ones listed below before.
- 535.43.02
- 535.54.03
- 535.86.05
- 535.98
- 535.104.05
- 535.113.01
- 535.129.03
- 535.146.02
- 535.154.05
As seen in
PR 282312,
550.127.05 of the driver contains security fix, so
using 535 should be discouraged.
If you need 535 series of driver anyway, do you want graphics/nvidia-drm-[510|515|61]-kmod?
If so, as the official support for it started from 550 series of drivers, you need to obtain Austin's private distfiles corresponding with the version you want, and need to follow his procedure. See diff of distinfo part in
commit 71e92b26bd43763a7b82208625e628f043858fa7.
If you don't need DRM part of the driver, you can override using something like below in your
/etc/make.conf.
Code:
NVIDIA_OVERRIDE_VERSION= 535.146.02
.if ${.CURDIR:M/usr/ports/x11/nvidia-driver} && defined (NVIDIA_OVERRIDE_VERSION)
DISTVERSION= ${NVIDIA_OVERRIDE_VERSION}
NO_CHECKSUM= YES
.endif
.if ${.CURDIR:M/usr/ports/x11/linux-nvidia-libs} && defined (NVIDIA_OVERRIDE_VERSION)
DISTVERSION= ${NVIDIA_OVERRIDE_VERSION}
NO_CHECKSUM= YES
.endif
Unfortunately, overriding versions for graphics/nvidia-drm-[510|515|61]-kmod like above even if the same logic is in
/etc/make.conf for it. You need to modify x11/nvidia-driver/Makefile.version to point to the wanted version, too. Otherwise it picks the wrong (pointed in the Makefile.version) version, thus, don't work. NO_CHECKSUM is still needed to override, though.
I am a bit impressed that FreeBSD has newer driver than Debian.
Maybe it would be because of the Debian's philosopy, dislike proprietary softwares.
But FreeBSD port of x11/nvidia-driver is already behind official nvidia production branch, too, as I work on it only when some work is needed for supporting new feature branch and/or beta branch of drivers, and no one others updates it for the latest version.
If you're OK for c7 on Linuxulator, you can use
x11/linux-nvidia-libs for Linux apps running on it. Not sure it works for rl9.
Currently, turned out that latest beta 570.86.16 requires some work, but I cannot take enough time to investigate for now. And as I myself already don't using
x11/linux-nvidia-libs and Linux version of driver seems to have more changes than FreeBSD version, possibly
x11/linux-nvidia-libs does not work even after I file a PR.