Closed kpishere closed 2 years ago
Did a full rebuild and then install, following steps exactly and got this after building/installing package
esp8089.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.10.63+/updates/
depmod.....
DKMS: install completed.
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.128062] Internal error: Oops: 817 [#1] ARM
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.158443] Process kworker/0:0 (pid: 1571, stack limit = 0x61abfa50)
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.159976] Stack: (0xcd999c90 to 0xcd99a000)
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.161478] 9c80: 00000000 c30d76a0 00000000 cd999c9c
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.164427] 9ca0: cd999c9c fd346b8d c79d0400 c79d0400 bf1c57a4 c30e1a00 c30d76a0 bf199080
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.167492] 9cc0: 00000000 00000000 cd999d04 cd999cd8 bf18c438 bf18dc0c c30e1a08 c30e1a00
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.170633] 9ce0: c30e1a08 c30e1a00 00000000 bf1990f0 bf1961b0 00000000 cd999d2c cd999d08
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.173798] 9d00: c06a627c bf18c1c0 c30e1a08 c0d9ee98 c0d9eea0 00000000 bf1990f0 00000000
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.176976] 9d20: cd999d64 cd999d30 c05ab700 c06a6154 00000001 00000013 cd999d64 c30e1a08
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.180176] 9d40: bf1990f0 c30e1a08 c0bb3028 00000001 00000000 c0ca371c cd999d7c cd999d68
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.183428] 9d60: c05abac4 c05ab504 bf1990f0 cd999dd4 cd999d9c cd999d80 c05abc70 c05aba68
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.186796] 9d80: 00000000 cd999dd4 c05abbe0 c0bb3028 cd999dcc cd999da0 c05a9748 c05abbec
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.190284] 9da0: c05b8974 c11c041c c7aba9f4 fd346b8d c30e1a08 c30e1a4c c0bb3028 c0bb3028
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.193882] 9dc0: cd999e04 cd999dd0 c05ab464 c05a96c8 00000cc0 c30e1a08 00000001 fd346b8d
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.197596] 9de0: 00000000 c30e1a08 c30e1a08 c0cc89fc c0bb3028 00000000 cd999e14 cd999e08
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.201388] 9e00: c05abca4 c05ab388 cd999e34 cd999e18 c05aa5d4 c05abc94 c30e1a08 00000000
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.205235] 9e20: c1904808 c0bb3028 cd999e7c cd999e38 c05a67c8 c05aa54c cd999e7c cd999e48
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.209138] 9e40: c069a0c4 c06d4eac cd999e70 fd346b8d c05a4c04 c30e1a00 c30e1a08 c1267800
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.213089] 9e60: 00000001 c1904800 c1904800 00000001 cd999e94 cd999e80 c06a6538 c05a63f8
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.217038] 9e80: 00000000 00000001 cd999ee4 cd999e98 c06a54e0 c06a64dc 00000000 cd999eaf
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.220989] 9ea0: 00000000 00000000 00000000 000002f5 10ffff00 fd346b8d 00000000 c1267a64
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.224929] 9ec0: c1267800 00000001 00061a80 c08d7d7c 00000000 c1267a68 cd999f0c cd999ee8
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.228861] 9ee0: c069af64 c06a5244 c1267a64 c7aba420 00000000 defba600 00000000 00000000
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.232810] 9f00: cd999f44 cd999f10 c003db24 c069ab70 c003e094 00000001 cd999f44 c7aba420
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.236758] 9f20: c0bbc2e4 c7aba434 c0bbc2f8 c0c27e80 00000008 c0bbc2e4 cd999f74 cd999f48
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.240704] 9f40: c003de30 c003d928 00000000 c78cefc0 c390b300 00000000 cd998000 c003ddfc
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.244657] 9f60: c7aba420 c1903e88 cd999fac cd999f78 c0043770 c003de08 c78cefe0 c78cefe0
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.248583] 9f80: c002fb48 c390b300 c0043628 00000000 00000000 00000000 00000000 00000000
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.252539] 9fa0: 00000000 cd999fb0 c00082ec c0043634 00000000 00000000 00000000 00000000
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.256483] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.260424] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.264358] Backtrace:
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.266422] [<bf18dc00>] (esp_pub_init_all [esp8089]) from [<bf18c438>] (esp_sdio_probe+0x284/0x3e8 [esp8089])
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.270312] r10:00000000 r9:00000000 r8:bf199080 r7:c30d76a0 r6:c30e1a00 r5:bf1c57a4
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.274146] r4:c79d0400
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.276102] [<bf18c1b4>] (esp_sdio_probe [esp8089]) from [<c06a627c>] (sdio_bus_probe+0x134/0x184)
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.279870] r9:00000000 r8:bf1961b0 r7:bf1990f0 r6:00000000 r5:c30e1a00 r4:c30e1a08
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.283602] [<c06a6148>] (sdio_bus_probe) from [<c05ab700>] (really_probe+0x208/0x3e4)
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.287298] r9:00000000 r8:bf1990f0 r7:00000000 r6:c0d9eea0 r5:c0d9ee98 r4:c30e1a08
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.291004] [<c05ab4f8>] (really_probe) from [<c05abac4>] (driver_probe_device+0x68/0xc4)
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.294704] r10:c0ca371c r9:00000000 r8:00000001 r7:c0bb3028 r6:c30e1a08 r5:bf1990f0
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.298376] r4:c30e1a08
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.300178] [<c05aba5c>] (driver_probe_device) from [<c05abc70>] (__device_attach_driver+0x90/0xa8)
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.303762] r5:cd999dd4 r4:bf1990f0
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.305528] [<c05abbe0>] (__device_attach_driver) from [<c05a9748>] (bus_for_each_drv+0x8c/0xd4)
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.308990] r7:c0bb3028 r6:c05abbe0 r5:cd999dd4 r4:00000000
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.310750] [<c05a96bc>] (bus_for_each_drv) from [<c05ab464>] (__device_attach+0xe8/0x15c)
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.314225] r7:c0bb3028 r6:c0bb3028 r5:c30e1a4c r4:c30e1a08
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.316008] [<c05ab37c>] (__device_attach) from [<c05abca4>] (device_initial_probe+0x1c/0x20)
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.319486] r8:00000000 r7:c0bb3028 r6:c0cc89fc r5:c30e1a08 r4:c30e1a08
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.321264] [<c05abc88>] (device_initial_probe) from [<c05aa5d4>] (bus_probe_device+0x94/0x9c)
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.324804] [<c05aa540>] (bus_probe_device) from [<c05a67c8>] (device_add+0x3dc/0x764)
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.328315] r7:c0bb3028 r6:c1904808 r5:00000000 r4:c30e1a08
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.330110] [<c05a63ec>] (device_add) from [<c06a6538>] (sdio_add_func+0x68/0x80)
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.333599] r10:00000001 r9:c1904800 r8:c1904800 r7:00000001 r6:c1267800 r5:c30e1a08
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.337081] r4:c30e1a00
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.338795] [<c06a64d0>] (sdio_add_func) from [<c06a54e0>] (mmc_attach_sdio+0x2a8/0x394)
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.342188] r5:00000001 r4:00000000
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.343883] [<c06a5238>] (mmc_attach_sdio) from [<c069af64>] (mmc_rescan+0x400/0x46c)
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.347266] r10:c1267a68 r9:00000000 r8:c08d7d7c r7:00061a80 r6:00000001 r5:c1267800
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.350687] r4:c1267a64
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.352405] [<c069ab64>] (mmc_rescan) from [<c003db24>] (process_one_work+0x208/0x4e0)
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.355818] r9:00000000 r8:00000000 r7:defba600 r6:00000000 r5:c7aba420 r4:c1267a64
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.359251] [<c003d91c>] (process_one_work) from [<c003de30>] (worker_thread+0x34/0x598)
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.362726] r10:c0bbc2e4 r9:00000008 r8:c0c27e80 r7:c0bbc2f8 r6:c7aba434 r5:c0bbc2e4
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.366176] r4:c7aba420
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.367886] [<c003ddfc>] (worker_thread) from [<c0043770>] (kthread+0x148/0x15c)
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.371288] r10:c1903e88 r9:c7aba420 r8:c003ddfc r7:cd998000 r6:00000000 r5:c390b300
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.374692] r4:c78cefc0 r3:00000000
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.376397] [<c0043628>] (kthread) from [<c00082ec>] (ret_from_fork+0x14/0x28)
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.378130] Exception stack(0xcd999fb0 to 0xcd999ff8)
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.379826] 9fa0: 00000000 00000000 00000000 00000000
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.383169] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.386528] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.388285] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c0043628
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.391692] r4:c390b300
Message from syslogd@mainsailos at Apr 12 20:41:35 ...
kernel:[ 374.393362] Code: e50b2034 0a000067 e5902018 e3a01001 (e5821020)
Well, re-wired with copper magnet wire and it did make a difference. Now there are no exceptions. What I get now is (below). No kernel crashes. All wires are about the same length, within 3mm.
I'd also verified that the TX pin on the ESP8266-12E outputs bootmode (7,7) which is SDIO mode with the 3rd bit set (https://github.com/esp8266/esp8266-wiki/wiki/Boot-Process).
[ 1762.518185] debugfs: Directory 'esp_debug' with parent '/' already present!
[ 1762.518250] ESP8089 reset via GPIO 0
[ 1762.808839] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[ 1762.837717] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[ 1762.850518] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[ 1762.857825] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[ 1762.857962] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[ 1762.858089] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[ 1762.858169] mmc1: new high speed SDIO card at address 0001
[ 1762.871808] esp_sdio_dummy_probe enter
[ 1763.091646] esp_sdio_init power up OK
[ 1768.753963] sip_write_memory send buffer failed
[ 1768.754003] esp_download_fw Failed to write fw, err: -110
[ 1768.754016] download firmware failed
[ 1768.754030] esp_init_all failed: -110
[ 1768.754042] first error exit
[ 1768.768327] esp_sdio_remove enter
[ 1768.768396] sip_detach wrong state 1
[ 1768.769117] mmc1: card 0001 removed
Ah, well, the above is what it looks like when mis-wired. Also, the following output confirms it is mis-wired.
mainsailos:~ $ sudo cat /sys/kernel/debug/mmc1/ios
[sudo] password for pi:
clock: 0 Hz
vdd: 0 (invalid)
bus mode: 2 (push-pull)
chip select: 0 (don't care)
power mode: 0 (off)
bus width: 0 (1 bits)
timing spec: 0 (legacy)
signal voltage: 0 (3.30 V)
driver type: 0 (driver type B)
pi@mainsailos:~ $
After fixing the bad connection, I'm back to the originally reported exception and I get this output on checking the mmc device:
pi@mainsailos:~/esp8089 $ sudo cat /sys/kernel/debug/mmc1/ios
clock: 50000000 Hz
actual clock: 50000000 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: 2 (4 bits)
timing spec: 2 (sd high-speed)
signal voltage: 0 (3.30 V)
driver type: 0 (driver type B)
I slow the clock down and still there is an error.
pi@mainsailos:~ $ sudo cat /sys/kernel/debug/mmc1/ios
[sudo] password for pi:
clock: 50000000 Hz
actual clock: 5882353 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: 2 (4 bits)
timing spec: 2 (sd high-speed)
signal voltage: 0 (3.30 V)
driver type: 0 (driver type B)
pi@mainsailos:~ $
From screenshot, there is activity on lines, the signal looks clean to.
@al177 So, it looks like it is resetting, loading the firmware, resetting again but then it fails?
So, I've tried this with a 4.19.66+ kernel and it didn't work either. Is it the esp8266-12E?
Try a pull-up on CH_PD. The ESP8266 is supposed to have a weak internal pull-up on that pin, but I found on some devices that it's not enough. The behavior you're seeing is consistent with the ESP not resetting after the runtime firmware is loaded by the driver.
@al177 Thanks for the consideration!
Well, I put a 10K resistor on there. I'm still getting and error but it is a different error. Also, I've updated the kernel (5.10.103+)
Here is the output :
Apr 24 17:19:48 mainsailos kernel: [ 2512.285772] 8<--- cut here ---
Apr 24 17:19:48 mainsailos kernel: [ 2512.286942] Unable to handle kernel NULL pointer dereference at virtual address 00000002
Apr 24 17:19:48 mainsailos kernel: [ 2512.289089] pgd = 86c2ca1e
Apr 24 17:19:48 mainsailos kernel: [ 2512.290154] [00000002] *pgd=00000000
Apr 24 17:19:48 mainsailos kernel: [ 2512.291217] Internal error: Oops: 5 [#1] ARM
Apr 24 17:19:48 mainsailos kernel: [ 2512.292255] Modules linked in: esp8089(O) mac80211 libarc4 nft_counter xt_DSCP xt_tcpudp nft_
compat nf_tables nfnetlink sha256_generic libsha256 cfg80211 rfkill 8021q garp stp llc raspberrypi_hwmon bcm2835_codec(C) bcm2835_v
4l2(C) bcm2835_isp(C) v4l2_mem2mem bcm2835_mmal_vchiq(C) videobuf2_vmalloc videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 vid
eobuf2_common videodev mc vc_sm_cma(C) uio_pdrv_genirq uio fixed usb_f_ecm g_ether usb_f_rndis u_ether libcomposite dwc2 udc_core r
oles ip_tables x_tables ipv6
Apr 24 17:19:48 mainsailos kernel: [ 2512.300214] CPU: 0 PID: 32077 Comm: kworker/0:1 Tainted: G C O 5.10.103+ #1529
Apr 24 17:19:48 mainsailos kernel: [ 2512.302583] Hardware name: BCM2835
Apr 24 17:19:48 mainsailos kernel: [ 2512.303809] Workqueue: events_freezable mmc_rescan
Apr 24 17:19:48 mainsailos kernel: [ 2512.305050] PC is at sdio_claim_host+0x28/0x4c
Apr 24 17:19:48 mainsailos kernel: [ 2512.306362] LR is at sif_lock_bus+0x38/0x58 [esp8089]
Apr 24 17:19:48 mainsailos kernel: [ 2512.307579] pc : [<c06a86a8>] lr : [<bf207678>] psr: a0000113
Apr 24 17:19:48 mainsailos kernel: [ 2512.308802] sp : cd3c9c80 ip : cd3c9c90 fp : cd3c9c8c
Apr 24 17:19:48 mainsailos kernel: [ 2512.310007] r10: c0ca77d4 r9 : 00000000 r8 : c0bb7028
Apr 24 17:19:48 mainsailos kernel: [ 2512.311176] r7 : c469dd80 r6 : c3835800 r5 : c469dd80 r4 : c469dd80
Apr 24 17:19:48 mainsailos kernel: [ 2512.312333] r3 : 00000002 r2 : 00000000 r1 : 00000000 r0 : c469dd94
Apr 24 17:19:48 mainsailos kernel: [ 2512.313506] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Apr 24 17:19:48 mainsailos kernel: [ 2512.314726] Control: 00c5387d Table: 15c38008 DAC: 00000055
Apr 24 17:19:48 mainsailos kernel: [ 2512.315964] Process kworker/0:1 (pid: 32077, stack limit = 0xb25d859e)
Apr 24 17:19:48 mainsailos kernel: [ 2512.317200] Stack: (0xcd3c9c80 to 0xcd3ca000)
Apr 24 17:19:48 mainsailos kernel: [ 2512.318408] 9c80: cd3c9c9c cd3c9c90 bf207678 c06a868c cd3c9cd4 cd3c9ca0 bf208c38 bf20764c
Apr 24 17:19:48 mainsailos kernel: [ 2512.320766] 9ca0: c469dd80 bf215080 00000000 51cdad8b cd3c9cd4 c469dd80 bf2417a4 c3835800
Apr 24 17:19:48 mainsailos kernel: [ 2512.323149] 9cc0: c469dd80 bf215080 cd3c9d04 cd3c9cd8 bf208284 bf208c08 c3835808 c3835800
Apr 24 17:19:48 mainsailos kernel: [ 2512.325543] 9ce0: c3835808 c3835800 00000000 bf2150f0 bf2121b0 bf2150f0 cd3c9d2c cd3c9d08
Apr 24 17:19:48 mainsailos kernel: [ 2512.327988] 9d00: c06a790c bf2081c0 c3835808 c0da2d94 c0da2d9c 00000000 00000000 bf2150f0
Apr 24 17:19:48 mainsailos kernel: [ 2512.330570] 9d20: cd3c9d64 cd3c9d30 c05ac940 c06a77e4 00000001 00000013 cd3c9d64 c3835808
Apr 24 17:19:48 mainsailos kernel: [ 2512.333288] 9d40: bf2150f0 c3835808 c0bb7028 00000001 00000000 c0ca77d4 cd3c9d7c cd3c9d68
Apr 24 17:19:48 mainsailos kernel: [ 2512.336100] 9d60: c05acde0 c05ac848 bf2150f0 cd3c9dd4 cd3c9d9c cd3c9d80 c05acf8c c05acd84
Apr 24 17:19:48 mainsailos kernel: [ 2512.339024] 9d80: 00000000 cd3c9dd4 c05acefc c0bb7028 cd3c9dcc cd3c9da0 c05aaa8c c05acf08
Apr 24 17:19:48 mainsailos kernel: [ 2512.342009] 9da0: c05b98d8 c11df41c c6ef7754 51cdad8b c3835808 c383584c c0bb7028 c0bb7028
Apr 24 17:19:48 mainsailos kernel: [ 2512.345040] 9dc0: cd3c9e04 cd3c9dd0 c05ac7a8 c05aaa0c 00000cc0 c3835808 00000001 51cdad8b
Apr 24 17:19:48 mainsailos kernel: [ 2512.348112] 9de0: 00000000 c3835808 c3835808 c0cccab4 c0bb7028 00000000 cd3c9e14 cd3c9e08
Apr 24 17:19:48 mainsailos kernel: [ 2512.351193] 9e00: c05acfc0 c05ac6cc cd3c9e34 cd3c9e18 c05ab918 c05acfb0 c3835808 00000000
Apr 24 17:19:48 mainsailos kernel: [ 2512.354278] 9e20: c6f62808 c0bb7028 cd3c9e7c cd3c9e38 c05a7b14 c05ab890 cd3c9e7c cd3c9e48
Apr 24 17:19:48 mainsailos kernel: [ 2512.357359] 9e40: c069b70c c06d6644 cd3c9e70 51cdad8b c05a5f70 c3835800 c3835808 c126b800
Apr 24 17:19:48 mainsailos kernel: [ 2512.360429] 9e60: 00000001 c6f62800 c6f62800 00000001 cd3c9e94 cd3c9e80 c06a7bc8 c05a7744
Apr 24 17:19:48 mainsailos kernel: [ 2512.363492] 9e80: 00000000 00000001 cd3c9ee4 cd3c9e98 c06a6b70 c06a7b6c 00000000 cd3c9eaf
Apr 24 17:19:48 mainsailos kernel: [ 2512.366575] 9ea0: 00000000 00000000 00000000 000002f5 10ffff00 51cdad8b 00000000 c126ba64
Apr 24 17:19:48 mainsailos kernel: [ 2512.369660] 9ec0: c126b800 00000001 00061a80 c08d9e6c 00000000 c126ba68 cd3c9f0c cd3c9ee8
Apr 24 17:19:48 mainsailos kernel: [ 2512.372742] 9ee0: c069c5ac c06a68d4 c126ba64 c6ef76c0 00000000 defba600 00000000 00000000
Apr 24 17:19:48 mainsailos kernel: [ 2512.375823] 9f00: cd3c9f44 cd3c9f10 c003dd84 c069c1b8 c003e2f0 00000001 cd3c9f44 c6ef76c0
Apr 24 17:19:48 mainsailos kernel: [ 2512.378885] 9f20: c0bc0304 c6ef76d4 c0bc0318 c0c2bea0 00000008 c0bc0304 cd3c9f74 cd3c9f48
Apr 24 17:19:48 mainsailos kernel: [ 2512.381963] 9f40: c003e08c c003db88 00000000 c6c2c780 c3b4f8e0 00000000 cd3c8000 c003e058
Apr 24 17:19:48 mainsailos kernel: [ 2512.385044] 9f60: c6ef76c0 c1925e88 cd3c9fac cd3c9f78 c00439c8 c003e064 c6c2c7a0 c6c2c7a0
Apr 24 17:19:48 mainsailos kernel: [ 2512.388135] 9f80: c002fe10 c3b4f8e0 c0043880 00000000 00000000 00000000 00000000 00000000
Apr 24 17:19:48 mainsailos kernel: [ 2512.391219] 9fa0: 00000000 cd3c9fb0 c00082ec c004388c 00000000 00000000 00000000 00000000
Apr 24 17:19:48 mainsailos kernel: [ 2512.394287] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Apr 24 17:19:48 mainsailos kernel: [ 2512.397357] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
Apr 24 17:19:48 mainsailos kernel: [ 2512.400432] Backtrace:
Apr 24 17:19:48 mainsailos kernel: [ 2512.402031] [<c06a8680>] (sdio_claim_host) from [<bf207678>] (sif_lock_bus+0x38/0x58 [esp8089])
Apr 24 17:19:48 mainsailos kernel: [ 2512.405161] [<bf207640>] (sif_lock_bus [esp8089]) from [<bf208c38>] (check_target_id+0x3c/0x1c8 [esp8089])
Apr 24 17:19:48 mainsailos kernel: [ 2512.408299] [<bf208bfc>] (check_target_id [esp8089]) from [<bf208284>] (esp_sdio_probe+0xd0/0x3e8 [esp8089])
Apr 24 17:19:48 mainsailos kernel: [ 2512.411289] r8:bf215080 r7:c469dd80 r6:c3835800 r5:bf2417a4 r4:c469dd80
Apr 24 17:19:48 mainsailos kernel: [ 2512.412869] [<bf2081b4>] (esp_sdio_probe [esp8089]) from [<c06a790c>] (sdio_bus_probe+0x134/0x184)
Apr 24 17:19:48 mainsailos kernel: [ 2512.415821] r9:bf2150f0 r8:bf2121b0 r7:bf2150f0 r6:00000000 r5:c3835800 r4:c3835808
Apr 24 17:19:48 mainsailos kernel: [ 2512.418744] [<c06a77d8>] (sdio_bus_probe) from [<c05ac940>] (really_probe+0x104/0x3bc)
Apr 24 17:19:48 mainsailos kernel: [ 2512.421648] r9:bf2150f0 r8:00000000 r7:00000000 r6:c0da2d9c r5:c0da2d94 r4:c3835808
Apr 24 17:19:48 mainsailos kernel: [ 2512.424537] [<c05ac83c>] (really_probe) from [<c05acde0>] (driver_probe_device+0x68/0xc4)
Apr 24 17:19:48 mainsailos kernel: [ 2512.427405] r10:c0ca77d4 r9:00000000 r8:00000001 r7:c0bb7028 r6:c3835808 r5:bf2150f0
Apr 24 17:19:48 mainsailos kernel: [ 2512.430239] r4:c3835808
Apr 24 17:19:48 mainsailos kernel: [ 2512.431681] [<c05acd78>] (driver_probe_device) from [<c05acf8c>] (__device_attach_driver+0x90/0xa8)
Apr 24 17:19:48 mainsailos kernel: [ 2512.434546] r5:cd3c9dd4 r4:bf2150f0
Apr 24 17:19:48 mainsailos kernel: [ 2512.435960] [<c05acefc>] (__device_attach_driver) from [<c05aaa8c>] (bus_for_each_drv+0x8c/0xd4)
Apr 24 17:19:48 mainsailos kernel: [ 2512.438744] r7:c0bb7028 r6:c05acefc r5:cd3c9dd4 r4:00000000
Apr 24 17:19:48 mainsailos kernel: [ 2512.440157] [<c05aaa00>] (bus_for_each_drv) from [<c05ac7a8>] (__device_attach+0xe8/0x15c)
Apr 24 17:19:48 mainsailos kernel: [ 2512.442913] r7:c0bb7028 r6:c0bb7028 r5:c383584c r4:c3835808
Apr 24 17:19:48 mainsailos kernel: [ 2512.444311] [<c05ac6c0>] (__device_attach) from [<c05acfc0>] (device_initial_probe+0x1c/0x20)
Apr 24 17:19:48 mainsailos kernel: [ 2512.447024] r8:00000000 r7:c0bb7028 r6:c0cccab4 r5:c3835808 r4:c3835808
Apr 24 17:19:48 mainsailos kernel: [ 2512.448429] [<c05acfa4>] (device_initial_probe) from [<c05ab918>] (bus_probe_device+0x94/0x9c)
Apr 24 17:19:48 mainsailos kernel: [ 2512.451138] [<c05ab884>] (bus_probe_device) from [<c05a7b14>] (device_add+0x3dc/0x764)
Apr 24 17:19:48 mainsailos kernel: [ 2512.453828] r7:c0bb7028 r6:c6f62808 r5:00000000 r4:c3835808
Apr 24 17:19:48 mainsailos kernel: [ 2512.455201] [<c05a7738>] (device_add) from [<c06a7bc8>] (sdio_add_func+0x68/0x80)
Apr 24 17:19:48 mainsailos kernel: [ 2512.457853] r10:00000001 r9:c6f62800 r8:c6f62800 r7:00000001 r6:c126b800 r5:c3835808
Apr 24 17:19:48 mainsailos kernel: [ 2512.460570] r4:c3835800
Apr 24 17:19:48 mainsailos kernel: [ 2512.461906] [<c06a7b60>] (sdio_add_func) from [<c06a6b70>] (mmc_attach_sdio+0x2a8/0x394)
Apr 24 17:19:48 mainsailos kernel: [ 2512.464615] r5:00000001 r4:00000000
Apr 24 17:19:48 mainsailos kernel: [ 2512.465980] [<c06a68c8>] (mmc_attach_sdio) from [<c069c5ac>] (mmc_rescan+0x400/0x46c)
Apr 24 17:19:48 mainsailos kernel: [ 2512.468681] r10:c126ba68 r9:00000000 r8:c08d9e6c r7:00061a80 r6:00000001 r5:c126b800
Apr 24 17:19:48 mainsailos kernel: [ 2512.471383] r4:c126ba64
Apr 24 17:19:48 mainsailos kernel: [ 2512.472733] [<c069c1ac>] (mmc_rescan) from [<c003dd84>] (process_one_work+0x208/0x4dc)
Apr 24 17:19:48 mainsailos kernel: [ 2512.475379] r9:00000000 r8:00000000 r7:defba600 r6:00000000 r5:c6ef76c0 r4:c126ba64
Apr 24 17:19:48 mainsailos kernel: [ 2512.478018] [<c003db7c>] (process_one_work) from [<c003e08c>] (worker_thread+0x34/0x594)
Apr 24 17:19:48 mainsailos kernel: [ 2512.480668] r10:c0bc0304 r9:00000008 r8:c0c2bea0 r7:c0bc0318 r6:c6ef76d4 r5:c0bc0304
Apr 24 17:19:48 mainsailos kernel: [ 2512.483351] r4:c6ef76c0
Apr 24 17:19:48 mainsailos kernel: [ 2512.484675] [<c003e058>] (worker_thread) from [<c00439c8>] (kthread+0x148/0x15c)
Apr 24 17:19:48 mainsailos kernel: [ 2512.487283] r10:c1925e88 r9:c6ef76c0 r8:c003e058 r7:cd3c8000 r6:00000000 r5:c3b4f8e0
Apr 24 17:19:48 mainsailos kernel: [ 2512.489972] r4:c6c2c780 r3:00000000
Apr 24 17:19:48 mainsailos kernel: [ 2512.491314] [<c0043880>] (kthread) from [<c00082ec>] (ret_from_fork+0x14/0x28)
Apr 24 17:19:48 mainsailos kernel: [ 2512.492710] Exception stack(0xcd3c9fb0 to 0xcd3c9ff8)
Apr 24 17:19:48 mainsailos kernel: [ 2512.494068] 9fa0: 00000000 00000000 00000000 00000000
Apr 24 17:19:48 mainsailos kernel: [ 2512.496698] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Apr 24 17:19:48 mainsailos kernel: [ 2512.499371] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
Apr 24 17:19:48 mainsailos kernel: [ 2512.500776] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c0043880
Apr 24 17:19:48 mainsailos kernel: [ 2512.503451] r4:c3b4f8e0
Apr 24 17:19:48 mainsailos kernel: [ 2512.504755] Code: 0a000005 e5933000 e3a02000 e1a01002 (e5930000)
Apr 24 17:19:48 mainsailos kernel: [ 2512.506266] ---[ end trace b63e2e5b1bb43148 ]---
Claiming host .. hmm. I have dwc2 active. Perhaps they are conflicting because my dhcp config does not define for two hosts? Investigating.
It's still not clear why the driver is unhappy. Maybe the power supply to the ESP is poor, or needs additional bulk capacitance.
@al177 Well, did some further config for wlan0 device in dhcp config but still got the same error.
I'm powering the 3.3V from the raspberry Pi Zero with a big capacitor (220uF @ 16V).
Apr 24 18:11:04 mainsailos kernel: [ 19.982588] eagle_sdio_dummy: probe of mmc1:0001:1 failed with error -110
Apr 24 18:11:04 mainsailos kernel: [ 20.242299] mmc1: card 0001 removed
Apr 24 18:11:04 mainsailos kernel: [ 20.297048] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
Apr 24 18:11:04 mainsailos kernel: [ 20.307755] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
Apr 24 18:11:04 mainsailos kernel: [ 20.313737] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
Apr 24 18:11:04 mainsailos kernel: [ 20.317505] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
Apr 24 18:11:04 mainsailos kernel: [ 20.321856] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
Apr 24 18:11:04 mainsailos kernel: [ 20.322015] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
Apr 24 18:11:04 mainsailos kernel: [ 20.322115] mmc1: new high speed SDIO card at address 0001
Apr 24 18:11:04 mainsailos kernel: [ 20.323043] esp_sdio_dummy_probe enter
Apr 24 18:11:04 mainsailos kernel: [ 20.541681] esp_sdio_init power up OK
Apr 24 18:11:04 mainsailos kernel: [ 20.588264] sip_write_memory send buffer failed
Apr 24 18:11:04 mainsailos kernel: [ 20.588302] esp_download_fw Failed to write fw, err: -84
Apr 24 18:11:04 mainsailos kernel: [ 20.588315] download firmware failed
Apr 24 18:11:04 mainsailos kernel: [ 20.588329] esp_init_all failed: -84
Apr 24 18:11:04 mainsailos kernel: [ 20.588341] first error exit
Apr 24 18:11:04 mainsailos kernel: [ 21.362128] esp_sdio_remove enter
Apr 24 18:11:04 mainsailos kernel: [ 21.362291] sip_detach wrong state 1
Apr 24 18:11:04 mainsailos kernel: [ 21.363274] mmc1: card 0001 removed
Apr 24 18:11:04 mainsailos kernel: [ 21.417996] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
Apr 24 18:11:04 mainsailos kernel: [ 21.427663] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
Apr 24 18:11:04 mainsailos kernel: [ 21.431309] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
Apr 24 18:11:04 mainsailos kernel: [ 21.437144] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
Apr 24 18:11:04 mainsailos kernel: [ 21.437477] mmc1: new high speed SDIO card at address 0001
Apr 24 18:11:04 mainsailos kernel: [ 21.472603] 8<--- cut here ---
Apr 24 18:11:04 mainsailos kernel: [ 21.474584] Unable to handle kernel NULL pointer dereference at virtual address 00000020
Apr 24 18:11:04 mainsailos kernel: [ 21.478221] pgd = (ptrval)
Apr 24 18:11:04 mainsailos kernel: [ 21.480021] [00000020] *pgd=00000000
Apr 24 18:11:04 mainsailos kernel: [ 21.481972] Internal error: Oops: 805 [#1] ARM
Apr 24 18:11:04 mainsailos kernel: [ 21.483841] Modules linked in: esp8089(O) mac80211 sha256_generic libsha256 cfg80211 rfkill l
ibarc4 raspberrypi_hwmon bcm2835_codec(C) bcm2835_isp(C) v4l2_mem2mem bcm2835_v4l2(C) bcm2835_mmal_vchiq(C) videobuf2_vmalloc video
buf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_common videodev mc vc_sm_cma(C) uio_pdrv_genirq uio fixed g_ether usb_f_r
ndis u_ether libcomposite dwc2 udc_core roles ip_tables x_tables ipv6
Apr 24 18:11:04 mainsailos kernel: [ 21.495507] CPU: 0 PID: 14 Comm: kworker/0:2 Tainted: G C O 5.10.103+ #1529
Apr 24 18:11:04 mainsailos kernel: [ 21.499591] Hardware name: BCM2835
Apr 24 18:11:04 mainsailos kernel: [ 21.501664] Workqueue: events_freezable mmc_rescan
Apr 24 18:11:04 mainsailos kernel: [ 21.503912] PC is at esp_pub_init_all+0x54/0x2ec [esp8089]
Apr 24 18:11:04 mainsailos kernel: [ 21.506156] LR is at esp_sdio_probe+0x284/0x3e8 [esp8089]
Apr 24 18:11:04 mainsailos kernel: [ 21.508289] pc : [<bf582c54>] lr : [<bf581438>] psr: 20000013
Apr 24 18:11:04 mainsailos kernel: [ 21.510407] sp : c11c5c90 ip : c11c5cd8 fp : c11c5cd4
Apr 24 18:11:04 mainsailos kernel: [ 21.512533] r10: c0ca77d4 r9 : c0bb7028 r8 : bf58e080
Apr 24 18:11:04 mainsailos kernel: [ 21.514657] r7 : c313d6a0 r6 : c3841c00 r5 : 00000002 r4 : c313d6a0
Apr 24 18:11:04 mainsailos kernel: [ 21.516797] r3 : 00000000 r2 : 00000000 r1 : 00000001 r0 : c313d6a0
I'll check power line with a scope. Thought I'd done that but will double-check. I checked and it is pretty clean. Voltage never drops below 3.1V and there is a 0.40V ripple with a 3.40V mean voltage.
Maybe the ESP8266-12E is not good? I've ordered some ESP8266-12F parts.
I had no issues with -12E and SDIO comms, but -12F does have a much better layout and should have better RF performance. Sadly I don't see anything wrong physically assuming you've beeped it out.
Thanks for confirming that with -12E. Yeah, also put monitor on the serial line and it outputs the correct boot message (7,7). The failed to write to FW message, this is a failure of getting the appropriate response from ESP chip? This module had something else programmed in it from another project before I re-purposed for this project. Do I need to wipe it or put some other code in it? I'd thought not, the FW is getting uploaded at this point and would be replacing anything on the module.
SDIO mode conveniently and coincidentally keeps the SPI flash unselected, so it doesn't matter what the flash contents are.
Could you please post the log out the serial port from the time you power on until the time you get the oops? That may tell us if the reset and firmware download is working correctly.
@al177 Ok, done. There is the boot at initial power up (boot1) then 24 seconds to the next boot, serial line is low for 255 ms, and then the second boot message (boot2).
Both are attached.
esp8266-12e_boot1.csv esp8266-12e_boot2.csv
Both messages are identical and the essence is
boot mode:(7 7)
waiting for host
The new ESP8266-12F came it and it works. The other one just would not. I suppose the ticket can be closed with the lesson that some of them (-12E) just won't work as expected.
On a Pi zero (below) with kernel 5.10.63+ I get the following error (below) from dmesg output. What to do? My configuration is thus in /boot/config.txt
dtoverlay=sdio,poll_once=off,sdio_overclock=15
(I set the overclock slow after seeing this problem to exclude any speed issues .. have hooked up to scope and it looks OK signal wise). Also, the device is wired with 22Ohm resistors.