mirror of
https://github.com/MCKero6423/uv-k5-v3-emulator.git
synced 2026-10-02 03:15:36 +00:00
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
10 lines
513 B
PowerShell
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"
|