You are not logged in.

#1 2024-06-11 07:42:44

devetdeset
Member
Registered: 2024-06-11
Posts: 7

[SOLVED] failed install of linux-zen-headers. dkms module install fail

hello,

when updating my kernel for the last time, i got an error when installing linux-zen-headers

Error! Bad return status for module build on kernel: 6.9.3-zen1-1-zen (x86_64)
Consult /var/lib/dkms/rtl88x2bu/5.8.7.1/build/make.log for more information

i rebooted my system to try to reinstall. but i could no longer boot as my password for my lvm drive was no longer being accepted. i figured it was an issue with the kernel so i chrooted into my system from an arch install USB.

here is the file '/var/lib/dkms/rtl88x2bu/5.8.7.1/build/make.log' output:

DKMS make.log for rtl88x2bu-5.8.7.1 for kernel 6.9.3-arch1-1 (x86_64)
Tue Jun 11 08:58:37 CEST 2024
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.9.3-arch1-1/build M=/var/lib/dkms/rtl88x2bu/5.8.7.1/build  modules
make[1]: Entering directory '/usr/lib/modules/6.9.3-arch1-1/build'
  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_debug.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_io.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_ioctl_query.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_ioctl_set.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_ieee80211.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_mlme.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_mlme_ext.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_mi.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_wlan_util.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_vht.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_pwrctrl.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_rf.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_chplan.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_recv.o
 
  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/os_dep/linux/rtw_rhashtable.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/os_dep/linux/ioctl_mp.o
/usr/src/rtl88x2bu-5.8.7.1/os_dep/linux/usb_intf.c:340:17: error: ‘struct usb_driver’ has no member named ‘drvwrap’
  340 |         .usbdrv.drvwrap.driver.shutdown = rtw_dev_shutdown,
      |                 ^~~~~~~
/usr/src/rtl88x2bu-5.8.7.1/os_dep/linux/usb_intf.c:340:43: error: initialization of ‘const char *’ from incompatible pointer type ‘void (*)(struct device *)’ [-Wincompatible-pointer-types]
  340 |         .usbdrv.drvwrap.driver.shutdown = rtw_dev_shutdown,
      |                                           ^~~~~~~~~~~~~~~~
/usr/src/rtl88x2bu-5.8.7.1/os_dep/linux/usb_intf.c:340:43: note: (near initialization for ‘usb_drv.usbdrv.name’)

/usr/src/rtl88x2bu-5.8.7.1/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/usr/src/rtl88x2bu-5.8.7.1/os_dep/linux/ioctl_cfg80211.c:441:17: error: too many arguments to function ‘cfg80211_ch_switch_started_notify’
  441 |                 cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, 0, false, 0);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/src/rtl88x2bu-5.8.7.1/include/osdep_service_linux.h:94,
                 from /usr/src/rtl88x2bu-5.8.7.1/include/osdep_service.h:53,
                 from /usr/src/rtl88x2bu-5.8.7.1/include/drv_types.h:27,
                 from /usr/src/rtl88x2bu-5.8.7.1/os_dep/linux/ioctl_cfg80211.c:17:
./include/net/cfg80211.h:8811:6: note: declared here
8811 | void cfg80211_ch_switch_started_notify(struct net_device *dev,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/rtl88x2bu-5.8.7.1/os_dep/linux/ioctl_cfg80211.c:457:9: error: too many arguments to function ‘cfg80211_ch_switch_notify’
  457 |         cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0, 0);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
./include/net/cfg80211.h:8795:6: note: declared here
8795 | void cfg80211_ch_switch_notify(struct net_device *dev,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
     
make[2]: *** [/usr/lib/modules/6.9.3-arch1-1/build/Makefile:1919: /var/lib/dkms/rtl88x2bu/5.8.7.1/build] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.9.3-arch1-1/build'
make: *** [Makefile:2392: modules] Error 2

the whole file was almost 800 lines long so i condensed it down to just the errors.
here is the whole file.

in chroot i tried to downgrade linux-zen and linux-zen-headers to 6.9.2, 6.9.1, and 6.9. but i always got the same error.

i also tried running

dkms remove rtl88x2bu/5.8.7.1 --all

and reinstalling linux-zen and linux-zen-headers. but it still did not work.

thank you.

Last edited by devetdeset (2024-06-11 18:37:40)

Offline

#2 2024-06-11 12:07:04

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,119

Re: [SOLVED] failed install of linux-zen-headers. dkms module install fail

You need to update your https://aur.archlinux.org/packages/rtl88x2bu-dkms-git (by rebuilding/reinstalling) so that it includes the compat patches for 6.9 kernel compatibility (or try removing it to see whether your device is supported by the in-kernel driver now).

Last edited by V1del (2024-06-11 12:09:09)

Offline

#3 2024-06-11 18:36:25

devetdeset
Member
Registered: 2024-06-11
Posts: 7

Re: [SOLVED] failed install of linux-zen-headers. dkms module install fail

thank you. kernel compiled successfully now.

for anyone who has the same issue, run:

git clone https://github.com/cilynx/rtl88x2bu && cd rtl88x2bu

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.9.3-zen1-1-zen/build/ M=/home/cards/rtl88x2bu modules

./deploy.sh

then reinstall kernel and kernel headers.

Offline

#4 2024-06-11 22:31:47

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,119

Re: [SOLVED] failed install of linux-zen-headers. dkms module install fail

The kernel doesn't need compiling, the module does, you're strongly suggested to use an AUR package for this now you're going to have files lying around that aren't managed by pacman.

Offline

Board footer

Powered by FluxBB