您尚未登录。

楼主 #1 2020-03-27 13:17:46

wwng
会员
注册时间: 2020-03-18
已发帖子: 48
积分: 28

荔枝派NANO ESP8089 WiFi模块无法正常工作

如题,我吧论坛上所有资料都看了一遍,目前遇到以下几个问题。
镜像采用的是荔枝派官方提供的号称支持wifi的镜像

# uname -a
Linux Lichee 4.15.0-next-20180202-licheepi-nano+ #118 Fri Jun 1 16:40:34 CST 2018 armv5tejl GNU/Linux
# insmod esp8089.ko config=crystal_26M_en=1
[   60.502466] esp8089: module is from the staging directory, the quality is unknown, you have been warned.
[   60.517676] esp8089: unknown parameter 'config' ignored
[   60.523493] 
[   60.523493] ***** EAGLE DRIVER VER:bdf5087c3deb*****
[   60.523493] 
[   60.531723] show_esp_init_table: esp_init_table[0] attr[crystal_26M_en] offset[48] value[1]
[   60.540139] show_esp_init_table: esp_init_table[1] attr[test_xtal] offset[49] value[0]
[   60.548035] show_esp_init_table: esp_init_table[2] attr[sdio_configure] offset[50] value[2]
[   60.556405] show_esp_init_table: esp_init_table[3] attr[bt_configure] offset[51] value[0]
[   60.564597] show_esp_init_table: esp_init_table[4] attr[bt_protocol] offset[52] value[0]
[   60.572702] show_esp_init_table: esp_init_table[5] attr[dual_ant_configure] offset[53] value[0]
[   60.581406] show_esp_init_table: esp_init_table[6] attr[test_uart_configure] offset[54] value[2]
[   60.590194] show_esp_init_table: esp_init_table[7] attr[share_xtal] offset[55] value[0]
[   60.598175] show_esp_init_table: esp_init_table[8] attr[gpio_wake] offset[56] value[0]
[   60.606101] show_esp_init_table: esp_init_table[9] attr[no_auto_sleep] offset[57] value[0]
[   60.614391] show_esp_init_table: esp_init_table[10] attr[speed_suspend] offset[58] value[0]
[   60.627731] esp_sdio_dummy_probe enter
[   60.848450] esp_sdio_init power up OK
[   61.311604] esp_host:bdf5087c3deb
[   61.311604] esp_target: e826c2b3c9fd 57 18202
[   61.311604] 
[   61.321109] first normal exit
[   61.324402] esp_sdio_remove enter
[   61.328102] sif_disable_irq release irq failed
[   61.448827] eagle_sdio: probe of mmc0:0001:1 failed with error -110
[   61.528978] mmc0: card 0001 removed
[   61.584282] mmc0: queuing unknown CIS tuple 0x01 (3 bytes)
[   61.597114] mmc0: queuing unknown CIS tuple 0x1a (5 bytes)
[   61.606855] mmc0: queuing unknown CIS tuple 0x1b (8 bytes)
[   61.614773] mmc0: queuing unknown CIS tuple 0x80 (1 bytes)
[   61.621597] mmc0: queuing unknown CIS tuple 0x81 (1 bytes)
[   61.627206] mmc0: queuing unknown CIS tuple 0x82 (1 bytes)
[   61.633960] mmc0: new high speed SDIO card at address 0001
[   62.014218] esp_host:bdf5087c3deb
[   62.014218] esp_target: e826c2b3c9fd 57 18202
[   62.014218] 
#

有人说要加上 config=crystal_26M_en=1,但 esp8089: unknown parameter 'config' ignored。

尝试使能wifi并连接AP

