mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-16 04:22:22 +00:00
feat(app_update): OTA update bootloader, partition_table and other partitions
Passive app partition can be used as the staging partition where a new image is loaded. Then copy it to the final partition. Closes: https://github.com/espressif/esp-idf/issues/14195 Closes: https://github.com/espressif/esp-idf/issues/13824
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include "esp_log.h"
|
||||
#include "esp_rom_md5.h"
|
||||
#include "bootloader_util.h"
|
||||
#include "hal/efuse_hal.h"
|
||||
|
||||
#if CONFIG_IDF_TARGET_LINUX
|
||||
#include "esp_private/partition_linux.h"
|
||||
@@ -92,6 +93,10 @@ static bool is_partition_encrypted(bool encryption_config, esp_partition_type_t
|
||||
are always encrypted */
|
||||
ret_encrypted = true;
|
||||
}
|
||||
#ifdef CONFIG_EFUSE_VIRTUAL_KEEP_IN_FLASH
|
||||
// FE can be enabled in virt eFuses but not in real eFuses.
|
||||
ret_encrypted &= efuse_hal_flash_encryption_enabled();
|
||||
#endif
|
||||
return ret_encrypted;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user