Skip to content

Commit

Permalink
samples: nrf54 mcuboot upgrade only
Browse files Browse the repository at this point in the history
[KRKNWK-18776]

Signed-off-by: Krzysztof Taborowski <[email protected]>
  • Loading branch information
ktaborowski committed Nov 22, 2024
1 parent 8aeff29 commit 1bfc96b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 5 additions & 4 deletions samples/sid_end_device/Kconfig.sysbuild
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ endchoice

if BOOTLOADER_MCUBOOT

# Downgrade prevention
choice MCUBOOT_MODE
default MCUBOOT_MODE_OVERWRITE_ONLY
endchoice

config DFU_MULTI_IMAGE_PACKAGE_BUILD
default y

Expand All @@ -27,10 +32,6 @@ if (BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_THINGY53_NRF5340_CPUAPP)
config MCUBOOT_UPDATEABLE_IMAGES
default 2

choice MCUBOOT_MODE
default MCUBOOT_MODE_OVERWRITE_ONLY
endchoice

choice BOOT_SIGNATURE_TYPE
default BOOT_SIGNATURE_TYPE_RSA
endchoice
Expand Down
5 changes: 4 additions & 1 deletion samples/sid_end_device/sysbuild/mcuboot/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@

CONFIG_MAIN_STACK_SIZE=10240

CONFIG_BOOT_SWAP_SAVE_ENCTLV=n
# Downgrade prevention
CONFIG_BOOT_SWAP_USING_MOVE=n
CONFIG_BOOT_UPGRADE_ONLY=y

CONFIG_BOOT_BOOTSTRAP=n
CONFIG_PM=n

Expand Down

0 comments on commit 1bfc96b

Please sign in to comment.