Registered User No edit summary |
Registered User m (Text replacement - "{{PC$}} " to "{{PC$}}") |
||
Line 17: | Line 17: | ||
{{Warning|{{SoftwareLicenseAgreement | distribution=X-LINUX-AI}}}} | {{Warning|{{SoftwareLicenseAgreement | distribution=X-LINUX-AI}}}} | ||
'''For {{X-LINUXRelease/Revision | revision=latest | name=AI}}:''' | '''For {{X-LINUXRelease/Revision | revision=latest | name=AI}}:''' | ||
{{PC$}} cd <Distribution Package installation directory>/layers/meta-st | {{PC$}}cd <Distribution Package installation directory>/layers/meta-st | ||
{{PC$}} git clone https://github.com/STMicroelectronics/meta-st-x-linux-ai.git -b {{X-LINUXRelease/Revision | revision=latest | name=AI | type=tag}} | {{PC$}}git clone https://github.com/STMicroelectronics/meta-st-x-linux-ai.git -b {{X-LINUXRelease/Revision | revision=latest | name=AI | type=tag}} | ||
<div class="mw-collapsible mw-collapsed"> | <div class="mw-collapsible mw-collapsed"> | ||
Line 24: | Line 24: | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
Source the build environment with the correct board and layer: | Source the build environment with the correct board and layer: | ||
{{PC$}} cd ../.. | {{PC$}}cd ../.. | ||
{{PC$}} DISTRO=openstlinux-weston MACHINE={{HighlightParam|''<machine>''}} BSP_DEPENDENCY='layers/meta-st/meta-st-x-linux-ai' source layers/meta-st/scripts/envsetup.sh | {{PC$}}DISTRO=openstlinux-weston MACHINE={{HighlightParam|''<machine>''}} BSP_DEPENDENCY='layers/meta-st/meta-st-x-linux-ai' source layers/meta-st/scripts/envsetup.sh | ||
Note that: | Note that: | ||
Line 36: | Line 36: | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
Add the meta-st-x-linux-ai to Yocto environment: | Add the meta-st-x-linux-ai to Yocto environment: | ||
{{PC$}} cd ../.. | {{PC$}}cd ../.. | ||
{{PC$}} source layers/meta-st/scripts/envsetup.sh | {{PC$}}source layers/meta-st/scripts/envsetup.sh | ||
{{PC$}} bitbake-layers add-layer ../layers/meta-st/meta-st-x-linux-ai/ | {{PC$}}bitbake-layers add-layer ../layers/meta-st/meta-st-x-linux-ai/ | ||
</div> | </div> | ||
===Build the image=== | ===Build the image=== | ||
{{PC$}} bitbake st-image-ai | {{PC$}}bitbake st-image-ai | ||
{{Info|Note that building the image could take long time depending on the host computer performance.}} | {{Info|Note that building the image could take long time depending on the host computer performance.}} | ||
Latest revision as of 22:20, 8 October 2024
1. Re-generate X-LINUX-AI OpenSTLinux distribution
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
- 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
- Clone the meta-st-x-linux-ai git repositories
https://github.com/STMicroelectronics/meta-st-x-linux-ai.git -b v6.0.0For X-LINUX-AI v6.0.0: cd <Distribution Package installation directory>/layers/meta-st git clone
Expand
- For a new environment
Expand
- For an already installed environment
1.3. Build the image
bitbake st-image-ai
![]() |
Note that building the image could take long time depending on the host computer performance. |
1.4. Flash the built image
Follow this link to see how to flash the built image.