# insmod r8723bs.ko
[ 98.951174] r8723bs: module is from the staging directory, the quality is unknown, you have been warned.
[ 98.987218] RTL8723BS: module init start
[ 98.991182] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[ 98.998373] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[ 99.007351] pnetdev = 33023edb
[ 99.055606] RTL8723BS: rtw_ndev_init(wlan0)
[ 99.062303] RTL8723BS: module init ret =0
# ifconfig -a
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)
usb0 Link encap:Ethernet HWaddr 96:1B:35:97:E5:08
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)
wlan0 Link encap:Ethernet HWaddr 84:20:96:AB:35:09
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)
[ 219.087548] rtl8723bs: acquire FW from file:rtlwifi/rtl8723bs_nic.bin
# [ 222.722654] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.729121] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.737095] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.743728] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.750134] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.756627] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.763094] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.769488] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.776036] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.782589] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.788978] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.795435] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.805201] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.811666] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.818277] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.824842] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.831427] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.838140] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.844609] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.851016] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.857606] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.864681] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 222.871585] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[ 231.042683] sunxi-mmc 1c0f000.mmc: data error, sending stop command
离线
求搭救,会是什么原因引起的呢?
离线
这组sdio口可能被别的功能复用了,检查一下dts
你好,dts是这样的,没看出引脚占用
// SPDX-License-Identifier: (GPL-2.0+ OR X11)
/*
* Copyright 2018 Icenowy Zheng <icenowy@aosc.io>
*/
/dts-v1/;
#include "suniv-f1c100s.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ {
model = "Lichee Pi Nano";
compatible = "licheepi,licheepi-nano", "allwinner,suniv-f1c100s",
"allwinner,suniv";
aliases {
serial0 = &uart0;
spi0 = &spi0;
};
chosen {
stdout-path = "serial0:115200n8";
};
panel: panel {
compatible = "qiaodian,qd43003c0-40", "simple-panel";
#address-cells = <1>;
#size-cells = <0>;
enable-gpios = <&pio 4 6 GPIO_ACTIVE_HIGH>;
port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
panel_input: endpoint@0 {
reg = <0>;
remote-endpoint = <&tcon0_out_lcd>;
};
};
};
reg_vcc3v3: vcc3v3 {
compatible = "regulator-fixed";
regulator-name = "vcc3v3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
};
&de {
status = "okay";
};
&mmc0 {
vmmc-supply = <®_vcc3v3>;
bus-width = <4>;
broken-cd;
status = "okay";
};
&otg_sram {
status = "okay";
};
&spi0 {
partnctrl-names = "default";
pinctrl-0 = <&spi0_pins_a>;
status = "okay";
spi-max-frequency = <50000000>;
flash: w25q128@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "winbond,w25q128", "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <50000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x000000 0x100000>;
read-only;
};
partition@100000 {
label = "dtb";
reg = <0x100000 0x10000>;
read-only;
};
partition@110000 {
label = "kernel";
reg = <0x110000 0x400000>;
read-only;
};
partition@510000 {
label = "rootfs";
reg = <0x510000 0xAF0000>;
};
};
};
};
&tcon0 {
pinctrl-names = "default";
pinctrl-0 = <&lcd_rgb666_pins>;
status = "okay";
};
&tcon0_out {
tcon0_out_lcd: endpoint@0 {
reg = <0>;
remote-endpoint = <&panel_input>;
};
};
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pins_a>;
status = "okay";
};
&usb_otg {
dr_mode = "otg";
status = "okay";
};
&usbphy {
usb0_id_det-gpio = <&pio 4 2 GPIO_ACTIVE_HIGH>; /* PE2 */
status = "okay";
};
离线
有时候没报这个错[ 222.871585] sunxi-mmc 1c0f000.mmc: data error, sending stop command,但是获取不了IP
# insmod r8723bs.ko
[ 32.295005] r8723bs: module is from the staging directory, the quality is unknown, you have been warned.
[ 32.331661] RTL8723BS: module init start
[ 32.335753] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[ 32.342842] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[ 32.359137] pnetdev = 33023edb
[ 32.423322] RTL8723BS: rtw_ndev_init(wlan0)
[ 32.431222] RTL8723BS: module init ret =0
# ifconfig -a
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)
usb0 Link encap:Ethernet HWaddr 96:1B:35:97:E5:08
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)
wlan0 Link encap:Ethernet HWaddr 84:20:96:AB:35:09
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)
# udhcpc -i wlan0
udhcpc: started, v1.27.1
[ 290.047818] rtl8723bs: acquire FW from file:rtlwifi/rtl8723bs_nic.bin
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
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
udhcpc: sending discover
离线
缺固件,本站右上角搜一下
[ 290.047818] rtl8723bs: acquire FW from file:rtlwifi/rtl8723bs_nic.bin
您好,这个固件已经放在这个目录下了
# cd /
# ls
bin lib media proc run tmp
dev lib32 mnt r8723bs.ko sbin usr
etc linuxrc opt root sys var
# cd lib/firmware/rtlwifi/
# ls
rtl8723bs_nic.bin
#
离线
荔枝派_ZERO的使用rtl8723bs以及dropbear(总结哈晕哥的和大佬们的,免得自己忘记了)
http://whycan.com/t_2035.htmlhttps://cn.bing.com/search?q=wpa_supplicant%20site:whycan.com
先用wpa工具配网,都不给ssid和密码,就直接获取ip,梁静茹给你的勇气? : (
感谢指点,我再好好看看
有配过网的
# vi /etc/wpa_supplicant.conf
network={
ssid="QQ"
scan_ssid=1
key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
pairwise=TKIP CCMP
group=CCMP TKIP WEP104 WEP40
psk="11223344"
priority=5
}
离线
可以了,按照下面流程:
insmod r8723bs.ko
ifconfig -a
ifconfig wlan0 up
wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf(按照上面步骤走,手机提示有设备连入)
udhcpc -i wlan0(执行这一步才能接人网络)
udhcpc: sending discover
重新添加dhcp,再编译,还是一样
查看网络状态wpa_cli -iwlan0 status
测试网络ping 123.149.232.30
按CTRL+C停止Ping
# insmod r8723bs.ko
[ 58.380884] r8723bs: module is from the staging directory, the quality is unknown, you have been warned.
[ 58.416880] RTL8723BS: module init start
[ 58.420842] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[ 58.428059] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[ 58.436988] pnetdev = 33023edb
[ 58.485664] RTL8723BS: rtw_ndev_init(wlan0)
[ 58.492380] RTL8723BS: module init ret =0
# ifconfig -a
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)
usb0 Link encap:Ethernet HWaddr 96:1B:35:97:E5:08
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)
wlan0 Link encap:Ethernet HWaddr 84:20:96:AB:35:09
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)
# ifconfig wlan0 up
[ 78.453132] rtl8723bs: acquire FW from file:rtlwifi/rtl8723bs_nic.bin
# wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf
wpa_supplicant v2.6
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='cxk'
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 0x196618
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 match=0104
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 match=040a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 match=040b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 match=040c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 match=040d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 match=090a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 match=090b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 match=090c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 match=090d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 match=0409506f9a09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 match=7f506f9a09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 match=0801
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 match=0a07
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 match=0a11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 match=0a1a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 match=1101
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 match=1102
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 match=0505
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x196618 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
wlan0: Own MAC address: 84:20:96:ab:35:09
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: a422be9d-114f-543e-a249-6422664005d5
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..
# [ 101.384703] RTL8723BS: rtw_set_802_11_connect(wlan0) fw_state = 0x00000008
[ 101.558770] RTL8723BS: start auth
[ 101.569959] RTL8723BS: auth success, start assoc
[ 101.586298] RTL8723BS: rtw_cfg80211_indicate_connect(wlan0) BSS not found !!
[ 101.593498] RTL8723BS: assoc success
[ 101.748536] RTL8723BS: send eapol packet
[ 101.821986] RTL8723BS: send eapol packet
[ 101.845836] RTL8723BS: set pairwise key camid:4, addr:b6:64:aa:d9:23:09, kid:0, type:AES
[ 101.876654] RTL8723BS: set group key camid:5, addr:b6:64:aa:d9:23:09, kid:1, type:AES
wpa_cli -iwlan0 status
bssid=b6:64:aa:d9:23:09
freq=2447
ssid=cxk
id=0
mode=station
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
address=84:20:96:ab:35:09
uuid=a422be9d-114f-543e-a249-6422664005d5
# ping baidu.com
ping: bad address 'baidu.com'
# ping www.baidu.com
ping: bad address 'www.baidu.com'
# ping 123.149.232.30
PING 123.149.232.30 (123.149.232.30): 56 data bytes
ping: sendto: Network is unreachable
# udhcpc -i wlan0
udhcpc: started, v1.27.1
udhcpc: sending discover
udhcpc: sending select for 192.168.43.35
udhcpc: lease of 192.168.43.35 obtained, lease time 3599
deleting routers
adding dns 192.168.43.1
# ping 123.149.232.30
PING 123.149.232.30 (123.149.232.30): 56 data bytes
64 bytes from 123.149.232.30: seq=0 ttl=112 time=121.242 ms
64 bytes from 123.149.232.30: seq=1 ttl=112 time=77.505 ms
64 bytes from 123.149.232.30: seq=2 ttl=112 time=85.317 ms
64 bytes from 123.149.232.30: seq=3 ttl=112 time=80.254 ms
64 bytes from 123.149.232.30: seq=4 ttl=112 time=103.382 ms
离线
补充前期准备:
将linux内核中r8723bs.ko放进文件系统
讲rtl8723bs_nic.bin也放进去
一起打包
烧录后,创建目录 lib/firmware/rtlwifi/,把文件放进去,insmod r8723bs.ko
离线
恭喜恭喜,前面那个问题怎么解决的?
# [ 222.722654] sunxi-mmc 1c0f000.mmc: data error, sending stop command
貌似是TF卡座太松了接触不良,wifi模块比TF卡薄,我压一下卡座弹片,重新插进去,就没出现了
离线