Re: can't load drm

From: Warner Losh <imp_at_bsdimp.com>
Date: Sun, 16 Oct 2022 16:41:18 UTC
On Sun, Oct 16, 2022 at 10:40 AM Robert Huff <roberthuff@rcn.com> wrote:

>
> Hello:
>         On a system running:
>
> FreeBSD 14.0-CURRENT #0 main-dfddfe29d8:
> Thu Jul 28 11:36:59 EDT 2022
> amd64
>
>         I just replaced the video card and am trying to load drm-510 (at
> boot or with kldload).
>         This fails with:
>
> KLD drm.ko: depends on kernel - not available or version mismatch
> linker_load_file: /boot/modules/drm.ko - unsupported file type
>
>         Before, drm Just Worked.  (Other stuff didn't - which is why I
> upgraded the video card - but drm did.)
>         (I deleted and reinstalled the port, in case that was the
> problem.  Nope.)
>         What have I done wrong?  And how do I fix it?


Your kernel and drm module are out of sync. You need to rebuild the drm
module with your current sources.

Warner

>
>