Skip to content

Contributed by bzhou830, curated by Ai-Thinker

Operation Steps

1
Unboxing

1. Unboxing The unboxing video has been posted on Bilibili; please hit like, coin and favorite!

2
Setting Up the Development Environment

2. Setting Up the Development Environment There are already quite a few articles about setting up the development environment. You can choose Windows or Linux, and the official team has also provided a virtual machine image. I originally wanted a plug-and-play experience, but opening Baidu Netdisk was dizzying. The image is too large, and the download speed was only tens of KB/s. Forget it, I’ll install one myself. First, install an Ubuntu 18.04 system. I won’t go into detail about the system installation. After installation, some packages need to be installed:

Operation Steps (continued)

1
sudo apt install -y net-tools
sudo apt install -y net-tools
2
sudo apt-get install libssl-dev -y
sudo apt-get install libssl-dev -y
3
sudo apt-get -y install gcc rpm git cmake ninja-build
sudo apt-get -y install gcc rpm git cmake ninja-build
4
sudo apt-get -y install make
sudo apt-get -y install make
5
sudo apt-get -y install vim
sudo apt-get -y install vim

After these are installed, you can clone the code.

bash
git clone https://gitee.com/Ai-Thinker-Open/AiPi-Open-Kits.git

After cloning, we still need to fetch the SDK. However, the submodule SDK path in the repository above still points to GitHub; we can modify it manually so that the SDK path points to Gitee.

Then run:

bash
git submodule update

This fetches the SDK from Gitee. A quick note on why Gitee: GitHub access from mainland China is often disconnected or unreachable. Once the SDK is fetched, we need to configure the SDK's build toolchain so that compilation can find it later. Enter the SDK directory and run the following two scripts:

Operation Steps (continued)

1
. install.sh
. install.sh
2
. export.sh
. export.sh

Once the above is done, pick an example to try compiling. Go to the helloworld directory under examples and run make:

As shown above, compilation succeeded. Now plug in the board and try flashing.

Have questions?

For other questions, please visit the unified discussion area: Ai-Thinker Discussions

Released under the MIT License. Build Time 2026-09-11 14:52:23