From eae61df7863caaab9f1d6c48c98bc9c0e06ff338 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sat, 19 Mar 2022 08:58:41 +0800 Subject: [PATCH] Update factory_reset.sh move soc update to the top to avoid wdt resets --- tools/factory_reset.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/factory_reset.sh b/tools/factory_reset.sh index a93b7fa7e..83b37410b 100755 --- a/tools/factory_reset.sh +++ b/tools/factory_reset.sh @@ -29,6 +29,13 @@ else LOCALE="" fi +wget https://ci.betrusted.io/$REVISION/soc_csr.bin -O /tmp/soc_csr.bin +./usb_update.py --soc /tmp/soc_csr.bin --force +rm /tmp/soc_csr.bin + +echo "waiting for device to reboot" +sleep 5 + wget https://ci.betrusted.io/$REVISION/loader.bin -O /tmp/loader.bin ./usb_update.py -l /tmp/loader.bin rm /tmp/loader.bin @@ -43,13 +50,6 @@ rm /tmp/xous.img echo "waiting for device to reboot" sleep 5 -wget https://ci.betrusted.io/$REVISION/soc_csr.bin -O /tmp/soc_csr.bin -./usb_update.py --soc /tmp/soc_csr.bin --force -rm /tmp/soc_csr.bin - -echo "waiting for device to reboot" -sleep 5 - wget https://ci.betrusted.io/$REVISION/ec_fw.bin -O /tmp/ec_fw.bin ./usb_update.py -e /tmp/ec_fw.bin rm /tmp/ec_fw.bin