mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
add a release updater for windows as well
This commit is contained in:
parent
ec64782f32
commit
2c3425d3fa
1 changed files with 46 additions and 0 deletions
46
tools/update_release.ps1
Normal file
46
tools/update_release.ps1
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
Write-Output "This script will update Xous and stage gateware and EC firmware for self-provisioning. No secrets will be erased."
|
||||
$title = 'Update to latest release'
|
||||
$question = 'Are you sure you want to proceed?'
|
||||
$choices = '&Yes', '&No'
|
||||
|
||||
$decision = $Host.UI.PromptForChoice($title, $question, $choices, 1)
|
||||
if ($decision -eq 0) {
|
||||
Write-Host 'confirmed'
|
||||
} else {
|
||||
Exit
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
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/releases/latest/soc_csr.bin -OutFile soc_csr.bin
|
||||
python usb_update.py -s soc_csr.bin
|
||||
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
|
||||
|
||||
Write-Output "waiting for device to reboot"
|
||||
Start-Sleep 5
|
||||
|
||||
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
|
||||
|
||||
Write-Output "IMPORTANT: you must select 'Install gateware update' on the Precursor device to update the SoC."
|
||||
Write-Output "IMPORTANT: you must also run 'ecup auto' to update the EC with the staged firmware objects."
|
||||
Loading…
Reference in a new issue