Manual Installation
Installation Steps
Toolchain Download and Installation
Program Compilation Dependency Library Installation
Documentation Compilation Dependency Library Installation
Toolchain Download and Installation
Click Download to download the BK7239 toolchain.
After downloading the toolkit, extract it to the /opt/ directory using the following command:
$ sudo tar -xvjf gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 -C /opt/
Note
The toolchain default path is defined in the middleware/soc/bk7239/bk7239.defconfig file. You can also change the toolchain path in the project configuration file:
CONFIG_TOOLCHAIN_PATH="/opt/gcc-arm-none-eabi-10.3-2021.10/bin"
Program Compilation Dependency Library Installation
For Ubuntu or Debian operating systems, enter the following commands:
sudo apt update
sudo apt install make cmake python3 python3-pip ninja-build -y
For CentOS operating system, enter the following commands:
sudo yum update
sudo yum install -y python38 make git cmake3 ninja-build bzip2 wget
For Archlinux operating system, enter the following commands:
sudo pacman -Syyu
sudo pacman -S --noconfirm make wget git cmake python3 python-pip python-setuptools ninja
Enter the following command in the terminal to install Python dependency libraries:
sudo pip3 install pycryptodome click future click_option_group cryptography jinja2 PyYAML cbor2 intelhex
If your Python defaults to Python2, please use the following command to change it to Python3. The minimum required version for Python is Python3.8:
sudo ln -s /usr/bin/python3 /usr/bin/python
Note
If the Ubuntu version is 23.04 or above, Python third-party libraries will use external environment management. When using pip to install third-party libraries, you need to pass –break-system-packages. CentOS 7 cannot install Python3.8 from the software repository. You need to use source code compilation to install it.
Documentation Compilation Dependency Library Installation
However, if you wish to generate Armino documentation yourself, you need to install the following Python dependencies:
sudo pip3 install Sphinx sphinx-rtd-theme breathe blockdiag sphinxcontrib-blockdiag sphinxcontrib-seqdiag sphinxcontrib-actdiag sphinxcontrib-nwdiag Pillow
You also need to install the necessary software tool doxygen. When using Ubuntu, enter the following command to install:
sudo apt install doxygen -y
Note
With the upgrade of doxygen software and the update of Python third-party libraries, for documentation before February 2025, there are incompatible syntax and feature calls. You can refer to the article on the Armino forum to resolve previous documentation compilation issues.