Re: FreeBSD 13.2-RELEASE started failing to load i915kms.ko after upgrade from RC5

From: Kevin Oberman <rkoberman_at_gmail.com>
Date: Sun, 09 Apr 2023 21:45:05 UTC
On Sun, Apr 9, 2023 at 11:57 AM Yoshihiro Ota <ota@j.email.ne.jp> wrote:

> Hi,
>
> I've been following releng/13.2 since it was branched.
> I use amd64 arch for this.
>
> I had built kernel modules during BETA/RC period.
> The above i915kms had worked until RC5.
> I had not built RC6 locally and picked up RELEASE on releng/13.2.
>
> After upgrading from RC5 to 13.2-RELEASE, the kernel started failing to
> load i915mks.
> This time, all kmod started failing such as one for virtual box, too.
>
> I thought I would need to rebuild all kernel modules, and thus started.
> However, even after rebuilding kernel modules several times, i915kms
> doesn't load properly.
> While new virtual box kmod works, I think my build environment isn't a
> problem.
>
> I cannot make i915kms back in working condition.
> I also updated /usr/ports and rebuilt few times but yet not successful.
> I get the following error:
> ```
> linker_load_file: /boot/modules/i915kms.ko - unsupported file type
> ```
>
> Any hints or same experiences?
>
> Hiro
>

You need to rebuild the port when hte kernel is updated on hte system that
has the same system source files as the one that it is being installed on.

I add drm-515-kmod to PORTS_MODULES to be sure that this always happens.
Add:
PORTS_MODULES+= graphics/drm-515-kmod
This should, perhaps, be graphics/drm-510-kmod on 13-STABLE since 13.2, but
I'm not sure. Depends on the merge of some code that I thought was in
STABLE back at some point in 1.1-STABLE.
-- 
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683