mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
Merge branch 'bugfix/secure_boot_v2_had_zeros_blk2_after_en' into 'release/v4.2'
secure_boot_v2: Fix case when BLOCK2 is left blank See merge request espressif/esp-idf!13243
This commit is contained in:
@ -369,11 +369,7 @@ esp_err_t esp_secure_boot_v2_permanently_enable(const esp_image_metadata_t *imag
|
|||||||
|
|
||||||
if (efuse_key_write_protected == false) {
|
if (efuse_key_write_protected == false) {
|
||||||
ESP_LOGI(TAG, "Write protecting public key digest...");
|
ESP_LOGI(TAG, "Write protecting public key digest...");
|
||||||
ret = esp_efuse_set_write_protect(EFUSE_BLK2);
|
new_wdata0 |= EFUSE_WR_DIS_BLK2; // delay burning until second half of this function
|
||||||
if (ret != ESP_OK) {
|
|
||||||
ESP_LOGE(TAG, "Write protecting public key digest...failed.");
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
efuse_key_write_protected = true;
|
efuse_key_write_protected = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user