Ruyi Firmware flashing (SpacemiT K3 Pico ITX)

DEBUG and RELEASE both include UEFI driver emulation, disabled by default.
Enable it in UEFI Setup -> Platform Settings -> UEFI driver emulation,
then save and restart to apply.
The setting persists in SPI even when saved from RAM recovery.
RX6400 has been tested for UEFI/GRUB display with x64 emulation.

The platform selects AMD ARM64 GOP 1.68 for listed early GCN, Polaris
and Vega M display devices, and onboard x64 GOPs for other devices.
GCN replacement is experimental.
A failed replacement does not fall back to the onboard x64 GOP.
The serial console and native K3 display remain available.

SpacemiT vendor Linux is not supported.
Linux mainline support is provided on a best-effort basis.

Use both images from the same build. Connect the download
USB-C port and enter BootROM. Run these commands in the extracted package directory:

  sha256sum -c SHA256SUMS
  fastboot devices
  fastboot stage recovery-bootrom.bin
  fastboot continue

Wait for USB Fastboot ready:

  fastboot stage normal-spi.bin
  fastboot continue

Wait for RAM Recovery - USB Fastboot:

  fastboot flash firmware normal-spi.bin

The firmware target preserves UEFI variables, resets CPU selection to
X100 only and disables driver emulation. It also clears DDR training records for retraining on the next
normal boot. Platform Settings saves its selections persistently, even
when the firmware was loaded into RAM.

After flash and verification report OKAY:

  fastboot reboot

For later updates, press F9 at boot and run the flash and reboot commands.

For K3 Pico ITX and K3 Deb1 EC flashing, see EC.txt.
