zephyr/boards
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
..
arc board: nsim: cleanup ARCv3 haps setup 2024-01-30 12:36:24 +01:00
arm boards: arm: rak5010_nrf52840: update modem dts changes 2024-02-06 18:55:19 +01:00
arm64 dts: mimx93_evk_a55: avoid conflict with Ethos-U NPU reserved memory 2024-02-06 19:36:03 +01:00
common linkserver: nxp: enable linkserver to be the default runner 2024-01-05 14:29:18 +01:00
mips boards: Use unique names for boards in the YAML files 2023-11-24 09:26:28 +01:00
nios2 arch: _PrepC -> z_prep_c 2023-12-11 18:23:52 -05:00
posix subsys/dfu/boot: Fix image confirm for Direct XIP 2024-02-06 21:00:36 +01:00
riscv boards: riscv: add nrf54h20pdk_nrf54h20_cpuppr 2024-02-02 16:40:11 +01:00
shields drivers: display: ili9xxx: convert to MIPI DBI API 2024-01-31 16:01:45 +00:00
sparc soc/gr716a: Enable SPIMCTRL support on LEON GR716A 2024-02-01 14:06:38 +01:00
x86 boards: x86: more stack space for qemu_x86_tiny@768 2024-02-01 00:32:57 -06:00
xtensa drivers: display: ili9xxx: convert to MIPI DBI API 2024-01-31 16:01:45 +00:00
CMakeLists.txt cmake: enable -Wshadow partially for in-tree code 2023-08-22 11:39:58 +02:00
deprecated.cmake boards: deprecated: Remove boards deprecated pre-Zephyr 2.7 2024-01-03 10:19:06 +01:00
index.rst doc: boards: Link to the board porting guide 2023-09-29 16:29:49 +02:00
Kconfig config: qemu: Add QEMU_EXTRA_FLAGS config option 2023-10-20 15:03:55 +02:00