enabled encryption / secureboot2 on esp32s3 now esptool.py fails

julcol
Posts: 10
Joined: Tue Oct 29, 2024 1:23 am

enabled encryption / secureboot2 on esp32s3 now esptool.py fails

Postby julcol » Sun Nov 17, 2024 6:15 pm

I have setup flash encryption succesfully.

Followed the steps of security workflows.

I signed and encrypted with my host key, the signed versions of bootloader and application.

Before flashing I check idf.py and it complains bootloader fail secure boot signtaure

Code: Select all

Valid secure boot key blocks: 0
No signature block magic byte found at signature sector (found 0xf9 not 0xe7). Image not V2 signed?
secure boot verification failed
which is as expected. I have not yet burned my first signed image

I issue

Code: Select all

esptool.py --chip esp32s3 -p /dev/ttyUSB0 -b 460800 --before=default_reset --after=no_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB  0x0 bootloader_sign_enc.bin 0x20000 hello_world_sign_enc.bin
162
which results in

Code: Select all

│esptool.py v4.7.0
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32-S3 (QFN56) (revision v0.2)
Features: WiFi, BLE, Embedded PSRAM 8MB (AP_3v3)
Crystal is 40MHz
MAC: f0:9e:9e:0e:7d:fc
Uploading stub...
Running stub...

A fatal error occurred: Failed to start stub. There was no response.
Try increasing timeouts, for more information see: https://docs.espressif.com/projects/esptool/en/latest/esptool/configuration-file.html
Thinking may it is unable to get into boot mode.....I take away the after/before and manually put the chip in download mode via reset/boot.

Same result.

Any ideas how to proceed ?

Thanks.

JC

julcol
Posts: 10
Joined: Tue Oct 29, 2024 1:23 am

Re: enabled encryption / secureboot2 on esp32s3 now esptool.py fails[Solved]

Postby julcol » Tue Nov 19, 2024 9:19 pm

--no-stub fixed this

Who is online

Users browsing this forum: Majestic-12 [Bot] and 99 guests