edk2-rk3576

Historical copy, 2026-05-01 to 2026-11-24: the README as it was before the 2026-11-24 rewrite, unchanged except that its links into this repository now point at commit 4479752, where they resolve. It may not match main; the current page is README.md.

edk2-rk3576

SoC License Flash Docs

UEFI firmware (EDK2 / TianoCore) for Rockchip RK3576 boards.

BootROM → U-Boot SPL → TF-A BL31 → EDK2 (BL33) → OS

Three boards are supported: the Radxa ROCK 4D, the ArmSoM CM5-IO and the LCKFB TaishanPi 3M. The ROCK 4D and the CM5-IO boot Fedora from NVMe. The CM5-IO and the TaishanPi 3M boot Windows 11 23H2 from their eMMC, with the drivers from woa-rk3576; see Windows below.

Radxa ROCK 4D ArmSoM CM5-IO
Fedora GNOME on ROCK 4D Fedora GNOME on CM5-IO
Fedora 44 from NVMe Fedora 45 from NVMe, Mali-G52 through Panfrost
UEFI front page on ROCK 4D UEFI front page on CM5-IO
UEFI front page, 2560x1440 over HDMI UEFI front page, 2560x1440 over HDMI
ArmSoM CM5-IO LCKFB TaishanPi 3M
Windows 11 on CM5-IO Windows 11 on TaishanPi 3M
Windows 11 23H2 from the eMMC Windows 11 23H2 from the eMMC, desktop drawn on the Mali-G52

Firmware menus

Screenshots of the TaishanPi 3M’s DSI screen, saved by the firmware itself. The menus are drawn in landscape on the portrait panel; they can be switched to Simplified Chinese on the front page.

   
Front page About
Front page, with Shut Down and About About: firmware build, board, clocks, what was found at boot
Front page in Simplified Chinese Boot Manager
The same front page in Simplified Chinese Boot Manager: eMMC, Touch Test, UEFI Shell, MaskROM, network, a USB stick
Platform configuration Display settings
Platform configuration Display settings

HWiNFO system summary on the TaishanPi 3M

HWiNFO on the TaishanPi 3M under Windows: eight cores, 3838 MB, the board and firmware names from SMBIOS, the Mali-G52.

Screenshots of the firmware itself: press Ctrl+Alt+F12 on a keyboard, F12 on the serial console, or the camera key of the on-screen keyboard. The picture is saved as \uefi-screenshots\YYYYMMDD-HHMMSS.png (shot-NNNN.png when the clock is not set) on a FAT formatted medium. “Save Screenshots To” in the platform setup picks where: Automatic (a USB stick first, then an SD card, then the ESP), or only one of them. A green square flashes in the top left corner when it is saved, yellow when there is nowhere to write, red when it failed; the serial log has the path.

To report a problem, save a debug report: Device Manager > Debug Report, or Ctrl+Alt+F11 (F11 on the serial console). It writes \uefi-debug\YYYYMMDD-HHMMSS\ to the same place: the firmware log of this boot, a summary (firmware, board, boot options, display, PCI, USB and storage devices, memory map), the ACPI tables, the device tree, and from Device Manager a screenshot of every setup page. While it walks the pages, “Collecting debug report, please do not touch anything…” stands in the top left corner. On the TaishanPi 3M a full report from Device Manager saved 64 of the 65 setup pages to a USB stick (the 65th is the Debug Report page itself, open underneath).

None of the boards keeps time in the firmware, so with a network cable in, the firmware sets its clock from NTP at every boot (“Network Time Sync” in the platform setup, on by default). It runs in the background while the boot menu counts down: the NTP servers the DHCP server names, then pool.ntp.org and time.cloudflare.com, then fixed Cloudflare and Google addresses. It uses the IPv4 settings as they are (static, or DHCP), gives up 10 seconds after getting an address (30 seconds without one) and never delays the boot; the clock is kept in UTC. The serial log has a NetworkTimeSync: line with the old and the new time, and one NetworkTimeSync: stage: line saying how far it got (no link, no lease, DNS timeout, NTP timeout, or clock set).

