Skip to content

Commit ee07b9a

Browse files
committed
smp_svr: Enable boot preference persistance
Add additional region to keep the value of boot preference across reboots. Ref: NCSDK-35479 Signed-off-by: Tomasz Chyrowicz <[email protected]>
1 parent 6139eec commit ee07b9a

File tree

2 files changed

+11
-29
lines changed

2 files changed

+11
-29
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Enable boot requests through retained memory.
2-
CONFIG_RETAINED_MEM=y
3-
CONFIG_RETENTION=y
1+
# Enable boot requests.
2+
CONFIG_CRC=y
43
CONFIG_NRF_MCUBOOT_BOOT_REQUEST=y

samples/zephyr/subsys/mgmt/mcumgr/smp_svr/sysbuild/nrf54h20dk_nrf54h20_memory_map_requests.dtsi

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -53,37 +53,20 @@
5353
cpurad_slot1_partition: partition@152000 {
5454
reg = <0x152000 DT_SIZE_K(328)>;
5555
};
56+
57+
boot_request: partition@1ad000 {
58+
reg = <0x1ad000 16>;
59+
};
60+
61+
boot_request_backup: partition@1ad010 {
62+
reg = <0x1ad010 16>;
63+
};
5664
};
5765
};
5866

5967
/ {
6068
chosen {
6169
nrf,bootloader-request = &boot_request;
62-
};
63-
};
64-
65-
/ {
66-
reserved-memory {
67-
cpuapp_retained_mem: memory@e1ad000 {
68-
compatible = "zephyr,memory-region";
69-
reg = <0xe1ad000 DT_SIZE_K(4)>;
70-
zephyr,memory-region = "RetainedMem";
71-
status = "okay";
72-
73-
retainedmem {
74-
compatible = "zephyr,retained-ram";
75-
status = "okay";
76-
#address-cells = <1>;
77-
#size-cells = <1>;
78-
79-
boot_request: boot_request@0 {
80-
compatible = "zephyr,retention";
81-
status = "okay";
82-
reg = <0x0 16>;
83-
prefix = [0B 01];
84-
checksum = <4>;
85-
};
86-
};
87-
};
70+
nrf,bootloader-request-backup = &boot_request_backup;
8871
};
8972
};

0 commit comments

Comments
 (0)