Hello I have a usb stick with model number realtek 8812BU.
But I have trouble compiling the driver that ends with an error.
I have compiled before on opensuse but years ago so I’m a little rusty on the skill side nowadays.
I have tried both the included CD and cloning a github repository with guide from here:
https://dev.to/fmtweisszwerg/80211ac-controller-realtek-8822bu-on-linux-412-or-later-e8h
The installation works out fine on linux mint and the usb wireless started working after a reboot.
On Opensuse I followed the guide here to install the following
Thread: https://forums.opensuse.org/showthread.php/491320-kernel-header-install?p=2592043#post2592043
Patterns:
Development
[X] Base Development
[X] Linux Kernel Development
[X] C/C++ Development
I checked that linux-glibc-devel is selected for installation when installing the OS.
I also noticed that the usb wireless stick does not appear when running lspci …but it does appear under linux mint but with a generic Realtek name before installing the driver.
This is the output when running the make:
*It does the same thing when running the included cd with drivers for linux.
For test I use virtualbox for now and the driver was compiled without any issues on linux mint also in virtualbox.
I have tried compiling on my physical computer but it gave the same result.
test@linux-hg1p:~> git clone https://github.com/FomalhautWeisszwerg/rtl8822bu.git
Cloning into 'rtl8822bu'...
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 752 (delta 0), reused 0 (delta 0), pack-reused 751
Receiving objects: 100% (752/752), 2.77 MiB | 2.80 MiB/s, done.
Resolving deltas: 100% (301/301), done.
test@linux-hg1p:~> cd rtl8822bu
test@linux-hg1p:~/rtl8822bu> make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.12.14-lp150.12.25-default/build M=/home/test/rtl8822bu modules
make[1]: Entering directory '/usr/src/linux-4.12.14-lp150.12.25-obj/x86_64/default'
CC [M] /home/test/rtl8822bu/core/rtw_cmd.o
CC [M] /home/test/rtl8822bu/core/rtw_security.o
CC [M] /home/test/rtl8822bu/core/rtw_debug.o
CC [M] /home/test/rtl8822bu/core/rtw_io.o
CC [M] /home/test/rtl8822bu/core/rtw_ioctl_query.o
CC [M] /home/test/rtl8822bu/core/rtw_ioctl_set.o
CC [M] /home/test/rtl8822bu/core/rtw_ieee80211.o
CC [M] /home/test/rtl8822bu/core/rtw_mlme.o
CC [M] /home/test/rtl8822bu/core/rtw_mlme_ext.o
CC [M] /home/test/rtl8822bu/core/rtw_mi.o
CC [M] /home/test/rtl8822bu/core/rtw_wlan_util.o
CC [M] /home/test/rtl8822bu/core/rtw_vht.o
CC [M] /home/test/rtl8822bu/core/rtw_pwrctrl.o
CC [M] /home/test/rtl8822bu/core/rtw_rf.o
CC [M] /home/test/rtl8822bu/core/rtw_recv.o
CC [M] /home/test/rtl8822bu/core/rtw_sta_mgt.o
CC [M] /home/test/rtl8822bu/core/rtw_ap.o
CC [M] /home/test/rtl8822bu/core/rtw_xmit.o
CC [M] /home/test/rtl8822bu/core/rtw_p2p.o
CC [M] /home/test/rtl8822bu/core/rtw_tdls.o
CC [M] /home/test/rtl8822bu/core/rtw_br_ext.o
CC [M] /home/test/rtl8822bu/core/rtw_iol.o
CC [M] /home/test/rtl8822bu/core/rtw_sreset.o
CC [M] /home/test/rtl8822bu/core/rtw_btcoex.o
CC [M] /home/test/rtl8822bu/core/rtw_beamforming.o
CC [M] /home/test/rtl8822bu/core/rtw_odm.o
CC [M] /home/test/rtl8822bu/core/efuse/rtw_efuse.o
CC [M] /home/test/rtl8822bu/os_dep/osdep_service.o
CC [M] /home/test/rtl8822bu/os_dep/linux/os_intfs.o
CC [M] /home/test/rtl8822bu/os_dep/linux/usb_intf.o
CC [M] /home/test/rtl8822bu/os_dep/linux/usb_ops_linux.o
CC [M] /home/test/rtl8822bu/os_dep/linux/ioctl_linux.o
CC [M] /home/test/rtl8822bu/os_dep/linux/xmit_linux.o
CC [M] /home/test/rtl8822bu/os_dep/linux/mlme_linux.o
CC [M] /home/test/rtl8822bu/os_dep/linux/recv_linux.o
CC [M] /home/test/rtl8822bu/os_dep/linux/ioctl_cfg80211.o
/home/test/rtl8822bu/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_connect’:
/home/test/rtl8822bu/os_dep/linux/ioctl_cfg80211.c:755:3: warning: ISO C90 forbids mixed declarations and code -Wdeclaration-after-statement]
struct cfg80211_roam_info roam_info;
^~~~~~
/home/test/rtl8822bu/os_dep/linux/ioctl_cfg80211.c:768:21: error: passing argument 2 of ‘cfg80211_roamed’ from incompatible pointer type -Werror=incompatible-pointer-types]
, cur_network->network.MacAddress
^~~~~~~~~~~
In file included from /home/test/rtl8822bu/include/osdep_service_linux.h:87:0,
from /home/test/rtl8822bu/include/osdep_service.h:41,
from /home/test/rtl8822bu/include/drv_types.h:32,
from /home/test/rtl8822bu/os_dep/linux/ioctl_cfg80211.c:22:
/usr/src/linux-4.12.14-lp150.12.25/include/net/cfg80211.h:5437:6: note: expected ‘struct cfg80211_roam_info *’ but argument is of type ‘unsigned char *’
void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info *info,
^~~~~~~~~~~~~~~
/home/test/rtl8822bu/os_dep/linux/ioctl_cfg80211.c:769:21: warning: passing argument 3 of ‘cfg80211_roamed’ makes integer from pointer without a cast -Wint-conversion]
, notify_channel
^~~~~~~~~~~~~~
In file included from /home/test/rtl8822bu/include/osdep_service_linux.h:87:0,
from /home/test/rtl8822bu/include/osdep_service.h:41,
from /home/test/rtl8822bu/include/drv_types.h:32,
from /home/test/rtl8822bu/os_dep/linux/ioctl_cfg80211.c:22:
/usr/src/linux-4.12.14-lp150.12.25/include/net/cfg80211.h:5437:6: note: expected ‘gfp_t {aka unsigned int}’ but argument is of type ‘struct ieee80211_channel *’
void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info *info,
^~~~~~~~~~~~~~~
/home/test/rtl8822bu/os_dep/linux/ioctl_cfg80211.c:766:3: error: too many arguments to function ‘cfg80211_roamed’
cfg80211_roamed(padapter->pnetdev
^~~~~~~~~~~~~~~
In file included from /home/test/rtl8822bu/include/osdep_service_linux.h:87:0,
from /home/test/rtl8822bu/include/osdep_service.h:41,
from /home/test/rtl8822bu/include/drv_types.h:32,
from /home/test/rtl8822bu/os_dep/linux/ioctl_cfg80211.c:22:
/usr/src/linux-4.12.14-lp150.12.25/include/net/cfg80211.h:5437:6: note: declared here
void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info *info,
^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-4.12.14-lp150.12.25/scripts/Makefile.build:328: /home/test/rtl8822bu/os_dep/linux/ioctl_cfg80211.o] Error 1
make[3]: *** [/usr/src/linux-4.12.14-lp150.12.25/Makefile:1564: _module_/home/test/rtl8822bu] Error 2
make[2]: *** [Makefile:152: sub-make] Error 2
make[1]: *** [Makefile:24: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-4.12.14-lp150.12.25-obj/x86_64/default'
make: *** [Makefile:1318: modules] Error 2
test@linux-hg1p:~/rtl8822bu>
Any help is kindly appreciated