zephyr/boards/posix
Ben Marsh 2419274073 subsys/dfu/boot: Fix image confirm for Direct XIP
Previously the boot_write_img_confirmed() function used the MCUboot
public API function boot_set_confirmed(), but this function is hardcoded
to set the confirmed flag of slot 0. This works for MCUboot swap modes
but not for Direct XIP, where applications can execute out of secondary
slots.

This commit changes boot_write_img_confirmed() to instead use
boot_set_next() which sets the confirmed flag for a given flash area
and works with Direct XIP.

DT_CHOSEN(zephyr_code_partition) is used to get the current partition.
The zephyr,code-partition chosen node must be defined.

This commit also adds the zephyr,code-partition chosen node to the
native_sim devicetree to allow the tests under tests/subsys/dfu to
build for this target.

Signed-off-by: Ben Marsh <ben.marsh@helvar.com>
2024-02-06 21:00:36 +01:00
..
common boards native: Add extra arguments through kconfig 2024-01-19 10:33:30 +01:00
doc docs: posix: fix typo in description 2024-01-14 00:38:11 +01:00
native_posix board native_posix: Define required source standard macros 2024-01-26 07:48:55 -05:00
native_sim subsys/dfu/boot: Fix image confirm for Direct XIP 2024-02-06 21:00:36 +01:00
nrf_bsim soc: arm: nordic_nrf: move Kconfig.peripherals to common folder 2024-02-02 16:40:11 +01:00
index.rst docs: boards: fix capitalization of board architectures 2023-07-06 09:15:59 +02:00