To Reproduce
Best to reproduce on smp_svr sample as it has mcuboot ready configuration
Steps to reproduce the behavior, assuming running ../ from zephyr repo clone
Prepare smp_svr build with menuconfig
west build -b nrf52840dk_nrf52840 --build-dir smp_svr zephyr/samples/subsys/mgmt/mcumgr/smp_svr/ -t menuconfig
Change following Kconfig options:
CONFIG_MCUBOOT_SIGNATURE_KEY_FILE=bootloader/mcuboot/root-rsa-2048.pemCONFIG_MCUBOOT_GENERATE_CONFIRMED_IMAGE=y
and close Kconfig
Error: no such option: --confirm
FATAL ERROR: command exited with status 2: /.local/bin/imgtool sign --version 0.0.0+0 --align 4 --header-size 512 --slot-size 421888 --key /bootloader/mcuboot/root-rsa-2048.pem --pad --confirm /smp_svr/zephyr/zephyr.bin /smp_svr/zephyr/zephyr.signed.confirmed.bin
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /.local/bin/cmake --build /smp_svr
**Expected behavior**
Build signed and confirmed image.
**Impact**
Annoyance that provided Kconfig options does not behave as described.
**Environment (please complete the following information):**
- OS: Linux
- Toolchain zephyr-sdk-0.11.3
- Commit SHA zephyrproject-rtos/zephyr:4cf1d4380ed9d83b5f0aed08cec441d414834040
The --confirm flag exists since the alphas of 1.6.0, which happened in April. Any reasonable recent version should work, so pip install --upgrade imgtool might be needed.
Describe the bug According to the documentation to following Kconfig options: https://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_MCUBOOT_SIGNATURE_KEY_FILE.html#cmdoption-arg-CONFIG_MCUBOOT_SIGNATURE_KEY_FILE https://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_MCUBOOT_GENERATE_CONFIRMED_IMAGE.html?highlight=config_mcuboot#cmdoption-arg-CONFIG_MCUBOOT_GENERATE_CONFIRMED_IMAGE It should be possible to build signed and confirmed image in one step. It does not work, build fails.
To Reproduce Best to reproduce on smp_svr sample as it has mcuboot ready configuration Steps to reproduce the behavior, assuming running ../ from zephyr repo clone
west build -b nrf52840dk_nrf52840 --build-dir smp_svr zephyr/samples/subsys/mgmt/mcumgr/smp_svr/ -t menuconfig
CONFIG_MCUBOOT_SIGNATURE_KEY_FILE=bootloader/mcuboot/root-rsa-2048.pem
CONFIG_MCUBOOT_GENERATE_CONFIRMED_IMAGE=y
and close Kconfigwest build --build-dir smp_svr
Error: no such option: --confirm FATAL ERROR: command exited with status 2:/.local/bin/imgtool sign --version 0.0.0+0 --align 4 --header-size 512 --slot-size 421888 --key /bootloader/mcuboot/root-rsa-2048.pem --pad --confirm /smp_svr/zephyr/zephyr.bin /smp_svr/zephyr/zephyr.signed.confirmed.bin
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /.local/bin/cmake --build /smp_svr