fix(docs): Update bootloader anti-rollback documentation

This commit is contained in:
Konstantin Kondrashov
2026-07-16 13:39:50 +03:00
parent 80f969e279
commit 79af60b4ef
2 changed files with 28 additions and 20 deletions
+7 -3
View File
@@ -236,6 +236,8 @@ If the bootloader grows too large then it can collide with the partition table,
I (67) boot: Partition Table: I (67) boot: Partition Table:
... ...
.. only:: SOC_BOOTLOADER_ANTI_ROLLBACK_SUPPORTED
Anti-Rollback Feature Anti-Rollback Feature
^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^
@@ -248,10 +250,12 @@ If the bootloader grows too large then it can collide with the partition table,
Relevant eFuses Relevant eFuses
^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^
.. list::
- ``EFUSE_RECOVERY_BOOTLOADER_FLASH_SECTOR`` (12 bits): Flash sector address for the recovery bootloader. Default value is 0 (disabled), set any other value to enable, 0xFFF to permanently disable. - ``EFUSE_RECOVERY_BOOTLOADER_FLASH_SECTOR`` (12 bits): Flash sector address for the recovery bootloader. Default value is 0 (disabled), set any other value to enable, 0xFFF to permanently disable.
- ``EFUSE_BOOTLOADER_ANTI_ROLLBACK_EN`` (1 bit): Enables anti-rollback check in the ROM bootloader. :SOC_BOOTLOADER_ANTI_ROLLBACK_SUPPORTED: - ``EFUSE_BOOTLOADER_ANTI_ROLLBACK_EN`` (1 bit): Enables anti-rollback check in the ROM bootloader.
- ``EFUSE_BOOTLOADER_ANTI_ROLLBACK_SECURE_VERSION`` (4 bits): Secure version for anti-rollback protection. The value increases as bits are set—0x0, 0x1, 0x3, 0x7, 0xF. :SOC_BOOTLOADER_ANTI_ROLLBACK_SUPPORTED: - ``EFUSE_BOOTLOADER_ANTI_ROLLBACK_SECURE_VERSION`` (4 bits): Secure version for anti-rollback protection. The value increases as bits are set—0x0, 0x1, 0x3, 0x7, 0xF.
- ``EFUSE_BOOTLOADER_ANTI_ROLLBACK_SECURE_VERSION_UPDATE_IN_ROM`` (1 bit): Allows the ROM bootloader to update the secure version in eFuse. :SOC_BOOTLOADER_ANTI_ROLLBACK_SUPPORTED: - ``EFUSE_BOOTLOADER_ANTI_ROLLBACK_SECURE_VERSION_UPDATE_IN_ROM`` (1 bit): Allows the ROM bootloader to update the secure version in eFuse.
.. note:: .. note::
+7 -3
View File
@@ -236,6 +236,8 @@ ESP-IDF 二级引导加载程序位于 flash 的 {IDF_TARGET_CONFIG_BOOTLOADER_O
I (67) boot: Partition Table: I (67) boot: Partition Table:
... ...
.. only:: SOC_BOOTLOADER_ANTI_ROLLBACK_SUPPORTED
防回滚功能 防回滚功能
^^^^^^^^^^ ^^^^^^^^^^
@@ -248,10 +250,12 @@ ESP-IDF 二级引导加载程序位于 flash 的 {IDF_TARGET_CONFIG_BOOTLOADER_O
相关 eFuse 相关 eFuse
^^^^^^^^^^ ^^^^^^^^^^
.. list::
- ``EFUSE_RECOVERY_BOOTLOADER_FLASH_SECTOR`` (12 位):恢复引导加载程序的 flash 扇区地址。默认值为 0(禁用),设置为其他值则启用,设置为 0xFFF 时永久禁用。 - ``EFUSE_RECOVERY_BOOTLOADER_FLASH_SECTOR`` (12 位):恢复引导加载程序的 flash 扇区地址。默认值为 0(禁用),设置为其他值则启用,设置为 0xFFF 时永久禁用。
- ``EFUSE_BOOTLOADER_ANTI_ROLLBACK_EN`` (1 位):在 ROM 引导加载程序中启用防回滚检查。 :SOC_BOOTLOADER_ANTI_ROLLBACK_SUPPORTED: - ``EFUSE_BOOTLOADER_ANTI_ROLLBACK_EN`` (1 位):在 ROM 引导加载程序中启用防回滚检查。
- ``EFUSE_BOOTLOADER_ANTI_ROLLBACK_SECURE_VERSION`` (4 位):防回滚保护的安全版本号。该值随位数增加而递增—0x0、0x1、0x3、0x7、0xF。 :SOC_BOOTLOADER_ANTI_ROLLBACK_SUPPORTED: - ``EFUSE_BOOTLOADER_ANTI_ROLLBACK_SECURE_VERSION`` (4 位):防回滚保护的安全版本号。该值随位数增加而递增—0x0、0x1、0x3、0x7、0xF。
- ``EFUSE_BOOTLOADER_ANTI_ROLLBACK_SECURE_VERSION_UPDATE_IN_ROM`` (1 位):允许 ROM 引导加载程序更新 eFuse 中的安全版本号。 :SOC_BOOTLOADER_ANTI_ROLLBACK_SUPPORTED: - ``EFUSE_BOOTLOADER_ANTI_ROLLBACK_SECURE_VERSION_UPDATE_IN_ROM`` (1 位):允许 ROM 引导加载程序更新 eFuse 中的安全版本号。
.. note:: .. note::