DKMS fails kernel 6.1.74
lobsteinda opened this issue · 1 comments
lobsteinda commented
Hello,
I'm running a truenas scale instance based on debian on the kernel 6.1.74. It was working on previous kernel but since I made an update I've been unable to reinstall the package.
Here is the log :
admin@truenas[~]$ sudo dkms autoinstall
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Building module:
Cleaning build area...
'make' -j8 KVER=6.1.74-production+truenas KSRC=/lib/modules/6.1.74-production+truenas/build............(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.74-production+truenas (x86_64)
Consult /var/lib/dkms/rtl88x2bu/git/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
admin@truenas[~]$ cat /var/lib/dkms/rtl88x2bu/git/build/make.log
DKMS make.log for rtl88x2bu-git for kernel 6.1.74-production+truenas (x86_64)
Mon Feb 26 08:58:33 CET 2024
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.74-production+truenas/build M=/var/lib/dkms/rtl88x2bu/git/build modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.74-production+truenas'
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_debug.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_io.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ioctl_query.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ioctl_set.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ieee80211.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme_ext.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_mi.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_wlan_util.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_vht.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_pwrctrl.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rf.o
/var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme_ext.c: In function 'rtw_txpwr_init_regd':
/var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme_ext.c:299:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
299 | if (rfctl->regd_name)
| ^
/var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme_ext.c:302:9: note: here
302 | default:
| ^~~~~~~
/var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme_ext.c: In function 'mgt_dispatcher':
/var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme_ext.c:1670:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
1670 | ptable->func = &OnAuthClient;
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme_ext.c:1672:9: note: here
1672 | case WIFI_ASSOCREQ:
| ^~~~
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_chplan.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/monitor/rtw_radiotap.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_recv.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_sta_mgt.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ap.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/wds/rtw_wds.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/mesh/rtw_mesh.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/mesh/rtw_mesh_pathtbl.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/mesh/rtw_mesh_hwmp.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_xmit.o
/var/lib/dkms/rtl88x2bu/git/build/core/rtw_sta_mgt.c: In function 'rtw_mfree_stainfo':
/var/lib/dkms/rtl88x2bu/git/build/core/rtw_sta_mgt.c:391:27: warning: the comparison will always evaluate as 'true' for the address of 'lock' will never be NULL [-Waddress]
391 | if (&(psta->lock) != NULL)
| ^~
In file included from /var/lib/dkms/rtl88x2bu/git/build/include/drv_types.h:112,
from /var/lib/dkms/rtl88x2bu/git/build/core/rtw_sta_mgt.c:17:
/var/lib/dkms/rtl88x2bu/git/build/include/sta_info.h:267:17: note: 'lock' declared here
267 | _lock lock;
| ^~~~
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_p2p.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rson.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_tdls.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_br_ext.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_iol.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_sreset.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_btcoex_wifionly.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_btcoex.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_beamforming.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_odm.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rm.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rm_fsm.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ft.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_wnm.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_mbo.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rm_util.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/efuse/rtw_efuse.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_roch.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/crypto/aes-internal.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/crypto/aes-internal-enc.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/crypto/aes-gcm.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/crypto/aes-ccm.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/crypto/aes-omac1.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/crypto/ccmp.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/crypto/gcmp.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/crypto/aes-siv.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/crypto/aes-ctr.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/crypto/sha256-internal.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/crypto/sha256.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/crypto/sha256-prf.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/crypto/rtw_crypto_wrap.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_swcrypto.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/osdep_service.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/os_intfs.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/usb_intf.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/usb_ops_linux.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_linux.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/xmit_linux.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/mlme_linux.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/recv_linux.o
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/os_intfs.c: In function 'rtw_ethtool_get_drvinfo':
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/os_intfs.c:2047:21: error: 'struct net_device' has no member named 'ieee80211_ptr'; did you mean 'ieee802154_ptr'?
2047 | wdev = dev->ieee80211_ptr;
| ^~~~~~~~~~~~~
| ieee802154_ptr
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/os_intfs.c: In function 'rtw_ndev_destructor':
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/os_intfs.c:4493:19: error: 'struct net_device' has no member named 'ieee80211_ptr'; did you mean 'ieee802154_ptr'?
4493 | if (ndev->ieee80211_ptr)
| ^~~~~~~~~~~~~
| ieee802154_ptr
In file included from /var/lib/dkms/rtl88x2bu/git/build/include/drv_types.h:27,
from /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/os_intfs.c:17:
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/os_intfs.c:4494:39: error: 'struct net_device' has no member named 'ieee80211_ptr'; did you mean 'ieee802154_ptr'?
4494 | rtw_mfree((u8 *)ndev->ieee80211_ptr, sizeof(struct wireless_dev));
| ^~~~~~~~~~~~~
/var/lib/dkms/rtl88x2bu/git/build/include/osdep_service.h:276:53: note: in definition of macro 'rtw_mfree'
276 | #define rtw_mfree(pbuf, sz) _rtw_mfree((pbuf), (sz))
| ^~~~
make[2]: *** [scripts/Makefile.build:250: /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/os_intfs.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:2015: /var/lib/dkms/rtl88x2bu/git/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.74-production+truenas'
make: *** [Makefile:2470: modules] Error 2
Can you help me please ?
RinCat commented
Your kernel seems disabled CONFIG_CFG80211
which is the wireless configuration API. There is not anything I can do if your kernel disabled WiFi support. Check if you installed wrong kernel.