ESP32 Secure Boot failed

Yuvaraj1867
Posts: 63
Joined: Wed Mar 06, 2019 4:39 am
Contact:

ESP32 Secure Boot failed

Postby Yuvaraj1867 » Fri Apr 02, 2021 6:29 am

Dear Team,

I am trying to use secure boot feature. But i cannot. Here is my problem description.
Module: ESP-Wroom-32D (XX0H64)
IDF Version: ESP-IDF-V3.3

Debug log:
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:9268
load:0x40078000,len:18428
load:0x40080400,len:6664
csum err:0x20!=0x3b
ets_main.c 371

Steps I did to enable secure boot:
1. Generated .PEM key file using openssl command.
2. In menuconfig -> Enabled secure boot and Mode- Reflashable . Changed partition table to 8MB.
3. Executed “make bootloader”
4. Then flashed secure-bootloader-key-256.bin, bootloader.bin, bootloader-reflash-digest.bin files based on the instructions given after building bootloader. This was done without any error.
5. Then Executed “make flash”. Next i got the above error.

For reference download the sdkconfig, bootloader files and efuse summary from this link.
https://we.tl/t-DrNcpbnQYN

Kindly help me to solve this issue.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: ESP32 Secure Boot failed

Postby WiFive » Fri Apr 02, 2021 7:04 am


Yuvaraj1867
Posts: 63
Joined: Wed Mar 06, 2019 4:39 am
Contact:

Re: ESP32 Secure Boot failed

Postby Yuvaraj1867 » Fri Apr 02, 2021 7:46 am

Hello WiFi,

Thanks. After reducing bootloader log level it works.

Can i use 0xE000 as partition offset? But nvs offset starting form 0X9000. Can you guide me.

Who is online

Users browsing this forum: No registered users and 79 guests