Skip to content

LINUX_SDK Source Code Compilation

Obtaining SDK Source Code

Note

1. The source code cannot be compiled in a shared directory.
2. The compilation host cannot log in using the ROOT account.

1. Download SDK and copy the source code archive to the compilation host directory.

2. Navigate to the directory containing the source code and enter the command to extract it.

tar -zxvf *.tar.gz

3. Enter the a133-linux directory generated by extraction and enter the command to restore the source code.

git reset --hard

First Compilation Configuration

./build.sh lunch
======you are building a133 linux======

1. BoardConfig-a133-kickpi-k5.mk
2. BoardConfig-a133-kickpi-k5c.mk
which board would you like (1-2):    // Select based on board model K5 or K5C

image-20251106203134675

Compile Complete Image

./build.sh 

The generated image is located at a133-linux/out/update-a133-kickpi-k5-ubuntu16.04-lvds-7-1024-600-2025110620.img

image-20251107091114488

Individual Compilation

Compile Kernel Individually

./build.sh kernel

Compile Rootfs Individually

./build.sh rootfs

Kconfig Configuration

Kconfig modification and saving:

./build.sh config
cd kernel/linux-4.9/
make ARCH=arm64 menuconfig
cd -
./build.sh saveconfig

Device Tree Path

kickpi-k5c.dts/device/config/chips/a133/configs/c3/kickpi-k5c.dts

Toolchain

Package Path

build/toolchain/gcc-linaro-5.3.1-2016.05-x86_64_aarch64-linux-gnu.tar.xz

Tool Path After Compilation

out/gcc-linaro-5.3.1-2016.05-x86_64_aarch64-linux-gnu

Q&A

  • Error about missing event.c file?
aarch64-linux-gnu-gcc: error: /home/A/sdk/a133/a133-linux-test1/kernel/linux-4.9/modules/gpu/img-rgx/linux/rogue_km/binary_sunxi_linux_release/target_aarch64/kbuild/services/server/env/linux/event.c: No such file or directory

Perform a clean operation:

./build.sh clean