【BIGTREETECH PI development board】 System source code compilation
[Copy link]
This post was last edited by TL-LED on 2023-8-2 14:41
In this article, we will learn how to compile the system source code of the development board.
1. Download source code
Download address:
2. Compilation
2.1. Install the software library
Install software command:
sudo apt-get install ccache debian-archive-keyring debootstrap device-tree-compiler dwarves
sudo apt-get install gcc-arm-linux-gnueabihf jq libbison-dev libc6-dev-armhf-cross
sudo apt-get install libelf-dev libfl-dev liblz4-tool libpython2.7-dev libusb-1.0-0-dev
sudo apt-get install pigz pixz pv swig pkg-config python3-distutils qemu-user-static u-boot-tools
sudo apt-get install distcc uuid-dev lib32ncurses-dev lib32stdc++6 apt-cacher-ng
sudo apt-get install aptly aria2 libfdt-dev libssl-dev
The process is as follows:
2.2 Compilation
Copy the downloaded file to the Ubuntu system
Execute the compilation command: root@ubuntu:/opt/CB1-Kernel-kernel-5.16# ./build.sh
Select OS image
Error during compilation
The compilation environment used is ubuntu20.04, and the official one is ubuntu 22.04. It may be related to the system. Now I will reinstall the ubuntu22.04 version, build the environment and recompile the image. The compilation process is as follows
2.3. After compilation is completed, the generated image file
2.4、Burn the system
Copy the generated system files to the window system and burn the image
3. Operation
After the burning is completed, install the TF card into the development board and run the serial port output
Compilation and burning are completed and the system runs normally.
|