You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
samples: zephyr: smp_svr_mini_boot: Add 'swap using move' config
This commit adds a new sample configuration for the SMP server
mini boot sample that uses the swap using move mode of MCUboot.
This configuration is useful for testing and demonstrating the
functionality of the swap using move feature in a minimal setup.
Documentation has been updated with instructions on how to build
the sample with direct-xip mode or swap using move mode.
Signed-off-by: Michal Kozikowski <[email protected]>
Copy file name to clipboardExpand all lines: samples/zephyr/smp_svr_mini_boot/README.rst
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,12 @@ Overview
14
14
15
15
This sample shows how to configure MCUboot for secure boot and Device Firmware Update (DFU) capabilities using the Zephyr RTOS.
16
16
The MCUboot is configured to utilize hardware cryptography with the :ref:`ED25519 signature <ug_nrf54l_cryptography>`. Additionally, for nRF54L15 DK :ref:`Key Management Unit (KMU) <ug_nrf54l_developing_basics_kmu>` for secure key storage is used.
17
-
The setup uses LTO, direct-xip mode and disables non-essential functionalities to downsize the MCUboot non-volatile memory footprint.
17
+
The setup uses LTO and disables non-essential functionalities to downsize the MCUboot non-volatile memory footprint.
18
18
19
19
The SMP server sample is configured to support Bluetooth® LE and shell for the MCUmgr protocol, which facilitates image management and OS commands.
20
20
21
+
To achieve minimal size, direct-xip mode can be used, though you can build the sample with the swap using move mode as well.
22
+
21
23
Requirements
22
24
************
23
25
@@ -34,6 +36,9 @@ Building and running
34
36
35
37
For nRF54L15 DK, make sure you are building your project with the ``SB_CONFIG_MCUBOOT_GENERATE_DEFAULT_KMU_KEYFILE`` Kconfig option enabled.
36
38
39
+
For direct-xip mode, you must build the sample with the ``SB_CONFIG_MCUBOOT_MODE_DIRECT_XIP`` Kconfig option enabled.
40
+
For swap using move mode, use the ``SB_CONFIG_MCUBOOT_MODE_SWAP_USING_MOVE`` Kconfig option instead.
41
+
37
42
You will notice that the size of MCUboot is significantly reduced in comparison to the default configuration.
38
43
39
44
If you are using command line, you must run the ``west flash --erase`` command to enable KMU provisioning.
0 commit comments