Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jan 2021 22:25:35 -0800
From:      Kevin Oberman <rkoberman@gmail.com>
To:        Robert Huff <roberthuff@rcn.com>
Cc:        Chris Hill <chris@monochrome.org>,  "freebsd-questions@freebsd.org" <questions@freebsd.org>
Subject:   Re: drm-kmod kills FreeBSD
Message-ID:  <CAN6yY1tqsSWbFggFpLfFtfaEoDUQqKdf6MLLuJi8ei=RV8YpBw@mail.gmail.com>
In-Reply-To: <24584.64455.966459.479993@jerusalem.litteratus.org>
References:  <alpine.BSF.2.20.2101201919360.73682@tripel.monochrome.org> <CAM8r67D-TZ0ZrLO7=JWTQ5Ak2jcq%2B3P3pAXuu1HCnMrxQjG5Ow@mail.gmail.com> <alpine.BSF.2.20.2101202008490.73682@tripel.monochrome.org> <24584.64455.966459.479993@jerusalem.litteratus.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 20, 2021 at 7:58 PM Robert Huff <roberthuff@rcn.com> wrote:

>
> Chris Hill <chris@monochrome.org> writes:
>
> >   > You need to build and reinstall drm-kmod-g20190710 and
> >   > drm-fbsd12.0-kmod-4.16.g20201016 manually from ports, so module
> >   > gets 12.2 stuff in it, pkg installs binary that is built on 12.1
> >   > and will not work on 12.2 properly. This is a known issue and
> >   > fix :-)
> >
> >   Really! That's extremely helpful to know. Do I actually need both
> >   of those? I'm not sure what the difference is.
>
>         Short version:
>         To do what they do, drm-kmods and gpu-firmware-kmod burrow _deep_
> into the kernel; everything needs to be _perfectly_ in sync or
> ... <hairball!>  On my systems I upgrade as a triplet:
> {kernel+world,drm,gpu-firmware}.
>
>
>                         Respectfully,
>
>
>                                 Robert Huff
>
Easy way to make this "just work" is to add drm-fbsd12.0-kmod to
PORTS_MODULES in /etc/src.conf. This probably should also be done for lsof
and virtualbox-osf-kmod, as well, as both depend on unstable KBIs. I have:
PORTS_MODULES= emulators/virtualbox-ose-kmod
PORTS_MODULES+= sysutils/lsof
PORTS_MODULES+= graphics/drm-kmod (or the appropriate port for your system)
PORTS_MODULES+= graphics/gpu-firmware-kmod

Ports listed in PORTS_MODULES are always rebuilt with kernel builds.

I'll also mention that drm-kmod is just a wrapper that picks the correct
port for your version of FreeBSD. If you install drm-kmod, you will see boh
that port and the "real" drm-*-kmod port is installed.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1tqsSWbFggFpLfFtfaEoDUQqKdf6MLLuJi8ei=RV8YpBw>