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