WhyCan Forum

本站无需注册,无需积分,无需回复可下载所有资料,如果真的喜欢小站,请您注册之后请至少回复一个帖子激活Id,谢谢支持! 站长QQ: 516333132 (挖坑网/填坑网) admin@whycan.cn

您尚未登录。

#1 2017-12-25 11:29:52

zhuacai
会员
注册时间: 2017-12-16
累计积分: 190

各路大神,荔枝派v3s(有底板的那种)开发板怎挂载wifi【RTL8723BS】,求写入门教程!

各路大神,荔枝派v3s(有底板的那种)开发板怎挂载wifi,求写入门教程!

离线

#2 2017-12-25 11:35:19

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,937

Re: 各路大神,荔枝派v3s(有底板的那种)开发板怎挂载wifi【RTL8723BS】,求写入门教程!

是用荔枝派的RTL8723BS 模组吗?有空我用主线内核试一试。

离线

#3 2017-12-25 11:53:22

zhuacai
会员
注册时间: 2017-12-16
累计积分: 190

Re: 各路大神,荔枝派v3s(有底板的那种)开发板怎挂载wifi【RTL8723BS】,求写入门教程!

晕哥 说:

是用荔枝派的RTL8723BS 模组吗?有空我用主线内核试一试。

对,我是用:  git clone https://github.com/Lichee-Pi/linux.git -b zero-4.13.y分支的内核

离线

#4 2017-12-25 14:21:52

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,937

Re: 各路大神,荔枝派v3s(有底板的那种)开发板怎挂载wifi【RTL8723BS】,求写入门教程!

QQ20171225142745.jpg

QQ20171225142034.png

/mnt/application1 #
/mnt/application1 # insmod /usr/lib/r8723bs.ko
[   16.211908] r8723bs: module is from the staging directory, the quality is unknown, you have been warned.
[   16.228627] RTL8723BS: module init start
[   16.232570] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[   16.239703] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[   16.252467] pnetdev = c32a8000
[   16.290725] RTL8723BS: rtw_ndev_init(wlan0)
[   16.316665] RTL8723BS: module init ret =0
/mnt/application1 # ifconfig wlan0 up
[   20.521254] rtl8723bs: acquire FW from file:rtlwifi/rtl8723bs_nic.bin
[   20.720639] random: crng init done
/mnt/application1 #
/mnt/application1 #

我试了一下可以, 一切正常,你应该是缺一个固件。
这些wifi蓝牙芯片都是固件外置的,或许是为了节省成本,也或者是为了更方便更新固件。

参考: TF WIFI 小白编

离线

#5 2017-12-25 15:52:57

daydayup
会员
注册时间: 2017-10-09
累计积分: 294

Re: 各路大神,荔枝派v3s(有底板的那种)开发板怎挂载wifi【RTL8723BS】,求写入门教程!

哈,刚好有空, 我也试了一下 ifconfig wlan0 up 成功,谢谢 @晕哥

离线

#6 2017-12-25 20:56:16

zhuacai
会员
注册时间: 2017-12-16
累计积分: 190

Re: 各路大神,荔枝派v3s(有底板的那种)开发板怎挂载wifi【RTL8723BS】,求写入门教程!

晕哥 说:

https://whycan.cn/files/members/3/QQ20171225142745.jpg

https://whycan.cn/files/members/3/QQ20171225142034.png

/mnt/application1 #
/mnt/application1 # insmod /usr/lib/r8723bs.ko
[   16.211908] r8723bs: module is from the staging directory, the quality is unknown, you have been warned.
[   16.228627] RTL8723BS: module init start
[   16.232570] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[   16.239703] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[   16.252467] pnetdev = c32a8000
[   16.290725] RTL8723BS: rtw_ndev_init(wlan0)
[   16.316665] RTL8723BS: module init ret =0
/mnt/application1 # ifconfig wlan0 up
[   20.521254] rtl8723bs: acquire FW from file:rtlwifi/rtl8723bs_nic.bin
[   20.720639] random: crng init done
/mnt/application1 #
/mnt/application1 #

我试了一下可以, 一切正常,你应该是缺一个固件。
这些wifi蓝牙芯片都是固件外置的,或许是为了节省成本,也或者是为了更方便更新固件。

