zephyr/subsys
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
..
bindesc subsys/bindesc: Fix kconfig dependency 2023-11-20 12:02:48 +01:00
bluetooth Bluetooth: BAP: Broadcast source enabling state transition fix 2024-02-06 09:51:16 +01:00
canbus drivers: can: remove run-time RTR filtering, add build-time RTR filter 2024-01-21 11:00:31 +01:00
console includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
debug debug: gdbstub: kconfig: Add GDBSTUB_TRACE config option 2023-12-06 17:52:18 +00:00
demand_paging kernel: mm: only include demand_paging.h if needed 2023-11-23 10:01:45 +01:00
dfu subsys/dfu/boot: Fix image confirm for Direct XIP 2024-02-06 21:00:36 +01:00
disk subsys/disk: No need of runtime intialization for disk access part 2023-03-13 18:34:40 +00:00
dsp zdsp: add ARC DSPLIB backend for zdsp 2023-02-21 15:06:06 +01:00
emul emul: Add support for non-bus emulators 2024-01-12 09:59:31 +01:00
fb fb: cfb: Remove unused value 2023-08-14 18:08:59 +00:00
fs fs: Add Kconfig key for init priority 2024-01-24 09:22:23 +00:00
input input: keymap: use the non _OR_NULL DEVICE_DT_GET variant 2024-01-25 16:02:16 +00:00
ipc ipc: Drain pending work items before deregistering endpoint 2024-02-06 14:22:36 +01:00
jwt random: Rename random header 2023-10-10 14:23:50 +03:00
llext llext: Support memory protection 2024-02-02 13:06:28 -05:00
logging log: net: Convert syslog network transmitter to use sockets 2024-02-01 10:22:47 -06:00
lorawan lorawan: services: add Remote Multicast Setup 2024-01-30 14:14:05 +00:00
mem_mgmt mem_mgmt: Add a memory attributes memory allocator 2023-11-27 19:56:48 +01:00
mgmt ec_host_cmd: improve handling IN_PROGRESS commands 2024-01-31 10:34:47 -06:00
modbus modbus: Remove mode reset in modbus_disable function 2024-01-25 16:00:38 +00:00
modem modem: chat: Implement TRANSMIT_IDLE event 2024-01-25 11:22:42 +01:00
net net: buf: add max allocation size to allocation info 2024-02-06 12:56:37 +01:00
pm pm: device_runtime: Simplify runtime_enable 2024-02-06 09:52:38 +01:00
portability kernel: Introduce a way to specify minimum system heap size 2023-12-20 11:01:42 +01:00
random syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
retention retention: Increase read size variables to 16-bit 2023-12-14 19:05:22 +00:00
rtio syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
sd sd: update comment to reference 'SD host controller specification' 2024-01-25 20:13:25 +01:00
sensing sensing: add rtio implement for sensing subsys 2024-01-24 10:32:10 +01:00
settings settings: shell: Fix possible buffer overflow 2023-12-15 14:43:50 +01:00
shell shell: backends: fix for async shell selection 2024-02-06 19:34:15 +01:00
sip_svc subsystem: sip_svc: Reduce the max timeout to 1 second. 2023-09-15 09:26:49 +02:00
stats shell: do not enable subsystem/driver shell modules by default 2023-11-20 09:21:40 +01:00
storage storage: rename shadow variables 2023-08-22 11:39:58 +02:00
task_wdt task_wdt: start feeding hardware watchdog immediately after init 2024-01-02 09:52:13 +01:00
testsuite testsuite: ztest: fix doxygen warnings 2024-01-30 18:42:30 +01:00
timing subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
tracing tracing: sysview: Fix API name 2024-01-15 13:53:44 -05:00
usb usb: device_next: new USB Audio 2 implementation 2024-02-01 15:07:37 +01:00
zbus zbus: add priority boost feature 2024-01-04 09:41:54 +01:00
CMakeLists.txt drivers, subsys: sort the lists again, mark the blocks for checking 2023-11-13 09:41:05 +01:00
Kconfig llext: enable tristate Kconfig options 2024-01-11 10:26:04 -05:00