Files
mckero 2667e046e8 Emulator: multiboot slots from the page, flash controller, portable tests
flash controller: store ACR/OPTKEYR instead of swallowing them, which is what stopped the factory bootloader from starting

slots over the firmware's own serial protocol (0x0720 family); uvk5_socket/uvk5_testenv so a fresh checkout skips instead of failing; web UI slot table and Multiboot button; quick start, CONTRIBUTING, and stop tracking firmware images and radio dumps
2026-10-01 14:54:34 +08:00

10 lines
513 B
PowerShell

# Put the SPI flash image back to its known-good state.
#
# The firmware writes settings back into assets/flash.img (the PY25Q16 model
# flushes on exit), so a session can leave it changed. Stop the emulator first:
# a running QEMU holds the old image in memory and overwrites the file on exit.
$ErrorActionPreference = 'Stop'
$root = Join-Path $PSScriptRoot '..'
Copy-Item "$PSScriptRoot\flash-base.img" (Join-Path $root 'assets\flash.img') -Force
Write-Host "restored assets/flash.img from work/flash-base.img"