参考: TF WIFI 小白编



晕哥,rtlwifi/rtl8723bs_nic.bin在那里有,我在百度搜下到,能提供给我吗,然后这个固件要放到什么位置?是放到rtlwifi/下面吗

离线

#7 2017-12-25 22:14:03

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,937

Re: 各路大神,荔枝派v3s(有底板的那种)开发板怎挂载wifi【RTL8723BS】,求写入门教程!

明天一早回复

离线

#8 2017-12-26 08:19:40

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,937

Re: 各路大神,荔枝派v3s(有底板的那种)开发板怎挂载wifi【RTL8723BS】,求写入门教程!

拷贝 rtl8723bs_nic.bin 到根文件系统的 /lib/firmware/rtlwifi/ 目录下.

离线

#9 2017-12-27 16:47:08

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,937

Re: 各路大神,荔枝派v3s(有底板的那种)开发板怎挂载wifi【RTL8723BS】,求写入门教程!

buildroot
-> make menuconfig
    -> Target packages -> Networking applications
选中
wireless tools
wpa_supplicant

QQ20171227164732.png

离线

#10 2017-12-28 17:22:15

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,937

Re: 各路大神,荔枝派v3s(有底板的那种)开发板怎挂载wifi【RTL8723BS】,求写入门教程!

建立 /etc/wpa_supplicant.conf 文件:

ctrl_interface=/var/run/wpa_supplicant 
ctrl_interface_group=0 
ap_scan=1 
network={
    ssid="debugdump"       
    scan_ssid=1
    key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
    pairwise=TKIP CCMP
    group=CCMP TKIP WEP104 WEP40
    psk="13800138000" 
    priority=5             
}

依次执行下面的shell命令:

#安装驱动
#激活WIFI网卡
#加密连接无线WIFI热点
#DHCP获取IP
insmod /usr/lib/r8723bs.ko
ifconfig wlan0 up
wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf
udhcpc -i wlan0

离线

#11 2017-12-29 18:54:19

zhuacai
会员
注册时间: 2017-12-16
累计积分: 190

Re: 各路大神,荔枝派v3s(有底板的那种)开发板怎挂载wifi【RTL8723BS】,求写入门教程!

晕哥 说:

buildroot
-> make menuconfig
    -> Target packages -> Networking applications
选中
wireless tools
wpa_supplicant

https://whycan.cn/files/members/3/QQ20171227164732.png

晕哥,配置上wpa_supplicant就出错
sae.c:(.text+0x1b58): undefined reference to `crypto_bignum_to_bin'
sae.c:(.text+0x1bdc): undefined reference to `crypto_ec_point_deinit'
sae.c:(.text+0x1bec): undefined reference to `crypto_ec_point_from_bin'
sae.c:(.text+0x1c08): undefined reference to `crypto_ec_point_is_on_curve'
sae.c:(.text+0x1c2c): undefined reference to `crypto_bignum_cmp'
collect2: error: ld returned 1 exit status
make[1]: *** [wpa_supplicant] Error 1
make[1]: Leaving directory `/home/vv3/Downloads/buildroot-2017.08.1/output/build/wpa_supplicant-2.6/wpa_supplicant'

离线

#12 2018-01-13 13:40:16

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,937

Re: 各路大神,荔枝派v3s(有底板的那种)开发板怎挂载wifi【RTL8723BS】,求写入门教程!

zhuacai 说:
晕哥 说:

buildroot
-> make menuconfig
    -> Target packages -> Networking applications
选中
wireless tools
wpa_supplicant

https://whycan.cn/files/members/3/QQ20171227164732.png

晕哥,配置上wpa_supplicant就出错
sae.c:(.text+0x1b58): undefined reference to `crypto_bignum_to_bin'
sae.c:(.text+0x1bdc): undefined reference to `crypto_ec_point_deinit'
sae.c:(.text+0x1bec): undefined reference to `crypto_ec_point_from_bin'
sae.c:(.text+0x1c08): undefined reference to `crypto_ec_point_is_on_curve'
sae.c:(.text+0x1c2c): undefined reference to `crypto_bignum_cmp'
collect2: error: ld returned 1 exit status
make[1]: *** [wpa_supplicant] Error 1
make[1]: Leaving directory `/home/vv3/Downloads/buildroot-2017.08.1/output/build/wpa_supplicant-2.6/wpa_supplicant'

