You are not logged in.

#1 2026-01-29 12:21:12

laichiaheng
Member
Registered: 2017-02-12
Posts: 295

Failed to build driver for my USB WIFI/Bluetooth

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.18.7-zen1-1-zen/build M=/home/laichiaheng/rtl8852bu  modules
make[1]: Entering directory '/usr/lib/modules/6.18.7-zen1-1-zen/build'
make[2]: Entering directory '/home/laichiaheng/rtl8852bu'
  CC [M]  platform/platform_ops.o
platform/platform_ops.c:15:10: fatal error: drv_types.h: No such file or directory
   15 | #include <drv_types.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[4]: *** [/usr/lib/modules/6.18.7-zen1-1-zen/build/scripts/Makefile.build:287: platform/platform_ops.o] Error 1
make[3]: *** [/usr/lib/modules/6.18.7-zen1-1-zen/build/Makefile:2008: .] Error 2
make[2]: *** [/usr/lib/modules/6.18.7-zen1-1-zen/build/Makefile:248: __sub-make] Error 2
make[2]: Leaving directory '/home/laichiaheng/rtl8852bu'
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.18.7-zen1-1-zen/build'
make: *** [Makefile:738: modules] Error 2

I'm trying to make the USB wifi/bluetooth work, but I can't build the driver.

Kernel: 6.18.7-zen1-1-zen

Last edited by laichiaheng (2026-01-29 12:22:36)

Offline

#2 2026-01-29 18:17:15

progandy
Member
Registered: 2012-05-17
Posts: 5,305

Re: Failed to build driver for my USB WIFI/Bluetooth

Hi,

Does the in-kernel rtw88 not work for you? That is the preferred option for rtl8852bu.

Otherwise, what out of tree module are you trying to build? is it an AUR package, some git repository you found or something else?
This is probably the most up-to-date variant of that out-of-tree module: https://github.com/morrownr/rtl8852bu-20250826


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#3 2026-01-30 06:06:38

laichiaheng
Member
Registered: 2017-02-12
Posts: 295

Re: Failed to build driver for my USB WIFI/Bluetooth

Thanks, I successfully to build the driver with AUR, although it can read my WIFI, it still can't connect to it.
The product is tp-link AX900(Archer TX10UB Nano)

Offline

#4 2026-01-31 10:07:41

progandy
Member
Registered: 2012-05-17
Posts: 5,305

Re: Failed to build driver for my USB WIFI/Bluetooth

First, what is the output of lsusb?

According to https://wikidevi.wi-cat.ru/Rtw89 this chip might be support by the in-kernel driver, and it seems to be available in linux-zen:
usr/lib/modules/6.18.7-zen1-1-zen/kernel/drivers/net/wireless/realtek/rtw89/rtw89_8851bu.ko.zst
https://github.com/torvalds/linux/commi … c66dad7368
The blueooth part should also be supported by default in since 6.17: https://github.com/torvalds/linux/commi … a7dc4623f5

Then, what did you install for networking?

systemctl list-units --type=service --state=running 

What is the output of dmesg while you try to connect? Run the following in a second terminal:

dmesg -w

The rtl8852bu in the AUR is outdated as far as I can see. Which package did you install exactly?
I suggest you try this one instead, it is the one the kernel ships but with additional changes that are not in the kernel yet: https://aur.archlinux.org/packages/rtw89-dkms-git
and if that doesn't work, I can help you create a PKGBUILD for https://github.com/morrownr/rtl8852bu-20250826

Last edited by progandy (2026-01-31 10:22:13)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

Board footer

Powered by FluxBB