Bug 238492 - iwm(4): KLD if_iwm.ko: depends on kernel - not available or version mismatch (Intel Wireless-AC 8265)
Summary: iwm(4): KLD if_iwm.ko: depends on kernel - not available or version mismatch ...
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: wireless (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-wireless (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2019-06-11 09:51 UTC by Moritz Schmitt
Modified: 2020-07-15 04:39 UTC (History)
1 user (show)

See Also:
koobs: maintainer-feedback? (moritz)


Attachments
Output of dmesg, sysctl -a, and pciconf -lv (181.68 KB, text/plain)
2019-06-11 09:51 UTC, Moritz Schmitt
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Schmitt 2019-06-11 09:51:01 UTC
Created attachment 204983 [details]
Output of dmesg, sysctl -a, and pciconf -lv

I am using FreeBSD-CURRENT (Rev. 348849) on a Lenovo Thinkpad T470. As a wireless network interface it has an Intel Dual Band Wireless-AC 8265, which needs FreeBSD's iwm device.

Until "a few" revisions ago Wifi worked fine. But now it doesn't work anymore and I get the following errors when booting:

	KLD if_iwm.ko: depends on kernel - not available or version mismatch
	linker_load_file: /boot/kernel/if_iwm.ko - unsupported file type
	KLD ng_ubt.ko: depends on kernel - not available or version mismatch
	linker_load_file: /boot/kernel/ng_ubt.ko - unsupported file type
	KLD ng_ubt.ko: depends on kernel - not available or version mismatch
	linker_load_file: /boot/kernel/ng_ubt.ko - unsupported file type
	KLD mac_ntpd.ko: depends on kernel - not available or version mismatch
	linker_load_file: /boot/kernel/mac_ntpd.ko - unsupported file type
	KLD if_iwm.ko: depends on kernel - not available or version mismatch
	linker_load_file: /boot/kernel/if_iwm.ko - unsupported file type

All these modules are present in /boot/kernel and were updated during the compile & install process. However, I am not sure why I would need them anyway because I compiled device support for iwm into the kernel.

To compile FreeBSD from source I did the following:

	# cd /usr/src
	# sudo make cleanworld
	# sudo make -j4 buildworld
	# sudo make -j4 buildkernel KERNCONF=BSD1993
	# cd /usr/src
	# sudo make installkernel KERNCONF=BSD1993
	# shutdown -r now
	# cd /usr/src
	# make installworld
	# shutdown -r now

The custom kernel config I use is GENERIC plus

	device iwm
	device iwmfw

This kernel config worked before.

Please find attached the output of dmesg, sysctl -a, and pciconf -lv.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2020-06-29 03:37:50 UTC
Hi Moritz,

First step for isolation is a clean and full world/kernel with an up to date source tree rebuild to ensure the sources one built world/kernel against are the exact same as the installed system.

The "not available or version mismatch" error is usually an indication of a version mismatch (say between param.h and kern.osreldate)
Comment 2 Moritz Schmitt 2020-07-15 04:39:43 UTC
Hi Kubilay -- Thanks for your suggestions. In the meantime I switched operating systems on my Thinkpad, so I'll close this problem report for now. I should have done that earlier, sorry about that.