连不上wifi 额。。。。
# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
#
后面就没有提示了,wifi密码也在/etc/wpa_supplicant.conf里面设置了,之后执行
udhcpc -i wlan0
一直在
# udhcpc -i wlan0
udhcpc: started, v1.27.2
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
离线
@黑蛋
咋样,解决了吗
离线
@资本家大善人
这是为什么啊?
离线
@迪卡
请问 err = sif_spi_protocol_init(spi);//在这卡住了 @@@@@@@,这里这个函数的作用是什么?里面发送的指令为什么是CMD指令?那不应该是SDIO协议的内容嘛?
离线
[ 1.436528] TESETS hava!
[ 1.439171] ESP8089_init Enter
[12:56:27.749]收←◆[ 3.039457] esp8089_spi: Find a dev using spi ,deleting!
[ 3.046025] esp8089_spi: esp_spi_dummy_probe enter
[ 3.051042] esp8089_spi: register board OK
[ 3.055139] esp8089_spi: sem_timeout = 0
[12:56:39.154]收←◆[ 14.448488] random: crng init done
[12:56:39.279]收←◆[ 14.567366] esp8089_spi: sem_timeout = -62
[ 14.571479] esp8089_spi: esp_spi_init err 0
[ 14.591099] Loading compiled-in X.509 certificates
[ 14.607593] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 14.625347] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 14.632218] ALSA device list:
[ 14.635203] #0: Loopback 1
[ 14.639045] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 14.647754] cfg80211: failed to load regulatory.db
[12:56:39.725]收←◆[ 15.023634] EXT4-fs (mmcblk0p2): recovery complete
[ 15.031719] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 15.040048] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 15.047817] devtmpfs: mounted
[ 15.055290] Freeing unused kernel memory: 1024K
[ 15.060038] Run /sbin/init as init process
[12:56:39.883]收←◆[ 15.185393] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[12:56:40.023]收←◆Starting logging:
[12:56:40.065]收←◆OK
[12:56:40.129]收←◆Initializing random number generator...
[12:56:40.208]收←◆done.
[12:56:40.270]收←◆Starting network:
[12:56:40.473]收←◆Cannot find device "lo"
[12:56:40.598]收←◆Cannot find device "lo"
FAIL
[12:56:40.645]收←◆Starting dhcpcd...
[12:56:40.730]收←◆if_opensockets: Address family not supported by protocol
[12:56:40.886]收←◆
Welcome to LicheePi
buildroot login:
我把驱动编译进内核了,也成功运行了,但是提示Cannot find device "lo",输入ifconfig会提示 Address family not supported by protocol,这是怎么回事呢?
离线
记录一下,适配完成
ping也比较稳,对比ESP32的网卡来说8266的性能要好得多(也可能esp32网卡驱动没处理好)
离线
把这个esp8090驱动编译到内核的时候static struct spi_board_info esp_board_spi_devices[] = {
{
.modalias = "ESP8089_0",
.max_speed_hz = MAX_SPEED_HZ,
.bus_num = 0,
.chip_select = 1,
.mode = SPI_MODE_3,
},
};
上面这个函数里.chip_select要为1,不然启动的时候会加载失败,后来的人注意一下
离线
esp8266是串口的吧,速度肯定很慢,还使用usb或者sdio的好。
esp8266和esp8089都可以通过SPI来驱动吗?
esp8266单独烧录程序,用作WIFI模块用得比较多。
离线
请问3楼说的设置是哪些啊?
我配置好多相关的编译还是报错
ERROR: "ieee80211_rx_napi" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "skb_queue_head" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "ieee80211_queue_work" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "ieee80211_hdrlen" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "ieee80211_beacon_get_tim" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "ieee80211_unregister_hw" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "ieee80211_scan_completed" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "wiphy_rfkill_start_polling" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "skb_trim" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "ieee80211_stop_queues" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "ieee80211_ready_on_channel" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "__netdev_alloc_skb" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "ieee80211_tx_status" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "skb_queue_purge" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "ieee80211_alloc_hw_nm" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "ieee80211_wake_queues" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "skb_push" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "ieee80211_remain_on_channel_expired" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "skb_pull" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "ieee80211_stop_tx_ba_cb_irqsafe" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "skb_queue_tail" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "wiphy_rfkill_set_hw_state" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "kfree_skb" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "ieee80211_get_buffered_bc" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "ieee80211_register_hw" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "ieee80211_start_tx_ba_session" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "ieee80211_free_hw" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "skb_dequeue" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "skb_put" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "ieee80211_start_tx_ba_cb_irqsafe" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
ERROR: "ieee80211_stop_tx_ba_session" [/home/user/f1c100s-sdk/ESP8089-SPI/esp8089-spi.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:91:__modpost] 错误 1
make[1]: *** [Makefile:1599:modules] 错误 2
make[1]: 离开目录“/home/user/f1c100s-sdk/linux-nano-5.2”
离线