Skip to main content

Linux

TBoard Linux system overview placeholder 960 x 540 px

Image placeholder: 960 × 540 px (suggested use: system / boot flow diagram). Replace it later with a verified image of the same dimensions.

TBoard Linux images are Rockchip BSP builds: a vendor 6.1 kernel, a Debian or Ubuntu root filesystem and U-Boot with the R5A board support added. This page covers what to do after the image boots — accounts, network, packages, kernel and device tree. Flashing is on Flashing the Image.

System baseline​

ItemValue
DistributionsDebian 11, Ubuntu 22.04 LTS (desktop and server variants)
Kernel6.1.x vendor kernel, arch/arm64
BootloaderU-Boot 2017.09 with TPL/SPL
Hostnametboard-r5a
Default accountstboard / tboard, root / root
Serial consolettyFIQ0, 1500000 baud, 8N1
uname -a                 # kernel and build date
cat /etc/os-release # distribution version
cat /proc/device-tree/model # board model string
neofetch # one-screen summary

Serial console​

The debug UART is enabled on every image and is the only output available when the system fails before the display comes up:

ttyFIQ0: 1500000 8N1, no flow control

Wiring and terminal settings are on UART & Serial. Keep the console at 1500000 baud — the Rockchip FIQ debugger does not follow a changed kernel console= baud rate.

Network​

Ethernet comes up with DHCP on first boot; Wi-Fi needs credentials.

ip a                              # all interfaces and addresses
nmcli dev wifi list # visible SSIDs
sudo nmcli dev wifi connect <SSID> password '<password>' ifname wlan0
sudo nmtui # menu-driven alternative

Static address on the wired interface:

sudo nmcli c modify 'Wired connection 1' ipv4.address 192.168.10.13/24
sudo nmcli c modify 'Wired connection 1' ipv4.method manual
sudo nmcli c modify 'Wired connection 1' ipv4.gateway 192.168.10.1
sudo nmcli c modify 'Wired connection 1' ipv4.dns 8.8.8.8
sudo nmcli c up 'Wired connection 1'

ipv4.address must be set before ipv4.method manual, otherwise the connection falls back to DHCP. Replace <SSID> and the addresses with your own values. Changing the hostname:

sudo hostnamectl set-hostname my-gateway

Packages and mirrors​

sudo apt update
sudo apt upgrade

Official images point at the vendor mirror. If a mirror is unreachable from your network, replace it in /etc/apt/sources.list (Debian) or /etc/apt/sources.list.d/*.list (Ubuntu) with a local mirror of the same release, then run sudo apt update again.

Rockchip user-space libraries (MPP, RGA, NPU runtime) are already installed. Do not remove libmpp*, librga* or librknnrt — the multimedia and AI samples depend on them.

Device tree​

The device tree is compiled into the kernel and shipped inside boot.img — there is no standalone dtb directory on the board, so DTS changes always go through a kernel rebuild and a reflash. Optional hardware — 40-pin functions (UART / I2C / SPI / PWM), the fan — is enabled in the DTS; cameras and panels are configured in the DTS as well (see Camera, Display Output).

To enable an interface:

  1. Edit the board DTS under kernel/arch/arm64/boot/dts/rockchip/ in the SDK: enable the controller node and select the pin muxing via pinctrl-0;
  2. Rebuild the kernel (./build.sh kernel in the SDK);
  3. Flash the new boot.img (see Flashing) and reboot.

The interface pages name the node and pin-mux variant for each controller (governed by the same rule: only one pin-mux variant per controller, e.g. uart3-m1 or uart3-m2).

Kernel updates​

Two routes:

# 1. from the Debian packages built by the SDK
sudo dpkg -i linux-image-*.deb linux-headers-*.deb
sudo reboot

# 2. directly from the source tree, reflashing the boot image
./build.sh kernel # on the build host, then flash the new boot.img

Keep the previous boot.img on a backup partition or SD card before upgrading — the serial console is the only recovery path if the new kernel does not reach userspace.

Storage​

lsblk                # devices and partitions
df -h # free space per filesystem

The root filesystem is expanded to the full media size on first boot. /var/log lives on the root filesystem (no zram), so verbose logging wears the eMMC over time; point it at a dedicated partition (e.g. /userdata) for long-running deployments.

Accelerators​

BlockSoftwareVerify
NPU (6 TOPS)librknnrt, RKNN-Toolkit2 on the hostcat /sys/kernel/debug/rknpu/version
GPU (Mali-G610)Panfrost / vendor driver, OpenGL ES, Vulkanglxinfo -B, vulkaninfo
VPUMPP, GStreamer mpp* plugins, FFmpeg with rkmppgst-inspect-1.0 mppvideodec

Only RKNN models converted with the matching RKNN-Toolkit2 version and target platform rk3588 load on the board. A version mismatch is reported as rknn_init failed with an invalid model message.

Monitoring​

htop                     # CPU load per core
cat /proc/cpuinfo # core list and features
cat /sys/class/thermal/thermal_zone0/temp # SoC temperature, millidegrees
sudo cat /sys/kernel/debug/clk/clk_summary # clock tree, when debugging frequency