# ifconfig wlan0 up
[  157.220702] esp_op_add_interface STA 
[  157.224527] sip_send_config config center freq 2412
# iw dev wlan0 scan
[  164.922463] sip_send_config config center freq 2412
[  164.949085] sip_send_config config center freq 2412
[  165.028494] sip_send_config config center freq 2417
[  165.108478] sip_send_config config center freq 2422
[  165.188481] sip_send_config config center freq 2427
[  165.268461] sip_send_config config center freq 2432
[  165.348480] sip_send_config config center freq 2437
[  165.428481] sip_send_config config center freq 2442
[  165.508477] sip_send_config config center freq 2447
[  165.588486] sip_send_config config center freq 2452
[  165.668575] sip_send_config config center freq 2457
[  165.748483] sip_send_config config center freq 2462
[  165.828486] sip_send_config config center freq 2467
[  165.948499] sip_send_config config center freq 2472
[  166.068493] sip_send_config config center freq 2412
[  166.083552] sip_send_config config center freq 2412
# wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant.conf -d
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 'wext' 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 0
   id=0 ssid='Pandorabox'
WEXT: cfg80211-based driver detected
wext: interface wlan0 phy: phy0
rfkill: Cannot open RFKILL control device
WEXT: RFKILL status not available
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0x1f flags 0x0
WEXT: Driver: eagle_sdio
netlink: Operstate: ifindex=2 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
Add interface wlan0 to a new radio phy0
wlan0: Own MAC address: 18:fe:34:5e:61:f4
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wlan0: RSN: flushing PMKID list in the driver
wlan0: Setting scan request: 0.100000 sec
wlan0: WPS: UUID based on MAC address: e60cfd2e-4344-5e24-b6ba-52ebc4b0f0e8
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
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
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=2 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
wlan0: State: DISCONNECTED -> SCANNING
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x1612fd8
wlan0: First radio work item in the queue - s[  171.463117] sip_send_config config center freq 2412
chedule start immediately
random: Got 20/20 bytes from /dev/random
wlan0: Starting radio work 'scan'@0x1612fd8 after 0.009876 second wait
[  171.490288] sip_send_config config center freq 2412
Scan requested (ret=0) - scan timeout 10 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b1a len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
[  171.568461] sip_send_config config center freq 2417
[  171.648485] sip_send_config config center freq 2422
[  171.728492] sip_send_config config center freq 2427
[  171.808477] sip_send_config config center freq 2432
[  171.888487] sip_send_config config center freq 2437
[  171.968572] sip_send_config config center freq 2442
[  172.048484] sip_send_config config center freq 2447
[  172.128480] sip_send_config config center freq 2452
[  172.208471] sip_send_config config center freq 2457
[  172.288481] sip_send_config config center freq 2462
EAPOL: disable timer tick
[  172.368492] sip_send_config config center freq 2467
[  172.488494] sip_send_config config center freq 2472
[  172.608487] sip_send_config config center freq 2412
[  172.623548] sip_send_config config center freq 2412
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b19 len=8
wlan0: Event SCAN_RESULTS (3) received
Received 0 bytes of scan results (0 BSSes)
wlan0: BSS: Start scan result update 1
BSS: last_scan_res_used=0/0
wlan0: New scan results available (own=0 ext=0)
wlan0: Radio work 'scan'@0x1612fd8 done in 1.209601 seconds
wlan0: radio_work_free('scan'@0x1612fd8: num_active_works --> 0
wlan0: No suitable network found
wlan0: Setting scan request: 5.000000 sec
RTM_NEWLINK: ifi_index=2 ifname=wlan0 wext ifi_family=0 ifi_flags=0x1003 ([UP])
^Cwlan0: Removing interface wlan0
wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00 pending_bssid=00:00:00:00:00:00 reason=3 state=SCANNING
wlan0: State: SCANNING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=2 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_wext_set_countermeasures
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)
Remove interface wlan0 from radio phy0
Remove radio phy0
netlink: Operstate: ifindex=2 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
wlan0: CTRL-EVENT-TERMINATING 

另外error大神分享的那个root密码是1的镜像我也试过了,也是不行。

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn