summaryrefslogtreecommitdiff
path: root/ao-bringup
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2016-05-06 18:13:12 -0600
committerBdale Garbee <bdale@gag.com>2016-05-06 18:13:12 -0600
commit4c20fdfa543059739b756171b991d430789cded1 (patch)
treef39e6c729364211bf0570c459c37b576ecf9faa9 /ao-bringup
parente58dd78bcb749315f84168c83a74cf80851bf815 (diff)
parent2f0c977c747824d0798550ac64eceb1d66c50efd (diff)
Merge branch 'branch-1.6' into debian
Diffstat (limited to 'ao-bringup')
-rwxr-xr-xao-bringup/cal-freq2
-rwxr-xr-xao-bringup/test-telemega1
-rwxr-xr-xao-bringup/turnon_chaoskey33
3 files changed, 35 insertions, 1 deletions
diff --git a/ao-bringup/cal-freq b/ao-bringup/cal-freq
index d3d9dc95..40c25ce8 100755
--- a/ao-bringup/cal-freq
+++ b/ao-bringup/cal-freq
@@ -10,7 +10,7 @@ case $# in
;;
esac
-../ao-tools/ao-cal-freq/ao-cal-freq --dev=$dev
+../ao-tools/ao-cal-freq/ao-cal-freq --tty=$dev
case $? in
0)
calline=`./get-radio-cal $dev`
diff --git a/ao-bringup/test-telemega b/ao-bringup/test-telemega
index b801b20c..0ac475a3 100755
--- a/ao-bringup/test-telemega
+++ b/ao-bringup/test-telemega
@@ -60,6 +60,7 @@ ao-list | while read product serial dev; do
echo""
echo "$PRODUCT-v$VERSION" serial "$serial" is ready to ship
+ echo "\007"
ret=0
;;
esac
diff --git a/ao-bringup/turnon_chaoskey b/ao-bringup/turnon_chaoskey
new file mode 100755
index 00000000..8c20ebaa
--- /dev/null
+++ b/ao-bringup/turnon_chaoskey
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+if [ -x /usr/bin/dfu-util ]; then
+ DFU_UTIL=/usr/bin/dfu-util
+else
+ echo "Can't find dfu-util! Aborting."
+ exit 1
+fi
+
+if [ -x /usr/bin/ao-usbload ]; then
+ USBLOAD=/usr/bin/ao-usbload
+else
+ echo "Can't find ao-usbload! Aborting."
+ exit 1
+fi
+
+VERSION=1.0
+PRODUCT=ChaosKey
+
+echo "ChaosKey v$VERSION Turn-On and Calibration Program"
+echo "Copyright 2015 by Keith Packard. Released under GPL v2"
+echo
+echo "Expectations:"
+echo "\tChaosKey v$VERSION powered from USB"
+echo
+
+$DFU_UTIL -a 0 -s 0x08000000:leave -D ../src/chaoskey-v$VERSION/flash-loader/chaoskey-v$VERSION*.bin || exit 1
+
+sleep 2
+
+$USBLOAD --serial=1 ../src/chaoskey-v$VERSION/chaoskey-v$VERSION*.ihx || exit 1
+
+exit $?