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:
nilesh.kale
2024-11-21 17:04:12 +05:30
parent bcd80c92f3
commit 1e11340061
7 changed files with 21 additions and 2 deletions

View File

@@ -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();