FreeBSD-ports are newer than the ones in FreeBSD-ports-kmods. But the drivers in FreeBSD-ports are built for 15.0, which won't work on 15.1.The safest bet at the moment is building the drm-XYZ-kmod (61, 66 or 612) port directly from source.How to fix this then?
Especially if NVIDIA GPU is in use.The safest bet at the moment is building the drm-XYZ-kmod (61, 66 or 612) port directly from source.
I got an error when run portsnap fetchThe safest bet at the moment is building the drm-XYZ-kmod (61, 66 or 612) port directly from source.
portsnap: Directory does not exist or is not writable: /var/db/portsnap
portsnap is now unusable.I got an error when run portsnap fetch
Code:portsnap: Directory does not exist or is not writable: /var/db/portsnap
Okay, then ensure you have an synchronized /usr/src, either from the git repository (ensure you are on the branch that matches your release, i.e.: the releng/15.1 branch) or by installing the FreeBSD-src-sys package (easier), pull the ports repository using one of the methods that T-Aoki mentioned above.I had installed drm-66-kmod from ports, but doesn't work
$ cd /usr/ports/graphics/drm-66-kmod$ make package# pkg install work/pkg/*.pkgIs your source tree (/usr/src, at least /usr/src/sys) 100% matches with your running kernel?I had installed drm-66-kmod from ports, but doesn't work
git clone https://git.freebsd.org/ports.git /usr/ports/
git clone https://git.freebsd.org/src.git /usr/src/
cd /usr/ports/graphics/drm-66-kmod/
make install clean
what it mean? I use 15.1Is your source tree (/usr/src, at least /usr/src/sys) 100% matches with your running kernel?
Ah, you should've pulled main branch of src. Not at all matches for 15.1.my steps
Code:git clone https://git.freebsd.org/ports.git /usr/ports/ git clone https://git.freebsd.org/src.git /usr/src/ cd /usr/ports/graphics/drm-66-kmod/ make install clean
what it mean? I use 15.1
freebsd-update to update to latest patch release 15.1-RELEASE-p1. git checkout releng/15.1 at /usr/src to switch to releng/15.1 branch, which is used for building 15.1-RELEASE{-p*}. git pull at /usr/srcI run git checkout/15.1 && git pull in /usr/src and reinstalled drm-66-kmod, still doesn't work, 612 and 61 the same.Ah, you should've pulled main branch of src. Not at all matches for 15.1.
Try:
freebsd-updateto update to latest patch release 15.1-RELEASE-p1.git checkout releng/15.1at /usr/src to switch to releng/15.1 branch, which is used for building 15.1-RELEASE{-p*}.git pullat /usr/src- build/install graphics/drm-66-kmod again.
- restart your computer.
I run git checkout/15.1 && git pull in /usr/src and reinstalled drm-66-kmod, still doesn't work, 612 and 61 the same.
git checkout/15.1 should surely fail! Do precisely. git checkout releng/15.1