diff --git a/tools/factory_reset.ps1 b/tools/factory_reset.ps1 index c81993431..be7e9b50e 100644 --- a/tools/factory_reset.ps1 +++ b/tools/factory_reset.ps1 @@ -10,35 +10,35 @@ if ($decision -eq 0) { Exit } -Invoke-WebRequest https://ci.betrusted.io/latest/loader.bin -OutFile loader.bin +Invoke-WebRequest https://ci.betrusted.io/releases/latest/loader.bin -OutFile loader.bin python usb_update.py -l loader.bin -Remove-Item /tmp/loader.bin +Remove-Item loader.bin Write-Output "waiting for device to reboot" Start-Sleep 5 -Invoke-WebRequest https://ci.betrusted.io/latest/xous.img -OutFile xous.img +Invoke-WebRequest https://ci.betrusted.io/releases/latest/xous.img -OutFile xous.img python usb_update.py -k xous.img Remove-Item xous.img Write-Output "waiting for device to reboot" Start-Sleep 5 -Invoke-WebRequest https://ci.betrusted.io/latest/soc_csr.bin -OutFile soc_csr.bin +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/latest/ec_fw.bin -OutFile ec_fw.bin +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 soc_csr.bin +Remove-Item ec_fw.bin Write-Output "waiting for device to reboot" Start-Sleep 5 -Invoke-WebRequest https://ci.betrusted.io/latest/wf200_fw.bin -OutFile wf200_fw.bin +Invoke-WebRequest https://ci.betrusted.io/releases/latest/wf200_fw.bin -OutFile wf200_fw.bin python usb_update.py -w wf200_fw.bin Remove-Item wf200_fw.bin