X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=ao-bringup%2Fturnon_chaoskey;h=d710e5ff19a89fda20da27b6f86c47372cf4f137;hb=f517aa5e042af8dd7fd36be47e4b196f212e79b0;hp=8c20ebaa83854a450f50a6910e07c7e9f3410823;hpb=afba05c41f30c9273668d5ed71e0dc8c1ca53141;p=fw%2Faltos diff --git a/ao-bringup/turnon_chaoskey b/ao-bringup/turnon_chaoskey index 8c20ebaa..d710e5ff 100755 --- a/ao-bringup/turnon_chaoskey +++ b/ao-bringup/turnon_chaoskey @@ -7,8 +7,8 @@ else exit 1 fi -if [ -x /usr/bin/ao-usbload ]; then - USBLOAD=/usr/bin/ao-usbload +if [ -x `which ao-usbload` ]; then + USBLOAD=`which ao-usbload` else echo "Can't find ao-usbload! Aborting." exit 1 @@ -24,10 +24,17 @@ 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 +FLASH_FILE=~/altusmetrumllc/Binaries/chaoskey-v1.0-all-*.bin +#ALTOS_FILE=~/altusmetrumllc/Binaries/chaoskey-v1.0-*.elf -sleep 2 +$DFU_UTIL -a 0 -s 0x08000000:leave -D $FLASH_FILE || true -$USBLOAD --serial=1 ../src/chaoskey-v$VERSION/chaoskey-v$VERSION*.ihx || exit 1 +#sleep 2 + +#$USBLOAD --serial=1 $ALTOS_FILE || exit 1 + +sleep 1 + +./test-chaoskey exit $?