[ Content contribution] 笔记本重装UOS系统后无线网无法使用解决方法
Tofloor
poster avatar
静夜思001
deepin
2023-11-10 18:19
Author

笔记本重装UOS系统后无线网无法使用解决方法

有些笔记本出厂系统是定制版本,比如联想N79z这种配置比较特殊的信创机型,在换装其他版本系统,如使用V20 E 1050或V20 1050标准版镜像时,会有网卡无法识别或不能正常使用的情况,以下是解决方法:

下载驱动

呐呐呐,现在你的网卡已经不能用了,你换台电脑下载这个rtw89-main网卡驱动包,不要跟个大聪明一样就想sudo apt-get,那你能用有线网就当我没说。

好好好,快去下载一个rtw89-main网卡驱动包:rtw89-main.zip

也有网盘:https://pan.baidu.com/s/1CIZQFbPI1Xq5iwu0yit1oQ?pwd=6666 提取码:6666

将rtw89-main文件夹解压下来

截图_选择区域_20231110101148.png

进入解压后的文件夹,选中当前文件夹右键,选择在终端中打开
注:在最初选择文件夹进入终端后输入命令可能会提示找不到文件,请检查进入的文件目录是否有错**
截图_选择区域_20231110100423.png

在终端中输入如下命令
sudo make
输入命令回车后,根据提示输入电脑开机密码进行验证,验证后显示如下加载目录过程

截图_选择区域_20231110100854.png

继续输入如下名命令
sudo make install

截图_选择区域_20231110100916.png

加载过程完毕后输入重启命令
reboot

截图_选择区域_20231110100943.png

重启后能看到无线网络图标已恢复可正常使用

截图_选择区域_20231110101020.png

Reply Favorite View the author
All Replies
静夜思001
deepin
2023-11-10 18:47
#1
又是一篇水贴ꉂꉂ(ᵔᗜᵔ*)
Reply View the author
yanjuner
Super Moderator
2023-11-10 18:56
#2

踩踩

Reply View the author
Gao
deepin
2023-11-10 23:38
#3

pride

Reply View the author
晚秋(lateautumn)
Moderator
2023-11-10 23:47
#4

我就需要这样的水帖joy

Reply View the author
字甲达宾
deepin
2023-11-11 06:55
#5

安装完成后,不般不用 reboot 重启,也可以激活无线网卡。

方法:

在运行完 make install 后,再按顺序运行下面的命令:

(说明:楼主给出的信息里, 以 .ko 为扩展名的,就是对应的驱动文件。如 rtw89usb.ko )

depmod -a `uname -r`

modprobe rtw89core
modprobe rtw89pci
modprobe rtw89usb
Reply View the author
静夜思001
deepin
2023-11-13 23:12
#6
字甲达宾

安装完成后,不般不用 reboot 重启,也可以激活无线网卡。

方法:

在运行完 make install 后,再按顺序运行下面的命令:

(说明:楼主给出的信息里, 以 .ko 为扩展名的,就是对应的驱动文件。如 rtw89usb.ko )

depmod -a `uname -r`

modprobe rtw89core
modprobe rtw89pci
modprobe rtw89usb

感谢分享,学习了。mua~kissing_heart

Reply View the author
137******16
deepin
2023-12-19 20:16
#7

root@wks-PC:/home/wks/Downloads/202311101023431602_rtw89-main/rtw89-main# sudo make
make -C /lib/modules/5.18.17-amd64-desktop-hwe/build M=/home/wks/Downloads/202311101023431602_rtw89-main/rtw89-main modules
make[1]: 进入目录“/usr/src/linux-headers-5.18.17-amd64-desktop-hwe”
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (Uos 8.3.0.5-1+dde) 8.3.0
You are using: gcc (Uos 8.3.0.3-3+rebuild) 8.3.0
CC [M] /home/wks/Downloads/202311101023431602_rtw89-main/rtw89-main/core.o
/home/wks/Downloads/202311101023431602_rtw89-main/rtw89-main/core.c: In function ‘rtw89_core_tx_btc_spec_pkt_notify’:
/home/wks/Downloads/202311101023431602_rtw89-main/rtw89-main/core.c:577:6: error: implicit declaration of function ‘ip_hdr’; did you mean ‘eth_hdr’? [-Werror=implicit-function-declaration]
ip_hdr(skb)->protocol == IPPROTO_UDP) {
^~~~~~
eth_hdr
/home/wks/Downloads/202311101023431602_rtw89-main/rtw89-main/core.c:577:17: error: invalid type argument of ‘->’ (have ‘int’)
ip_hdr(skb)->protocol == IPPROTO_UDP) {
^~
/home/wks/Downloads/202311101023431602_rtw89-main/rtw89-main/core.c:578:12: error: implicit declaration of function ‘udp_hdr’; did you mean ‘eth_hdr’? [-Werror=implicit-function-declaration]
udphdr = udp_hdr(skb);
^~~~~~~
eth_hdr
/home/wks/Downloads/202311101023431602_rtw89-main/rtw89-main/core.c:578:10: warning: assignment to ‘struct udphdr *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
udphdr = udp_hdr(skb);
^
/home/wks/Downloads/202311101023431602_rtw89-main/rtw89-main/core.c:579:15: error: dereferencing pointer to incomplete type ‘struct udphdr’
if (((udphdr->source == htons(67) && udphdr->dest == htons(68)) ||
^~
/home/wks/Downloads/202311101023431602_rtw89-main/rtw89-main/core.c:588:17: error: invalid type argument of ‘->’ (have ‘int’)
ip_hdr(skb)->protocol == IPPROTO_ICMP) {
^~
/home/wks/Downloads/202311101023431602_rtw89-main/rtw89-main/core.c: In function ‘rtw89_init_he_cap’:
/home/wks/Downloads/202311101023431602_rtw89-main/rtw89-main/core.c:2124:7: error: ‘IEEE80211_HE_PHY_CAP9_NOMIMAL_PKT_PADDING_16US’ undeclared (first use in this function); did you mean ‘IEEE80211_HE_PHY_CAP9_NOMINAL_PKT_PADDING_16US’?
IEEE80211_HE_PHY_CAP9_NOMIMAL_PKT_PADDING_16US;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IEEE80211_HE_PHY_CAP9_NOMINAL_PKT_PADDING_16US
/home/wks/Downloads/202311101023431602_rtw89-main/rtw89-main/core.c:2124:7: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:289:/home/wks/Downloads/202311101023431602_rtw89-main/rtw89-main/core.o] 错误 1
make[1]: *** [Makefile:1838:/home/wks/Downloads/202311101023431602_rtw89-main/rtw89-main] 错误 2
make[1]: 离开目录“/usr/src/linux-headers-5.18.17-amd64-desktop-hwe”
make: *** [Makefile:61:all] 错误 2
root@wks-PC:/home/wks/Downloads/202311101023431602_rtw89-main/rtw89-main#

提示有错误

Reply View the author