Build Linux 6.1
Revision History
| Version | Date | Changes |
|---|---|---|
| v1.0 | 2026-04-02 | Initial release, covering Buildroot, Debian, and Ubuntu |
Disclaimer
This document may contain errors or omissions despite our efforts to make it accurate. Assess its suitability and risks before use. We may revise it at any time and do not guarantee that older versions remain valid. Check the JLCLAB website regularly for updated product information and downloads. Copyright and the right of final interpretation belong to Shenzhen JLC Technology Group Co., Ltd. We accept no liability for issues arising from use of this document. Thank you for your understanding and support.
Introduction
This guide explains how to build Linux 6.1 system images for the Taishan Pi RK3566 development board, using Buildroot, Debian, or Ubuntu.
Compared with the Linux 4.19 SDK, the Linux 6.1 SDK uses newer build scripts and toolchains for projects that need newer kernel features and hardware support.
SDK Setup
Host Requirements
Hardware
Building the SDK needs a capable host PC. The source tutorial lists these configurations:
| Component | Minimum | Recommended |
|---|---|---|
| CPU | 4 cores, 2.0 GHz+ | 8 cores, 3.0 GHz+ |
| RAM | 8 GB | 16 GB+ |
| Storage | 100 GB free | 200 GB+ SSD |
| Network | Stable connection | 100 Mbps+ wired connection |
Virtual machine
If building in a VM, use the following configuration:
| Resource | Configuration |
|---|---|
| CPU | 4–8 cores |
| RAM | 8–16 GB |
| Storage | 100 GB+ dynamically allocated disk on SSD |
| Network | Bridged or NAT |
Ubuntu version
Use an Ubuntu 22.04 LTS host for the Linux 6.1 SDK. Older Ubuntu releases are not recommended.
NAME="Ubuntu"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 22.04.5 LTS"
VERSION_ID="22.04"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy2
3
4
5
6
7
8
Download the SDK
Download location
The SDK is available through the shared drive linked from the Download Center.
Downloads
📌 Follow the original folder names: JLCLAB TaishanPi → SDK source code → linux-kernel6.1.
The SDK archive is split into parts numbered 00, 01, 02, and so on. A damaged or missing part will prevent extraction.
Download the entire tspi_linux_sdk_xxxxxxxx folder.
Why split the archive?
- Some storage services limit individual files to 2–5 GB. Smaller parts are easier to upload, download, and back up.
- Transfer parts separately so a network interruption does not require restarting the entire download.
- If a part is damaged, download that part again rather than the whole SDK.
xxxxxxxxis the SDK release date.- SDK releases are updated periodically. Download the latest available release.
- The source tutorial reports about 80 GB after building. Allow enough disk space for the SDK and build output.
Download contents
The download folder contains the following files.
README.md
Describes the SDK contents, quick-start steps, and integrity checks.
extract_sdk.sh
The extraction script checks archive parts and available memory, joins the parts, extracts the SDK, and verifies the extracted files.
rk3566_linux_sdk_xxxxxxxx.tar.xz.part.xx
Split archive parts. The extraction script joins them before extraction. Keep all parts until extraction is complete.
file_checksums.sha256
SHA-256 checksums for the extracted files. The extraction script uses this file; keep it until extraction is complete.
sdk_parts_checksums.sha256
SHA-256 checksums for the archive parts. The extraction script uses this file; keep it until extraction is complete.
sdk_parts_checksums.md5
MD5 checksums for manually verifying the archive parts.
Extract the SDK
Make sure the host has enough free disk space.
Run extract_sdk.sh from the folder containing the archive parts. It verifies the parts, checks memory, joins and extracts the archive, and verifies the extracted files.
To extract into the current directory, run:
Extracting into the archive folder is not recommended. If the script is not executable, run
chmod +x extract_sdk.sh.
./extract_sdk.shTo extract elsewhere, replace to/path below with the destination path:
./extract_sdk.sh to/pathFor example, run ./extract_sdk.sh /home/liguoyi/Desktop to extract into /home/liguoyi/Desktop.
This example extracts into tspi_linux_sdk in the parent directory. The script creates the destination if needed.
../refers to the parent directory;./refers to the current directory.
./extract_sdk.sh ../tspi_linux_sdkThe script verifies the files before extraction. All checks should report OK. If a check fails, download the affected archive part again.
Check Out Source
The extracted SDK initially contains only the hidden .repo directory. Use Repo to check out the source trees. Install Git and Python on the Ubuntu host first.
Update the package list:
sudo apt-get updateInstall Git:
sudo apt-get install git -yInstall Repo:
sudo apt install repo -yInstall Python 2:
sudo apt-get install python2.7Install Python 3:
sudo apt-get install python3The source tutorial registers Python 2.7 and Python 3.6 as alternatives because different tasks use different Python versions.
$设置 python2.7
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
$设置 python3.6
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 22
3
4
Choose the Python version:
sudo update-alternatives --config pythonSelect Python 3.6:
$ sudo update-alternatives --config python
There are 2 choices for the alternative python (providing /usr/bin/python).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/python3.6 2 auto mode
1 /usr/bin/python2.7 1 manual mode
2 /usr/bin/python3.6 2 manual mode
Press <enter> to keep the current choice[*], or type selection number: 02
3
4
5
6
7
8
9
10
Check out the source:
.repo/repo/repo sync -l -j88Successful checkout:
If checkout fails, the source tutorial gives this fallback command:
python3 repo/rerepo sync -l -j88.
SDK Layout
Open the extracted SDK directory:
cd tspi_linux_sdk_xxxxxxxxList its contents:
lsExample output:
app build.sh debian docs hal kernel-6.1 prebuilts rkflash.sh tools yocto
buildroot Copyright_Statement.md device external kernel Makefile rkbin rtos u-boot2
| Directory | Contents |
|---|---|
app | Applications such as qcamera, qfm, qplayer, and settings |
buildroot | Buildroot root filesystem |
debian | Debian root filesystem |
device/rockchip | Board configurations, parameter files, and build scripts |
external | Third-party repositories for audio, video, networking, recovery, and other components |
kernel | Linux 4.19 kernel source |
kernel-6.1 | Linux 6.1 kernel source |
prebuilts | Cross-compilation toolchains |
rkbin | Rockchip binaries and tools |
rockdev | Firmware output; created during the build |
tools | Linux and Windows tools |
u-boot | U-Boot bootloader source |
yocto | Yocto root filesystem |
SDK differences
Compared with the older SDK:
- Kernel source is under
kernel-6.1rather thankernel. - Ubuntu build scripts are in a separate
ubuntudirectory. - Build commands and environment variables differ.
Build Dependencies
Update packages on the Ubuntu 22.04 host:
sudo apt update && sudo apt full-upgradeInstall the build tools and libraries:
sudo apt-get install git ssh make gcc libssl-dev liblz4-tool expect \
g++ patchelf chrpath gawk texinfo diffstat binfmt-support \
qemu-user-static bison flex fakeroot cmake gcc-multilib \
g++-multilib unzip device-tree-compiler ncurses-dev \
libgucharmap-2-90-dev bzip2 expat gpgv2 cpp-aarch64-linux-gnu \
libgmp-dev libmpc-dev bc python3 python3-setuptools \
swig python3-dev gettext libc6-dev libncurses-dev rsync \
python-is-python32
3
4
5
6
7
8
Buildroot
Build the Image
./build.sh lunch:rockchip_rk3566_taishanpi_1m_v10_defconfig && ./build.shBuildroot is the default system.
Firmware files are written to rockdev:
rockdev/
├── MiniLoaderAll.bin
├── boot.img
├── misc.img
├── parameter.txt
├── recovery.img
├── rootfs.img
├── uboot.img
├── userdata.img
├── oem.img
└── update.img2
3
4
5
6
7
8
9
10
11
update.img is the complete system firmware image.
Troubleshooting
host-make 4.3 download returns 404
Example error:
2026-04-02T15:47:58 >>> host-make 4.3 Downloading
2026-04-02T15:47:58 wget --passive-ftp -nd -t 3 --no-check-certificate -O '/home/liguoyi/tspi-1m-linux-sdk/rk3566_rk3568_linux6.1_release/buildroot/output/rockchip_rk3566_taishanpi_1m_v10/rockchip_rk3566/build/.make-4.3.tar.lz.LnaaQP/output' 'https://sources.buildroot.net/make/make-4.3.tar.lz'
2026-04-02T15:47:58 --2026-04-02 15:47:58-- https://sources.buildroot.net/make/make-4.3.tar.lz
2026-04-02T15:47:58 Resolving sources.buildroot.net (sources.buildroot.net)... 172.67.72.56, 104.26.0.37, 104.26.1.37, ...
2026-04-02T15:47:58 Connecting to sources.buildroot.net (sources.buildroot.net)|172.67.72.56|:443... connected.
2026-04-02T15:47:59 HTTP request sent, awaiting response... 404 Not Found
2026-04-02T15:47:59 2026-04-02 15:47:59 ERROR 404: Not Found.
2026-04-02T15:47:59
2026-04-02T15:47:59 wget --passive-ftp -nd -t 3 --no-check-certificate -O '/home/liguoyi/tspi-1m-linux-sdk/rk3566_rk3568_linux6.1_release/buildroot/output/rockchip_rk3566_taishanpi_1m_v10/rockchip_rk3566/build/.make-4.3.tar.lz.yZ5XA6/output' 'https://sources.buildroot.net/make-4.3.tar.lz'
2026-04-02T15:47:59 --2026-04-02 15:47:59-- https://sources.buildroot.net/make-4.3.tar.lz
2026-04-02T15:47:59 Resolving sources.buildroot.net (sources.buildroot.net)... 104.26.0.37, 104.26.1.37, 172.67.72.56, ...
2026-04-02T15:47:59 Connecting to sources.buildroot.net (sources.buildroot.net)|104.26.0.37|:443... connected.
2026-04-02T15:47:59 HTTP request sent, awaiting response... 404 Not Found
2026-04-02T15:47:59 2026-04-02 15:47:59 ERROR 404: Not Found.2
3
4
5
6
7
8
9
10
11
12
13
14
Download the archive manually into the download cache, then rebuild:
# 1. 去到dl库下的make目录
cd buildroot/dl/make/
# 2. 手动下载(找一个可用的镜像)
# 可以尝试其他镜像源,例如:
wget -O make-4.3.tar.lz https://ftp.gnu.org/gnu/make/make-4.3.tar.lz
# 或者使用 GitHub 镜像
#wget -O make-4.3.tar.lz https://github.com/mirror/make/releases/download/make-4.3/make-4.3.tar.lz
# 3. 回到SDK根目录下
cd ../../../
# 4. 重新编译
./build.sh lunch:rockchip_rk3566_taishanpi_1m_v10_defconfig && ./build.sh2
3
4
5
6
7
8
9
10
11
12
13
14
Debian
./build.sh lunch:rockchip_rk3566_taishanpi_1m_v10_defconfig && RK_ROOTFS_SYSTEM=debian ./build.shUbuntu
Prerequisites
- Ubuntu 22.04 LTS host
- Access to the official Ubuntu repositories
- At least 50 GB of free disk space
- A successful Debian build from this SDK
SDK Build Method
1. Check out the Ubuntu files
Run from the SDK root:
git clone .repo/projects/ubuntu22.04-rootfs.git ubuntu2. Set up the host
Open the ubuntu directory:
cd /path/to/tspi_linux_sdk_xxxxxxxx/ubuntuRun the one-time environment setup:
sudo apt update && sudo apt full-upgrade && sudo ./host_check.sh && sudo pip3 install pyelftools && sudo ln -sf /usr/bin/python3 /usr/bin/python && sudo sed -i -e '/\%sudo/ c \%sudo ALL=(ALL) NOPASSWD: ALL' /etc/sudoers && sudo usermod -a -G sudo $USER && exec su - $USERIf
sudo ./host_check.shreports that the command cannot be found, make the script executable withchmod +x host_check.sh. If any check fails, follow its instructions and rerun the setup.
3. Build the Debian packages
Open the kernel source directory:
cd /path/to/tspi_linux_sdk_xxxxxxxx/kernel-6.1Build the packages:
make CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 LOCALVERSION="" bindeb-pkg -j$(nproc)The SDK root will contain:
- linux-headers-6.1.141_6.1.141-1_arm64.deb
- linux-image-6.1.141_6.1.141-1_arm64.deb
- linux-libc-dev_6.1.141-1_arm64.deb
4. Build the desktop image
Return to the ubuntu directory:
cd /path/to/tspi_linux_sdk_xxxxxxxx/ubuntuBuild Ubuntu with a desktop:
GUI=desktop ./mk-base-ubuntu.sh && GUI=desktop ./mk-ubuntu-rootfs.sh && ./mk-image.shIf a script is not executable, grant execute permission:
bashsudo chmod +x ./mk-base-ubuntu.sh sudo chmod +x ./mk-ubuntu-rootfs.sh sudo chmod +x ./mk-image.sh1
2
3
5. Build the server image
GUI=console ./mk-base-ubuntu.sh && GUI=console ./mk-ubuntu-rootfs.sh && ./mk-image.shIf a script is not executable, grant execute permission:
bashsudo chmod +x ./mk-base-ubuntu.sh sudo chmod +x ./mk-ubuntu-rootfs.sh sudo chmod +x ./mk-image.sh1
2
3
Build Output
The ubuntu directory will contain:
ubuntu-jammy.img— flashable filesystem imagebinary/— unpacked root filesystem
Flash ubuntu-jammy.img to the rootfs partition.