al177 / esp8089

Linux kernel module driver for the ESP8089 WiFi chip
GNU General Public License v2.0
184 stars 114 forks source link

-62 error on pi3 and pi b+ #39

Closed jamwu closed 4 years ago

jamwu commented 4 years ago

I have pi3 and pi b+, but when I used the last release with rraspbian(kernel 4.19.66+) ,sudo modprobe esp8089 give this error:

               ***** EAGLE DRIVER VER:bdf5087c3deb*****

[  317.923763] ESP8089 reset via GPIO 0
[  318.143737] eagle_sdio_dummy: probe of mmc1:0001:1 failed with error -110
[  318.804174] mmc1: card 0001 removed
[  318.857892] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[  318.871110] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[  318.876992] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[  318.881010] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[  318.881442] mmc1: new SDIO card at address 0001
[  318.888706] esp_sdio_dummy_probe enter
[  319.103470] esp_sdio_init power up OK
[  319.213442] Unable to enable sdio func: -62
[  319.213841] first error exit
[  319.213899] eagle_sdio: probe of mmc1:0001:1 failed with error -62

any idea about this?

jamwu commented 4 years ago

finally, i fix this problem by myself,and got it work on cm3+ and pi3 (only 1-bit mode).hope this comment will help others who has the same problem. because what i used is nodemcu-8266,it pulldown gpio15 to gnd.after i connect gpio15 direct to 3.3v,it can work on 1-bit sdio mode. but when i try the 4-bit mode by this setting: dtoverlay=sdio,poll_once=off after reboot,it still show me on 1-bit mode:

pi@raspberrypi:~ $ sudo cat /sys/kernel/debug/mmc1/ios
clock:          50000000 Hz
actual clock:   41666667 Hz
vdd:            21 (3.3 ~ 3.4 V)
bus mode:       2 (push-pull)
chip select:    0 (don't care)
power mode:     2 (on)
bus width:      0 (1 bits)
timing spec:    2 (sd high-speed)
signal voltage: 0 (3.30 V)
driver type:    0 (driver type B)

has anyone encountered the same problem?