各位大佬,安装无线网卡(RTL8821CU)出错,求助
Tofloor
poster avatar
wcszxc
deepin
2020-09-14 23:12
Author
按照Github上的一步一步来,https://github.com/whitebatman2/rtl8821CU
qhtf@qhtf-PC:~/rtl8821CU$ sudo dkms build -m ${DRV_NAME} -v ${DRV_VERSION}

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
'make' KVER=4.19.0-loongson-3-desktop...(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.19.0-loongson-3-desktop (mips64)
Consult /var/lib/dkms/rtl8821CU/5.2.5.3/build/make.log for more information.
这一步出错,


Make.log如下
DKMS make.log for rtl8821CU-5.2.5.3 for kernel 4.19.0-loongson-3-desktop (mips64)
2020年 09月 14日 星期一 14:00:43 CST
make ARCH=mips64 CROSS_COMPILE= -C /lib/modules/4.19.0-loongson-3-desktop/build M=/var/lib/dkms/rtl8821CU/5.2.5.3/build modules
make[1]: 进入目录“/usr/src/linux-headers-4.19.0-loongson-3-desktop”
Makefile:614: arch/mips64/Makefile: 没有那个文件或目录
make[1]: *** 没有规则可制作目标“arch/mips64/Makefile”。 停止。
make[1]: 离开目录“/usr/src/linux-headers-4.19.0-loongson-3-desktop”
make: *** [Makefile:1923:modules] 错误 2

请问各位大佬如何解决,我是Linux纯小白

Reply Favorite View the author
All Replies
laxijin
deepin
2020-09-15 07:27
#1
1、下载驱动

git clone https://github.com/whitebatman2/rtl8821CU.git

2、安装驱动

cd ./rtl8821CU

make

sudo make install

3、查看网卡

lsusb
得到的结果里应该有0bda:1a2b

继续执行
sudo usb_modeswitch -KW -v 0bda -p 1a2b

加载模块
sudo modprobe 8821cu
我的就是这样可以用,15.11和20社区版都可以。
Reply View the author
jingle
deepin
2020-09-15 20:35
#2
楼主是龙芯?
Reply View the author
wcszxc
deepin
2020-09-16 22:08
#3
https://bbs.deepin.org/post/202112
1、下载驱动

git clone https://github.com/whitebatman2/rtl8821CU.git

不行,在make这行会跳错,内容和帖子里的差不多
Reply View the author
wcszxc
deepin
2020-09-16 22:08
#4

是的,有什么解决方法吗?
Reply View the author
zhangn1985
deepin
2020-09-16 23:29
#5
没有安装kernel header。
Reply View the author