Skip to content

Commit

Permalink
add initial bringup script
Browse files Browse the repository at this point in the history
  • Loading branch information
tcsullivan committed Oct 29, 2024
1 parent c44a8f4 commit 367c08a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bringup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
#
# Run this script with a newly manufactured tRacket board connected to give it
# a unique storage encryption key and flash the latest firmware.
# The "tail" command will show the board's UUID; this needs to be added to the
# server for device registration.

dd if=/dev/urandom of=hmac_key bs=1 count=32
echo "BURN" | pio pkg exec -- espefuse.py --port /dev/ttyACM0 burn_key BLOCK4 hmac_key HMAC_UP
rm hmac_key
pio run -t upload
tail -F /dev/ttyACM0

0 comments on commit 367c08a

Please sign in to comment.