Boards

  Radxa ROCK 4D ArmSoM CM5-IO LCKFB TaishanPi 3M
Boots from SPI NOR eMMC or SD eMMC, or an SPL on eMMC with the firmware on SD
HDMI yes yes yes
MIPI DSI screen not tried not tried LCKFB’s 800x1280 screen, with touch in the menus
eMMC no eMMC (UFS) yes, UEFI variables persist yes, UEFI variables persist
NVMe yes yes not tried (mini-PCIe slot)
USB yes yes; USB-C is USB 2.0 in UEFI and Windows four USB-A ports; USB-C unused
Ethernet yes yes, in UEFI, Linux and Windows yes, in UEFI and Windows; not checked in Linux
Linux through UEFI Fedora from NVMe Fedora from NVMe Armbian edge from the eMMC: DSI screen, touch, headphones, backlight; details and limits
Windows 11 23H2 not tried boots to the desktop boots to the desktop: GPU driver, touch, landscape, Bluetooth; no sound yet

Serial console: 1500000 8N1.

Each board’s results come from one unit.

The setup menus can be switched to Simplified Chinese on the front page. The display, I2C and menu changes that came with the TaishanPi 3M’s screen are shared by all three boards. They were run on the TaishanPi 3M and, for the menus over HDMI, on the CM5-IO. The ROCK 4D has not run them yet.

“Reset All Settings” on the front page, or F9 during the boot countdown (from a serial terminal too), puts the firmware back to how a freshly flashed board starts: it erases the whole UEFI variable store, so every setup setting, the language, the boot options and boot order, the timeout and any Secure Boot keys. It asks first, in a red warning with No selected. The board restarts, the store is erased before anything reads it, and the firmware sets itself up as on its first boot. Nothing outside the variable store is touched. Run on the TaishanPi 3M: the settings and boot options came back as on a new board, and the next boot did not erase anything again. Boot options added by hand (an OS, a second loader) are gone afterwards; bcfg boot add in the UEFI Shell puts them back.

LCKFB TaishanPi 3M

The BootROM on this board only tries the eMMC, and there is no MaskROM button: two pads marked MSK are shorted instead. So the first flash goes through MaskROM, and at least the SPL has to live on the eMMC. After that the firmware can reset into MaskROM by itself (F4 during the boot countdown). See Flashing and Hardware.

The fan connector is driven from firmware and runs at full speed.

LCKFB’s 800x1280 MIPI DSI screen (part C41409463) works from power on. The firmware looks for its touch controller on I2C0 and uses the screen when it is there, HDMI when it is not. The ribbon must only be plugged or unplugged with the power off.

Linux on the TaishanPi 3M

Run on one board, with Armbian edge (Linux 7.3.4, GNOME) installed in a 6 GB partition of the eMMC next to Windows and started through GRUB from the boot manager. The device tree is the firmware’s own: besides the mainline board file it describes the ES8388 headphone codec, the GT9271 touchscreen, the PWM backlight, the DSI screen (only when it is attached), the mini-PCIe power for an EC20 modem and the GPU (disabled for now, see below). Nothing has to be put on the ESP. The screen works two ways, chosen by “Force UEFI GOP Display” on the ACPI / Device Tree page:

Checked on that install with the firmware’s device tree: the headphones play (through ALSA), touch, the backlight from /sys/class/backlight (it needs the RK3576 PWM driver Armbian carries; mainline has none yet), the USB-A ports, Ethernet and the EC20. The limits:

The TaishanPi 3M used for this work was sponsored by JLC (嘉立创).

Windows

Windows 11 23H2 runs from the eMMC of the CM5-IO and of the TaishanPi 3M. Windows 10 22H2 should also run and has not been tried. Windows 11 24H2 and later cannot: they need ARMv8.1 and RK3576 is ARMv8.0.

