EverythingSmartHome / firmware

Example ESPHome configs for ESP32 DevKits
5 stars 0 forks source link

Boot-loop after upgrade to ESPHome version `2024.5.5` #7

Closed StayPirate closed 1 week ago

StayPirate commented 1 month ago

After I updated my Everything Presence Lite with ESPHome 2024.5.5 via the Home Assistant plugin, it stopped to work.

I tried to re-flash it with

None of those attempts helped out, the device is stuck in boot-looping as you can see from the following logs (screenshot, and text).

Any idea on how could I fix it?

image

[15:23:32]rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[15:23:32]configsip: 0, SPIWP:0xee
[15:23:32]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[15:23:32]mode:DIO, clock div:2
[15:23:32]load:0x3fff0030,len:6652
[15:23:32]ho 0 tail 12 room 4
[15:23:32]load:0x40078000,len:15052
[15:23:32]load:0x40080400,len:3836
[15:23:32]entry 0x4008069c
[15:23:32]I (56) boot: ESP-IDF 4.4.7 2nd stage bootloader
[15:23:32]I (56) boot: compile time 15:07:59
[15:23:32]I (56) boot: Multicore bootloader
[15:23:32]I (60) boot: chip revision: v3.1
[15:23:32]I (64) boot.esp32: SPI Speed      : 40MHz
[15:23:32]I (69) boot.esp32: SPI Mode       : DIO
[15:23:32]I (73) boot.esp32: SPI Flash Size : 4MB
[15:23:32]I (78) boot: Enabling RNG early entropy source...
[15:23:32]I (83) boot: Partition Table:
[15:23:32]I (87) boot: ## Label            Usage          Type ST Offset   Length
[15:23:32]I (94) boot:  0 otadata          OTA data         01 00 00009000 00002000
[15:23:32]I (101) boot:  1 phy_init         RF data          01 01 0000b000 00001000
[15:23:32]I (109) boot:  2 app0             OTA app          00 10 00010000 001c0000
[15:23:32]I (116) boot:  3 app1             OTA app          00 11 001d0000 001c0000
[15:23:32]I (124) boot:  4 nvs              WiFi data        01 02 00390000 0006d000
[15:23:32]I (132) boot: End of partition table
[15:23:32]I (136) boot: No factory image, trying OTA 0
[15:23:32]I (141) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=3a4dch (238812) map
[15:23:32]I (236) esp_image: segment 1: paddr=0004a504 vaddr=3ffbdb60 size=050a4h ( 20644) load
[15:23:32]I (244) esp_image: segment 2: paddr=0004f5b0 vaddr=40080000 size=00a68h (  2664) load
[15:23:32]I (245) esp_image: segment 3: paddr=00050020 vaddr=400d0020 size=f7c60h (1014880) map
[15:23:32]I (617) esp_image: segment 4: paddr=00147c88 vaddr=40080a68 size=1d8c8h (121032) load
[15:23:32]E (667) esp_image: Checksum failed. Calculated 0xd8 read 0xdc
[15:23:33]E (667) boot: OTA app partition slot 0 is not bootable
[15:23:33]E (668) esp_image: image at 0x1d0000 has invalid magic byte (nothing flashed here?)
[15:23:33]E (677) boot: OTA app partition slot 1 is not bootable
[15:23:33]E (682) boot: No bootable app partitions in the partition table
[15:23:33]ets Jul 29 2019 12:21:46
EverythingSmartHome commented 1 month ago

Hello,

This looks more like an issue with the compile on your system since it appears the partition tables are invalid (checksum failed). I would try to flash again from the user guide over USB (USB is sometimes the only way to fix partition tables), then if it works OK, try to flash again from the ESPHome add-on.

https://everythingsmarthome.github.io/everything-presence-lite/updating.html