diff options
| author | Olivier Hériveaux <[email protected]> | 2024-09-23 16:11:45 +0200 |
|---|---|---|
| committer | Olivier Hériveaux <[email protected]> | 2024-09-23 16:11:45 +0200 |
| commit | 05d453bfd81bce49d541b2eeee3a8788e5a5fd7e (patch) | |
| tree | ea7cacf70c451b9261ac2c81235e20d07eeaf3f4 /docs/pages/bootloader.adoc | |
| parent | 3d6a270f30c45eaf394c8eb8bf182dd1a7ec2d7b (diff) | |
Fixed signature script in bootloader documentation
Diffstat (limited to 'docs/pages/bootloader.adoc')
| -rw-r--r-- | docs/pages/bootloader.adoc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/pages/bootloader.adoc b/docs/pages/bootloader.adoc index 3b0cdb182..a80e75c4c 100644 --- a/docs/pages/bootloader.adoc +++ b/docs/pages/bootloader.adoc | |||
| @@ -86,8 +86,7 @@ Then, to sign your firmware given a declaration of `FIRMWARE_DIR` and a firmware | |||
| 86 | 86 | ||
| 87 | [source, bash] | 87 | [source, bash] |
| 88 | ---- | 88 | ---- |
| 89 | shasum -a 512 -b $FIRMWARE_DIR/myfirmware > $SECRETS_DIR/message.txt | 89 | shasum -a 512 -b $FIRMWARE_DIR/myfirmware | head -c128 | xxd -p -r > $SECRETS_DIR/message.txt |
| 90 | cat $SECRETS_DIR/message.txt | dd ibs=128 count=1 | xxd -p -r > $SECRETS_DIR/message.txt | ||
| 91 | signify -S -s $SECRETS_DIR/key.sec -m $SECRETS_DIR/message.txt -x $SECRETS_DIR/message.txt.sig | 90 | signify -S -s $SECRETS_DIR/key.sec -m $SECRETS_DIR/message.txt -x $SECRETS_DIR/message.txt.sig |
| 92 | cp $FIRMWARE_DIR/myfirmware $FIRMWARE_DIR/myfirmware+signed | 91 | cp $FIRMWARE_DIR/myfirmware $FIRMWARE_DIR/myfirmware+signed |
| 93 | tail -n1 $SECRETS_DIR/message.txt.sig | base64 -d -i - | dd ibs=10 skip=1 >> $FIRMWARE_DIR/myfirmware+signed | 92 | tail -n1 $SECRETS_DIR/message.txt.sig | base64 -d -i - | dd ibs=10 skip=1 >> $FIRMWARE_DIR/myfirmware+signed |
