最近想用一下 AP模式,按下面操作还是无法配置成功。我把我的操作流程贴出来:
1、首先用Buildroot 把hostapd 、openssl、dhcp (ISC)都加到了 文件系统中,
2、我用的是F1C100S芯片,用的是linux 4.19的内核,ESP8089的源码是荔枝派给的,移植成功了,可以成功连接WIFI。
3、hostapd.conf 的文件如下
ctrl_interface=/var/run/hostapd
#change wlan0 to your wireless device
interface=wlan0
driver=nl80211
ssid=Linux /* 名字 */
channel=1
# 认证/加密方式
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=linuxdrv /* 密码*/
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
4、启动流程如下
modprobe esp8089.ko config=crystal_26M_en=1
ifconfig wlan0 up
ifconfig wlan0 172.16.1.1 netmask 255.255.255.0
route add default gw 172.16.1.1 /* 这两条路由命令需要添加 */
route add default gw 172.16.148.111
echo 1 > /proc/sys/net/ipv4/ip_forward /* 打开IP转发 */
dhcpd -cf /etc/dhcp/dhcpd.conf wlan0 &
hostapd -d /etc/hostapd.conf
打印的日志 如下
Your text here
ctrl_interface_group=0
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: Using driver-based off-channel TX
nl80211: Driver-advertised extended capabilities (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: Driver-advertised extended capabilities mask (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 3 iftype 3 (AP)
nl80211: Setup AP(wlan0) - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x10078b0
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0x10078b0 match=
nl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ) nl_handle=0x10078b0 match=
nl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ) nl_handle=0x10078b0 match=
nl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC) nl_handle=0x10078b0 match=
nl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH) nl_handle=0x10078b0 match=
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0x10078b0 match=
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x10078b0 match=04
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x10078b0 match=0501
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x10078b0 match=0504
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x10078b0 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x10078b0 match=08
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x10078b0 match=09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x10078b0 match=0a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x10078b0 match=11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x10078b0 match=7f
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Add own interface ifindex 3 (ifidx_reason -1)
nl80211: if_indices[16]: 3(-1)
phy: phy0
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
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
Completing interface initialization
Mode: IEEE 802.11g Channel: 1 Frequency: 2412 MHz
DFS 0 channels required radar detection
nl80211: Set freq 2412 (ht_enabled=0, vht_enabled=0, bandwidth=20 MHz, cf1=2412 MHz, cf2=0 MHz)
* freq=2412
* vht_enabled=0
* ht_enabled=0
* channel_type=0
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
hostapd_setup_bss(hapd=0x1007110 (wlan0), first=1)
wlan0: Flushing old station entries
nl80211: flush -> DEL_STATION wlan0 (all)
wlan0: Deauthenticate all stations
nl80211: send_mlme - da= ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=2412
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-16 (Device or resource busy) (freq=2412 wait=0)
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
Using interface wlan0 with hwaddr ac:d0:74:1f:61:16 and ssid "test_zj"
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=7):
74 65 73 74 5f 7a 6a test_zj
PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
random: Got 20/20 bytes from /dev/random
GMK - hexdump(len=32): [REMOVED]
Key Counter - hexdump(len=32): [REMOVED]
WPA: Delay group state machine start until Beacon frames have been configured
nl80211: Set beacon (beacon_set=0)
nl80211: Beacon head - hexdump(len=58): 80 00 00 00 ff ff ff ff ff ff ac d0 74 1f 61 16 ac d0 74 1f 61 16 00 00 00 00 00 00 00 00 00 00 64 00 11 04 00 07 74 65 73 74 5f 7a 6a 01 08 82 84 8b 96 0c 12 18 24 03 01 01
nl80211: Beacon tail - hexdump(len=91): 2a 01 04 32 04 30 48 60 6c 30 14 01 00 00 0f ac 02 01 00 00 0f ac 04 01 00 00 0f ac 02 0c 00 dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 7f 08 00 00 00 00 00 00 00 40 dd 18 00 50 f2 02 01 01 00 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00
nl80211: ifindex=3
nl80211: beacon_int=100
nl80211: dtim_period=2
nl80211: ssid - hexdump_ascii(len=7):
74 65 73 74 5f 7a 6a test_zj
* beacon_int=100
* dtim_period=2
nl80211: hidden SSID not in use
nl80211: privacy=1
nl80211: auth_algs=0x1
nl80211: wpa_version=0x3
nl80211: key_mgmt_suites=0x2
nl80211: pairwise_ciphers=0x18
nl80211: group_cipher=0x8
nl80211: beacon_ies - hexdump(len=10): 7f 08 00 00 00 00 00 00 00 40
nl80211: proberesp_ies - hexdump(len=10): 7f 08 00 00 00 00 00 00 00 40
nl80211: assocresp_ies - hexdump(len=10): 7f 08 00 00 00 00 00 00 00 40
WPA: Start group state machine to set initial keys
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GTK - hexdump(len=32): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=2 addr=0xb911f key_idx=1 set_tx=1 seq_len=0 key_len=32
nl80211: KEY_DATA - hexdump(len=32): [REMOVED]
broadcast key
nl80211: Set wlan0 operstate 0->1 (UP)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: Setup of interface done.
ctrl_iface not configured!
离线
日志 如下
# modprobe esp8089.ko config=crystal_26M_en=1
#
[ 1067.284412] mmc0: card 0001 removed
[ 1067.339992] mmc0: queuing unknown CIS tuple 0x01 (3 bytes)
[ 1067.353024] mmc0: queuing unknown CIS tuple 0x1a (5 bytes)
[ 1067.362974] mmc0: queuing unknown CIS tuple 0x1b (8 bytes)
[ 1067.371380] mmc0: queuing unknown CIS tuple 0x80 (1 bytes)
[ 1067.378339] mmc0: queuing unknown CIS tuple 0x81 (1 bytes)
[ 1067.384089] mmc0: queuing unknown CIS tuple 0x82 (1 bytes)
[ 1067.389661] mmc0: new high speed SDIO card at address 0001
# ifconfig wlan0 up
# ifconfig wlan0 192.168.2.1 netmask 255.255.255.0
# route add default gw 192.168.2.1
# route add default gw 192.168.148.111
# echo 1 > /proc/sys/net/ipv4/ip_forward
# ifconfig
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 AC:D0:74:1F:61:16
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
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)
# hostapd -d -B /etc/hostapd.conf
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd.conf
ctrl_interface_group=0
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: Using driver-based off-channel TX
nl80211: Driver-advertised extended capabilities (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: Driver-advertised extended capabilities mask (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 3 iftype 3 (AP)
nl80211: Setup AP(wlan0) - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x18d8b0
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0x18d8b0 match=
nl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ) nl_handle=0x18d8b0 match=
nl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ) nl_handle=0x18d8b0 match=
nl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC) nl_handle=0x18d8b0 match=
nl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH) nl_handle=0x18d8b0 match=
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0x18d8b0 match=
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x18d8b0 match=04
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x18d8b0 match=0501
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x18d8b0 match=0504
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x18d8b0 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x18d8b0 match=08
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x18d8b0 match=09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x18d8b0 match=0a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x18d8b0 match=11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x18d8b0 match=7f
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Add own interface ifindex 3 (ifidx_reason -1)
nl80211: if_indices[16]: 3(-1)
phy: phy0
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
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
Completing interface initialization
Mode: IEEE 802.11g Channel: 1 Frequency: 2412 MHz
DFS 0 channels required radar detection
nl80211: Set freq 2412 (ht_enabled=0, vht_enabled=0, bandwidth=20 MHz, cf1=2412 MHz, cf2=0 MHz)
* freq=2412
* vht_enabled=0
* ht_enabled=0
* channel_type=0
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
hostapd_setup_bss(hapd=0x18d110 (wlan0), first=1)
wlan0: Flushing old station entries
nl80211: flush -> DEL_STATION wlan0 (all)
wlan0: Deauthenticate all stations
nl80211: send_mlme - da= ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=2412
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-16 (Device or resource busy) (freq=2412 wait=0)
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
Using interface wlan0 with hwaddr ac:d0:74:1f:61:16 and ssid "zhuajian"
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=8):
7a 68 75 61 6a 69 61 6e zhuajian
PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
random: Got 20/20 bytes from /dev/random
GMK - hexdump(len=32): [REMOVED]
Key Counter - hexdump(len=32): [REMOVED]
WPA: Delay group state machine start until Beacon frames have been configured
nl80211: Set beacon (beacon_set=0)
nl80211: Beacon head - hexdump(len=59): 80 00 00 00 ff ff ff ff ff ff ac d0 74 1f 61 16 ac d0 74 1f 61 16 00 00 00 00 00 00 00 00 00 00 64 00 11 04 00 08 7a 68 75 61 6a 69 61 6e 01 08 82 84 8b 96 0c 12 18 24 03 01 01
nl80211: Beacon tail - hexdump(len=91): 2a 01 04 32 04 30 48 60 6c 30 14 01 00 00 0f ac 02 01 00 00 0f ac 04 01 00 00 0f ac 02 0c 00 dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 7f 08 00 00 00 00 00 00 00 40 dd 18 00 50 f2 02 01 01 00 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00
nl80211: ifindex=3
nl80211: beacon_int=100
nl80211: dtim_period=2
nl80211: ssid - hexdump_ascii(len=8):
7a 68 75 61 6a 69 61 6e zhuajian
* beacon_int=100
* dtim_period=2
nl80211: hidden SSID not in use
nl80211: privacy=1
nl80211: auth_algs=0x1
nl80211: wpa_version=0x3
nl80211: key_mgmt_suites=0x2
nl80211: pairwise_ciphers=0x18
nl80211: group_cipher=0x8
nl80211: beacon_ies - hexdump(len=10): 7f 08 00 00 00 00 00 00 00 40
nl80211: proberesp_ies - hexdump(len=10): 7f 08 00 00 00 00 00 00 00 40
nl80211: assocresp_ies - hexdump(len=10): 7f 08 00 00 00 00 00 00 00 40
WPA: Start group state machine to set initial keys
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GTK - hexdump(len=32): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=2 addr=0xb911f key_idx=1 set_tx=1 seq_len=0 key_len=32
nl80211: KEY_DATA - hexdump(len=32): [REMOVED]
broadcast key
nl80211: Set wlan0 operstate 0->1 (UP)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: Setup of interface done.
ctrl_iface not configured!
离线
这里下载的 https://github.com/Lichee-Pi
手机搜索不到。
离线
ESP8089可以在STA模式下连接WIFI ,但是我配置AP模式不能工作,这个可能是驱动的问题吗?
离线
我这个是在主线linux上,V3S应该是全志的SDK,不知道是不是这个的原因,我按照你的再试下。
我在F1C100S上用ESP8089没有出现过崩溃。
之前在v3s上试过是可以的:
dnsmasq.conf:interface=wlan0
bind-interfaces
except-interface=lo
#dhcp-range=192.168.2.100,192.168.2.109,2h #设置dhcp地址范围hostapd.conf:
interface=wlan0
driver=nl80211
ssid=mywifi
channel=1
wmm_enabled=0
wpa=3
wpa_passphrase=wa12345678
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
auth_algs=1
macaddr_acl=0配置wifi:
insmod /lib/modules/esp8089.ko
ifconfig wlan0 192.168.2.234 netmask 255.255.255.0 up
route add default gw 192.168.2.1启动dnsmasq
dnsmasq -i wlan0 --dhcp-range=192.168.2.100,192.168.2.109,2h开启热点
hostapd /etc/hostapd.conf&顺带一提 esp8089连接WiFi成功后会崩溃吗 之前试的时候会不定时崩溃 就换了模块
离线
error_0 说:ESP8089可以在STA模式下连接WIFI ,但是我配置AP模式不能工作,这个可能是驱动的问题吗?
V3s camdroid 也是用 ESP8089,可以做热点,你可以了解一下,看看有什么不同
我看了下海豚派的ESP8089驱动,感觉这个是全志自己移植过的,驱动里面很多全志专有的函数和变量
离线
Your text here
这个是我做的笔记 应该对你有用
[ 1067.284412] mmc0: card 0001 removed
[ 1067.339992] mmc0: queuing unknown CIS tuple 0x01 (3 bytes)
[ 1067.353024] mmc0: queuing unknown CIS tuple 0x1a (5 bytes)
[ 1067.362974] mmc0: queuing unknown CIS tuple 0x1b (8 bytes)
[ 1067.371380] mmc0: queuing unknown CIS tuple 0x80 (1 bytes)
[ 1067.378339] mmc0: queuing unknown CIS tuple 0x81 (1 bytes)
[ 1067.384089] mmc0: queuing unknown CIS tuple 0x82 (1 bytes)
[ 1067.389661] mmc0: new high speed SDIO card at address 0001楼主, 我加载驱动时也有上面这个,另外还有下面这些:
[ 5.414933] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 53, RTO EBE !!
[ 5.414981] [mmc]: found data error, need to send stop command !!
[ 5.415010] [mmc]: *** sunxi_mci_send_manual_stop(L795): sdc 1 send stop command failed
[ 5.666111] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 53, RTO EBE !!
[ 5.666159] [mmc]: found data error, need to send stop command !!
[ 5.666188] [mmc]: *** sunxi_mci_send_manual_stop(L795): sdc 1 send stop command failed楼主知道是怎么回事吗? 另外,想问一下,esp8089是 firmware 是如何加载的, 要将firmware 拷贝到lib/firmware目录?
离线
方便把ESP8089的源码提供一下吗? 主线版本是多少?
error_0 说:我这个是在主线linux上,V3S应该是全志的SDK,不知道是不是这个的原因,我按照你的再试下。
我在F1C100S上用ESP8089没有出现过崩溃。木子猫 说:之前在v3s上试过是可以的:
dnsmasq.conf:interface=wlan0
bind-interfaces
except-interface=lo
#dhcp-range=192.168.2.100,192.168.2.109,2h #设置dhcp地址范围hostapd.conf:
interface=wlan0
driver=nl80211
ssid=mywifi
channel=1
wmm_enabled=0
wpa=3
wpa_passphrase=wa12345678
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
auth_algs=1
macaddr_acl=0配置wifi:
insmod /lib/modules/esp8089.ko
ifconfig wlan0 192.168.2.234 netmask 255.255.255.0 up
route add default gw 192.168.2.1启动dnsmasq
dnsmasq -i wlan0 --dhcp-range=192.168.2.100,192.168.2.109,2h开启热点
hostapd /etc/hostapd.conf&顺带一提 esp8089连接WiFi成功后会崩溃吗 之前试的时候会不定时崩溃 就换了模块
我在v3s下也是用的主线
离线
有没有人 能发一下成功的log给我看一下,我好有个对比。
离线
你是在那个板子上用的SDK? 海豚派、彩虹派,荔枝派? 方便把你的调试信息发出来吗? 或者您能不能加一下我QQ 903853013 这个我弄了很久。。。。
error_0 说:方便把ESP8089的源码提供一下吗? 主线版本是多少?
木子猫 说:我在v3s下也是用的主线
8089的源码就是drivers目录下的 主线是4.10
离线
驱动呢,能麻烦把驱动上传一下吗!谢了,可以加一下你的QQ吗,你QQ多少?
error_0 说:你是在那个板子上用的SDK? 海豚派、彩虹派,荔枝派? 方便把你的调试信息发出来吗? 或者您能不能加一下我QQ 903853013 这个我弄了很久。。。。
木子猫 说:8089的源码就是drivers目录下的 主线是4.10
之前是4.10 因为那个联网老是崩溃就换成 8723了 4.13的内核 荔枝派 文件系统还是原来的 流程也没变 直接也是可以执行成功开启热点的 这个不会插图
离线
太感谢了,我这几天调一下,调出来一定分享出来
源码:
芒果派的?
https://github.com/qq516333132/camdroid/tree/master/lichee/linux-3.4/drivers/net/wireless/esp8089荔枝派的:
https://github.com/Lichee-Pi/esp8089
这个为什么没有init_data.conf文件可能是全志的:
https://github.com/jwrdegoede/esp8089
出处:http://linux-sunxi.org/Wifi#Espressif我还有彩虹派的,跟第一个一样。
楼主调试成功了,记得分享一下经验。
离线
你大概多久会出现这个问题? 我测试一下
看了一下我和楼主编译的方法是一样的,但是我在连接到wifi一定时间后,会出现下面的Err:
err: to_host_seq reg 0x**, seq 0x00楼主要不连着放久一点试试看看会不会出现这种问题?
离线
我也出现崩溃的情况,一段时间就出现了崩溃的状况,我怀疑是我的SDIO 中没有上拉CMD引脚。你是在那个板子上弄的?
你大概多久会出现这个问题? 我测试一下
jiangming1399 说:看了一下我和楼主编译的方法是一样的,但是我在连接到wifi一定时间后,会出现下面的Err:
err: to_host_seq reg 0x**, seq 0x00楼主要不连着放久一点试试看看会不会出现这种问题?
离线
找到一个帖子 看下 应该是这个的原因,还没有测试 https://whycan.cn/t_636.html
我也出现崩溃的情况,一段时间就出现了崩溃的状况,我怀疑是我的SDIO 中没有上拉CMD引脚。你是在那个板子上弄的?
error_0 说:你大概多久会出现这个问题? 我测试一下
jiangming1399 说:看了一下我和楼主编译的方法是一样的,但是我在连接到wifi一定时间后,会出现下面的Err:
err: to_host_seq reg 0x**, seq 0x00楼主要不连着放久一点试试看看会不会出现这种问题?
离线
你看下14楼我发的编译笔记
楼主好,方便发个编译esp8089步奏的帖子吗?
离线
什么问题?
你好 我根据你的笔记修改代码,遇到了代码没有编译的问题
离线
现在还没有搞定AP模式,我在V3S上是可以使用AP模式,但是同样的驱动移植到F1C100S上就是不行,有没有大牛在F1C100S上成功使用AP模式的。
离线
AP模式终于搞定了,可以正常使用了,但是WIFI 速度感觉不是很快,我PC 和 我的板子都连接同一个WIFI ,PING的延时有60ms,不知道是不是没有移植好,你们一般在下位机怎么测网速? 有没有大佬说一下 ESP8089-_20190420-2021.pdf
离线