Thanh Le / bench notes
EMBEDDED · BOARD HUB · IN PROGRESS

Radxa ROCK 3A (RK3568)

Bare metal, FreeRTOS on four A55s, a 154 ms boot, NPU without Linux, Android 14, a hidden RISC-V MCU

Last change2026-11-22: hub page with seven STAR write-ups

Radxa ROCK 3A (RK3568)

ROCK 3A on my desk

The ROCK 3A is Radxa’s Pi-sized board with a Rockchip RK3568: four Cortex-A55 cores, a Mali-G52, an NPU (Rockchip says 0.8 or 1 TOPS, depending on which doc you read), LPDDR4X (mine has 8 GB), eMMC and a 16 MiB SPI NOR. I bought it because I wanted an RK3568 I could afford, with an NPU I could poke at and a datasheet-level manual (the TRM) that is actually public.

The first thing I did with it, a few years ago, was a Yocto port. In October 2026 I came back to it with a different question: how far down can I go on this chip? Not “install Debian and run a demo”, but start from the BootROM and own every stage I can.

It went further than I planned. Most of what follows was done in about five weeks of evenings and a couple of nights.

Five ways to run the board, measured

The overview I made (labels in Vietnamese): the same RetinaFace job in five set-ups, from bare FreeRTOS to Debian with PREEMPT_RT. Top: power-on to the first face, 3.30 s on the RTOS against 10.17 s on Debian. Middle: one inference, 3.44 ms replayed on the NPU at 600 MHz, 1407 ms on the CPU with numpy. Bottom: worst lateness of a 1 kHz task under load, 6.1 µs on an RTOS core against 349 µs on Linux PREEMPT.

The stories

Each page below is one thing I got working, written as Situation / Task / Action / Result, with the numbers I measured on this board. The old Yocto port is in the list too.

#StoryResultStatus
1 [🔥] - Add Yocto support for Rock-3A Single Board Computer
My meta-radxa port for the Rock-3A (RK3568), from the Radxa BSP to Yocto
Console and desktop images booting from my meta-radxa port, sent upstream as PR #29 Done
2 Bare metal from the BootROM, no hands on the board
sram_hello and dram_hello loaded over Maskrom, and a reset that drops the chip straight back into Maskrom
8 GB DRAM seen from my own code; download to Maskrom again in ~3 s, 0 hands Done
3 FreeRTOS on all four Cortex-A55 cores, with my own shell
rtos_cli from Maskrom: GICv3 at Secure EL1, cpufreq up to 1992 MHz, CoreMark, then an AArch64 SMP port
CoreMark 7634.83 at 1992 MHz on one core, 15.33/MHz on four, tick jitter ±0.5 µs Done
4 FreeRTOS on core 3 at 154 ms, Linux on the other three
Boot from SPI NOR, a 1 kHz loop through DDR training, a patched BL31 handover, and cutting the image the BootROM reads
FreeRTOS takes core 3 at 0.154 s (was 3.90 s); Linux prompt at 2.49 s; 1 kHz loop worst lateness 0.25 µs Done
5 Webcam to NPU to HDMI, with no Linux on the chip
Driving the RK3568 NPU, my own xHCI/UVC host and a JPEG decoder from FreeRTOS, RetinaFace boxes on HDMI
718 webcam frames in 30 s (25.09 fps), faces in 703, JPEG to screen 28.0 ms avg, 0 dropped Done
6 Porting Android 14 to the ROCK 3A myself
Radxa ships Android 14 for the ROCK 3C only: a new product from its tree, 13 kinds of build failure, a DDR blob that hangs on reboot
Android 14 + kernel 6.1.99 + GApps booting; warm reboot back in 36 s; YOLOv5s 34.58 ms on the NPU at 1 GHz Done
7 A WS2812 ring on the RISC-V MCU hidden inside the RK3568
FreeRTOS on the SoC's own RV32 core under Android 14, SPI3 as the LED wire, and four faults between me and a lit ring
16/16 LEDs lit from the MCU at 50.00 frames/s, 523-525 µs per frame on the wire; no blue at 3.3 V Done
8 A Vietnamese voice assistant with the network unplugged
Speech to text, a 0.6B LLM and Vietnamese TTS on the RK3568's four A55 cores under Android 14, recorded 17 times
First spoken word 11.8 s after the question (median of 12), LLM 4.0 tok/s, about 4 in 10 answers right Done

Still open

A few things never got a clean result, so they’re not pages yet: the board resets itself after running two 1280x720 webcams at once (cause not found), 640x480 webcam frames only reach 21.6 to 23.6 fps on the RTOS because my JPEG decoder takes 28 ms each, and the LED ring shows no blue at 3.3 V. The Real-ESRGAN x4 upscaler on the NPU is too fresh to write up.