tony-fav / tasmota-blerry

GNU General Public License v3.0
96 stars 29 forks source link

Flashing tasmota32solo1-linkind-ble-berry.bin from DEV branch causes bootloops #31

Closed ElksInNC closed 2 years ago

ElksInNC commented 2 years ago

tasmota32solo1-linkind-ble-berry.bin from DEV branch under tested firmware https://github.com/tony-fav/tasmota-blerry/raw/dev/tasmota32_firmware/tasmota32solo1-linkind-ble-berry.bin

Causes boot-loop when flashed to Linkind Solo1 Switch

Steps to duplicate (two methods tried)

1a) Serial flash Solo1 special from Tasmota Web Installer to 2022.01.3 Solo1 Bluetooth image 2a) Connect to Wifi 3a) OTA File update using above linked file.

Serial Log


rst:0xc (SW_CPU_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DOUT, clock div:2
load:0x3fff0030,len:184
load:0x40078000,len:12356
load:0x40080400,len:2720
entry 0x40080594

00:00:00.003 HDW: ESP32-U4WDH 
00:00:00.018 UFS: FlashFS mounted with 308 kB free
00:00:00.058 CFG: Loaded from File, Count 7
00:00:00.068 QPC: Count 1
00:00:00.166 BRY: Berry initialized, RAM used=3930 bytes
00:00:00.190 Project tasmota - TESTBENCH Version 2022.01.3(tasmota)-2_0_2_1(2022-01-23T16:07:46)
00:00:00.192 iBeacon register for advert callbacks
00:00:00.203 M32: init: request callbacks
00:00:00.975 WIF: Connecting to AP1 ElksInNC-IOT in mode 11n as TESTBENCH...
00:00:04.568 WIF: Connected
00:00:04.779 HTP: Web server active on TESTBENCH with IP address 10.10.10.174
19:39:44.136 RSL: INFO1 = {"Info1":{"Module":"ESP32-DevKit","Version":"2022.01.3(tasmota)","FallbackTopic":"cmnd/DVES_701F60_fb/","GroupTopic":"cmnd/tasmotas/"}}
19:39:44.151 RSL: INFO2 = {"Info2":{"WebServerMode":"Admin","Hostname":"TESTBENCH","IPAddress":"10.10.10.174"}}
19:39:44.154 RSL: INFO3 = {"Info3":{"RestartReason":"Software reset CPU"}}
19:39:44.939 QPC: Reset
19:39:49.871 RSL: STATE = {"Time":"2022-01-23T19:39:49","Uptime":"0T00:00:12","UptimeSec":12,"Heap":128,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":225,"MqttCount":0,"Berry":{"HeapUsed":3,"Objects":38},"Wifi":{"AP":1,"SSId":"ElksInNC-IOT","BSSId":"E6:63:DA:77:82:09","Channel":6,"Mode":"11n","RSSI":86,"Signal":-57,"LinkCount":1,"Downtime":"0T00:00:05"}}
19:39:49.902 RSL: SENSOR = {"Time":"2022-01-23T19:39:49","ESP32":{"Temperature":148.0},"TempUnit":"F"}
19:39:49.910 RSL: BLE = {"Time":"2022-01-23T19:39:49","BLEDevices":{"total":0}}
19:39:49.914 RSL: BLE = {"Time":"2022-01-23T19:39:49","BLE":{"scans":0,"adverts":0,"devices":0,"resets":0}}
19:41:01.310 RSL: RESULT = {"OtaUrl":"https://github.com/tony-fav/tasmota-blerry/raw/dev/tasmota32_firmware/tasmota32solo1-linkind-ble-berry.bin"}
19:41:01.507 RSL: RESULT = {"Upgrade":"Version 2022.01.3 from https://github.com/tony-fav/tasmota-blerry/raw/dev/tasmota32_firmware/tasmota32solo1-linkind-ble-berry.bin"}
19:41:03.404 BLE: Stopping if active
19:41:03.407 HTP: Web server stopped
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DOUT, clock div:2
load:0x3fff0030,len:184
load:0x40078000,len:12356
load:0x40080400,len:2720
entry 0x40080594

abort() was called at PC 0x40084450 on core 0

Backtrace:0x40084e85:0x3ffe3ba00x40097b95:0x3ffe3bc0 0x4009cb15:0x3ffe3be0 0x40084450:0x3ffe3c60 0x4007912e:0x3ffe3c90  |<-CORRUPTED

ELF file SHA256: 0000000000000000

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DOUT, clock div:2
load:0x3fff0030,len:184
load:0x40078000,len:12356
load:0x40080400,len:2720
entry 0x40080594

abort() was called at PC 0x40084450 on core 0

Backtrace:0x40084e85:0x3ffe3ba00x40097b95:0x3ffe3bc0 0x4009cb15:0x3ffe3be0 0x40084450:0x3ffe3c60 0x4007912e:0x3ffe3c90  |<-CORRUPTED

Alternative is to flash device after above incident with ESP Flasher because partitions are correct. Flashing back to previous custom compile and the OTA File flashing to current custom compile.

1b) ESP Flasher - flash pre-TLS special from: https://github.com/tony-fav/tasmota-blerry/raw/main/tested_firmware/tasmota32solo1-linkind-ble-berry.bin

Using '/dev/cu.usbserial-0001' as serial port.
Connecting.....
Detecting chip type... ESP32
Connecting...

Chip Info:
 - Chip Family: ESP32
 - Chip Model: ESP32-U4WDH (revision 3)
 - Number of Cores: 1
 - Max CPU Frequency: 80MHz
 - Has Bluetooth: YES
 - Has Embedded Flash: YES
 - Has Factory-Calibrated ADC: YES
 - MAC Address: B8:F0:09:70:1F:60
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
 - Flash Size: 4MB
 - Flash Mode: dout
 - Flash Frequency: 40MHz
Erasing flash (this may take a while)...
Chip erase completed successfully in 19.0s
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x0017afff...
Compressed 17104 bytes to 11191...
Writing at 0x00001000... (100 %)
Wrote 17104 bytes (11191 compressed) at 0x00001000 in 0.6 seconds (effective 226.5 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 129...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (129 compressed) at 0x00008000 in 0.1 seconds (effective 367.4 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 521.2 kbit/s)...
Hash of data verified.
Compressed 1485840 bytes to 1000863...
Writing at 0x00010000... (1 %)
Writing at 0x00018fab... (3 %)
Writing at 0x00020233... (4 %)
Writing at 0x00029a21... (6 %)
Writing at 0x00034a5e... (8 %)
Writing at 0x0003cccd... (9 %)
Writing at 0x000452ac... (11 %)
Writing at 0x0004a683... (12 %)
Writing at 0x0004f74b... (14 %)
Writing at 0x000546ac... (16 %)
Writing at 0x00059bbc... (17 %)
Writing at 0x0005f26a... (19 %)
Writing at 0x000643bc... (20 %)
Writing at 0x0006a16a... (22 %)
Writing at 0x0006f11d... (24 %)
Writing at 0x00074107... (25 %)
Writing at 0x00078c49... (27 %)
Writing at 0x0007de90... (29 %)
Writing at 0x00083c82... (30 %)
Writing at 0x0008978f... (32 %)
Writing at 0x0008ef73... (33 %)
Writing at 0x00094978... (35 %)
Writing at 0x0009a6ec... (37 %)
Writing at 0x0009fdd5... (38 %)
Writing at 0x000a5604... (40 %)
Writing at 0x000aad91... (41 %)
Writing at 0x000b0116... (43 %)
Writing at 0x000b5c7b... (45 %)
Writing at 0x000bb74d... (46 %)
Writing at 0x000c118e... (48 %)
Writing at 0x000c6beb... (50 %)
Writing at 0x000cbf63... (51 %)
Writing at 0x000d14ec... (53 %)
Writing at 0x000d682d... (54 %)
Writing at 0x000dbc25... (56 %)
Writing at 0x000e102c... (58 %)
Writing at 0x000e6100... (59 %)
Writing at 0x000ebed3... (61 %)
Writing at 0x000f1f3b... (62 %)
Writing at 0x000f81aa... (64 %)
Writing at 0x000fd4a8... (66 %)
Writing at 0x0010279f... (67 %)
Writing at 0x0010887c... (69 %)
Writing at 0x0010de33... (70 %)
Writing at 0x00112fd8... (72 %)
Writing at 0x00118348... (74 %)
Writing at 0x0011d78b... (75 %)
Writing at 0x00122cd6... (77 %)
Writing at 0x00128581... (79 %)
Writing at 0x0012e35f... (80 %)
Writing at 0x00133bad... (82 %)
Writing at 0x00139497... (83 %)
Writing at 0x0013fe11... (85 %)
Writing at 0x001484ad... (87 %)
Writing at 0x00150d3d... (88 %)
Writing at 0x0015608f... (90 %)
Writing at 0x0015e594... (91 %)
Writing at 0x00163e3c... (93 %)
Writing at 0x001693d8... (95 %)
Writing at 0x0016f2d3... (96 %)
Writing at 0x001746cb... (98 %)
Writing at 0x0017a334... (100 %)
Wrote 1485840 bytes (1000863 compressed) at 0x00010000 in 26.2 seconds (effective 454.0 kbit/s)...
Hash of data verified.

Leaving...
Hard Resetting...
Hard resetting via RTS pin...
Done! Flashing is complete!

Showing logs:

2b) Set up wifi 3b) OTA File update via web interface file downloaded from: https://github.com/tony-fav/tasmota-blerry/blob/dev/tasmota32_firmware/tasmota32solo1-linkind-ble-berry.bin


