projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add telemetrum v3.0 firmware to release
[fw/altos]
/
ao-bringup
/
turnon_chaoskey
diff --git
a/ao-bringup/turnon_chaoskey
b/ao-bringup/turnon_chaoskey
index 8c20ebaa83854a450f50a6910e07c7e9f3410823..9ad809122bd847139239ebc77d10b56a1886c96f 100755
(executable)
--- a/
ao-bringup/turnon_chaoskey
+++ b/
ao-bringup/turnon_chaoskey
@@
-1,14
+1,14
@@
#!/bin/sh
#!/bin/sh
-if [ -x
/usr/bin/dfu-util
]; then
- DFU_UTIL=
/usr/bin/dfu-util
+if [ -x
`which dfu-util`
]; then
+ DFU_UTIL=
`which dfu-util`
else
echo "Can't find dfu-util! Aborting."
exit 1
fi
else
echo "Can't find dfu-util! Aborting."
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
else
echo "Can't find ao-usbload! Aborting."
exit 1
@@
-24,10
+24,17
@@
echo "Expectations:"
echo "\tChaosKey v$VERSION powered from USB"
echo
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 3
+
+./test-chaoskey
exit $?
exit $?