Windows Setup does not work on these boards. It has no driver for the eMMC controller, and it refuses a machine without a TPM. The image is applied with DISM from a WinPE that carries the drivers and a script that does the rest:

  1. Flash this firmware to the eMMC. On the TaishanPi 3M that is the emmc image, written at sector 0 from MaskROM.
  2. Write the WinPE image from the woa-rk3576 release to a USB stick. Add an exFAT or NTFS partition in the free space behind it and copy sources\install.wim there from a Windows 11 23H2 ARM64 ISO.
  3. Take out any SD card, plug the stick into a USB-A port and boot it from the firmware’s boot menu.
  4. Run woa-deploy\deploy-windows.cmd from the stick. It checks that the disk is the eMMC with this firmware on it, asks you to type ERASE, partitions the rest of the eMMC, applies the image, adds the drivers and turns on test signing.
  5. Remove the stick and reboot. Windows finishes its setup and reaches the desktop, which shows “Test Mode”.

The full procedure, the reasons for each step and what to do when it does not boot are in woa-rk3576’s INSTALL.md. Do not make this stick with Ventoy: with the WinPE image its UDF driver stopped with a synchronous exception. Ventoy itself does start on this firmware, and has handed over to a Linux disk image once.

Out of the box the desktop is drawn on the CPU into the firmware’s framebuffer, at the one mode the firmware set. wddm-mali-g52 is a display driver for the Mali-G52 that moves the desktop onto the GPU. It is an early driver, built by that repository’s CI and without a release, and has run on the TaishanPi 3M only.

Bluetooth works under Windows on the TaishanPi 3M: the firmware declares the module’s controller on UART6 (ACPI\RKCP4345), and sets its pins and clock. The module runs from the RTC chip’s 32 kHz output, which is on as the chip leaves the factory; the driver is bcm4345bt in woa-rk3576. Pairing and file transfer work; voice (SCO) does not yet.

Not working under Windows on either board: audio and WiFi, and Bluetooth on the CM5-IO. The TaishanPi 3M’s audio drivers load, but its SAI never starts sending; a fix is in progress in woa-rk3576. The board’s RTC chip holds no valid time, so without a network cable (see Network Time Sync above) the clock is wrong after every boot until Windows syncs it; set HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversal to 1 so Windows reads the firmware’s clock as UTC. A wrong clock also makes test-signed drivers look “not yet valid” to pnputil.

Known issues

Build

scripts/setup-host.sh
scripts/build.sh   cm5io
scripts/package.sh cm5io      # -> out/CM5IO/CM5IO-sdcard.img

Building · Flashing · Image layout · Hardware

Layout

Platform/ArmSoM/CM5IO/       board package: DSC, PMIC/GPIO/PHY glue, ACPI, DTS
Platform/Radxa/ROCK4D/
Platform/LCKFB/TaishanPi3M/
Silicon/Rockchip/RK3576/     SoC package: RK3576Base.dsc.inc, FDF, ACPI, drivers
Silicon/Rockchip/            drivers shared across Rockchip SoCs
Silicon/Synopsys/DesignWare/ DWC EQoS and DWC MMC
boards/                      one .conf per board
scripts/                     setup-host, build, package
patches/                     patches to the TianoCore core, applied at setup
binaries/                    BL31, DDR init blob, SPL
devicetree/mainline/         board DTS
docs/                        the site at edk2.gahingwoo.com

A board DSC holds only what differs between boards. Everything the SoC decides is in Silicon/Rockchip/RK3576/RK3576Base.dsc.inc.

Before 2026-08-04 this tree was a copy of edk2-rockchip that built RK3576 on top of RK3588’s configuration. That version is on the legacy/v0.1 branch.

Acknowledgements

Thanks to JLC (嘉立创) for sponsoring the LCKFB TaishanPi 3M, its MIPI DSI screen, the fan and the EC20 4G module used for this work, and to ArmSoM for sponsoring the CM5 module and the CM5-IO board.

Licence

BSD-2-Clause-Patent, like TianoCore and edk2-rockchip. Code taken from Linux, U-Boot and Rockchip keeps its own licence; LICENSE lists those files.