您尚未登录。

#202 2022-08-30 21:08:40

黑蛋
会员
注册时间: 2022-07-01
已发帖子: 7
积分: 27

Re: 众人拾柴-F1C200S通过SPI使用ESP8089或ESP8266做无线网卡

连不上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

离线

#203 2022-10-14 13:38:57

Chin
会员
注册时间: 2020-10-19
已发帖子: 61
积分: 39

Re: 众人拾柴-F1C200S通过SPI使用ESP8089或ESP8266做无线网卡

@黑蛋
咋样,解决了吗

离线

#204 2022-11-01 15:30:20

Chin
会员
注册时间: 2020-10-19
已发帖子: 61
积分: 39

Re: 众人拾柴-F1C200S通过SPI使用ESP8089或ESP8266做无线网卡

@资本家大善人
这是为什么啊?

离线

#205 2023-05-13 11:28:26

likaiqin
会员
注册时间: 2022-05-02
已发帖子: 11
积分: 17

Re: 众人拾柴-F1C200S通过SPI使用ESP8089或ESP8266做无线网卡

@迪卡
请问    err = sif_spi_protocol_init(spi);//在这卡住了 @@@@@@@,这里这个函数的作用是什么?里面发送的指令为什么是CMD指令?那不应该是SDIO协议的内容嘛?

离线

#206 2023-06-05 14:39:26

literem
会员
注册时间: 2023-05-29
已发帖子: 1
积分: 1

Re: 众人拾柴-F1C200S通过SPI使用ESP8089或ESP8266做无线网卡

[    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,这是怎么回事呢?

离线

#207 2023-11-08 17:03:09

LYU4662
会员
注册时间: 2022-08-24
已发帖子: 4
积分: 4

Re: 众人拾柴-F1C200S通过SPI使用ESP8089或ESP8266做无线网卡

记录一下,适配完成f266e7ca25d7903beea3a3b970806b27.png
ping也比较稳,对比ESP32的网卡来说8266的性能要好得多(也可能esp32网卡驱动没处理好)
0c297d64e7734b3d407875de960233ca.png

离线

#208 2023-12-03 13:42:03

iufly
会员
注册时间: 2023-02-19
已发帖子: 22
积分: 2

Re: 众人拾柴-F1C200S通过SPI使用ESP8089或ESP8266做无线网卡

把这个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,不然启动的时候会加载失败,后来的人注意一下

离线

#211 2023-12-05 18:32:50

tongshezheng
会员
注册时间: 2023-11-08
已发帖子: 10
积分: 0

Re: 众人拾柴-F1C200S通过SPI使用ESP8089或ESP8266做无线网卡

asdfwyg 说:

esp8266是串口的吧,速度肯定很慢,还使用usb或者sdio的好。

esp8266和esp8089都可以通过SPI来驱动吗?
esp8266单独烧录程序,用作WIFI模块用得比较多。

离线

#212 2024-01-28 22:17:37

LxOps
会员
注册时间: 2021-02-01
已发帖子: 6
积分: 1

Re: 众人拾柴-F1C200S通过SPI使用ESP8089或ESP8266做无线网卡

请问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”

离线

页脚

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

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