-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from anhu/maxq_init
Add initialization script for maxq10xx.
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
|
||
# Please set the correct path | ||
MAXQ_SDK=/path/to/maxq10xx-sdk | ||
|
||
# Nothing below here needs to be changed. | ||
|
||
MAXQ_TOOLBOX=${MAXQ_SDK}/maxq10xx-toolbox/bin | ||
|
||
# Zeroize the onboard NV Memory. | ||
${MAXQ_TOOLBOX}/maxq10xx_admin-auth | ||
${MAXQ_TOOLBOX}/maxq10xx_set-state 4 | ||
${MAXQ_TOOLBOX}/maxq10xx_set-state 3 | ||
sleep 2 | ||
${MAXQ_TOOLBOX}/maxq10xx_get-status | ||
|
||
# Setup Object ID 1004 to have an ECDSA secp256r1 keypair. | ||
${MAXQ_TOOLBOX}/maxq10xx_admin-auth | ||
${MAXQ_TOOLBOX}/maxq10xx_create-key --key-pair 1004 192 x=rwdgx:x=rwdgx:x=rwdgx | ||
${MAXQ_TOOLBOX}/maxq10xx_key-gen 1004 --ecc SECP256R1 DATASIGNATURE ECDSA-SHA256 NONE NONE | ||
|