Skip to content

Commit 4535a04

Browse files
committed
mcuboot: generate signed images
1 parent 25a7a20 commit 4535a04

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ Use the following command to build, sign and flash the application (please adapt
6767

6868
```
6969
west build -b nucleo_l4a6zg path/to/mender-stm32l4a6-zephyr-example
70-
west sign -t imgtool -- --key $HOME/zephyrproject/bootloader/mcuboot/root-rsa-2048.pem --version $(head -n1 path/to/mender-stm32l4a6-zephyr-example/VERSION.txt)
7170
west flash --hex-file build/zephyr/zephyr.signed.hex
7271
```
7372

@@ -127,7 +126,6 @@ Change `VERSION.txt` file to `0.2`, rebuild and sign the firmware using the foll
127126

128127
```
129128
west build -b nucleo_l4a6zg path/to/mender-stm32l4a6-zephyr-example
130-
west sign -t imgtool -- --key $HOME/zephyrproject/bootloader/mcuboot/root-rsa-2048.pem --version $(head -n1 path/to/mender-stm32l4a6-zephyr-example/VERSION.txt)
131129
```
132130

133131
Then create a new artifact using the following command line:

prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=16384
8989
CONFIG_MBEDTLS_SERVER_NAME_INDICATION=y
9090

9191
# MCUboot
92-
CONFIG_MCUBOOT_GENERATE_UNSIGNED_IMAGE=y
92+
CONFIG_MCUBOOT_SIGNATURE_KEY_FILE="bootloader/mcuboot/root-rsa-2048.pem"
9393

9494
# NVS
9595
CONFIG_NVS_LOG_LEVEL_ERR=y

0 commit comments

Comments
 (0)