ROCK 5B

Overview

The Radxa ROCK 5B is a single-board computer based on the Rockchip RK3588 SoC. The SoC combines four Arm Cortex-A76 and four Arm Cortex-A55 CPU cores. The board is available with up to 16 GB of LPDDR4X memory and provides eMMC, microSD, PCIe, USB, Ethernet, and a 40-pin expansion header.

The SMP variant supports all four Cortex-A55 and four Cortex-A76 cores.

Hardware

The ROCK 5B includes the following hardware features:

  • Rockchip RK3588 SoC

  • Four Arm Cortex-A76 cores up to 2.4 GHz and four Arm Cortex-A55 cores up to 1.8 GHz

  • Arm Mali-G610 MP4 GPU and neural processing unit (NPU) with up to 6 TOPS

  • 64-bit LPDDR4X memory, available in 4 GB, 8 GB, and 16 GB variants

  • eMMC connector and microSD card slot

  • M.2 E Key connector with PCIe 2.1 x1, USB, SATA, SDIO, PCM, and UART signals for Wi-Fi 6 modules

  • M.2 M Key connector with a PCIe 3.0 x4 interface for 2280 NVMe SSDs

  • 2.5 Gigabit Ethernet with Power over Ethernet (PoE) support (requires an optional PoE HAT)

  • Two USB 2.0 host ports and two USB 3.0 host/OTG ports

  • Two HDMI outputs, one DisplayPort output over USB Type-C, and one MIPI DSI output

  • One Micro HDMI input port

  • One MIPI CSI camera interface

  • 40-pin expansion header

  • USB Type-C power delivery (PD 2.0)

  • 100 mm x 75 mm board size

Supported Features

The rock_5b board supports the hardware features listed below.

on-chip / on-board
Feature integrated in the SoC / present on the board.
2 / 2
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files.
vnd,foo
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.

rock_5b/rk3588 target

On-target memory for this board target: 128 MiB of RAM, N/A of Flash.

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-A55 CPU4

arm,cortex-a55

on-chip

ARM Cortex-A76 CPU4

arm,cortex-a76

Clock control

on-chip

Rockchip RK3588 CRU1

rockchip,rk3588-cru

on-chip

Rockchip RK3588 CRU Clock Controller1

rockchip,rk3588-cru-clk

Ethernet

on-chip

Rockchip RK3588 GMAC2

rockchip,rk3588-gmac

on-chip

Synopsys DesignWare MAC MDIO controller2

snps,dwmac-mdio

on-chip

Synopsys DesignWare MAC PTP (Precision Time Protocol) Clock2

snps,dwmac-ptp-clock

Interrupt controller

on-chip

ARM Generic Interrupt Controller v31

arm,gic-v3

Power management CPU operations

on-chip

Power State Coordination Interface (PSCI) version 0.21

arm,psci-0.2

Reset controller

on-chip

Rockchip RK3588 CRU Reset Controller1

rockchip,rk3588-cru-rst

Serial controller

on-chip

ns16550 UART11

ns16550

SRAM

on-board

Generic on-chip SRAM1

mmio-sram

System controller

on-chip

System Controller Registers R/W2

syscon

Timer

on-chip

per-core ARM architected timer1

arm,armv8-timer

rock_5b/rk3588/smp target

On-target memory for this board target: 128 MiB of RAM, N/A of Flash.

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-A55 CPU4

arm,cortex-a55

on-chip

ARM Cortex-A76 CPU4

arm,cortex-a76

Clock control

on-chip

Rockchip RK3588 CRU1

rockchip,rk3588-cru

on-chip

Rockchip RK3588 CRU Clock Controller1

rockchip,rk3588-cru-clk

Ethernet

on-chip

Rockchip RK3588 GMAC2

rockchip,rk3588-gmac

on-chip

Synopsys DesignWare MAC MDIO controller2

snps,dwmac-mdio

on-chip

Synopsys DesignWare MAC PTP (Precision Time Protocol) Clock2

snps,dwmac-ptp-clock

Interrupt controller

on-chip

ARM Generic Interrupt Controller v31

arm,gic-v3

Power management CPU operations

on-chip

Power State Coordination Interface (PSCI) version 0.21

arm,psci-0.2

Reset controller

on-chip

Rockchip RK3588 CRU Reset Controller1

rockchip,rk3588-cru-rst

Serial controller

on-chip

ns16550 UART11

ns16550

SRAM

on-board

Generic on-chip SRAM1

mmio-sram

System controller

on-chip

System Controller Registers R/W2

syscon

Timer

on-chip

per-core ARM architected timer1

arm,armv8-timer

The onboard Ethernet interface is not currently supported by Zephyr.

Serial Port

Zephyr uses UART2 as the serial console at 1.5 Mbit/s. On the 40-pin expansion header, connect GND to pin 6, the adapter RX input to the board TX output on pin 8, and the adapter TX output to the board RX input on pin 10. The adapter must support 1.5 Mbaud; use 1500000 baud, 8 data bits, no parity, one stop bit, and no flow control. The Radxa serial console documentation describes the same connection in more detail.

Programming and Debugging

The rock_5b board supports the runners and associated west commands listed below.

flash debug

Applications are built with the standard configuration, for example:

# From the root of the zephyr repository
west build -b rock_5b samples/hello_world

To run Zephyr on all eight CPU cores, build the SMP variant:

# From the root of the zephyr repository
west build -b rock_5b//smp samples/synchronization

Create a legacy U-Boot image whose payload loads and runs at 0x10000000:

mkimage -C none -A arm64 -O linux -a 0x10000000 -e 0x10000000 \
  -d build/zephyr/zephyr.bin build/zephyr/zephyr.img

The Radxa U-Boot AArch64 Linux boot path requires a devicetree. Obtain rk3588-rock-5b.dtb from the Radxa Linux distribution and copy it and zephyr.img to a FAT partition accessible from U-Boot.

Check the temporary kernel and devicetree load addresses provided by U-Boot:

printenv kernel_addr_r fdt_addr_r

Load each file at its corresponding address, then pass the devicetree address to bootm. Adjust the MMC device and partition numbers for the selected boot media:

fatload mmc 1:1 ${kernel_addr_r} zephyr.img
fatload mmc 1:1 ${fdt_addr_r} rk3588-rock-5b.dtb
bootm ${kernel_addr_r} - ${fdt_addr_r}

The legacy image header instructs U-Boot to move the Zephyr payload from kernel_addr_r to 0x10000000 before jumping to the entry point. Keeping the temporary image, devicetree, and Zephyr runtime regions separate avoids overwriting any of them during the handoff.

References

More information is available from the Radxa ROCK 5B documentation.