I'm (un)lucky owner of WiFi dongle based on RTL8822BU. My system is lsusb output is
Code:
Bus 001 Device 002: ID 0b05:184c ASUSTek Computer, Inc. 802.11ac NIC
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 046d:c505 Logitech, Inc. Cordless Mouse+Keyboard Receiver
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
There is CDROM included in package, even with "linux" folder, but running ready-to-use shell script produces error:
Code:
/home/szydas/Desktop/RTL88x2BU_WiFi_linux_v5.2.4.3_24934.20171101_COEX20171012-5044/driver/rtl88x2BU_WiFi_linux_v5.2.4.3_24934.20171101_COEX20171012-5044/include/osdep_service_linux.h:282:8: error: ‘_timer’ {aka ‘struct timer_list’} has no member named ‘data’
282 | ptimer->data = (unsigned long)cntx;
| ^~
/home/szydas/Desktop/RTL88x2BU_WiFi_linux_v5.2.4.3_24934.20171101_COEX20171012-5044/driver/rtl88x2BU_WiFi_linux_v5.2.4.3_24934.20171101_COEX20171012-5044/include/osdep_service_linux.h:283:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
283 | init_timer(ptimer);
| ^~~~~~~~~~
| _init_timer
So i followed steps from that thread https://ubuntuforums.org/showthread....395729&page=2& - unfortunately it produces lot of warnings and ends with an error:
Code:
home/szydas/rtl8822bu/os_dep/osdep_service.c: In function ‘isFileReadable’:
/home/szydas/rtl8822bu/os_dep/osdep_service.c:2022:10: error: implicit declaration of function ‘get_ds’; did you mean ‘get_da’? [-Werror=implicit-function-declaration]
2022 | set_fs(get_ds());
| ^~~~~~
| get_da
/home/szydas/rtl8822bu/os_dep/osdep_service.c:2022:10: error: incompatible type for argument 1 of ‘set_fs’
2022 | set_fs(get_ds());
| ^~~~~~~~
| |
| int
In file included from ./include/linux/uaccess.h:11,
from ./include/linux/crypto.h:21,
from ./include/crypto/hash.h:11,
from ./include/linux/uio.h:10,
from ./include/linux/socket.h:8,
from ./include/linux/compat.h:15,
from ./include/linux/ethtool.h:17,
from ./include/linux/netdevice.h:37,
from /home/szydas/rtl8822bu/include/osdep_service_linux.h:35,
from /home/szydas/rtl8822bu/include/osdep_service.h:41,
from /home/szydas/rtl8822bu/include/drv_types.h:32,
from /home/szydas/rtl8822bu/os_dep/osdep_service.c:24:
./arch/x86/include/asm/uaccess.h:29:40: note: expected ‘mm_segment_t’ {aka ‘struct <anonymous>’} but argument is of type ‘int’
29 | static inline void set_fs(mm_segment_t fs)
| ~~~~~~~~~~~~~^~
/home/szydas/rtl8822bu/os_dep/osdep_service.c: In function ‘retriveFromFile’:
/home/szydas/rtl8822bu/os_dep/osdep_service.c:2052:11: error: incompatible type for argument 1 of ‘set_fs’
2052 | set_fs(get_ds());
| ^~~~~~~~
| |
| int
In file included from ./include/linux/uaccess.h:11,
from ./include/linux/crypto.h:21,
from ./include/crypto/hash.h:11,
from ./include/linux/uio.h:10,
from ./include/linux/socket.h:8,
from ./include/linux/compat.h:15,
from ./include/linux/ethtool.h:17,
from ./include/linux/netdevice.h:37,
from /home/szydas/rtl8822bu/include/osdep_service_linux.h:35,
from /home/szydas/rtl8822bu/include/osdep_service.h:41,
from /home/szydas/rtl8822bu/include/drv_types.h:32,
from /home/szydas/rtl8822bu/os_dep/osdep_service.c:24:
./arch/x86/include/asm/uaccess.h:29:40: note: expected ‘mm_segment_t’ {aka ‘struct <anonymous>’} but argument is of type ‘int’
29 | static inline void set_fs(mm_segment_t fs)
| ~~~~~~~~~~~~~^~
/home/szydas/rtl8822bu/os_dep/osdep_service.c: In function ‘storeToFile’:
/home/szydas/rtl8822bu/os_dep/osdep_service.c:2087:11: error: incompatible type for argument 1 of ‘set_fs’
2087 | set_fs(get_ds());
| ^~~~~~~~
| |
| int
In file included from ./include/linux/uaccess.h:11,
from ./include/linux/crypto.h:21,
from ./include/crypto/hash.h:11,
from ./include/linux/uio.h:10,
from ./include/linux/socket.h:8,
from ./include/linux/compat.h:15,
from ./include/linux/ethtool.h:17,
from ./include/linux/netdevice.h:37,
from /home/szydas/rtl8822bu/include/osdep_service_linux.h:35,
from /home/szydas/rtl8822bu/include/osdep_service.h:41,
from /home/szydas/rtl8822bu/include/drv_types.h:32,
from /home/szydas/rtl8822bu/os_dep/osdep_service.c:24:
./arch/x86/include/asm/uaccess.h:29:40: note: expected ‘mm_segment_t’ {aka ‘struct <anonymous>’} but argument is of type ‘int’
29 | static inline void set_fs(mm_segment_t fs)
| ~~~~~~~~~~~~~^~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /home/szydas/rtl8822bu/os_dep/osdep_service.o] Error 1
make[1]: *** [Makefile:1731: /home/szydas/rtl8822bu] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-42-generic'
make: *** [Makefile:1318: modules] Error 2
I'm not a programmer and probably too old to learn it. Any help appreciated.
Bookmarks