PS:我也是新人这是我在摸索路上探寻出来的经验,有些地方可能不对qw
-------------------------------
下面是r8723的食用方法 真的超级详细!!!
如果你使用的是网盘的的【官方镜像】,我可以很不负责任的告诉你,r8723肯定是不能正常使用的
经过亲测,所有镜像root目录下自带的r8723bs.ko文件都会出现【Invalid module format】错误
如果你也是使用的官方镜像,你可以去文末下载我测试过的r8723bs.ko
先别下滑,我还可以很不负责任的告诉你,如果你使用官方镜像和我的ko文件
也是有很大概率遇到【驱动正常】但是【不出wlan0】的情况
恭喜你,你的dtb文件是错误的,文末的链接里也会有正确的dtb,直接替换boot分区里的同名文件
(重启以后不要忘了insmod,insmod会在重启后失效
如果你的ko文件和dtb文件都已经准备完毕,我们就可以正式开始驱动配置啦~
首先,cd切换到r8723bs.ko所在的目录,输入指令:insmod r8723bs.ko
当你看到【module init ret =0】时代表驱动已经正常启动!
输入命令:ifconfig -a
再打印信息里看到【wlan0】就说明你已经可以继续下一步了!
这时候输入命令:vim /etc/wpa_supplicant.conf
弹出窗口以后按一下键盘上的i键,就可以编辑内容~
用键盘上的上下左右键来调整光标,先按住退格把所有内容删除,然后按照以下内容写上去:
--------------------------------------------------(分割线
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
network={
ssid="你的WIFI名字"
scan_ssid=1
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
psk="你的WIFI密码"
priority=5
}
--------------------------------------------------(分割线
检查一下你的WIFI名和WIFI密码是否输入正确,千万不要有多空格之类的东西
然后按住shift,再点一下键盘上的冒号键
松开shift,输入wq然后回车
这样子你的WIFI就配置好了!
先输入命令:ifconfig wlan0 up 来启动网口
没有报错的话进行下一步
现在cd /root 来切换到根目录,官方镜像在这里留有一个connect_wx.sh
因为是第一次执行,所以我们先给这个文件一个运行权限,只需要执行一次!以后就不用了!
命令为:chmod 777 connect_wx.sh
然后输入./connect_wx.sh 来连接到你的WIFI!
如果你像确认WIFI是否连接,就输入ping baidu.com
假如可以显示延迟的话就是成功了!
享受你的新wife(划掉)wifi吧!
当然小星星是不会只关心官方镜像的!
假如你使用的是4.14或者5.2这种高版本内核,是可以直接在menuconfig里编译r8723bs的!
具体请转到官网awa 或者看这篇文章:https://blog.csdn.net/u012577474/article/details/104678522
一般编译出来的ko文件都是可以直接使用的,假如出现这样的报错:
“Direct firmware load for rtlwifi/rtl8723bs_nic.bin failed with error -2”
你就需要手动把ko文件目录下的rtl8723bs_nic.bin,移动到 /lib/firmware/rtlwifi/
指令为:mv rtl8723bs_nic.bin /lib/firmware/rtlwifi/
问题来了,假如没有rtl8723bs_nic.bin这个文件怎么办呢?
没关系,我已经给你拿出来了!同样可以在文末下载,按照上面的命令转移以后重载模块就可以了!
解决掉报错以后就可以按照上文的方法正常使用惹
--------------------常见报错汇总----------------------------
1.疯狂打印【RTL8723BS: nolinked power save leave】
- /etc/wpa_supplicant.conf的配置不正确,确保WIFI名和密码都写对了!
2.驱动正常但是没有wlan0网口
- 你没有使用正确的dtb文件,请下载以后直接拷贝网盘内的sun8i-v3s-licheepi-zero.dtb到boot分区,就是有zlmage的那个文件夹
3.好像没了,如果你出现了奇奇怪怪的报错还原留言,我会抽时间看的!
--------------------------------------------------------------
对了,如果你不知道怎么把文件从电脑转移到板子上的话,我有个笨办法
把你的tf卡接上读卡器插在windows电脑上会出现两个设备,其中一个设备是可以被读到的
那个设备就是/boot分区!直接把文件丢到里面,在板子上的时候使用cd /boot然后ls就可以看到了!
mv 文件名 /root 来把文件转移到根分区~
下面是激动人心的资料链接!!!!!!!!
https://pan.baidu.com/s/1F216NrATxdIpgznlzn-rwQ 提取码:STAR
链接挂了请无比告诉我
这边顺便贴上荔枝派官方网盘的链接:
https://pan.baidu.com/s/1x75Uqnxl6bmBCYDN3NUdJg 提取码:ohzx
其中在根目录下的gz文件是文件系统,dd_ing文件夹下的就都是dd镜像了
dd镜像在windows下也可以通过Win32DiskImager烧录!
把文件筛选改成*就可以了
---------------------------------------------------------------
祝各位都能早日玩转自己的wife(划掉)wifi!
如果有什么不对的地方欢迎指出啊~也是第一次发教程帖
THE END~
最近编辑记录 linstar (2021-02-25 22:01:31)
离线
感谢分享. 原来用荔枝派nano时也是碰到类似的wifi的问题,搞得焦头烂额
大家都是这样子过来的,我这些内容也都是自己遇到过的坑awq
离线
# cd /boot
-sh: cd: can't cd to /boot
这,我是主线linux+uboot,tf文件系统应该是有boot分区的
离线
复制 .ko文件到boot的时候显示boot分区容量不足
建议压成zip
离线
我的可以搜索到WiFi 但是连接不上去,会出现
# wpa_supplicant -D wext -c /etc/wpa_supplicant.conf -i wlan0 -B
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
# daemon: No such device
wlan0: CTRL-EVENT-TERMINATING
内核里有关RFKILL的项全部打开试一试
离线
LZ,这是怎么回事呢?
# wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf wpa_supplicant v2.9 random: Trying to read entropy from /dev/random Successfully initialized wpa_supplicant Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A' Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf' Reading configuration file '/etc/wpa_supplicant.conf' ctrl_interface='/var/run/wpa_supplicant' ap_scan=1 Priority group 5 id=0 ssid='Luxul1750_2.4G' nl80211: Supported cipher 00-0f-ac:1 nl80211: Supported cipher 00-0f-ac:5 nl80211: Supported cipher 00-0f-ac:2 nl80211: Supported cipher 00-0f-ac:4 nl80211: Supported cipher 00-0f-ac:6 nl80211: Using driver-based off-channel TX nl80211: interface wlan0 in phy phy0 nl80211: Set mode ifindex 3 iftype 2 (STATION) nl80211: Subscribe to mgmt frames with non-AP handle 0xe12c8 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0104 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=040a nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=040b nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=040c nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=040d nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=090a nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=090b nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=090c nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=090d nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0801 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=06 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0a07 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0a11 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0a1a nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=1101 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=1102 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0505 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0500 rfkill: Cannot open RFKILL control device nl80211: RFKILL status not available netlink: Operstate: ifindex=3 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT) Add interface wlan0 to a new radio phy0 nl80211: Regulatory information - country=00 nl80211: 2402-2472 @ 40 MHz 20 mBm nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR) nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR) nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR) nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR) nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR) nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR) nl80211: 57240-63720 @ 2160 MHz 0 mBm nl80211: Added 802.11b mode based on 802.11g information nl80211: Mode IEEE 802.11g: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[NO_IR] 2472[NO_IR] 2484[DISABLED] nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[NO_IR] 2472[NO_IR] 2484[DISABLED] wlan0: Own MAC address: 3c:33:00:5a:84:02 wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0 wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0 wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0 wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0 wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=4 set_tx=0 seq_len=0 key_len=0 wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=5 set_tx=0 seq_len=0 key_len=0 wlan0: RSN: flushing PMKID list in the driver nl80211: Flush PMKIDs wlan0: Setting scan request: 0.100000 sec wlan0: WPS: UUID based on MAC address: 56cc0996-a7ea-531b-8788-a5de502565ac EAPOL: SUPP_PAE entering state DISCONNECTED EAPOL: Supplicant port status: Unauthorized nl80211: Skip set_supp_port(unauthorized) while not associated EAPOL: KEY_RX entering state NO_KEY_RECEIVE EAPOL: SUPP_BE entering state INITIALIZE EAP: EAP entering state DISABLED wlan0: Added interface wlan0 wlan0: State: DISCONNECTED -> DISCONNECTED nl80211: Set wlan0 operstate 0->0 (DORMANT) netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT) Daemonize.. # daemon: No such device wlan0: Removing interface wlan0 wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00 pending_bssid=00:00:00:00:00:00 reason=3 (DEAUTH_LEAVING) state=DISCONNECTED nl80211: Data frame filter flags=0x0 nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unsolicited_na: No such file or directory wlan0: State: DISCONNECTED -> DISCONNECTED nl80211: Set wlan0 operstate 0->0 (DORMANT) netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT) EAPOL: External notification - portEnabled=0 EAPOL: External notification - portValid=0 wlan0: WPA: Clear old PMK and PTK wlan0: Cancelling scan request wlan0: Cancelling authentication timeout Off-channel: Clear pending Action frame TX (pending_action_tx=(nil) nl80211: Data frame filter flags=0x0 nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unsolicited_na: No such file or directory HS20: Delete all stored icons Remove interface wlan0 from radio phy0 Remove radio phy0 nl80211: deinit ifname=wlan0 disabled_11b_rates=0 nl80211: Remove monitor interface: refcount=0 netlink: Operstate: ifindex=3 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP) nl80211: Set mode ifindex 3 iftype 2 (STATION) nl80211: Unsubscribe mgmt frames handle 0x88869a41 (mode change) wlan0: CTRL-EVENT-TERMINATING ifconfig -a eth0 Link encap:Ethernet HWaddr 26:D9:88:20:63:74 inet addr:192.168.6.100 Bcast:192.168.6.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9 errors:0 dropped:0 overruns:0 frame:0 TX packets:3 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1104 (1.0 KiB) TX bytes:726 (726.0 B) Interrupt:38 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) wlan0 Link encap:Ethernet HWaddr 3C:33:00:5A:84:02 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) #
应该也是RFKILL的锅,把内核选项里CONFIG_RFKILL的还有子项都打开试一试
离线
这里的错误是怎么回事?
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
Daemonize..
# daemon: No such device
wlan0: Removing interface wlan0
网络配置好像炸了?
离线
DTS放出来一下呀
是编译好的,你可以试试反编译,dts这边我也没有
离线
你这个正确的dtb文件是哪儿来的呢,为什么用它就可以呢
荔枝派的外网官网上搞来的,里面加了设备树
离线
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
[ 301.847511] RTL8723BS: nolinked power save enter
一直显示这样的信息
检查一下配置有没有写对,wifi名称,密码啥的
离线
楼主能不能分享下你用的哪一个官方镜像文件
带python和gcc的Debian
rootfs-mindb
离线
吃了会上瘾,为伊消得人憔悴,绵卷西风,人比黄花瘦!
好湿好湿
离线