From 367c08a28faeb25964c1e125b490c7e2e3b1cb76 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Tue, 29 Oct 2024 17:08:34 -0400 Subject: [PATCH] add initial bringup script --- bringup.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 bringup.sh diff --git a/bringup.sh b/bringup.sh new file mode 100755 index 0000000..ac5ac50 --- /dev/null +++ b/bringup.sh @@ -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 +