Solved drm.ko: iic - not available or version mistmatch.

Hello,

I upgraded world, kernel, and now I am in the process of reinstalling ports. I am tracking 'stable/13' in /usr/src and 'main' in /usr/ports. Ports were completely removed before reinstalling as per procedure "complete reinstallation of all ports" described in portmaster().

After a few basic ports installed, e.g. graphics/drm-kmod and x11/xorg. I am not able to start the Xorg server. The problem, according to dmesg() is:

KLD drm.ko: depends on iic - not available or version mistmatch

I have a custom kernel but (as far as I am aware) I haven't disabled the i2c functionality.

Any hint about what could be the problem and how to solve it?
 
I am sorry for having bother you.

I wrongly stated that I have not disabled the i2c functionality in my custom kernel. After close inspection I realized that I had set the MODULES_OVERRIDE variable and the module iic.ko was missing.

If I remember correctly this is not the first time that I have had troubles because of me setting this variable incorrectly. I am not setting this variable anymore, I tend to over-customize it seems.

The Xorg server loaded without problems.
 
  • Like
Reactions: mro
After close inspection I realized that I had set the MODULES_OVERRIDE variable
Yes. That's the one I was wondering about :D Or NO_MODULES, or a similar setting.

When building from source make sure to also run make delete-old and make delete-old-libs. Especially if you have removed items that are normally built with a 'full' build.

Code:
     delete-old           Delete obsolete base system files and directories
                          interactively.  When -DBATCH_DELETE_OLD_FILES is
                          specified at the command line, the delete operation
                          will be non-interactive.  The variables DESTDIR,
                          TARGET_ARCH and TARGET should be set as with “make
                          installworld”.

     delete-old-libs      Delete obsolete base system libraries interactively.
                          This target should only be used if no third party
                          software uses these libraries.  When
                          -DBATCH_DELETE_OLD_FILES is specified at the command
                          line, the delete operation will be non-interactive.
                          The variables DESTDIR, TARGET_ARCH and TARGET should
                          be set as with “make installworld”.
 
Back
Top