我在内核中配置了这个地方看打印没有起来
不知道还要配置什么地方
离线
是不是wifi 需要手动加载驱动
离线
主要是加载了驱动文件,去配置网络的时候报错
# insmod /ysc/r8723bs.ko
[14702.449054] r8723bs: module is from the staging directory, the quality is unknown, you have been warned.
[14702.465661] RTL8723BS: module init start
[14702.469711] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[14702.476753] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[14702.488273] pnetdev = c32de800
[14702.548722] RTL8723BS: rtw_ndev_init(wlan0)
[14702.659718] RTL8723BS: module init ret =0
# ifconfig wlan0 up
[14722.227935] rtl8723bs: acquire FW from file:rtlwifi/rtl8723bs_nic.bin
[14722.235809] rtl8723bs mmc1:0001:1: Direct firmware load for rtlwifi/rtl8723bs_nic.bin failed with error -2
[14722.245574] Request firmware failed with error 0xfffffffe
ifconfig: SIOCSIFFLAGS: Operation not permitted
#
离线
编译成模块就要手动加载了
不是很明白这里 所以在drivers->staging里面启用相关的驱动就可以了。
这里是要怎样去启用驱动
离线
晕哥 有点不懂是这个 ssid是指这个rtl8723的名称还是连接其他wifi的名称
不知道从哪里看到当前有wifi是可以连接的
离线
现在打印出来的数据是一直这样 但是我打开手机也没有看到设置的名称
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'
ctrl_interface_group='0'
ap_scan=1
Priority group 5
id=0 ssid='yscysc'
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 4 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0x197120
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=0104
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=040a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=040b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=040c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=040d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=090a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=090b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=090c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=090d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=0409506f9a09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=7f506f9a09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=0801
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=0a07
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=0a11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=0a1a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=1101
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=1102
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=0505
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x197120 match=0500
rfkill: Cannot open RFKILL control device
nl80211: RFKILL status not available
netlink: Operstate: ifindex=4 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: 34:c3:d2:72:5f:9d
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=4 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (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: 428074a1-f7e2-5b02-ab7a-4587c5e08f87
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
ctrl_interface_group=0
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=4 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
Daemonize..
# [ 190.698618] RTL8723BS: nolinked power save enter
[ 195.930008] RTL8723BS: nolinked power save leave
[ 197.588765] RTL8723BS: nolinked power save enter
^C
# ^C
# ^C
# udhcpc -i wlan0
udhcpc: started, v1.29.2
udhcpc: sending discover
[ 202.810082] RTL8723BS: nolinked power save leave
[ 204.468618] RTL8723BS: nolinked power save enter
udhcpc: sending discover
udhcpc: sending discover
[ 209.690083] RTL8723BS: nolinked power save leave
[ 211.348617] RTL8723BS: nolinked power save enter
[ 216.569874] RTL8723BS: nolinked power save leave
[ 218.228921] RTL8723BS: nolinked power save enter
[ 223.450070] RTL8723BS: nolinked power save leave
[ 225.108620] RTL8723BS: nolinked power save enter
[ 230.330032] RTL8723BS: nolinked power save leave
udhcpc: sending discover
[ 231.988593] RTL8723BS: nolinked power save enter
udhcpc: sending discover
[ 237.210008] RTL8723BS: nolinked power save leave
udhcpc: sending discover
[ 238.868745] RTL8723BS: nolinked power save enter
离线
晕哥我刚才看了下 实在有点不是很明白的样子
我是按照这样的命令去执行的
insmod /usr/lib/r8723bs.ko #加入驱动
ifconfig wlan0 up #开启wifi
wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf #搜索wifi
udhcpc -i wlan0 #连接wifi
离线
晕哥我刚才看了下 实在有点不是很明白的样子
我是STA的模式
我是按照这样的命令去执行的
insmod /usr/lib/r8723bs.ko #加入驱动
ifconfig wlan0 up #开启wifi
wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf #搜索wifi
udhcpc -i wlan0 #连接wifi
离线
这里我按照配置
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
network={
ssid="yscysc"
scan_ssid=1
key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
pairwise=TKIP CCMP
group=CCMP TKIP WEP104 WEP40
psk="wo123456"
priority=5
我也是按着下面去执行的
insmod /usr/lib/r8723bs.ko #加入驱动
ifconfig wlan0 up #开启wifi
wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf #搜索wifi
udhcpc -i wlan0 #连接wifi
全部执行完后 一直重复下面的
udhcpc: started, v1.29.2
udhcpc: sending discover
[ 1408.600053] RTL8723BS: nolinked power save leave
udhcpc: sending discover
[ 1410.258634] RTL8723BS: nolinked power save enter
udhcpc: sending discover
[ 1415.480081] RTL8723BS: nolinked power save leave
[ 1417.148671] RTL8723BS: nolinked power save enter
[ 1422.370061] RTL8723BS: nolinked power save leave
[ 1424.028762] RTL8723BS: nolinked power save enter
[ 1429.250045] RTL8723BS: nolinked power save leave
[ 1430.908619] RTL8723BS: nolinked power save enter
udhcpc: sending discover
[ 1436.130098] RTL8723BS: nolinked power save leave
[ 1437.788625] RTL8723BS: nolinked power save enter
udhcpc: sending discover
udhcpc: sending discover
[ 1443.010061] RTL8723BS:
离线
按着大神的所说的将RF switch subsystem support选中后就可以连接上了
还有一个问题就是如果我不想在里面直接定死所连接的wifi名称 ,
就是可以自己输入名称和密码 来达到想随意连接 这个脚本里面要怎么去写了
离线
呵呵,我来说一下吧,V3s用无线有坑,折磨了我两天,暂时没有完全解决
驱动无线网卡,要要将rf switch选项打开,不打开用不了,主线内核的网络选项里面无线的坑是什么呢?
V3s使用2.4G网络,估计有干扰,不传输数据,用着还行,我有个传输mp3数据流的程序,持续传输128kbps的mp3流,用V3s无线接收,几秒中 后就中断,播放的音乐流断了
试了8723bs,ralink3070,ralink5572,2.4都有问题,用ralink5572的5G频段,就完全正常,无线路由器距离接收器才2~3米,即使有干扰也不应该这样的,而且5572的2.4G有问题,5G就正常,明显是V3s自身的干扰。
刚才将rf switch 配置了后是可以了 如果我不想在wpa里面写死要连接的wifi名称 就是通过手动输入名称和密码,
离线
我只是用了buildroot里面的跟文件系统
在终端里面如何加载iw哦哦 我在内核里面没有查看到关于iw的
离线
iw 系列命令? 不是 buildroot 里面可以开启的吗?
我现在就是没有用buildroot ,我只是用了他的文件系统
离线
那我如果是配置了buildroot的wirelesstool make后 会自动加载到target目录下吧
离线
我记得iw不支持wpa模式的加密的,只支持wep加密,现在没什么人用wep加密了
现在就是在终端没有iw 从到不能手动连接wifi
离线
无情一刀 说:那我如果是配置了buildroot的wirelesstool make后 会自动加载到target目录下吧
是的
我这里选中了这个几个 make 后用了这个根文件系统
/opt/buildroot/buildroot-2018.08.2/output/target 在终端使用iw还是提示没有这个命令
这个选项 你们有勾上吗
离线
我在wpa_supplicant.conf 这里面写的是连接ysc666
当这个ysc666连接上了的时候,我用iw wlan0 disconnect去断开 然后连接其他的连接不上
再去连接iw wlan0 connect ysc666 也是连接不上 ,是不是操作有问题哦
# iw wlan0 disconnect
# [ 219.368912] RTL8723BS: nolinked power save enter
#
# iw dev wlan0 link
Connected to 24:05:0f:15:a4:3d (on wlan0)
SSID: ysc666
freq: 2437
command failed: No such file or directory (-2)
# iw wlan0 connect ysc666
command failed: Operation already in progress (-114)
离线
iw命令是用n80211协议,是一个比较新的规范,旧一点的无线网卡就不支持,所以现在还是wpa_supplicant比较通用
现在就是使用wpa_cli -iwlan0 reconnect这个重连 也没有看到有链接上了
离线
没有玩过, 等大神路过吧
晕哥我使用wpa_supplicant 就是断开后再去重连 会连接不上
比如我通过wpa_supplicant 去连接其他的 网络 也连接不上
离线
我这里增加了了一个网络 设置都提示ok了
当时使能该网络时候 还是上一个网络 没有变过来
# wpa_cli -iwlan0 enable_network 1
OK
# wpa_cli -iwlan0 status
bssid=24:05:0f:15:a4:3d
freq=2437
ssid=ysc666
id=0
mode=station
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
ip_address=172.27.207.4
address=34:c3:d2:72:5f:9d
uuid=428074a1-f7e2-5b02-ab7a-4587c5e08f87
# wpa_cli -iwlan0 list_networks
network id / ssid / bssid / flags
0 ysc666 any [CURRENT]
1 mate20 any
# driver_atheros_event_wireless: scan result event - SIOCGIWSCAN
-/bin/sh: driver_atheros_event_wireless:: not found
#
离线
我记得wpa_supplilcant是放到后台运行的,如果重新连接,要将程序kill,然后重新运行
因为我在wpa_supplicant.conf这个里面已经写了一个固定的wifi了 每次一运行就是里面这个
我现在就是list_networks里面有一个wifi的名称
然后我在添加了一个 步骤如下
wpa_cli -iwlan0 add_network
wpa_cli -iwlan0 set_network 1 ssid '"ysc6666"'
wpa_cli -iwlan0 set_network 1 key_mgmt NONE
wpa_cli -iwlan0 set_network 1 psk '"123456789"'
wpa_cli -iwlan0 select_network 1
wpa_cli -iwlan0 enable_network 1
发现还是连接不上
就是就是在连接状态中
[53299.588530] RTL8723BS: nolinked power save enter
[53304.809933] RTL8723BS: nolinked power save leave
[53306.468435] RTL8723BS: nolinked power save enter
最近编辑记录 无情一刀 (2019-07-26 09:26:00)
离线
原来那个断开了吗?
我断开了 我添加的网络已经在配置文件里面了
# cat /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
network={
ssid="ysc666"
scan_ssid=1
psk="123456789"
key_mgmt=WPA-PSK WPA-EAP IEEE8021X NONE
priority=5
disabled=1
}
network={
ssid="ysc6666"
psk="123456789"
key_mgmt=NONE
}
这是我当时的操作方式
使能添加的网络 就是会一直在在寻找中
[ 113.908728] RTL8723BS: nolinked power save enter
[ 119.130118] RTL8723BS: nolinked power save leave
[ 120.788636] RTL8723BS: nolinked power save enter
[ 126.010061] RTL8723BS: nolinked power save leave
[ 127.668764] RTL8723BS: nolinked power save enter
[ 132.890154] RTL8723BS: nolinked power save leave
[ 134.548622] RTL8723BS: nolinked power save enter
离线
看那个wpa的状态是一直在scanning中
wpa_cli -iwlan0 status
wpa_state=SCANNING
address=34:c3:d2:72:5f:9d
uuid=428074a1-f7e2-5b02-ab7a-4587c5e08f87
离线
一个都没连上过吗?从来都没连上过?
我现在就是添加了一个wifi名称 ,我使能该wifi网络,
必须要重启后才能连接上刚才添加的 ,然后我也kill了wpa_supplicant 和重启了wpa_supplicant
还是不能连接上 就必须要重启
离线
先执行下面的操作试一试:
ifconfig wlan0 down
ifconfig wlan0 up
我刚才测试了 我先关掉down然后再去up
再去wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf
但是最后提示 rtw_cfg80211_indicate_connect(wlan0) BSS not found !!
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=4 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
Daemonize..
# [ 1430.786314] RTL8723BS: rtw_set_802_11_connect(wlan0) fw_state = 0x00000008
[ 1430.839610] RTL8723BS: start auth
[ 1430.856589] RTL8723BS: auth success, start assoc
[ 1430.875720] RTL8723BS: rtw_cfg80211_indicate_connect(wlan0) BSS not found !!!!!!!!!!!!!!!!!!!!!!!!!=================
[ 1430.882866] RTL8723BS: assoc success
[ 1431.075391] RTL8723BS: send eapol packet
[ 1431.104322] RTL8723BS: send eapol packet
[ 1431.109102] RTL8723BS: set pairwise key camid:4, addr:24:05:0f:15:a4:3d, kid:0, type:AES
[ 1431.120049] RTL8723BS: set group key camid:5, addr:24:05:0f:15:a4:3d, kid:1, type:AES
^C
# ^C
离线
从这里的状态信息 像是连接上了 但是我用的那个360随身wifi 没有看到有连接上来的
# wpa_cli -iwlan0 status
bssid=24:05:0f:15:a4:3d
freq=2437
ssid=ysc6666
id=1
mode=station
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
address=34:c3:d2:72:5f:9d
uuid=428074a1-f7e2-5b02-ab7a-4587c5e08f87
#
离线