OTA Configurationο
OTA is mainly used to configure OTA strategy and security counters for anti-version downgrade attacks.
OTA Configuration Tableο
The OTA configuration table is a CSV file, the following is a configuration example:
Field |
Value |
---|---|
strategy |
SWAP |
app_security_counter |
3 |
The partition table is fixed to two columns:
strategy
- required. Indicate the strategy of MCUBOOT OTA. The valid value can beSWAP
orOVERWRITE
, which is related to MCUBOOT strategy MCUBOOT_SWAP_USING_MOVE and MCUBOOT_OVERWRITE_ONLY.
app_security_counter
- required, represents the version security counter. It must be configured when secure boot is enabled to prevent version downgrade attacks. After Secure Boot verifies that the version is legitimateThis value will be read, compared with the safety counter in OTP/NV, and the start is only allowed if the safety counter of the upgraded version is not less than the value in OTP/NV.