Last edited 4 days ago

X-LINUX-AI Distribution package



1. Re-generate X-LINUX-AI OpenSTLinux distribution[edit | edit source]

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 | edit source]

  • Install the OpenSTLinux Distribution Package by following the dedicated article : STM32MPU Distribution Package, but do not initialize the OpenEmbedded environment (do not source the envsetup.sh).

1.2. Install X-LINUX-AI environment[edit | edit source]

  • Clone the meta-st-x-linux-ai git repositories
For X-LINUX-AI v6.0.1:
cd <Distribution Package installation directory>/layers/meta-st
git clone https://github.com/STMicroelectronics/meta-st-x-linux-ai.git -b v6.0.1
  • For a new environment
  • For an already installed environment

1.3. Build the image[edit | edit source]

Collapse
  • For STM32MP2x with AI hardware accelerator
bitbake st-image-ai-npu
  • For STM32MPU without AI hardware accelerator

1.4. Flash the built image[edit | edit source]

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