Skip to content
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

nk3: Add more nrf52 bootloader functionality #570

Open
1 task
robin-nitrokey opened this issue Sep 19, 2024 · 1 comment
Open
1 task

nk3: Add more nrf52 bootloader functionality #570

robin-nitrokey opened this issue Sep 19, 2024 · 1 comment

Comments

@robin-nitrokey
Copy link
Member

To replace nrfutil, we should add more NRF52 bootloader functionality to nitrokey-sdk-py and/or pynitrokey.

  • create and sign firmware image
@daringer
Copy link
Collaborator

from the nk3-fw repo:

nrfutil keys generate ${privkey}
nrfutil keys display --key pk --format code ${privkey} --out_file ${pubkey}
nrfutil keys display --key pk --format pem ${privkey} --out_file ${pubkey_pem}
nrfutil dfu usb-serial -pkg $UPDATE_FILENAME -p $SERIAL_PORT
nrfutil pkg generate --hw-version $HW_VERSION --application-version $APP_VERSION --application $APP_HEX_FILE --sd-req $SD_VERSION --key-file $KEY_PATH --app-boot-validation VALIDATE_ECDSA_P256_SHA256 $OUTPUT_FILE
nrfutil pkg generate --hw-version $HW_VERSION --bootloader-version $BOOTLOADER_VERSION --bootloader $BOOTLOADER_HEX_FILE --sd-req $SD_VERSION --key-file $KEY_PATH  $OUTPUT_FILE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants