Page 1 of 1

Not able to implement Secure Boot

Posted: Tue Jul 21, 2020 3:01 pm
by Swagger
Hi i was trying the secure boot functionality. Flowed the steps provided in the below link:https://docs.espressif.com/projects/esp ... ot-v1.html

I was trying on the reflashable method.


Steps followed:
1)Enabled secure boot in the menuconfig.Secure bootloader mode selected as reflashable.
Hardware key encoding:No encoding selected.


2)generated a key using

openssl ecparam -name prime256v1 -genkey -noout -out my_secure_boot_signing_key.pem `

3)copied the same into the project folder.


4) Run idf. py bootloader
obatined two flashing method.
5) flashed using : idf.py -p COM7 bootloader-flash
6) flashed sucessfully but resp32 but it only restarts

Re: Not able to implement Secure Boot

Posted: Thu Jul 23, 2020 5:09 am
by ESP_Angus
Hi Swagger,

What is the output when it fails?

If the rest of the project is not flashed yet (and/or the app in the flash is not signed), the bootloader will log an error and restart. Need to run "idf.py flash" to get past this ('flash' target will flash everything except the bootlooder if Secure Boot is on.)

To make sure you're able to see the entire first boot, recommend running "idf.py flash monitor" or "idf.py flash bootloader-flash monitor" in a single command.

Angus

Re: Not able to implement Secure Boot

Posted: Mon Aug 03, 2020 6:42 am
by Swagger
I think i lost the chip.