rst:0xc (SW_CPU_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DOUT, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8

00:00:00.003 HDW: ESP32-U4WDH 
00:00:00.015 UFS: FlashFS mounted with 304 kB free
00:00:00.041 CFG: Loaded from File, Count 11
00:00:00.050 QPC: Count 1
00:00:00.080 BRY: Berry initialized, RAM used=3504
00:00:00.092 BRY: no 'preinit.be'
00:00:00.098 Project tasmota - TESTBENCH Version 10.1.0.1(linkind-ble-berry)-2_0_1_1(2022-01-06T22:47:00)
00:00:00.100 iBeacon register for advert callbacks
00:00:00.159 BRY: no 'autoexec.be'
00:00:00.778 WIF: Connecting to AP1 ElksInNC-IOT Channel 6 BSSId E6:63:DA:77:82:09 in mode 11n as TESTBENCH...
00:00:04.709 WIF: Connected
00:00:04.966 HTP: Web server active on TESTBENCH with IP address 10.10.10.174
19:21:14.869 RSL: INFO1 = {"Info1":{"Module":"ESP32-DevKit","Version":"10.1.0.1(linkind-ble-berry)","FallbackTopic":"cmnd/DVES_701F60_fb/","GroupTopic":"cmnd/tasmotas/"}}
19:21:14.883 RSL: INFO2 = {"Info2":{"WebServerMode":"Admin","Hostname":"TESTBENCH","IPAddress":"10.10.10.174"}}
19:21:15.003 RSL: INFO3 = {"Info3":{"RestartReason":"Software reset CPU"}}
19:21:16.942 QPC: Reset
19:21:18.955 RSL: STATE = {"Time":"2022-01-23T19:21:18","Uptime":"0T00:00:09","UptimeSec":9,"Heap":138,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":0,"Berry":{"HeapUsed":3,"Objects":48},"Wifi":{"AP":1,"SSId":"ElksInNC-IOT","BSSId":"E6:63:DA:77:82:09","Channel":6,"Mode":"11n","RSSI":90,"Signal":-55,"LinkCount":1,"Downtime":"0T00:00:04"}}
19:21:18.984 RSL: SENSOR = {"Time":"2022-01-23T19:21:18","ESP32":{"Temperature":146.0},"TempUnit":"F"}
19:21:18.991 RSL: BLE = {"Time":"2022-01-23T19:21:18","BLEDevices":{"total":0}}
19:21:18.995 RSL: BLE = {"Time":"2022-01-23T19:21:18","BLE":{"scans":0,"adverts":0,"devices":0,"resets":0}}
19:22:50.553 BLE: Stopping if active
19:22:50.770 UPL: File tasmota32solo1-linkind-ble-berry (9).bin
19:23:34.954 UPP: Multicast (re)joined
19:23:36.833 UPL: Successful 1484576 bytes
19:23:38.045 APP: Restarting

ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DOUT, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8

abort() was called at PC 0x40084450 on core 0

Backtrace:0x40084e85:0x3ffe3b500x40097b95:0x3ffe3b70 0x4009cb15:0x3ffe3b90 0x40084450:0x3ffe3c10 0x40079247:0x3ffe3c40  |<-CORRUPTED

ELF file SHA256: 0000000000000000

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DOUT, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8

abort() was called at PC 0x40084450 on core 0

Backtrace:0x40084e85:0x3ffe3b500x40097b95:0x3ffe3b70 0x4009cb15:0x3ffe3b90 0x40084450:0x3ffe3c10 0x40079247:0x3ffe3c40  |<-CORRUPTED

Additionally - attempted to build myself from:
https://github.com/tony-fav/Tasmota.git

Successful local compile with same results as above.  Also attempted to ESP Flash factory via serial.  Same boot loop.
ElksInNC commented 2 years ago

Resolved with re-compile by dev and reflash:

image