aboutsummaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/run.sh b/run.sh
index d6243e2..3c4454a 100755
--- a/run.sh
+++ b/run.sh
@@ -5,20 +5,24 @@ set -e
echo "##########################################"
echo "# Flashing bootloader"
echo "##########################################"
-./bin/flash-target bootloader
+./bin/flash-target firmware/bootloader
echo "##########################################"
-echo "# Flashing temporary HSM firmware"
+echo "# Flashing temporary cli-test HSM firmware"
echo "##########################################"
./bin/flash-target firmware/cli-test
./bin/reset
+
+echo "##########################################"
+echo "# Sleeping after reset"
+echo "##########################################"
sleep 5
echo "##########################################"
echo "# Uploading bitstream"
echo "##########################################"
-./bin/cryptech_upload --fpga --username wheel
+./bin/cryptech_upload --fpga --username ct
echo "##########################################"
echo "# Programming AVR"
@@ -28,7 +32,7 @@ avrdude -c usbtiny -p attiny828 -U flash:w:firmware/tamper.hex
echo "##########################################"
echo "# Flashing official STM32 firmware"
echo "##########################################"
-./bin/cryptech_upload --firmware --username wheel
+./bin/cryptech_upload --firmware --username ct
./bin/reset
sleep 15