File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ west flash
113113To build MCUboot alongside the app and produce a signed application image:
114114
115115``` shell
116- west build -p -b esp32s3_devkitc/esp32s3/procpu OpenAstroFocuser/app --sysbuild
116+ west build -p -b esp32s3_devkitc/esp32s3/procpu OpenAstroFocuser/app --sysbuild -S mcuboot
117117```
118118
119119Flash MCUboot first, then the application image:
@@ -126,7 +126,7 @@ west flash -d build/app
126126Notes:
127127
128128- The signed application artifact is ` build/app/zephyr/zephyr.signed.bin ` .
129- - This repo uses MCUboot's default test key for development; replace it for production.
129+ - By default, sysbuild uses MCUboot's development/ test key from the ` mcuboot ` module; override ` SB_CONFIG_BOOT_SIGNATURE_KEY_FILE ` for production.
130130
131131Pass ` -DEXTRA_CONF_FILE=debug.conf ` for verbose logging or switch ` -b ` to any supported board/overlay.
132132
Original file line number Diff line number Diff line change @@ -7,12 +7,6 @@ CONFIG_STD_CPP20=y
77CONFIG_GLIBCXX_LIBCPP=y
88CONFIG_MOONLITE=y
99
10- # Build as an MCUboot-chainloaded image and sign it.
11- CONFIG_BOOTLOADER_MCUBOOT=y
12- # ESP32 defaults to unsigned images when MCUboot is enabled; override so signing runs.
13- CONFIG_MCUBOOT_GENERATE_UNSIGNED_IMAGE=n
14- CONFIG_MCUBOOT_SIGNATURE_KEY_FILE="bootloader/mcuboot/root-rsa-2048.pem"
15-
1610# Provide heap storage for std::string and other dynamic allocations.
1711CONFIG_HEAP_MEM_POOL_SIZE=4096
1812
Original file line number Diff line number Diff line change 1+ name : mcuboot
2+ append :
3+ SB_EXTRA_CONF_FILE : sysbuild-mcuboot.conf
Original file line number Diff line number Diff line change 1+ # Enable MCUboot (sysbuild) and signed images.
2+
3+ SB_CONFIG_BOOTLOADER_MCUBOOT=y
4+
5+ # ESP32* MCUboot configs default to no signatures; override to RSA.
6+ SB_CONFIG_BOOT_SIGNATURE_TYPE_RSA=y
7+
8+ # The sysbuild bootloader Kconfig provides a default RSA key path from the MCUboot module.
9+ # For production, override SB_CONFIG_BOOT_SIGNATURE_KEY_FILE with an absolute path to your own PEM.
Original file line number Diff line number Diff line change 1- # Sysbuild configuration for OpenAstroFocuser
1+ # Sysbuild configuration for OpenAstroFocuser.
22#
3- # Builds MCUboot alongside the application and signs the application image so
4- # it can be chain-loaded by MCUboot.
5-
6- SB_CONFIG_BOOTLOADER_MCUBOOT=y
7-
8- # ESP32* MCUboot configs default to no signatures; override to RSA.
9- SB_CONFIG_BOOT_SIGNATURE_TYPE_RSA=y
10-
11- # By default, sysbuild will use the MCUboot test key shipped with the
12- # MCUboot module when RSA is selected.
13- # For production, set SB_CONFIG_BOOT_SIGNATURE_KEY_FILE to an absolute path
14- # to your own PEM key.
3+ # Keep this file empty by default.
4+ #
5+ # To build with MCUboot + signing, use the Zephyr snippet:
6+ #
7+ # west build -S mcuboot --sysbuild [...]
You can’t perform that action at this time.
0 commit comments