Update factory_reset.ps1

move soc update to top so we don't get resets from latest xous
This commit is contained in:
bunnie 2022-03-19 09:00:58 +08:00 committed by GitHub
parent eae61df786
commit d9f4f6d041
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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