Local Deployment

[中文]

Setup Build Environment on Linux

Note

The Armino compilation environment on Linux requires Ubuntu 20.04 LTS version and above, CentOS 7 version or above, ArchLinux and Debian 11 version or above. This chapter will take Ubuntu 20.04 LTS version as an example to introduce the construction of the entire compilation environment.

The compilation environment can be installed using an environment installation script or manual installation. It is recommended to use the installation script method. If there is no installation script in the SDK directory, you can follow the manual installation method.

  • Srcipt installation:

    If there is an installation script in the SDK, enter the SDK directory and execute the installation script. Follow the installation script to complete the build environment installation:

    cd ~/armino/bk_idk
    sudo bash tools/env_tools/setup/armino_env_setup.sh
    

    If the installation script does not exist in the SDK, it can be downloaded and executed from the link .

  • Manual installation:

    Please refer to the link for manual installation.

Note

The default path for the toolchain is defined in the middleware/soc/bk7236/soc_config.mk. If you change the toolchain path, you will need to reconfigure it in the configuration file. You can also change the toolchain path in the project file pj_comg.mk:

COMPILER_TOOLCHAIN_PATH := /opt/gcc-arm-none-eabi-10.3-2021.10/bin

Setup Build Environment on Windows

Armino requires a Windows 7 or higher 64 bit operating system in the Windows environment, and the integrated compilation environment for Windows is Armino Bash. Click the link to download the installation package. The installation path cannot contain Chinese characters or spaces. After installation, generate a shortcut icon for Armino Bash on the desktop. Double click the shortcut icon to enter the Armino Bash terminal. The Armino Bash terminal is based on git bash and supports commonly used Linux commands and shell script execution. The path style is consistent with git bash, such as ` C:\Programs` is represented as /c/Programs in Armino bash.

Note

If you need to use a Windows style path, you can include it in single quotes, for example:

cd ‘C:\Programs’

Note

The installation path and SDK code path of Windows tools cannot contain Chinese characters and spaces. The Windows system currently does not support document compilation. Pulling code from Armino Bash in Win7 system will result in errors. You can use the installation version of Git to pull the code after installing Git.

Build The Project

Run following commands to build BK7236 app project:

cd ~/armino/bk_idk
make bk7236

The app project startup:

  • WiFi/BLE

  • Common pheripheral drivers

  • Armino default Cli

You can build other projects with PROJECT parameter, e.g. run “make bk7236 PROJECT=security/secureboot” can build projects/security/secureboot etc.

For more compilation related commands, please refer to link