Page 1 of 1

Cannot compile rtl88x2bu on Debian 12

Posted: Sat Jun 15, 2024 10:24 am
by pasut
Hi All,

I have problem about compile rtl88x2bu driver for a few weeks.
Since, I brough TP-Link T3U Plus which it's using rtl8812bu. I have tried to compile rtl8812bu, rtl8822bu and rtl88x2bu but I cannot make this usb wifi adapter show on CM3588 (Linux openmediavault 6.1.57).

1. I found /usr/lib/modules/6.1.57/extra/rtl8822bu.ko but cannot use it because it's not driver
---- modinfo rtl8822bu ----
modinfo /usr/lib/modules/6.1.57/extra/rtl8822bu.ko
filename: /usr/lib/modules/6.1.57/extra/rtl8822bu.ko
import_ns: VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver
----

2. I found /opt/archives/linux-headers-6.1.57_6.1.57-13_arm64.deb and install it to get linux-header-6.1.57
but I'm not able to compile it due to the error during make/dkms.
Even I can compile and got rtl88x2bu.ko but I cannot load it to kernal (insmod rtl88x2bu.ko).
---- error during make ----
make[1]: Entering directory '/usr/src/linux-headers-6.1.57'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: aarch64-linux-gcc (ctng-1.25.0-119g-FA) 11.3.0
You are using: gcc (Debian 12.2.0-14) 12.2.0
CC [M] /usr/src/RTL88x2BU-Linux-Driver/core/rtw_mlme_ext.o
/usr/src/RTL88x2BU-Linux-Driver/core/rtw_mlme_ext.c: In function ‘rtw_txpwr_init_regd’:
/usr/src/RTL88x2BU-Linux-Driver/core/rtw_mlme_ext.c:299:20: error: this statement may fall through [-Werror=implicit-fallthrough=]
299 | if (rfctl->regd_name)
----

Could you please suggest how to make TP-Link T3U Plus is able to connect to wireless interface?
T-T

Re: Cannot compile rtl88x2bu on Debian 12

Posted: Fri Aug 16, 2024 12:08 pm
by blackmagic
pasut wrote:

Could you please suggest how to make TP-Link T3U Plus is able to connect to wireless interface?
T-T


Stuck with the same issue. Could you get the RTL8812BU based wifi adapter working?

Re: Cannot compile rtl88x2bu on Debian 12

Posted: Tue Aug 20, 2024 4:59 am
by precludedam
Please share more information on this. I haven't seen people respond yet. It's hard.

Re: Cannot compile rtl88x2bu on Debian 12

Posted: Sun Sep 08, 2024 11:47 am
by specs
You could try to see if armbian bookworm works on your system, since armbian supports more realtek adapters than mainstream. But that might imply building your own kernel the armbian way (with try and error).
Note: if you don't find 6.1 vendor kernels AND 6.10 mainstream kernels in the downloads I'd say the board is not supported, but it might still work,

The easier solution would be finding an USB MT7921/MT7922 wifi adapter.
https://github.com/morrownr/USB-WiFi/bl ... drivers.md

Edit: there is however one caveat, using the vendor kernel you might want to stick to the advertised and tested adapters.
I did have a working connection with the pcie rtl8852 supplied by friendlyelec even with mainline kernels. With usb adapters my experience is worse by a landslide (with pcie you allways have the option to switch to a mt7921 for hostap or ax210 for clients).

Re: Cannot compile rtl88x2bu on Debian 12

Posted: Tue Sep 17, 2024 8:36 am
by rattyanything
specs wrote:
You could try to see if armbian bookworm works on your system, since armbian supports more realtek adapters than mainstream. But that might imply building your own kernel the armbian way (with try and error).
Note: if you don't find 6.1 vendor kernels AND 6.10 mainstream kernels in the downloads I'd say the board is not supported, but it might still work,

The easier solution would be finding an USB MT7921/MT7922 wifi adapter.
https://github.com/morrownr/USB-WiFi/bl ... drivers.md

Edit: there is however one caveat, using the vendor kernel you might want to stick to the advertised and tested adapters.
I did have a working connection with the pcie rtl8852 supplied by friendlyelec even with mainline kernels. With usb adapters my experience is worse by a landslide (with pcie you allways have the option to switch to a mt7921 for hostap or ax210 for clients).

Great answer. Follow and update the appropriate solutions to fix compile rtl88x2bu on Debian 12.

Re: Cannot compile rtl88x2bu on Debian 12

Posted: Wed Sep 18, 2024 1:08 am
by precludedam
specs wrote:
You could try to see if armbian bookworm works on your system, since armbian supports more realtek adapters than mainstream. But that might imply building your own kernel the armbian way (with try and error).
Note: if you don't find 6.1 vendor kernels AND 6.10 mainstream kernels in the downloads I'd say the board is not supported, but it might still work,

The easier solution would be finding an USB MT7921/MT7922 wifi adapter.
https://github.com/morrownr/USB-WiFi/bl ... drivers.md

Edit: there is however one caveat, using the vendor kernel you might want to stick to the advertised and tested adapters.
I did have a working connection with the pcie rtl8852 supplied by friendlyelec even with mainline kernels. With usb adapters my experience is worse by a landslide (with pcie you allways have the option to switch to a mt7921 for hostap or ax210 for clients).

Thanks for the really great information. Interesting source! geometry dash lite