From 47cdf0bcbf1e69388214f1b396bcc0af63e48888 Mon Sep 17 00:00:00 2001 From: Arno Schoenmakers <schoenmakers@astron.nl> Date: Wed, 11 Feb 2009 10:33:08 +0000 Subject: [PATCH] bug 1285: Removed firmware version check directly after flash as this hangs --- MAC/APL/APLCommon/src/swlevel | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/MAC/APL/APLCommon/src/swlevel b/MAC/APL/APLCommon/src/swlevel index 9c5bd8a0c10..2fc0de1be88 100755 --- a/MAC/APL/APLCommon/src/swlevel +++ b/MAC/APL/APLCommon/src/swlevel @@ -64,14 +64,10 @@ selectImage1() boardHex=`echo 16 o $board p q | dc` let version=`sudo ${BINDIR}/../sbin/rsuctl3 -m 10:fa:00:00:0$boardHex:00 -qV 2>&1 | grep BP | cut -d':' -f2 | sed 's/ //g' | cut -d'.' -f1` # if board has reset itself to image 0, load image 1 again - if [ $version -le 1 ]; then + if [ $version -le 4 ]; then echo "Loading image 1 on RSPboard $board ..." - sudo ${BINDIR}/../sbin/rsuctl3 -m 10:fa:00:00:0$boardHex:00 -q -x -p 1 1>/dev/null 2>&1 - sleep 3 + sudo ${BINDIR}/../sbin/rsuctl3-reset -m 10:fa:00:00:0$boardHex:00 -q -x -p 1 1>/dev/null 2>&1 fi - # show version of the firmware that is loaded. - version=`sudo ${BINDIR}/../sbin/rsuctl3 -m 10:fa:00:00:0$boardHex:00 -qV 2>&1 | grep BP | cut -d':' -f2 | sed 's/ //g'` - echo $board" : "$version let board=$board+1 done } -- GitLab