Open robin-nitrokey opened 1 month ago
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
To replace nrfutil, we should add more NRF52 bootloader functionality to nitrokey-sdk-py and/or pynitrokey.