From 33d14b6ee37308d4973781a43e4c5c224fcb2d52 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 24 Aug 2021 22:59:10 +0800 Subject: [PATCH] add some timeouts after each phase, for the device to reboot --- tools/update_ci.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/update_ci.sh b/tools/update_ci.sh index 37681fa22..ca4bd0b27 100755 --- a/tools/update_ci.sh +++ b/tools/update_ci.sh @@ -1,13 +1,20 @@ -#!/bin/bash set -e +#!/bin/bash +set -e wget https://ci.betrusted.io/latest-ci/loader.bin -O /tmp/loader.bin ./usb_update.py -s /tmp/loader.bin rm /tmp/loader.bin +echo "waiting for device to reboot" +sleep 5 + wget https://ci.betrusted.io/latest-ci/xous.img -O /tmp/xous.img ./usb_update.py -k /tmp/xous.img rm /tmp/xous.img +echo "waiting for device to reboot" +sleep 5 + wget https://ci.betrusted.io/latest-ci/soc_csr.bin -O /tmp/soc_csr.bin ./usb_update.py -s /tmp/soc_csr.bin rm /tmp/soc_csr.bin