freenode
Databases & Infrastructure

QEMU patch series adds early RK3588 and ROCK 5B emulation

The model can boot Linux directly or through U-Boot from SPI flash, but most of the SoC is still a stub and it runs only under TCG.

A 20-patch series from Chao Liu and Yifan Wang would give QEMU its first model of the Rockchip RK3588 and the Radxa ROCK 5B board that uses it. The work is meant to let a guest reach Linux without the physical board, either by loading a kernel directly or by starting U-Boot SPL from a firmware image and letting it fetch U-Boot proper from SPI NOR flash.

The RK3588 is the chip behind a wide range of single-board computers, mini PCs, and NAS boxes. QEMU already covers several popular ARM boards, but not this one. The proposed machine models the eight Cortex-A55 and Cortex-A76 cores, a GICv3 interrupt controller, architectural timers, on-chip SRAM, serial ports, and the Rockchip SPI flash controller, plus just enough of the clock and reset unit, one-time programmable memory, and a high-precision timer for the boot software to proceed. DRAM can be set from 128 MiB to 16 GiB. The first serial port is the ROCK 5B debug console; further ports map onto the remaining UARTs.

Two supporting pieces exist so the guest does not need a full trusted-firmware image. Machines can register handlers for vendor SMC calls and take them before QEMU's existing PSCI path, and a small SCMI server answers the base and clock requests that RK3588 firmware normally makes over the SMC transport. An XTX 16 MiB SPI NOR part is added for the flash the board actually boots from; without an image, that flash starts erased.

Liu and Wang say both boot paths were tested with Linux 6.12.4, using U-Boot 2025.01 for the firmware path. Functional tests cover a Buildroot shell, reboot, and poweroff. The model is still initial: large parts of the SoC are unimplemented placeholders so stray accesses do not fail, and the board is built only for AArch64 under TCG.