From d9f4f6d041a0d3785c7c769fc6051f80d0e16006 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sat, 19 Mar 2022 09:00:58 +0800 Subject: [PATCH] Update factory_reset.ps1 move soc update to top so we don't get resets from latest xous --- tools/factory_reset.ps1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/factory_reset.ps1 b/tools/factory_reset.ps1 index 1e14ef449..1660c195a 100644 --- a/tools/factory_reset.ps1 +++ b/tools/factory_reset.ps1 @@ -13,12 +13,19 @@ if ($decision -eq 0) { Exit } +Invoke-WebRequest https://ci.betrusted.io/releases/latest/soc_csr.bin -OutFile soc_csr.bin +python usb_update.py --soc soc_csr.bin --force +Remove-Item soc_csr.bin + +Write-Output "waiting for device to reboot" +Start-Sleep 5 + Invoke-WebRequest https://ci.betrusted.io/releases/latest/loader.bin -OutFile loader.bin python usb_update.py -l loader.bin Remove-Item loader.bin Write-Output "waiting for device to reboot" -Start-Sleep 5 +Start-Sleep 4 Invoke-WebRequest https://ci.betrusted.io/releases/latest/xous-$LOCALE.img -OutFile xous.img python usb_update.py -k xous.img @@ -27,13 +34,6 @@ Remove-Item xous.img Write-Output "waiting for device to reboot" Start-Sleep 5 -Invoke-WebRequest https://ci.betrusted.io/releases/latest/soc_csr.bin -OutFile soc_csr.bin -python usb_update.py --soc soc_csr.bin --force -Remove-Item soc_csr.bin - -Write-Output "waiting for device to reboot" -Start-Sleep 5 - Invoke-WebRequest https://ci.betrusted.io/releases/latest/ec_fw.bin -OutFile ec_fw.bin python usb_update.py -e ec_fw.bin Remove-Item ec_fw.bin