mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
58a3e08895
Additionally, always enable the partition MD5 check if flash encryption is on in Release mode. This ensures the partition table ciphertext has not been modified (CVE-2021-27926). The exception is pre-V3.1 ESP-IDF bootloaders and partition tables, which don't have support for the MD5 entry.
71 lines
3.3 KiB
Plaintext
71 lines
3.3 KiB
Plaintext
menu "Partition Table"
|
|
|
|
choice PARTITION_TABLE_TYPE
|
|
prompt "Partition Table"
|
|
default PARTITION_TABLE_SINGLE_APP
|
|
help
|
|
The partition table to flash to the ESP32. The partition table
|
|
determines where apps, data and other resources are expected to
|
|
be found.
|
|
|
|
The predefined partition table CSV descriptions can be found
|
|
in the components/partition_table directory. Otherwise it's
|
|
possible to create a new custom partition CSV for your application.
|
|
|
|
config PARTITION_TABLE_SINGLE_APP
|
|
bool "Single factory app, no OTA"
|
|
config PARTITION_TABLE_TWO_OTA
|
|
bool "Factory app, two OTA definitions"
|
|
config PARTITION_TABLE_CUSTOM
|
|
bool "Custom partition table CSV"
|
|
config PARTITION_TABLE_SINGLE_APP_ENCRYPTED_NVS
|
|
bool "Single factory app, no OTA, encrypted NVS"
|
|
depends on !ESP32_COREDUMP_ENABLE_TO_FLASH && NVS_ENCRYPTION
|
|
config PARTITION_TABLE_TWO_OTA_ENCRYPTED_NVS
|
|
bool "Factory app, two OTA definitions, encrypted NVS"
|
|
depends on !ESP_COREDUMP_ENABLE_TO_FLASH && NVS_ENCRYPTION
|
|
endchoice
|
|
|
|
config PARTITION_TABLE_CUSTOM_FILENAME
|
|
string "Custom partition CSV file" if PARTITION_TABLE_CUSTOM
|
|
default "partitions.csv"
|
|
help
|
|
Name of the custom partition CSV filename. This path is evaluated
|
|
relative to the project root directory.
|
|
|
|
config PARTITION_TABLE_FILENAME
|
|
string
|
|
default "partitions_singleapp.csv" if PARTITION_TABLE_SINGLE_APP && !ESP_COREDUMP_ENABLE_TO_FLASH
|
|
default "partitions_singleapp_coredump.csv" if PARTITION_TABLE_SINGLE_APP && ESP_COREDUMP_ENABLE_TO_FLASH
|
|
default "partitions_singleapp_encr_nvs.csv" if PARTITION_TABLE_SINGLE_APP_ENCRYPTED_NVS
|
|
default "partitions_two_ota.csv" if PARTITION_TABLE_TWO_OTA && !ESP_COREDUMP_ENABLE_TO_FLASH
|
|
default "partitions_two_ota_coredump.csv" if PARTITION_TABLE_TWO_OTA && ESP_COREDUMP_ENABLE_TO_FLASH
|
|
default "partitions_two_ota_encr_nvs.csv" if PARTITION_TABLE_TWO_OTA_ENCRYPTED_NVS
|
|
default PARTITION_TABLE_CUSTOM_FILENAME if PARTITION_TABLE_CUSTOM
|
|
|
|
config PARTITION_TABLE_OFFSET
|
|
hex "Offset of partition table"
|
|
default 0x8000
|
|
help
|
|
The address of partition table (by default 0x8000).
|
|
Allows you to move the partition table, it gives more space for the bootloader.
|
|
Note that the bootloader and app will both need to be compiled with the same PARTITION_TABLE_OFFSET value.
|
|
|
|
This number should be a multiple of 0x1000.
|
|
|
|
Note that partition offsets in the partition table CSV file may need to be changed if this value is set to
|
|
a higher value. To have each partition offset adapt to the configured partition table offset, leave all
|
|
partition offsets blank in the CSV file.
|
|
|
|
config PARTITION_TABLE_MD5
|
|
bool "Generate an MD5 checksum for the partition table"
|
|
default y
|
|
depends on !ESP32_COMPATIBLE_PRE_V3_1_BOOTLOADERS
|
|
help
|
|
Generate an MD5 checksum for the partition table for protecting the
|
|
integrity of the table. The generation should be turned off for legacy
|
|
bootloaders which cannot recognize the MD5 checksum in the partition
|
|
table.
|
|
|
|
endmenu
|