LINUX SDK Compilation
SDK (Software Development Kit) is a collection of development tools provided for a specific software framework, hardware platform, or operating system, designed to help developers create applications more efficiently.
Build Environment Setup
Install Ubuntu on a PC for SDK compilation.
- Hardware: PC with RAM ≥ 16 GB, CPU cores ≥ 4, Hard Drive ≥ 500GB
- Software: Ubuntu, VM disk space ≥ 200GB
Install dependencies:
Tip
If dependency installation errors occur, check the error messages and install the corresponding packages.
sudo apt-get update
sudo apt install autoconf bc binfmt-support bison build-essential bzip2
sudo apt install chrpath cmake cpp-aarch64-linux-gnu curl device-tree-compiler diffstat
sudo apt install expat expect expect-dev fakeroot flex
sudo apt install g++ g++-multilib gawk gcc gcc-multilib git gnupg gperf gpgv2 imagemagick
sudo apt install lib32ncurses5-dev lib32readline-dev lib32z1-dev libgmp-dev
sudo apt install libgucharmap-2-90-dev liblz4-tool libmpc-dev
sudo apt install libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-gtk3-dev
sudo apt install libxml2 libxml2-utils live-build lzop
sudo apt install make module-assistant ncurses-dev openjdk-8-jdk
sudo apt install patchelf pngcrush python2 python-is-python3 python-pip
sudo apt install qemu-user-static rsync schedtool squashfs-tools ssh sudo
sudo apt install texinfo u-boot-tools unzip
sudo apt install xsltproc yasm zip zlib1g-dev pip
sudo apt-get install binfmt-support qemu-user-static --reinstall
sudo pip install pyelftools
sudo ln -s /usr/bin/python2 /usr/bin/python
Obtain SDK Source Code
Note
- Do not place the SDK in a shared directory for compilation.
- Do not compile while logged in as the ROOT user.
1. Click to download Linux SDK source, click to download release_sdk.sh. Download the latest files based on the date suffix.
2. Place the tar.gz package, md5sum file, and release_sdk.sh script in the same directory on the build host.
3. Run the script to extract the SDK source.
Diagram: "All files processed successfully!" indicates the script ran successfully.

Extracted SDK source directory:

Full Compilation
Tip
The T527 Linux SDK currently only maintains Debian 11.
1. Navigate to the SDK root directory and run the following command to configure the build target.
Select the configuration file. This determines which DTS file is used. Select the second option.
./build.sh lunch
You're building on Linux
Lunch menu...pick a combo:
1. BoardConfig-t527-default.mk
2. BoardConfig-t527-kickpi-k9.mk
2. Configure the build environment
Make selections according to the configuration below:
./build.sh config
========ACTION List: mk_config ;========
options :
All available platform:
0. android
1. linux
Choice [linux]: 1
All available linux_dev:
0. bsp
1. dragonboard
2. buildroot
3. debian
Choice [debian]: 3
All available kern_name:
0. linux-5.10
1. linux-5.15
Choice [linux-5.15]: 1
All available ic:
0. a523
1. a527
2. t527
Choice [t527]: 2
All available board:
0. demo_linux_aiot
1. demo_linux_aiot_nand
2. demo_linux_aiot_spinand
Choice [demo_linux_aiot]: 0
All available flash:
0. default
1. nor
Choice [default]: 0
All available rootfs files:
0. binary
1. linaro-bullseye-gnome-arm64.tar.gz
2. linaro-bullseye-lite-arm64.tar.gz
3. linaro-bullseye-lxde-arm64.tar.gz
4. linaro-bullseye-xfce-arm64.tar.gz
Choice [linaro-bullseye-lxde-arm64.tar.gz]: 3
3. Compile the full image.
4. Package the image.
5. Image path after compilation
Partial Compilation
- Build Uboot
- Build Kernel
- Build Debian