Not able to implement Secure Boot

Swagger
Posts: 28
Joined: Tue May 19, 2020 3:06 am

Not able to implement Secure Boot

Postby Swagger » Tue Jul 21, 2020 3:01 pm

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

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Not able to implement Secure Boot

Postby ESP_Angus » Thu Jul 23, 2020 5:09 am

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

Swagger
Posts: 28
Joined: Tue May 19, 2020 3:06 am

Re: Not able to implement Secure Boot

Postby Swagger » Mon Aug 03, 2020 6:42 am

I think i lost the chip.

Who is online

Users browsing this forum: kaxx1975 and 119 guests