forked from philippe44/squeezelite-esp32
-
Notifications
You must be signed in to change notification settings - Fork 176
Open
Description
I am still struggling with building for the S3 with flash_mode QIO in a reproducible manner. Sometimes it works and sometimes I can't switch from recovery to to squeezlite
W (69785) messaging: restart_ota
Booting to Squeezelite
I (69785) messaging: Rebooting to ota_0
I (69795) esp_image: segment 0: paddr=00150020 vaddr=3c160020 size=aa37ch (697212) map
E (69865) esp_image: invalid segment length 0x3e000000
E (69865) messaging: Unable to select partition for reboot: ESP_ERR_OTA_VALIDATE_FAILED
E (69885) messaging: Unable to select partition for reboot: ESP_ERR_OTA_VALIDATE_FAILED
W (69885) messaging: Rebooting.
The problem only seems to occur in flash_mode QIO and seems to correlate with the size of segment 0.
Sizes ending in hex 0, 4, and 8 work, a size ending in c fails. It seems the 8 byte size header of the following segment can't be read when it spans a 16 byte window. A segment length ending with c leaves only 4 bytes in one window and needs 4 bytes of the next. I can introduce dummy arrays in main/esp_app_main.c to nudge the size and make it work, but that is very tedious.
Surely there must be a better way?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels