Re: Starting Wayland

From: Kurt Hackenberg <kh_at_panix.com>
Date: Thu, 25 Apr 2024 22:38:37 UTC
On Thu, Apr 25, 2024 at 05:25:21PM -0400, jerry@seibercom.net wrote:

>I am unable to get "wayland-1.22.0" to run on my system. This is a new
>system. I wiped the HD clean and installed FreeBSD.

I've never used wayland, but...

>I installed drm-kmod which included the "i915kms.ko". I thought that module
>was the correct one to use. All it does is lock up the system if I try to
>load it.

I think that's the problem.  i915kms.ko is the kernel module for 
graphics processors integrated in Intel CPUs, but it gets tricky.

This is an ongoing problem, since drm-kmod is distributed as 
ports/packages, not with the kernel, but it's part of the kernel and 
has to match it.  There are currently three versions of it:

     5.10    FreeBSD 13
     5.15    FreeBSD 14
     6.1     FreeBSD 15

The port drm-kmod is a meta-port, that automatically selects the right 
version.  The package version of that meta-port apparently is 
drm-kmod-20220907_3.  The meta-port/package also installs GPU firmware, 
which you need.

So you compiled and installed the meta-port drm-kmod, which compiled 
and installed drm-515-kmod and a lot of GPU firmware ports?  If you 
installed from packages rather than ports, that's supposed to work, but 
doesn't always, in my experience, I think because of version 
mismatches.  It's more reliable to compile at least the kernel module 
port, in this case drm-515-kmod.

Also, just checking, did you load the kernel module with this line in 
/etc/rc.conf?

kld_list=i915kms.ko