serial string removal and dfu changes for su1

This commit is contained in:
Ross Owen
2012-07-31 15:43:52 +01:00
parent 71885fcdb7
commit 69fb8e42d5
13 changed files with 1848 additions and 54 deletions

View File

@@ -0,0 +1,45 @@
#! /bin/bash
################################################################################
#find out were we are running from so we only exec this programs
PROGDIR=`dirname $0`
#setup environment
export DYLD_LIBRARY_PATH=$PWD:$DYLD_LIBRARY_PATH
#check if we were given a binary name, otherwise use the default one
updatebin=testbin
if [ "$1" != "" ]; then
updatebin=$1
fi
#basic check for binary
if [ ! -f $updatebin ]; then
echo "FATAL: can't find update binary named $updatebin"
exit 1
else
using $updatebin
fi
#-------------------------------------------------------------------------------
for i in 1 2 3 4 5 6 7 8 9 10; do
echo ""
echo DFU test iteration $i
echo ---------------------
echo ""
echo "*** DFU revert to factory ***"
$PROGDIR/xmosdfu --revertfactory
sleep 2
echo ""
echo "*** DFU download new firmware ***"
$PROGDIR/xmosdfu --download $updatebin
sleep 2
echo ""
echo "*** DFU upload existing firmware ***"
$PROGDIR/xmosdfu --upload $updatebin
sleep 2
echo ""
done
echo DFU Test Complete!