mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-12 13:27:36 +00:00
feat(bootloader_support): enabled RSA based secure boot scheme for ESP32C5 ECO1
This commit enabled RSA based secure boot scheme for ESP32C5 ECO1 module. This update also adds a check to ensure the selected secure boot scheme is valid for ECO0 modules.
This commit is contained in:
@@ -103,6 +103,15 @@ static inline void bootloader_ana_reset_config(void)
|
||||
|
||||
esp_err_t bootloader_init(void)
|
||||
{
|
||||
#if CONFIG_SECURE_BOOT
|
||||
#if CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME
|
||||
if (efuse_hal_chip_revision() == 0) {
|
||||
ESP_LOGE(TAG, "Chip version 0.0 is not supported with RSA secure boot scheme. Please select the ECDSA scheme.");
|
||||
return ESP_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
#endif /* CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME */
|
||||
#endif /* CONFIG_SECURE_BOOT */
|
||||
|
||||
esp_err_t ret = ESP_OK;
|
||||
|
||||
bootloader_hardware_init();
|
||||
|
Reference in New Issue
Block a user