Can I un-brick my dev board after unknowingly uploading alternate app when secure boot was enabled

brahmajit
Posts: 24
Joined: Wed Sep 08, 2021 10:31 am

Can I un-brick my dev board after unknowingly uploading alternate app when secure boot was enabled

Postby brahmajit » Tue Mar 08, 2022 7:58 am

I was testing out secureboot on a dev board, then by mistake I uploaded another app onto the device (I forgot secure boot was enabled, reflashable option). Not I can upload apps onto my device but get

Code: Select all

rst:0x1 (POWERON_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:0x3fff0030,len:7576
load:0x40078000,len:19720
load:0x40080400,len:3820
0x40080400: _init at ??:?

secure boot check fail
ets_main.c 371 
ets Jun  8 2016 00:22:57
Any possibility to unbrick my device or do I consider this board gone :roll:

Also I would be nice if there was a way to test secureboot without writing to the ABS_DONE_0 fuse or if ABS_DONE_0 was rewritable like the FLASH_CRYPT_CNT fuse.

Related issue: https://github.com/espressif/esptool/issues/699

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

Re: Can I un-brick my dev board after unknowingly uploading alternate app when secure boot was enabled

Postby WiFive » Tue Mar 08, 2022 3:41 pm

If you enabled reflashable you should have the keys from when you flashed the other app or did you delete them?

brahmajit
Posts: 24
Joined: Wed Sep 08, 2021 10:31 am

Re: Can I un-brick my dev board after unknowingly uploading alternate app when secure boot was enabled

Postby brahmajit » Tue Mar 08, 2022 4:25 pm

I've the keys

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

Re: Can I un-brick my dev board after unknowingly uploading alternate app when secure boot was enabled

Postby WiFive » Tue Mar 08, 2022 5:39 pm

Well then you can sign and flash new apps and bootloaders.

Who is online

Users browsing this forum: No registered users and 174 guests