Power & Source of Big Ideas

Cannot compile rtl88x2bu on Debian 12

Moderators: chensy, FATechsupport

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
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?
Please share more information on this. I haven't seen people respond yet. It's hard.
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).
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.
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

Who is online

In total there are 5 users online :: 0 registered, 0 hidden and 5 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 5 guests