-
Notifications
You must be signed in to change notification settings - Fork 1.4k
doc: nrf: KMU provisioning while west flashing #23569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 043d97dc5a5e56e58508f77bf20e765e90db9052 more detailssdk-nrf:
Github labels
List of changed files detected by CI (1)
Outputs:ToolchainVersion: Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
You can find the documentation preview for this PR here. Preview links for modified nRF Connect SDK documents: https://ncsdoc.z6.web.core.windows.net/PR-23569/nrf/app_dev/device_guides/nrf54l/kmu_provision.html |
86d5854
to
696123b
Compare
696123b
to
d29e3a9
Compare
020d257
to
4a76db8
Compare
4a76db8
to
708dd1b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume that you will take in to account --erase
708dd1b
to
600e905
Compare
adds sections about new provisioning method. Signed-off-by: Mateusz Michalek <[email protected]>
600e905
to
043d97d
Compare
For MCUboot configurations, activating the ``SB_CONFIG_MCUBOOT_GENERATE_DEFAULT_KMU_KEYFILE`` Kconfig option at the sysbuild level allows to provision keys simultaneously with the flashing process. Provisioning step is triggered when you execute either ``west flash --recover`` or ``west flash --erase`` command. | ||
MCUboot uses the key file designated by the ``SB_CONFIG_BOOT_SIGNATURE_KEY_FILE`` option. | ||
|
||
At the end of the described process the :file:`keyfile.json` file is generated in the build directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to clarify:
keyfile.json is generated during build process (west build...
), when SB_CONFIG_SECURE_BOOT_GENERATE_DEFAULT_KMU_KEYFILE
and/or SB_CONFIG_MCUBOOT_GENERATE_DEFAULT_KMU_KEYFILE
is enabled. Keys are provisioned with west flash --recover/--erase
if keyfile,json exists.
You can find some details in PR description:
in sdk-nrf (added new Kconfigs and generating keyfile.json using west ncs-provision --dry-run
command during build process):
#22516
and in zephyr, support in west flash
to provision keys using keyfile.json:
nrfconnect/sdk-zephyr#2894
adds sections about new provisioning method.