Build from Source Code

Based on Yocto project, rity-demo-image is used to demonstrate the IoT Yocto BSP. Please follow the instructions below to build the demo images of each board.

Note

Important

You need permission to access the https://gitlab.com/mediatek/aiot/nda to build fully functioned rity-demo-image. You can still build image using only publicly available packages through configuration, but the resulting images have only limited feature set.

To request for the permission, please contact your MediaTek sales.

Build Images for Genio EVK Boards

Important

Please read and agree AIoT Software License Agreement before accessing or using IoT Yocto software. If you do not agree to the terms and conditions of AIoT Software License Agreement, you must not access or use the software.

In v23.2 release, to build private configuration that requires GitLab account and NDA repository access, set the NDA_BUILD configuration variable to 1 after initializing the build environment:

 1# download recipe with manifests
 2mkdir iot-yocto; cd iot-yocto
 3export PROJ_ROOT=`pwd`
 4repo init -u https://gitlab.com/mediatek/aiot/bsp/manifest.git -b refs/tags/rity-kirkstone-v23.2 -m default.xml --no-repo-verify
 5repo sync
 6
 7# build configuration
 8TEMPLATECONF=$PWD/src/meta-rity/meta/conf source src/poky/oe-init-build-env
 9export BUILD_DIR=`pwd`
10
11# Enable components that require NDA access
12echo NDA_BUILD = \"1\" >> ${BUILD_DIR}/conf/local.conf
13
14# Setup paths for downloads and sstate-cache folders
15echo DL_DIR = \"\${TOPDIR}/../downloads\" >> ${BUILD_DIR}/conf/local.conf
16echo SSTATE_DIR = \"\${TOPDIR}/../sstate-cache\" >> ${BUILD_DIR}/conf/local.conf

Please skip line 12 above if you don’t have NDA repository access or if you’d like to build a public configuration.

Depending on which board you’d like to build for, assign the MACHINE config variable:

Genio 350-EVK

# fetch all the packages and build rity-demo-image
MACHINE=genio-350-evk bitbake rity-demo-image

The output image is located in $BUILD_DIR/tmp/deploy/images/genio-350-evk. Please refer to Flash Genio 350-EVK to flash the image to the board.

Genio 510-EVK

# fetch all the packages and build rity-demo-image
MACHINE=genio-510-evk bitbake rity-demo-image

The output image is located in $BUILD_DIR/tmp/deploy/images/genio-510-evk. Please refer to Flash Genio 510/700-EVK to flash the image to the board.

Genio 700-EVK

# fetch all the packages and build rity-demo-image
MACHINE=genio-700-evk bitbake rity-demo-image

The output image is located in $BUILD_DIR/tmp/deploy/images/genio-700-evk. Please refer to Flash Genio 510/700-EVK to flash the image to the board.

Genio 1200-EVK

# fetch all the packages and build rity-demo-image
MACHINE=genio-1200-evk bitbake rity-demo-image

The output image is located in $BUILD_DIR/tmp/deploy/images/genio-1200-evk. Please refer to Flash Genio 1200-EVK to flash the image to the board.

Details and Other Boards

Please continue to the following sections for descriptions of each step and possible boards and image configurations.