云网牛站
所在位置:首页 > Linux教程 > 升级到Deepin 20.2无线网卡RTL8821CE 802.11ac无法驱动的解决

升级到Deepin 20.2无线网卡RTL8821CE 802.11ac无法驱动的解决

2021-04-08 15:26:29作者:newblue稿源:深度站

所使用的深度系统版本是Deepin 20.2,无线网卡是Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter。

 

遇到无线网卡RTL8821CE 802.11ac无法驱动的问题

请看以下技术截图,内核在升级后部分硬件驱动失效的处理:

升级到Deepin 20.2无线网卡RTL8821CE 802.11ac无法驱动的解决

根据以上截图的方法操作后,出现以下错误:

$ dkms status

anbox, 1, 5.4.70-amd64-desktop, x86_64: installed

bcmwl, 6.30.223.272+bdcom, 5.10.18-amd64-desktop, x86_64: installed

bcmwl, 6.30.223.272+bdcom, 5.4.70-amd64-desktop, x86_64: installed

broadcom-sta, 6.30.223.271: added

deepin-anything, 0.0, 5.10.18-amd64-desktop, x86_64: installed

deepin-anything, 0.0, 5.4.70-amd64-desktop, x86_64: installed

huawei-wmi, 1.0, 5.10.18-amd64-desktop, x86_64: installed (original_module exists)

huawei-wmi, 1.0, 5.4.70-amd64-desktop, x86_64: installed (original_module exists)

nvidia-current, 460.39, 5.10.18-amd64-desktop, x86_64: installed

rtl8821ce, v5.5.2_34066.20200325, 5.4.70-amd64-desktop, x86_64: installed

$ sudo dkms install rtl8821ce/v5.5.2_34066.20200325

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:

cleaning build area...

'make' -j8 KVER=5.10.18-amd64-desktop.....(bad exit status: 2)

Error! Bad return status for module build on kernel: 5.10.18-amd64-desktop (x86_64)

Consult /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/make.log for more information.

$ cat /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/make.log

DKMS make.log for rtl8821ce-v5.5.2_34066.20200325 for kernel 5.10.18-amd64-desktop (x86_64)

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.10.18-amd64-desktop/build M=/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build  modules

make[1]: 进入目录“/usr/src/linux-headers-5.10.18-amd64-desktop”

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_cmd.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_security.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_debug.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_io.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_ioctl_query.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_ioctl_set.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_ieee80211.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_mlme.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_mlme_ext.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_mi.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_wlan_util.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_vht.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_pwrctrl.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_rf.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_chplan.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_recv.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_sta_mgt.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_ap.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/mesh/rtw_mesh.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/mesh/rtw_mesh_pathtbl.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/mesh/rtw_mesh_hwmp.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_xmit.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_p2p.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_rson.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_tdls.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_br_ext.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_iol.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_sreset.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_btcoex_wifionly.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_btcoex.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_beamforming.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_odm.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_rm.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_rm_fsm.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/efuse/rtw_efuse.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/osdep_service.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/os_intfs.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/pci_intf.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/pci_ops_linux.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_linux.o

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/xmit_linux.o

/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/osdep_service.c: In function ‘isFileReadable’:

/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/osdep_service.c:2203:11: error: implicit declaration of function ‘get_fs’; did you mean ‘get_sa’? [-Werror=implicit-function-declaration]

oldfs = get_fs();

^~~~~~

get_sa

/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/osdep_service.c:2203:9: error: incompatible types when assigning to type ‘mm_segment_t’ {aka ‘struct ’} from type ‘int’

oldfs = get_fs();

^

/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/osdep_service.c:2204:3: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]

set_fs(KERNEL_DS);

^~~~~~

sget_fc

/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/osdep_service.c:2204:10: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?

set_fs(KERNEL_DS);

^~~~~~~~~

KERNFS_NS

/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/osdep_service.c:2204:10: note: each undeclared identifier is reported only once for each function it appears in

/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/osdep_service.c: In function ‘retriveFromFile’:

/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/osdep_service.c:2241:10: error: incompatible types when assigning to type ‘mm_segment_t’ {aka ‘struct ’} from type ‘int’

oldfs = get_fs();

^

/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/osdep_service.c:2242:11: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?

set_fs(KERNEL_DS);

^~~~~~~~~

KERNFS_NS

/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/osdep_service.c: In function ‘storeToFile’:

/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/osdep_service.c:2276:10: error: incompatible types when assigning to type ‘mm_segment_t’ {aka ‘struct ’} from type ‘int’

oldfs = get_fs();

^

CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/mlme_linux.o

/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/osdep_service.c:2277:11: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?

set_fs(KERNEL_DS);

^~~~~~~~~

KERNFS_NS

cc1: some warnings being treated as errors

make[2]: *** [scripts/Makefile.build:279:/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/osdep_service.o] 错误 1

make[2]: *** 正在等待未完成的任务....

make[1]: *** [Makefile:1801:/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build] 错误 2

make[1]: 离开目录“/usr/src/linux-headers-5.10.18-amd64-desktop”

make: *** [Makefile:2244:modules] 错误 2

 

解决方法一(该方案由使用同一个型号的网卡的深度网友提供)

每次在换Linux内核都需要安装驱动,采用的是https://github.com/tomaspinho/rtl8821ce,下载后在项目根目录sudo ./dkms-install.sh就行了,可参考Deepin 20.2下安装8821ce无线驱动的方法,附可能产生的问题

 

解决方法二

可以考虑换过这个网卡,因为有一机器小米Ruby 15.6用的也是这块网卡,换成英特尔AX200的就无此问题了。

 

相关主题

在Deepin Linux系统无线网卡、蓝牙模块驱动安装和出现问题的解决

精选文章
热门文章