addshore
10/09/2024, 10:39 AMInvalid image block, can't boot.
The primary thing we notice is that the `load`s end up with different positions and lengths, so something may be wrong with the bootloader and or partition table, but not sure how this happened (if we caused it)? and how to resolve.
Bad
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x1 (POWERON),boot:0xd (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5820,len:0x48
load:0x00288200,len:0x20c
load:0x08a10862,len:0x20020aa
Invalid image block, can't boot.
And good
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x1 (POWERON),boot:0xd (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5820,len:0x48
load:0x403cc710,len:0x65c
load:0x403ce710,len:0x2480
entry 0x403cc710
[toit] INFO: starting <v2.0.0-alpha.152>
[toit] DEBUG: clearing RTC memory: invalid checksum
[toit] INFO: running on ESP32C3 - revision 0.4addshore
10/09/2024, 10:40 AMkasperl
10/09/2024, 10:43 AMkasperl
10/09/2024, 10:43 AMkasperl
10/09/2024, 10:44 AMaddshore
10/09/2024, 10:44 AMjag flash -c ESP32c3addshore
10/09/2024, 10:46 AMaddshore
10/09/2024, 10:47 AMhas the jag esp32c3 image changed since last week? It's probably not that.. but any suggestions? afaik we havent changed anything and the issue has been replicated on 2 new boards
I have taken a look at things and also can't really figure out the direction to investigate in 🙂addshore
10/09/2024, 10:53 AMaddshore
10/09/2024, 10:56 AMload:0x403cc710,len:0x65c working, and a second load of load:0x00288200,len:0x20c failing, and trying to determine why they are each loading from different places for different lengths given the same flashing operationkasperl
10/09/2024, 10:57 AMaddshore
10/09/2024, 10:59 AMkasperl
10/09/2024, 11:00 AMaddshore
10/09/2024, 11:01 AMkasperl
10/09/2024, 11:01 AMaddshore
10/09/2024, 11:30 AMaddshore
10/09/2024, 11:31 AMjag flash the bootloader too?
I noticed that the suggested flash command once building a custom envelope does for examplekasperl
10/09/2024, 11:34 AMkasperl
10/09/2024, 11:35 AMkasperl
10/09/2024, 11:37 AMar -t ~/.cache/jaguar/v2.0.0-alpha.161/envelopes/firmware-esp32.envelope
$envelope
$metadata
$firmware.bin
system
$properties
$firmware.elf
$bootloader.bin
$partitions.bin
$partitions.csv
$otadata.bin
$flashing.jsonaddshore
10/09/2024, 11:37 AMkasperl
10/09/2024, 11:38 AMkasperl
10/09/2024, 11:39 AMkasperl
10/09/2024, 11:39 AMjag version should tell you.addshore
10/09/2024, 11:41 AMjag flash -c ESP32c3 on jag v1.43.1 v2.0.0-alpha.163 and jag v1.41 alpah 160addshore
10/09/2024, 11:41 AMaddshore
10/09/2024, 11:44 AMcan you reproduce this after reflashing with the esp32c3 envelope pulled from would be yesaddshore
10/09/2024, 11:45 AMkasperl
10/09/2024, 11:48 AMESP32c3 when you flash?addshore
10/09/2024, 11:48 AMaddshore
10/09/2024, 11:48 AMaddshore
10/09/2024, 11:49 AMaddshore
10/09/2024, 11:50 AMkasperl
10/09/2024, 11:50 AMaddshore
10/09/2024, 11:55 AM