Re: Starting Wayland

From: Gerard E. Seibert <jerry_at_seibercom.net>
Date: Fri, 26 Apr 2024 11:56:13 UTC
On Thu, 25 Apr 2024 18:38:37 -0400, Kurt Hackenberg stated:
> 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
> 

Unfortunately, "kld_list=i915kms.ko" causes my system to lock up when
starting up. That action is also repeated if I try to use "kldload
kld_list=i915kms.ko" I have also tried using the full path to the
module, i.e. "/boot/module/kld_list=i915kms.ko"; however, it didn't
make any difference. I did install the "graphics/drm-kmod-20220907_3"
port. I compiled it using poudriere. I also saw a mention of entering
fusefs_load="YES" into the "/boot/loader.conf" file.

-- 
Jerry