Solved unable to load i915kms because drm.ko cannot be loaded

I'm confused. I am unable to load i915kms because drm cannot be loaded: depends on iic - not available or version mismatch.

I have:
drm-510-kmod-5.10.163_7
drm-kmod-20220907_1

custom kernel: a1c915cc75c1b3c66e16bb52579e2abdf122eccb (releng/13.2)

This works on one box, but not another.
 
I'm confused. I am unable to load i915kms because drm cannot be loaded: depends on iic - not available or version mismatch.

I have:
drm-510-kmod-5.10.163_7
drm-kmod-20220907_1

custom kernel: a1c915cc75c1b3c66e16bb52579e2abdf122eccb (releng/13.2)

This works on one box, but not another.
What happens when you kldload -v /boot/kernel/iic.ko?

And then kldload -v i915kms?

If you've already built these to your custom kernel, make sure you've rebuild gpu-firmware-kmod as well.
 
I don't have iic on either system. I checked my kernel conf and don't see iic.

I just added a line now for iic and it looks to be building, so I guess I just needed:

Code:
device iic

That should build it, but my original kernel conf didn't, hmm.
 
Eureka, that was it. Hmm, how did I get here? Well, it works now, but I guess I need to see if I have iic built into the kernel on this machine then?
 
It should be loaded as module, it's not included with the GENERIC kernel either.
 
It is strange because I'm not using the generic kernel on the original system, nor was it in my kernel conf.
 
On your system with the custom kernel, do you have something like MODULES_OVERRIDE, NO_MODULES or WITHOUT_MODULES defined?
 
Yes:

Code:
MODULES_OVERRIDE=zfs opensolaris geom aesni acpi pf mac_ntpd vmm if_bridge if_tuntap nmdm linux linux_common fusefs if_epair agp linux64
 
Well, there's your answer.

Code:
     MODULES_OVERRIDE
                   (str) Set to a list of modules to build instead of all of
                   them.
 
Apparently the /boot/kernel/iic*.ko modules on disk don't have a version mismatch with the running kernel on one system but they do on the other. So somewhere along the line one system got an updated kernel but it never rebuilt those /boot/kernel/iic*.ko modules.

Unless you have a really small installation I would suggest just letting it build all modules and remove MODULES_OVERRIDE. Or add the appropriate modules to the list, so they actually get built when you update the kernel.
 
Back
Top