A question about graphics subsystems under FreeBSD

Gary Aitken freebsd at dreamchaser.org
Tue Dec 25 18:29:10 UTC 2018

On 12/25/18 1:21 AM, Steve O'Hara-Smith wrote:
> On Mon, 24 Dec 2018 17:13:46 -0700 Gary Aitken
> <freebsd at dreamchaser.org> wrote:
>> There are a boatload of additional radeonkmsfw_*.ko modules in
>> /boot, but I don't know how they are used.  My attempt to use a
>> radeon 5550 board hung the system (11.2) on exit; haven't had time
>> to look at it.
> The right ones are loaded automatically by the main radeonkms driver
> - at least that's what happens with the amdgpu one. You almost 
> certainly need to compile the drm-kmod port to get things working - 
> installing the package is a recipe for panics IME.

Thanks.  Updating says:
   A metaport, graphics/drm-kmod, was introduced for users of both the LinuxKPI-
   based DRM components as well as the legacy ones. It is recommended to use the
   metaport from now on, which will select a recommended DRM version based on
   the FreeBSD version.

Attempting to build it on my 11.2 says:
      ===>>> This port is marked IGNORE
      ===>>> requires kernel source files in /usr/src
But one needs to read Makefile to see what, if anything, is actually required.
11.2 is marked IGNORE, although it specifies
   RUN_DEPENDS=   ${KMODDIR}/drm.ko:graphics/drm-stable-kmod

I do not have drm-stable-kmod installed, nor gpu-firmware-kmod on which
drm-stable-kmod depends.  Given the RUN_DEPENDS, it seems like the IGNORE
might be a bug.

> I gather that for radeonkms the radeon dri driver works but for 
> amdgpu (my laptop) there's /usr/local/lib/dri/amdgpu_dri.so wanted by
> Xorg but I can't find it anywhere.

scanning pkg-plist in all ports comes up empty for amdgpu_dri


More information about the freebsd-questions mailing list