axiomware / rtl8821cu_driver_v5.8.1 Goto Github PK
View Code? Open in Web Editor NEWLinux Driver for RTL8821CU, RTL8811CU USB Wi-Fi NIC
Linux Driver for RTL8821CU, RTL8811CU USB Wi-Fi NIC
I wish to build this driver on Raspberry Pi 2B armv7l. There is no option in the Makefile.
When I make the source code, there are some error occur.
./include/linux/slub_def.h:112:28: error: field ‘memcg_params’ has incomplete type 112 | struct memcg_cache_params memcg_params;
Any idea to solve this issue will be very much appreciated! :)
Stay safe and healthy.
BlueHeart0621
Getting the following errors when compiling the driver. My setup:
uname -r
5.4.0-0.bpo.4-amd64
Tried the temporary workaround suggested here:
Just a temporary workaround, but you can still compile and install the driver if you add the following line to the top of the Makefile:
USER_EXTRA_CFLAGS=-Wno-error=incompatible-pointer-types
Make[2]:` *** [/usr/src/linux-headers-5.4.0-0.bpo.4-common/Makefile:1665: /var/lib/dkms/rtl8821CU/5.8.1/build] Error 2
make[1]: *** [/usr/src/linux-headers-5.4.0-0.bpo.4-common/Makefile:179: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-0.bpo.4-amd64'
make: *** [Makefile:2336: modules] Error 2
/var/lib/dkms/rtl8821CU/5.8.1/build/os_dep/linux/os_intfs.c:1707:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device *)’ {aka ‘short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *)’} from incompatible pointer type ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device *, u16 (*)(struct net_device *, struct sk_buff *, struct net_device *))’ {aka ‘short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *, short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *))’} [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^~~~~~~~~~~~~~~~
/var/lib/dkms/rtl8821CU/5.8.1/build/os_dep/linux/os_intfs.c:1707:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
/var/lib/dkms/rtl8821CU/5.8.1/build/os_dep/linux/os_intfs.c:3058:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device *)’ {aka ‘short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *)’} from incompatible pointer type ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device *, u16 (*)(struct net_device *, struct sk_buff *, struct net_device *))’ {aka ‘short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *, short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *))’} [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^~~~~~~~~~~~~~~~
/var/lib/dkms/rtl8821CU/5.8.1/build/os_dep/linux/os_intfs.c:3058:22: note: (near initialization for ‘rtw_netdev_vir_if_ops.ndo_select_queue’)
CC [M] /var/lib/dkms/rtl8821CU/5.8.1/build/os_dep/linux/usb_ops_linux.o
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-5.4.0-0.bpo.4-common/scripts/Makefile.build:271: /var/lib/dkms/rtl8821CU/5.8.1/build/os_dep/linux/os_intfs.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/src/linux-headers-5.4.0-0.bpo.4-common/Makefile:1665: /var/lib/dkms/rtl8821CU/5.8.1/build] Error 2
make[1]: *** [/usr/src/linux-headers-5.4.0-0.bpo.4-common/Makefile:179: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-0.bpo.4-amd64'
make: *** [Makefile:2336: modules] Error 2
Any idea to relve this issue will be very much appreciated! :)
Stay safe and healthy.
Stanley
In file included from /home/alexis/git/RTL8821CU_driver_v5.8.1/include/osdep_intf.h:105,
from /home/alexis/git/RTL8821CU_driver_v5.8.1/include/drv_types.h:101,
from /home/alexis/git/RTL8821CU_driver_v5.8.1/core/mesh/rtw_mesh.c:18:
/home/alexis/git/RTL8821CU_driver_v5.8.1/core/mesh/rtw_mesh.c: In function ‘rtw_chk_candidate_peer_notify’:
/home/alexis/git/RTL8821CU_driver_v5.8.1/include/../os_dep/linux/ioctl_cfg80211.h:408:86: error: too few arguments to function ‘cfg80211_notify_new_peer_candidate’
#define rtw_cfg80211_notify_new_peer_candidate(wdev, addr, ie, ie_len, sig_dbm, gfp) cfg80211_notify_new_peer_candidat
(wdev_to_ndev(wdev), addr, ie, ie_len, gfp)
In file included from /home/alexis/git/RTL8821CU_driver_v5.8.1/include/osdep_intf.h:105,
from /home/alexis/git/RTL8821CU_driver_v5.8.1/include/drv_types.h:101,
from /home/alexis/git/RTL8821CU_driver_v5.8.1/core/mesh/rtw_mesh.c:18:
/home/alexis/git/RTL8821CU_driver_v5.8.1/core/mesh/rtw_mesh.c: In function ‘rtw_mesh_expire_peer_notify’:
/home/alexis/git/RTL8821CU_driver_v5.8.1/include/../os_dep/linux/ioctl_cfg80211.h:408:86: error: too few arguments to function ‘cfg80211_notify_new_peer_candidate’
#define rtw_cfg80211_notify_new_peer_candidate(wdev, addr, ie, ie_len, sig_dbm, gfp) cfg80211_notify_new_peer_candidat
(wdev_to_ndev(wdev), addr, ie, ie_len, gfp)
In file included from ./include/linux/time.h:5,
from ./include/linux/stat.h:19,
from ./include/linux/module.h:10,
from /home/alexis/git/RTL8821CU_driver_v5.8.1/include/basic_types.h:76,
from /home/alexis/git/RTL8821CU_driver_v5.8.1/include/drv_types.h:26,
from /home/alexis/git/RTL8821CU_driver_v5.8.1/core/mesh/rtw_mesh.c:18:
./include/linux/slub_def.h: At top level:
./include/linux/rh_kabi.h:419:49: error: field ‘rh_reserved_memcg_params’ has incomplete type
# define _RH_KABI_DEPRECATE(_type, _orig) _type rh_reserved_##_orig
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.