蝶变9.8如何安装无线网卡rtl8821ce

求助

#21

估计你这个要编译内核模块,所以需要你先安装内核头文件

sudo apt install linux-headers-amd64

然后再make试试看,如果还是不行,那只能说明这个内核模块不兼容低版本内核,那时唯一的方法只有升级内核了。


(酷乐) #22

没搞定!


(驿窗) #23

按楼上Yanhao所说,升级内核也不管用?


(酷乐) #24

root@MiWiFi-ZeaWay:/home/zeaway/rtl8821ce# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.19.0-2-amd64/build M=/home/zeaway/rtl8821ce modules
make[1]: 进入目录“/usr/src/linux-headers-4.19.0-2-amd64”
CC [M] /home/zeaway/rtl8821ce/os_dep/linux/os_intfs.o
In file included from /home/zeaway/rtl8821ce/include/drv_types.h:35,
from /home/zeaway/rtl8821ce/os_dep/linux/os_intfs.c:22:
/home/zeaway/rtl8821ce/include/wifi.h:1019: warning: “IEEE80211_MAX_AMPDU_BUF” redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/zeaway/rtl8821ce/include/osdep_service_linux.h:86,
from /home/zeaway/rtl8821ce/include/osdep_service.h:48,
from /home/zeaway/rtl8821ce/include/drv_types.h:32,
from /home/zeaway/rtl8821ce/os_dep/linux/os_intfs.c:22:
/usr/src/linux-headers-4.19.0-2-common/include/linux/ieee80211.h:1442: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

/home/zeaway/rtl8821ce/os_dep/linux/os_intfs.c:1325:22: error: initialization of ‘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 ))’} from incompatible pointer type ‘u16 ()(struct net_device *, struct sk_buff *, void , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, void , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device *))’} [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^~~~~~~~~~~~~~~~
/home/zeaway/rtl8821ce/os_dep/linux/os_intfs.c:1325:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-4.19.0-2-common/scripts/Makefile.build:309:/home/zeaway/rtl8821ce/os_dep/linux/os_intfs.o] 错误 1
make[3]: *** [/usr/src/linux-headers-4.19.0-2-common/Makefile:1540:module/home/zeaway/rtl8821ce] 错误 2
make[2]: *** [Makefile:146:sub-make] 错误 2
make[1]: *** [Makefile:8:all] 错误 2
make[1]: 离开目录“/usr/src/linux-headers-4.19.0-2-amd64”
make: *** [Makefile:1902:modules] 错误 2


(驿窗) #25

天书了,你如果有时间,把问题放到官方的论坛里看看,看看那边有没有人回复:
http://forums.debian.net


(Linger) #26

我网卡 rtl8821be ,当时是可以编译运行重启后失效,发现是内核问题,一气之下直接改源到 testing update 然后好了…hhhh