Subscribe
0%
Illustration for: rkqemu emulates the RK3588 in QEMU well enough to boot stock Armbian to a KDE desktop. An AI did most of it, from a leaked manual

rkqemu emulates the RK3588 in QEMU well enough to boot stock Armbian to a KDE desktop. An AI did most of it, from a leaked manual

A new open repository adds a Rockchip RK3588 machine to QEMU that boots unmodified Orange Pi 5 Armbian images, with HDMI, eDP and a virtio GPU. Its author says an open-weight model, GLM 5.3, wrote most of it while working from the chip's leaked reference manual. It is slow, has no licence file, and its memory training is simulated.

Listen to this article0:00 / 4:45
petabyt/clanker-rkqemu

QEMU machine and device models for the Rockchip RK3588 that boot unmodified Armbian images

Language
C
Try it
git clone --recursive https://github.com/petabyt/clanker-rkqemu && cd clanker-rkqemu && make qemu
View on GitHub

A new GitHub project, petabyt/clanker-rkqemu, teaches QEMU to emulate Rockchip's RK3588, the eight-core chip in the Orange Pi 5 and many other single-board computers. The emulation is good enough to boot unmodified Armbian Ubuntu images to a KDE Plasma desktop. Its README says the code was "mostly done by GLM5.3." The author, Daniel Cook, says he gave that model the leaked RK3588 Technical Reference Manual and Arm's v8-A architecture spec, split into text files it could search. The project hit Hacker News's Show HN page on Sunday, at 55 points and 32 comments on a snapshot we read.

Why it matters: stock QEMU has no RK3588 machine, which is why this project patches one in, so firmware, bootloader and distro work for RK3588 boards mostly happens on physical hardware. A working emulator would let developers test boot chains and continuous-integration builds without a board on the desk. The project is also a vivid example of an AI coding agent doing months-long hardware-modelling work, which is why the Hacker News discussion fixed on that as much as on the emulator.

What works, according to the repository

We cloned the repository and read its README, notes and commit history. We did not build or run it.

Area Status in the README and notes
Boot chain Author's own rk bootloader, Rockchip's proprietary DDR init blob, TF-A, EDK2 UEFI, U-Boot, Linux
Target Unmodified Armbian 26.8.1 images for the Orange Pi 5; a 16 GB Orange Pi 5 is the reference board
Display HDMI, VOP2 display controller, eDP
Graphics virtio GPU over the emulated PCIe bus, with acceleration in KDE Plasma; the Mali GPU is not emulated
Peripherals GPIO, pin mux, power management unit, SHA-256 crypto block, I2C, random-number generator, multicore start-up
Video Basic H.264 decoding, passed through to libavcodec on the host (Nov. 26)
Not done NPU

The history begins on Oct. 10. Commits record unmodified Armbian booting to the SDDM login screen on Oct. 27, accelerated KDE graphics on Nov. 5, and basic support for the related RK3528 and RK3568 on Nov. 26. Basic RK3538/RK3539 support followed on Nov. 29. The machine code lives in about 11,500 lines of C under src/. It hooks into a stock QEMU checkout through a two-file patch to QEMU's build files, and it runs only under QEMU's software CPU emulation (TCG), not hardware virtualisation.

The README lists the milestones Cook set for the model, from his own bootloader up to booting Armbian. To get Rockchip's DDR initialisation working, he says he also gave the model maskrom access to a real Orange Pi 5. One commit credits GLM 5.3, Mimo 2.6 Pro Flash and Claude Haiku 5.5. The repository also contains an AGENTS.md file that tells coding agents how to work in it.

The limits

  • It's slow. The project's notes record runs reaching a serial login prompt after about 169 to 426 seconds of host time. They call these single runs, not a controlled performance claim. On one host, a terminal window took one to two minutes to appear with the virtio GPU path.
  • Memory training is simulated. The checklist ticks off "DDR training," but the notes describe the training as synthetic. Rockchip's blob runs and reports success against simulated controller responses. Real memory training isn't modelled, a gap Hacker News commenters were quick to point out.
  • Bring your own blobs and docs. Rockchip's DDR binary, the reference manual and the firmware source trees are excluded from the repository by .gitignore.
  • No licence. The repository has no licence file, so others have no explicit permission to reuse or redistribute the code.
  • Provenance. It was built with a leaked, not publicly released, manual. That may matter to anyone hoping to upstream it into QEMU, which one commenter urged.

How it landed

Reactions on Hacker News split. Some commenters said AI has made emulators like this cheap enough to build for CI and firmware testing, and one shared a similar STM32 project. Others played it down. One argued it isn't really reverse engineering when you have the manual, another called it easy work for any recent model, and several debated how hard modern SoCs actually are to model. When one asked about upkeep, another commenter replied that it is mostly a testbed.

Who should care: firmware, bootloader and distro developers working on RK3588-class boards, who could test boot chains without hardware. Treat it as an experiment, not a dependable tool, until it has a licence and an upstream path.

Sources

  1. GitHub — petabyt/clanker-rkqemu (README, notes/plan.md, notes/perf.md, commit history) github.com
  2. Hacker News — Show HN: RK3588 QEMU emulator running unmodified Armbian images news.ycombinator.com
  3. Hacker News — Show HN front page news.ycombinator.com

#rkqemu#QEMU#RK3588#Rockchip#Armbian#Orange Pi 5#emulation#AI coding agents#GLM#Show HN