RK3588 模拟器成功启动未修改 Armbian 镜像

原标题:Show HN: RK3588 QEMU emulator running unmodified Armbian images
58AI 研判分

开发者基于 GLM5.3 辅助,为 RK3588 实现了 QEMU 平台支持,可模拟 16GB LPDDR5、HDMI、VOP2、eDP、GPIO 与 VirtIO GPU 加速,并成功让未修改的 Armbian Ubuntu 镜像启动至桌面。NPU 尚未实现,后续可能借鉴 Orange Pi 5 Plus 的 NPU 研究。

关联知识实体

报道正文

rkqemu

Qemu platform support implemented for the RK3588. Goal is to get unmodified Armbian Ubuntu images booting to desktop.

Mostly done by GLM5.3. I gave it the leaked RK3588 TRM and ARM v8a profile spec split up into text files for referencing.

  • Emulate 16gb LPDDR5 + DDR training
  • HDMI, VOP2, eDP
  • GPIO, IOMUX, PMU, sha256 crypto, etc
  • VirtIO GPU acceleration through PCI bus (Mali is not implemented)
  • NPU - possibly incorporate research from https://github.com/widgetii/orangepi5plus-npu

Milestones I gave the LLM:

  1. Get my rk bootloader working
  2. Get the proprietary DDR image working
    • I gave it maskrom access to an Orange Pi 5 for it to work out some details
  3. Get EDKII working
  4. Get ATF working
  5. Get minimal Linux/busybox working
  6. Boot unmodified Armbian images

booting armbian

Build system is setup so that a small patch (qemu.patch) is applied to the qemu submodule, and src/ is symlinked to qemu/hw/arm/rk3588

文本
# Run a genbook image (based on the rk bootloader)
./rk3588-qemu-x86_64.AppImage -M rk3588 -bios rk/genbook_demo.img -display gtk -serial stdio

# Run a stock Armbian image with a GPU attached to PCI bus (native HDMI disconnected)
./rk3588-qemu-x86_64.AppImage \
  -M rk3588,pcie-experimental=on,hdmi-connected=off \
  -device virtio-gpu-gl-pci,id=vgpu,bus=dw-pcie,addr=0.0,multifunction=on,xres=1280,yres=720 \
  -device virtio-keyboard-pci,bus=dw-pcie,addr=0.1 \
  -device virtio-tablet-pci,bus=dw-pcie,addr=0.2 \
  -netdev user,id=net0 \
  -device virtio-net-pci,netdev=net0,bus=dw-pcie,addr=0.3 \
  -drive if=sd,format=raw,file=Armbian_26.8.1_Orangepi5_resolute_current_6.18.43_kde-plasma_desktop.img \
  -display gtk,gl=on -serial stdio -monitor none

16gb Orange Pi 5 is the current testing device. The Armbian image I tested with can be downloaded here.