Skip to content

Commit 367c08a

Browse files
committed
add initial bringup script
1 parent c44a8f4 commit 367c08a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

bringup.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
#
3+
# Run this script with a newly manufactured tRacket board connected to give it
4+
# a unique storage encryption key and flash the latest firmware.
5+
# The "tail" command will show the board's UUID; this needs to be added to the
6+
# server for device registration.
7+
8+
dd if=/dev/urandom of=hmac_key bs=1 count=32
9+
echo "BURN" | pio pkg exec -- espefuse.py --port /dev/ttyACM0 burn_key BLOCK4 hmac_key HMAC_UP
10+
rm hmac_key
11+
pio run -t upload
12+
tail -F /dev/ttyACM0
13+

0 commit comments

Comments
 (0)