...
The base principles for building the TorizonOS for STM32MP2 architecture are the same as for others the other targets described in the official TorizonOS documentation: https://developer.toradex.com/torizon/in-depth/build-torizoncore-from-source-with-yocto-projectopenembedded/.
The main difference is that the STM32MP2 build requires 2 additional meta-layers. These are:
meta-st-stm32mp
- BSP Layer for stm32mp the STM32MP2 developed by STMicroelectonics for the OpenSTLinux project https://wiki.st.com/stm32mpu/wiki/Category:Yocto-based_OpenSTLinux_embedded_softwaremeta-torizon-st
- adaptation of the stm32mp STM32MP2 BSP for TorizonOS developed by EmCraft.
Below is an instruction What follows is the instructions on how to integrate these two layers in to the general TorizonOS Yocto project and then build TorizonOS for the STM32MP2 targets.
...
5. Understanding Build Outcome
When build is complete has successfully completed, the following artifacts artefacts located in the build-stm32mp25-eval/deploy/images/stm32mp25-eval
can be used to install TorizonOS to the STM32MP2-EV1 development board (refer to Installing TorizonOS to STM32MP2 EV1 Using the STM32 Programmer Tool):
arm-trusted-firmware
- the directory with FSBL (= Trusted Firmware-A) images:tf-a-stm32mp257f-ev1-usb.stm32
- required to boot the STM32MP2 targets over USB for the initial installation
tf-a-stm32mp257f-ev1-optee-emmc.stm32
- to be installed and boot the STM32MP2 targets from eMMC
metadata.bin
- FSBL metadata
.
fip
- the directory with FIP (= U-Boot) images to be installed to eMMC:fip-stm32mp257f-ev1-ddr-optee-emmc.bin
- required to initialize DDR
fip-stm32mp257f-ev1-optee-emmc.bin
- main bootloader image
/
flashlayout_torizon-core-docker/optee/FlashLayout_emmc_stm32mp257f-ev1-optee.tsv
- eMMC layout to be used with the STM32_Programmertorizon-core-docker-stm32mp25-eval.ota-ext4
- main TorizoOS TorizonOS OSTree based image, including the Linux kernel images and the root file system.
...