Skip to main content

SDK & Sources

SDK build flow placeholder 960 x 540 px

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

The TBoard SDK is a Rockchip Linux BSP with the R5A board support added. It is split into several Git repositories that are fetched together with repo.

Repositories​

RepositoryContents
TBoardDex/manifestsrepo manifest, pins every repository to a revision
TBoardDex/rockchip-kernelLinux 5.10 / 6.1 vendor kernel, R5A device trees
TBoardDex/u-bootU-Boot, TPL/SPL and the R5A board files
rkbin (Rockchip)DDR init, BL31 and loader binaries, pulled by the manifest

Branches follow the kernel line: the manifest's linux branch is what the published images are built from. Do not mix kernel and U-Boot from different branches — device-tree bindings and the loader ABI are versioned together.

Build​

./build.sh help lists every target. The board configuration is chosen with chip (SoC + board defconfig); a bare ./build.sh then builds everything:

cd ~/tboard-sdk
./build.sh chip # RK3588 + tboard-r5a_rk3588s_debian_xfce_defconfig
./build.sh # loader + U-Boot + kernel + rootfs + update.img

The three board defconfigs are:

DefconfigRoot filesystem
tboard-r5a_rk3588s_debian_xfce_defconfigDebian 11 + Xfce (RK_DEBIAN=y, RK_ROOTFS_HOSTNAME="TBoard-R5A")
tboard-r5a_rk3588s_ubuntu_gnome_defconfigUbuntu 22.04 + GNOME
tboard-r5a_rk3588s_ubuntu_server_defconfigUbuntu 22.04 server

Board facts live in that defconfig, not in the kernel tree: RK_KERNEL_DTS_NAME="rk3588s-TBoard-R5A", RK_UBOOT_CFG="rk3588-tboard-r5a", RK_KERNEL_CFG_FRAGMENTS="rk3588s_tboard.config", RK_WIFIBT_CHIP="AIC8800", RK_USE_FIT_IMG=y, RK_PARAMETER="parameter-tboard.txt", RK_ROOTFS_INSTALL_MODULES=y. U-Boot is configured by a fragment, u-boot/configs/rk3588-tboard-r5a.config (CONFIG_BASE_DEFCONFIG="rk3588_defconfig"), applied on top of rk3588_defconfig — there is no standalone rk3588-tboard-r5a_defconfig file.

Building one component at a time:

CommandOutput
./build.sh loaderrockdev/MiniLoaderAll.bin (rk3588_spl_loader_v1.18.113.bin)
./build.sh ubootu-boot/uboot.img
./build.sh kernelkernel/boot.img, kernel/resource.img, kernel/zboot.img — there is no extboot.img
./build.sh kernel-modulesKernel modules only, into the kernel output tree
./build.sh linux-headersThe only kernel package emitted: output/linux-headers/linux-headers-5.10-arm64_arm64.deb (there is no linux-image deb)
./build.sh debian / ./build.sh ubuntuRoot filesystem images (Debian Xfce / Ubuntu GNOME)
./build.sh ubuntu-server, ./build.sh ubuntu-desktopExplicit Ubuntu flavours
./build.sh firmwareCopy partitions into rockdev/
./build.sh updateimgPack rockdev/update.img

rockdev/update.img is the file you flash to eMMC with RKDevTool. A kernel-only change needs just ./build.sh kernel plus an image update of boot and resource — this is how the optional-hardware recipes on the board pages are applied.

A complete tree is large: the reference checkout is ~118 GB (one kernel, one U-Boot, all rootfs flavours). Budget 150 GB if you build several flavours or keep ccache.