How to install X-LINUX-AI v2.0.0 on Avenger96 board

Revision as of 15:34, 8 July 2020 by Registered User

This article explains how to use and rebuild X-LINUX-AI v2.0.0 on an OpenSTLinux v1.2.0[1] distribution using the Avenger96 board[2].

For more detailed information about X-LINUX-AI Expansion Package, refer to X-LINUX-AI OpenSTLinux Expansion Package.

Info white.png Information
The OpenSTLinux v2.0.0[3] is not yet supported on the Avenger96 board.

1. Validated hardware[edit source]

As any software expansion package, X-LINUX-AI is supported on all STM32MP1 Series. It has been validated on the following boards:

  • STM32MP157 Avenger96 board[2] + an UVC USB WebCam or the OV5640 CSI Camera mezzanine board[4]

Optional:

  • Coral USB Edge TPU[5] accelerator

2. Re-generating X-LINUX-AI OpenSTLinux distribution[edit source]

Use the following procedure to re-generate the complete distribution and enable the X-LINUX-AI expansion package.
This procedure is mandatory if you need to update by yourself some frameworks or modify the application samples.

2.1. Downloading the STM32MP1 Distribution Package v1.2.0[edit source]

Install the STM32MP1 Distribution Package v1.2.0, but do not initialize the OpenEmbedded environment (do not source the envsetup.sh).

2.1.1. Cloning the meta-av96 and meta-st-stm32mpu-ai git repositories[edit source]

Warning white.png Warning
The software package is provided AS IS, and by downloading it, you agree to be bound to the terms of the software license agreement (SLA). The detailed content licenses can be found here.
 cd <Distribution Package installation directory>/layers
 git clone https://github.com/vinceab/meta-av96.git -b av96_v50
 cd <Distribution Package installation directory>/layers/meta-st
 git clone https://github.com/STMicroelectronics/meta-st-stm32mpu-ai.git -b v2.0.0_thud

2.2. Setting up the build environment[edit source]

 cd ../..
 META_LAYER_ROOT=layers DISTRO=openstlinux-weston MACHINE=stm32mp1-av96 source layers/meta-st/scripts/envsetup.sh

2.3. Adding the new layers to the build system (in that order)[edit source]

 bitbake-layers add-layer ../layers/meta-av96
 bitbake-layers add-layer ../layers/meta-st/meta-st-stm32mpu-ai

2.4. Building the image[edit source]

 bitbake st-image-ai
Info white.png Information
Building the image can take a long time since it depends on the host computer performance.

2.5. Flashing the built image[edit source]

Follow this link to know how to flash the built image.

3. References[edit source]


[[Category:Artificial intelligence expansion packages|01]] {{PublicationRequestId | 16618 | 1Jul'20}}

No categories assignedEdit