Approved version. Approved on: 15:17, 3 July 2023
- Last edited 3 months ago ago
X-LINUX-AI Distribution package
Contents
1 Re-generate X-LINUX-AI OpenSTLinux distribution[edit]
With the following procedure, you can re-generate the complete distribution enabling the X-LINUX-AI expansion package.
This procedure is mandatory if you want to update frameworks by yourself, or generate your own X-LINUX-AI distribution by selecting the relevant AI framework for your applications.
1.1 Download the Distribution Package[edit]
- Install the OpenSTLinux Distribution Package by following the dedicated article : STM32MP1 Distribution Package, but do not initialize the OpenEmbedded environment (do not source the envsetup.sh).
1.2 Install X-LINUX-AI environment[edit]
- Clone the meta-st-x-linux-ai git repositories
For X-LINUX-AI v5.0.0: cd <Distribution Package installation directory>/layers/meta-st git clone https://github.com/STMicroelectronics/meta-st-x-linux-ai.git -b v5.0.0
- For a new environment
Source the build environment with the correct board and layer:
cd ../..
DISTRO=openstlinux-weston MACHINE=stm32mp1 BSP_DEPENDENCY='layers/meta-st/meta-st-x-linux-ai' source layers/meta-st/scripts/envsetup.sh
- For an already installed environment
Add the meta-st-x-linux-ai to Yocto environment:
cd ../.. source layers/meta-st/scripts/envsetup.sh bitbake-layers add-layer ../layers/meta-st/meta-st-x-linux-ai/
1.3 Build the image[edit]
bitbake st-image-ai
1.4 Flash the built image[edit]
Follow this link to see how to flash the built image.