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.
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:
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]
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
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}}