openssl, libnl 也要编译进来。

离线

#13 2018-12-13 14:57:42

lilo
会员
注册时间: 2017-10-15
累计积分: 214

Re: 各路大神,荔枝派v3s(有底板的那种)开发板怎挂载wifi【RTL8723BS】,求写入门教程!

#insmod r8723bs.ko
[    2.343619] r8723bs: module is from the staging directory, the quality is unknown, you have been warned.
[    2.355911] RTL8723BS: module init start
[    2.355948] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[    2.355958] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[    2.356111] RTL8723BS: module init ret =0


# wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant.conf -B
wlan0: Unsupported driver 'nl80211'
# wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -B
Could not read interface wlan0 flags: No such device
WEXT: Could not set interface 'wlan0' UP
wlan0: Failed to initialize driver interface


啊,我的怎么会出现这种问题,没有生成 wlan0

离线

#14 2019-03-08 18:40:51

psst
会员
注册时间: 2019-01-22
累计积分: 54

Re: 各路大神,荔枝派v3s(有底板的那种)开发板怎挂载wifi【RTL8723BS】,求写入门教程!

我的也没有wlan0

# insmod /home/r8723bs.ko
[  650.283158] r8723bs: module is from the staging directory, the quality is unknown, you have been warned.
[  650.299916] RTL8723BS: module init start
[  650.303859] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[  650.310996] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[  650.317654] RTL8723BS: module init ret =0



# ifconfig
eth0      Link encap:Ethernet  HWaddr 02:02:2A:F8:2B:EC
          inet addr:192.168.1.111  Bcast:0.0.0.0  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:612 errors:0 dropped:0 overruns:0 frame:0
          TX packets:328 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:710841 (694.1 KiB)  TX bytes:30458 (29.7 KiB)
          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:638 errors:0 dropped:0 overruns:0 frame:0
          TX packets:638 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:47320 (46.2 KiB)  TX bytes:47320 (46.2 KiB)

usb0      Link encap:Ethernet  HWaddr 42:43:E9:07:73:5A
          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)

# ifconfig wlan0 up
ifconfig: SIOCGIFFLAGS: No such device

# lsmod
Module                  Size  Used by    Tainted: G
r8723bs               524288  0

驱动已经加载了,是系统编译的驱动,有没有适合新手的教程

离线

#15 2019-03-08 19:42:25

smartcar
会员
注册时间: 2018-02-19
累计积分: 359

Re: 各路大神,荔枝派v3s(有底板的那种)开发板怎挂载wifi【RTL8723BS】,求写入门教程!

@psst
参考这两个帖子:

https://whycan.cn/t_2179.html
https://whycan.cn/t_2169.html

最近编辑记录 smartcar (2019-03-08 19:42:42)

离线

#16 2019-05-14 16:04:44

阿黄
会员
注册时间: 2018-10-03
累计积分: 72

Re: 各路大神,荔枝派v3s(有底板的那种)开发板怎挂载wifi【RTL8723BS】,求写入门教程!

zhuacai 说:
晕哥 说:

buildroot
-> make menuconfig
    -> Target packages -> Networking applications
选中
wireless tools
wpa_supplicant

https://whycan.cn/files/members/3/QQ20171227164732.png

晕哥,配置上wpa_supplicant就出错
sae.c:(.text+0x1b58): undefined reference to `crypto_bignum_to_bin'
sae.c:(.text+0x1bdc): undefined reference to `crypto_ec_point_deinit'
sae.c:(.text+0x1bec): undefined reference to `crypto_ec_point_from_bin'
sae.c:(.text+0x1c08): undefined reference to `crypto_ec_point_is_on_curve'
sae.c:(.text+0x1c2c): undefined reference to `crypto_bignum_cmp'
collect2: error: ld returned 1 exit status
make[1]: *** [wpa_supplicant] Error 1
make[1]: Leaving directory `/home/vv3/Downloads/buildroot-2017.08.1/output/build/wpa_supplicant-2.6/wpa_supplicant'


记录一下 https://forum.archive.openwrt.org/viewtopic.php?id=62012
移除output/build/wpa_supplicant文件夹 重新编译

离线

页脚