deleted>Frq08988 mNo edit summary |
Registered User mNo edit summary |
||
(38 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
==Article purpose== | ==Article purpose== | ||
This article aims at proposing a way to organize, on the host PC, the software packages of the different Packages (Starter, Developer and Distribution) for a given release of the STM32MPU Embedded Software distribution. | This article aims at proposing a way to organize, on the host PC, the software packages of the different Packages (Starter, Developer and Distribution) for a given release of the STM32MPU Embedded Software distribution. | ||
Line 14: | Line 6: | ||
* The SDK (Developer Package) and the image (Starter Package) have both been generated from the Distribution Package. A software release thus guarantees that there is no misalignment between the different software packages. | * The SDK (Developer Package) and the image (Starter Package) have both been generated from the Distribution Package. A software release thus guarantees that there is no misalignment between the different software packages. | ||
{{info|The objective of this article is to describe one organization among all the possible organizations. Feel free to organize the delivered Packages in any other way that would better match your way of working.}} | |||
{{info| | {{info|In practice, this article uses the release '''STM32MP15-Ecosystem-v{{EcosystemRelease/Revision | revision=latest}}''' for the STM32MPU Embedded Software distribution as an example to illustrate the proposed organization. If you are using a different release, the names of the directories and files might differ.}}{{UpdateNeededForNewRelease|The trees below shall be updated periodically, even if the information banner specifies that they might not be up-to-date}} | ||
{{ | |||
Line 23: | Line 14: | ||
==Creating the structure== | ==Creating the structure== | ||
* Create your <working directory> and assign a unique name to it (for example by including the release | * Create your <working directory> and assign a unique name to it (for example by including the release name): | ||
{{PC$}} mkdir | {{PC$}} mkdir STM32MP15-Ecosystem-v{{EcosystemRelease/Revision | revision=latest}} | ||
{{PC$}} cd | {{PC$}} cd STM32MP15-Ecosystem-v{{EcosystemRelease/Revision | revision=latest}} | ||
* Create the first-level directories that will host the software packages delivered through the STM32MPU Embedded Software distribution release note: | * Create the first-level directories that will host the software packages delivered through the STM32MPU Embedded Software distribution release note: | ||
{{PC$}} mkdir Starter-Package | {{PC$}} mkdir Starter-Package | ||
Line 31: | Line 22: | ||
{{PC$}} mkdir Distribution-Package | {{PC$}} mkdir Distribution-Package | ||
* The resulting directory structure looks as follows: | * The resulting directory structure looks as follows: | ||
{{Green| | {{Green|STM32MP15-Ecosystem-v{{EcosystemRelease/Revision | revision=latest}}}} {{Highlight|STM32MPU Embedded Software release}} | ||
├── {{Green|Developer-Package}} | ├── {{Green|Developer-Package}} {{Highlight|Developer Package installation directory}} | ||
├── {{Green|Distribution-Package}} | ├── {{Green|Distribution-Package}} {{Highlight|Distribution Package installation directory}} | ||
└── {{Green|Starter-Package}} | └── {{Green|Starter-Package}} {{Highlight|Starter Package installation directory}} | ||
Once all software packages have been installed according to the instructions given in the STM32MPU Embedded Software distribution release note, the resulting directory structure looks as follows: | Once all software packages have been installed according to the instructions given in the STM32MPU Embedded Software distribution release note, the resulting directory structure looks as follows: | ||
{{Green| | {{Green|STM32MP15-Ecosystem-v{{EcosystemRelease/Revision | revision=latest}}}} {{Highlight|STM32MPU Embedded Software release}} | ||
├── {{Green|Developer-Package}} | ├── {{Green|Developer-Package}} {{Highlight|Developer Package installation directory}} | ||
│ ├── {{Green| | │ ├── {{Green|SDK}} {{Highlight|SDK for OpenSTLinux distribution}} | ||
│ ├── {{Green| | │ ├── {{Green|{{EcosystemRelease/Package | revision=latest | package=STM32CubeMP1 | request=path}}}} {{Highlight|STM32CubeMP1 Package}} | ||
│ └── {{Green| | │ └── {{Green|stm32mp1-{{EcosystemRelease/Package | revision=latest | package=OpenSTLinux distribution | request=name}}}} {{Highlight|Linux kernel, U-Boot, TF-A and OP-TEE OS source code (OpenSTLinux distribution)}} | ||
├── {{Green|Distribution-Package}} | ├── {{Green|Distribution-Package}} {{Highlight|Distribution Package installation directory}} | ||
│ └── {{Green| | │ └── {{Green|stm32mp1-{{EcosystemRelease/Package | revision=latest | package=OpenSTLinux distribution | request=name}}}} {{Highlight|OpenSTLinux distribution (full source code and OpenEmbedded-based build framework)}} | ||
└── {{Green|Starter-Package}} | └── {{Green|Starter-Package}} {{Highlight|Starter Package installation directory}} | ||
└── {{Green| | └── {{Green|stm32mp1-{{EcosystemRelease/Package | revision=latest | package=OpenSTLinux distribution | request=name}}}} {{Highlight|Software image (binaries)}} | ||
==Focus on the Starter Package directory== | ==Focus on the Starter Package directory== | ||
The ''Starter-Package'' directory contains the software image for the STM32MPU Embedded Software distribution. | The ''Starter-Package'' directory contains the software image for the STM32MPU Embedded Software distribution. | ||
The trusted boot chain is the default solution delivered by STMicroelectronics. It includes the superset of features (for example, all Flash memory devices are supported). The basic boot chain is also upstreamed by STMicroelectronics, with a limited number of features (for example microSD card memory boot only). Refer to the [[Boot | The trusted boot chain is the default solution delivered by STMicroelectronics. It includes the superset of features (for example, all Flash memory devices are supported). The basic boot chain is also upstreamed by STMicroelectronics, with a limited number of features (for example microSD card memory boot only). Refer to the [[Boot chain overview]] article for details. | ||
Flash memory partitions (e.g. rootfs, bootfs...) are explained in the [[STM32MP15 Flash mapping]] article. | Flash memory partitions (e.g. rootfs, bootfs...) are explained in the [[STM32MP15 Flash mapping]] article. | ||
Line 56: | Line 47: | ||
{{Green|Starter-Package}} | {{Green|Starter-Package}} | ||
└── {{Green| | └── {{Green|stm32mp1-{{EcosystemRelease/Package | revision=latest | package=OpenSTLinux distribution | request=name}} }} | ||
└── {{Green|images}} | └── {{Green|images}} | ||
└── {{Green|stm32mp1}} | └── {{Green|stm32mp1}} | ||
├── {{Green|flashlayout_st-image-weston}} {{Highlight|Flash layout files (description of the partitions) for the supported Flash devices and boards}} | ├── {{Green|flashlayout_st-image-weston}} {{Highlight|Flash layout files (description of the partitions) for the supported Flash devices and boards}} | ||
│ ├── | │ ├── FlashLayout_emmc_stm32mp157f-ev1-optee.tsv {{Highlight|Flash layout file for eMMC and trusted boot chain, with OP-TEE OS → STM32MP157F-EV1}} | ||
│ ├── | │ ├── FlashLayout_emmc_stm32mp157f-ev1-trusted.tsv {{Highlight|Flash layout file for eMMC and trusted boot chain → STM32MP157F-EV1}} | ||
│ ├── | │ ├── FlashLayout_sdcard_stm32mp157f-dk2-basic.tsv {{Highlight|Flash layout file for microSD card and basic boot chain → STM32MP157F-DK2}} | ||
│ ├── | │ ├── FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv {{Highlight|Flash layout file for microSD card and trusted boot chain, with OP-TEE OS → STM32MP157F-DK2}} | ||
│ ├── | │ ├── FlashLayout_sdcard_stm32mp157f-dk2-trusted.tsv {{Highlight|Flash layout file for microSD card and trusted boot chain ('''recommended setup''') → STM32MP157F-DK2}} | ||
│ ├── | │ ├── FlashLayout_sdcard_stm32mp157f-dk2-extensible.tsv {{Highlight|Flash layout file for microSD card with no userfs partition but a rootfs partition extended to sdcard size (recommended setup for [[Package_repository_for_OpenSTLinux_distribution|package repository]] service) → STM32MP157F-DK2}} | ||
│ ├── | │ └── [...] | ||
├── {{Green|fip}} | |||
│ ├── fip-''<board>''-''<boot-type>''.bin {{Highlight|Image to flash}} | |||
├── {{Green|arm-trusted-firmware}} | |||
│ ├── tf-a-''<board>''-''<boot-type>''.stm32 {{Highlight|Intermediate tf-a binary used to build fip image}} | |||
├── {{Green|u-boot}} | |||
│ ├── u-boot-nodtb-''soc''.bin {{Highlight|Intermediate tf-a binary used to build fip image}} | |||
│ ├── u-boot-''<board>''-''<boot-type>''.dtb {{Highlight|Intermediate tf-a dtb used to build fip image}} | |||
├── {{Green|optee}} | |||
│ ├── tee-header_v2-''<board>''.bin | |||
│ ├── tee-pageable_v2--''<board>''.bin | |||
│ ├── tee-pager_v2--''<board>''.bin | |||
├── {{Green|kernel}} | |||
│ ├── vmlinux {{Highlight|vmlinux copied in bootfs partition}} | |||
├── {{Green|scripts}} | ├── {{Green|scripts}} | ||
│ └── create_sdcard_from_flashlayout.sh | │ └── create_sdcard_from_flashlayout.sh | ||
├── st-image-bootfs-openstlinux-weston-stm32mp1.ext4 {{Highlight|Binary for ''bootfs'' partition}} | ├── st-image-bootfs-openstlinux-weston-stm32mp1.ext4 {{Highlight|Binary for ''bootfs'' partition}} | ||
├── st-image-bootfs-openstlinux-weston-stm32mp1.manifest | ├── st-image-bootfs-openstlinux-weston-stm32mp1.manifest | ||
├── st-image-userfs-openstlinux-weston-stm32mp1.ext4 {{Highlight|Binary for ''userfs'' partition}} | ├── st-image-userfs-openstlinux-weston-stm32mp1.ext4 {{Highlight|Binary for ''userfs'' partition}} | ||
├── st-image-userfs-openstlinux-weston-stm32mp1.manifest | ├── st-image-userfs-openstlinux-weston-stm32mp1.manifest | ||
├── st-image-vendorfs-openstlinux-weston-stm32mp1.ext4 {{Highlight|Binary for ''vendorfs'' partition}} | |||
├── st-image-weston-openstlinux-weston-stm32mp1.ext4 {{Highlight|Binary for ''rootfs'' partition}} | ├── st-image-weston-openstlinux-weston-stm32mp1.ext4 {{Highlight|Binary for ''rootfs'' partition}} | ||
├── st-image-weston-openstlinux-weston-stm32mp1.license | ├── st-image-weston-openstlinux-weston-stm32mp1.license | ||
├── st-image-weston-openstlinux-weston-stm32mp1-license_content.html | ├── st-image-weston-openstlinux-weston-stm32mp1-license_content.html | ||
├── st-image-weston-openstlinux-weston-stm32mp1.manifest | ├── st-image-weston-openstlinux-weston-stm32mp1.manifest | ||
└── [...] | |||
==Focus on the Developer Package directory== | ==Focus on the Developer Package directory== | ||
The ''Developer-Package'' directory contains: | The ''Developer-Package'' directory contains: | ||
* The source code for the following OpenSTLinux software packages (development for Arm<sup>®</sup> Cortex<sup>®</sup>-A processor): | * The source code for the following OpenSTLinux software packages (development for Arm<sup>®</sup> Cortex<sup>®</sup>-A processor): | ||
** Linux<sup>®</sup> kernel | |||
** U-Boot | |||
** TF-A | ** TF-A | ||
** | ** OP-TEE OS | ||
* The debug symbol files for Linux kernel, U-Boot, TF-A and OP-TEE OS | |||
* The debug symbol files for Linux kernel, U-Boot | |||
* The SDK (for cross-development on an host PC) | * The SDK (for cross-development on an host PC) | ||
* The STM32Cube MPU Package (developed for Arm<sup>®</sup> Cortex<sup>®</sup>-M processor) | * The STM32Cube MPU Package (developed for Arm<sup>®</sup> Cortex<sup>®</sup>-M processor) | ||
Line 102: | Line 97: | ||
{{Green|Developer-Package}} | {{Green|Developer-Package}} | ||
├── {{Green| | ├── {{Green|SDK}} {{Highlight|'''SDK for OpenSTLinux distribution''': details in [[Standard SDK directory structure]] article}} | ||
│ ├── {{Green| | │ ├── environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi {{Highlight|'''Environment setup script''' for Developer Package}} | ||
│ │ └── {{Green|stm32mp1}} {{Highlight|'''Debug symbol files installation directory'''}} | │ ├── site-config-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi | ||
│ ├── {{Green|sysroots}} | |||
│ │ ├── {{Green|cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi}} {{Highlight|Target sysroot (libraries, headers, and symbols)}} | |||
│ | │ │ │ └── [...] | ||
│ │ └── {{Green|x86_64-ostl_sdk-linux}} {{Highlight|Native sysroot (libraries, headers, and symbols)}} | |||
│ │ └── [...] | |||
│ └── version-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi | |||
├── {{Green|{{EcosystemRelease/Package | revision=latest | package=STM32CubeMP1 | request=path}}}} {{Highlight|'''STM32CubeMP1 Package''': details in [[STM32CubeMP1 Package#STM32CubeMP1 Package Content|STM32CubeMP1 Package content]] article}} | |||
│ ├── {{Green|Drivers}} | |||
│ │ ├── {{Green|BSP}} {{Highlight|BSP drivers for the supported STM32MPU boards}} | |||
│ │ │ └── [...] | |||
│ │ ├── {{Green|CMSIS}} | |||
│ │ │ └── [...] | |||
│ │ └── {{Green|STM32MP1xx_HAL_Driver}} {{Highlight|HAL drivers for the supported STM32MPU devices}} | |||
│ │ └── [...] | |||
│ ├── {{Green|_htmresc}} | |||
│ │ └── [...] | |||
│ ├── License.md {{Highlight|License types for the components}} | |||
│ ├── {{Green|Middlewares}} {{Highlight|Middlewares used by the examples and applications}} | |||
│ │ └── [...] | |||
│ ├── package.xml | |||
│ ├── {{Green|Projects}} | |||
│ │ ├── STM32CubeProjectsList.html {{Highlight|List of examples and applications for STM32CubeMP1 Package}} | |||
│ │ ├── {{Green|STM32MP157F-DK2}} {{Highlight|Set of examples and applications → STM32MP157F-DK2}} | |||
│ │ │ └── [...] | |||
│ │ └── {{Green|STM32MP157F-EV1}} {{Highlight|Set of examples and applications → STM32MP157F-EV1}} | |||
│ │ └── [...] | |||
│ ├── Readme.md | |||
│ ├── Release_Notes.html {{Highlight|Release note for STM32CubeMP1 Package}} | |||
│ └── {{Green|Utilities}} | |||
│ └── [...] | |||
└── {{Green|stm32mp1-{{EcosystemRelease/Package | revision=latest | package=OpenSTLinux distribution | request=name}}}} {{Highlight|Source code for OpenSTLinux distribution}} | |||
├── {{Green|images}} | |||
│ └── {{Green|stm32mp1}} {{Highlight|'''Debug symbol files installation directory'''}} | |||
│ ├── tf-a-bl2-optee.elf {{Highlight|Debug symbol file for TF-A, with OP-TEE OS → trusted boot firmware stage}} | |||
│ ├── tf-a-bl2-trusted.elf {{Highlight|Debug symbol file for TF-A → trusted boot firmware stage}} | |||
│ ├── tf-a-bl32-trusted.elf {{Highlight|Debug symbol file for TF-A → runtime software stage}} | |||
│ ├── u-boot-stm32mp157a-dk1-optee.elf {{Highlight|Debug symbol file for U-Boot, with OP-TEE OS → STM32MP157A-DK1}} | |||
│ ├── u-boot-stm32mp157a-dk1-trusted.elf {{Highlight|Debug symbol file for U-Boot → STM32MP157A-DK1}} | |||
│ ├── u-boot-stm32mp157f-dk2-optee.elf {{Highlight|Debug symbol file for U-Boot, with OP-TEE OS → STM32MP157F-DK2}} | |||
│ ├── u-boot-stm32mp157f-dk2-trusted.elf {{Highlight|Debug symbol file for U-Boot → STM32MP157F-DK2}} | |||
│ ├── u-boot-stm32mp157f-ev1-optee.elf {{Highlight|Debug symbol file for U-Boot, with OP-TEE OS → STM32MP157F-EV1}} | |||
│ ├── u-boot-stm32mp157f-ev1-trusted.elf {{Highlight|Debug symbol file for U-Boot → STM32MP157F-EV1}} | |||
│ ├── vmlinux {{Highlight|Debug symbol file for Linux kernel}} | |||
│ └── [...] | |||
└── {{Green|sources}} | |||
└── {{Green|arm-ostl-linux-gnueabi}} | |||
├── {{Green|'''FIP_artifacts''' | |||
├── fip/ {{Highlight|fip images of Stater Package}} | |||
├── arm-trusted-firmware/ {{Highlight|intermediate tf-a binaries from Stater Package (needed to build any fip image}} | |||
├── optee/ {{Highlight|intermediate optee binaries from Stater Package (needed to build any fip image}} | |||
└── u-boot/ {{Highlight|intermediate u-boot binaries from Stater Package (needed to build any fip image}}}} | |||
├── {{Green|{{EcosystemRelease/Package | revision=latest | package=Linux kernel source | request=path}} | |||
│ ├── [*].patch {{Highlight|ST patches for Linux kernel}} | |||
│ ├── fragment-[*].config {{Highlight|ST configuration fragments for Linux kernel}} | |||
│ ├── {{Green|{{EcosystemRelease/Package | revision=latest| package=Linux kernel source | request=path}}}} {{Highlight|'''Linux kernel source code directory'''}} | |||
│ ├── {{EcosystemRelease/Package | revision=latest | package=Linux kernel source | request=name}} | |||
│ ├── README.HOW_TO.txt {{Highlight|Helper file for Linux kernel management: '''reference''' for Linux kernel build}} | |||
│ └── series | |||
├── {{Green|{{EcosystemRelease/Package | revision=latest| package=OP-TEE source | request=path}}}} {{Highlight|'''OP-TEE OS installation directory'''}} | |||
│ ├── [*].patch {{Highlight|ST patches for OP-TEE OS}} | |||
│ ├── {{EcosystemRelease/Package | revision=latest| package=OP-TEE source | request=path}} | |||
│ ├── Makefile.sdk {{Highlight|Makefile for the OP-TEE OS compilation}} | |||
│ ├── {{Green|{{EcosystemRelease/Package | revision=latest| package=OP-TEE source | request=name}}}} {{Highlight|'''OP-TEE OS source code directory'''}} | |||
│ ├── README.HOW_TO.txt {{Highlight|Helper file for OP-TEE OS management: '''reference''' for OP-TEE OS build}} | |||
│ └── series | |||
├── {{Green|{{EcosystemRelease/Package | revision=latest| package=TF-A source | request=path}}}} {{Highlight|'''TF-A installation directory'''}} | |||
│ ├── [*].patch {{Highlight|ST patches for TF-A}} | |||
│ ├── {{Green|{{EcosystemRelease/Package | revision=latest| package=TF-A source | request=path}}}} {{Highlight|'''TF-A source code directory'''}} | |||
│ ├── Makefile.sdk {{Highlight|Makefile for the TF-A compilation}} | |||
│ ├── README.HOW_TO.txt {{Highlight|Helper file for TF-A management: '''reference''' for TF-A build}} | |||
│ ├── series | |||
│ └── {{EcosystemRelease/Package | revision=latest| package=TF-A source | request=name}} | |||
└── {{Green|{{EcosystemRelease/Package | revision=latest| package=U-Boot source | request=path}}}} {{Highlight|'''U-Boot installation directory'''}} | |||
├── [*].patch {{Highlight|ST patches for U-Boot}} | |||
├── Makefile.sdk {{Highlight|Makefile for the U-Boot compilation}} | |||
├── README.HOW_TO.txt {{Highlight|Helper file for U-Boot management: '''reference''' for U-Boot build}} | |||
├── series | |||
├── {{Green|{{EcosystemRelease/Package | revision=latest| package=U-Boot source | request=path}}}} {{Highlight|'''U-Boot installation directory'''}}}} {{Highlight|'''U-Boot source code directory'''}} | |||
└── {{EcosystemRelease/Package | revision=2.0.0 | package=U-Boot source | request=name}} | |||
[[#Appendix A: directory structure after build (Developer Package)|Appendix A]] shows the structure of the Linux kernel, U-Boot | [[#Appendix A: directory structure after build (Developer Package)|Appendix A]] shows the structure of the Linux kernel, U-Boot, TF-A and OP-TEE OS installation directories after these software packages have been built. | ||
==Focus on the Distribution Package directory== | ==Focus on the Distribution Package directory== | ||
Line 180: | Line 194: | ||
{{Green|Distribution-Package}} | {{Green|Distribution-Package}} | ||
└── {{Green| | └── {{Green|{{EcosystemRelease/Package | revision=latest | package=OpenSTLinux distribution | request=name}}}} {{Highlight|'''OpenSTLinux distribution'''}} | ||
├── {{Green|meta-openembedded}} {{Highlight|Collection of layers for the OpenEmbedded-Core universe ([[OpenEmbedded]] standard)}} | └── {{Green|layers}} | ||
├── {{Green|meta-openembedded}} {{Highlight|Collection of layers for the OpenEmbedded-Core universe ([[OpenEmbedded]] standard)}} | |||
│ └── [...] | |||
├── {{Green|meta-qt5}} {{Highlight|QT5 layer for OpenEmbedded (standard)}} | |||
│ └── [...] | |||
├── {{Green|meta-st}} | |||
│ ├── {{Green|meta-st-openstlinux}} {{Highlight|STMicroelectronics layer that contains the settings of the frameworks and images for the OpenSTLinux distribution}} | |||
│ │ ├── {{Green|recipes-st}} | |||
│ │ │ ├── {{Green|images}} | |||
│ │ │ │ ├── st-image-core.bb {{Highlight|Core image for OpenSTLinux distribution}} | |||
│ │ │ │ └── st-image-weston.bb {{Highlight|Weston image with basic Wayland support for OpenSTLinux distribution: '''recommended setup'''}} | |||
│ │ │ └── {{Green|packagegroups}} | |||
│ │ │ └── [...] | |||
│ │ └── [...] | |||
│ ├── {{Green|meta-st-stm32mp}} {{Highlight|STMicroelectronics layer that contains the description of the BSP for the STM32 MPU devices}} | |||
│ │ ├── {{Green|recipes-bsp}} | |||
│ │ │ ├── {{Green|alsa}} {{Highlight|Recipes for ALSA control configuration}} | |||
│ │ │ │ └── [...] | |||
│ │ │ ├── {{Green|drivers}} {{Highlight|Recipes for Vivante GCNANO GPU kernel drivers}} | |||
│ │ │ │ └── [...] | |||
│ │ │ ├── {{Green|trusted-firmware-a}} {{Highlight|Recipes for TF-A}} | |||
│ │ │ │ └── [...] | |||
│ │ │ └── {{Green|u-boot}} {{Highlight|Recipes for U-Boot}} | |||
│ │ │ └── [...] | |||
│ │ ├── {{Green|recipes-extended}} | |||
│ │ │ ├── {{Green|m4projects}} {{Highlight|Recipes for STM32Cube MPU Package within the OpenSTLinux distribution}} | |||
│ │ │ │ └── [...] | |||
│ │ │ └── [...] | |||
│ │ ├── {{Green|recipes-graphics}} | |||
│ │ │ ├── {{Green|gcnano-userland}} {{Highlight|Recipes for Vivante libraries OpenGL ES, OpenVG and EGL (multi backend)}} | |||
│ │ │ │ └── [...] | |||
│ │ │ └── [...] | |||
│ │ ├── {{Green|recipes-kernel}} | |||
│ │ │ └── {{Green|linux}} {{Highlight|Recipes for Linux kernel}} | |||
│ │ │ └── [...] | |||
│ │ │ └── {{Green|linux-firmware}} {{Highlight|Recipes for Linux firmwares (example, Bluetooth firmware)}} | |||
│ │ │ └── [...] | |||
│ │ ├── {{Green|recipes-st}} | |||
│ │ │ └── {{Green|images}} | |||
│ │ │ ├── st-image-bootfs.bb {{Highlight|Recipes for the ''bootfs'' partition binary}} | |||
│ │ │ ├── st-image-userfs.bb {{Highlight|Recipes for the ''userfs'' partition binary}} | |||
│ │ │ └── st-image-vendorfs.bb {{Highlight|Recipes for the ''vendorfs'' partition binary}} | |||
│ │ └── [...] | |||
│ ├── {{Green|meta-st-stm32mp-addons}} {{Highlight|STMicroelectronics layer that helps managing the STM32CubeMX integration}} | |||
│ └── [...] | |||
│ └── {{Green|scripts}} | |||
│ ├── envsetup.sh {{Highlight|'''Environment setup script''' for Distribution Package}} | |||
│ └── [...] | |||
{{ | ├── {{Green|meta-timesys}} {{Highlight|Timesys layer for OpenEmbedded (standard)}} | ||
└── {{Green| | │ └── [...] | ||
└── {{Green|openembedded-core}} {{Highlight|Core metadata for current versions of [[OpenEmbedded]] (standard)}} | |||
└── [...] | |||
[[#Appendix B: directory structure after build (Distribution Package)|Appendix B]] shows the structure of the build directory. | [[#Appendix B: directory structure after build (Distribution Package)|Appendix B]] shows the structure of the build directory. | ||
Line 253: | Line 259: | ||
Developer-Package | Developer-Package | ||
├── | ├── stm32mp1-{{EcosystemRelease/Package | revision=latest | package=OpenSTLinux distribution | request=name}} {{Highlight|Source code for OpenSTLinux distribution}} | ||
│ └── sources | │ └── sources | ||
│ └── arm- | │ └── arm-ostl-linux-gnueabi | ||
│ ├── | │ ├── FIP_artifacts {{Highlight|'''FIP images to flash'''}} | ||
│ │ ├── {{Green|build}} | │ │ ├── {{Green|fip/}} {{Highlight|'''FIP images to flash, need to edit tsv file to point on that fip images'''}} | ||
│ │ ├── {{Green|arm-trusted-firmware/}} {{Highlight|'''Intermediate binaries of tf-a required to build fip images'''}} | |||
│ │ ├── {{Green|u-boot/}} {{Highlight|'''Intermediate binaries of u-boot required to build fip images'''}} | |||
│ │ ├── {{Green|optee/}} {{Highlight|'''Intermediate binaries of optee required to build fip images'''}} | |||
│ ├── {{EcosystemRelease/Package | revision=latest| package=Linux kernel source | request=path}} | |||
│ │ ├── {{Green|build}} {{Highlight|'''Linux kernel build directory'''}} | |||
│ │ │ ├── {{Green|install_artifact}} | │ │ │ ├── {{Green|install_artifact}} | ||
│ │ │ │ ├── {{Green|lib}} | │ │ │ │ ├── {{Green|lib}} | ||
│ │ │ │ │ └── {{Green|modules}} | │ │ │ │ │ └── {{Green|modules}} | ||
│ │ │ │ │ └── {{Green| | │ │ │ │ │ └── {{Green|''X.Y.Z''}} | ||
│ │ │ │ │ └── {{Green|[...]}} | │ │ │ │ │ └── {{Green|[...]}} {{Highlight|Kernel modules hierarchy (''*.ko'' files)}} | ||
│ │ │ │ └── {{Green|boot}} | │ │ │ │ └── {{Green|boot}} | ||
│ │ │ │ ├── {{Green| | │ │ │ │ ├── {{Green|stm32mp157a-dk1[*].dtb}} {{Highlight|Linux kernel device tree blob files for ''bootfs'' partition → STM32MP157A-DK1}} | ||
│ │ │ │ ├── {{Green| | │ │ │ │ ├── {{Green|stm32mp157f-dk2[*].dtb}} {{Highlight|Linux kernel device tree blob files for ''bootfs'' partition → STM32MP157F-DK2}} | ||
│ │ │ │ ├── {{Green|uImage}} | │ │ │ │ ├── {{Green|stm32mp157f-ev1[*].dtb}} {{Highlight|Linux kernel device tree blob files for ''bootfs'' partition → STM32MP157F-EV1}} | ||
│ │ │ │ ├── {{Green|uImage}} {{Highlight|Linux kernel binary image file (with U-Boot wrapper) for ''bootfs'' partition}} | |||
│ │ │ │ └── {{Green|[...]}} | │ │ │ │ └── {{Green|[...]}} | ||
│ │ │ ├── {{Green|vmlinux}} | │ │ │ ├── {{Green|vmlinux}} {{Highlight|Debug symbol file for Linux kernel}} | ||
│ │ │ └── {{Green|[...]}} | │ │ │ └── {{Green|[...]}} | ||
│ │ └── [...] | │ │ └── [...] | ||
│ ├── | │ ├── {{EcosystemRelease/Package | revision=latest| package=OP-TEE source | request=path}} {{Highlight|'''OP-TEE OS installation directory'''}} | ||
│ │ ├── {{Green|build}} | │ │ ├── {{Green|build}} {{Highlight|'''OP-TEE OS build directory'''}} | ||
│ │ │ ├── {{Green| | │ │ │ ├── {{Green|tee-[header/pageable/pager]_v2-stm32mp157a-dk1-optee.stm32}} {{Highlight|Binaries for OP-TEE OS runtime services (trusted boot chain) → STM32MP157A-DK1}} | ||
│ │ │ ├── {{Green|tee-[header/pageable/pager]_v2-stm32mp157f-dk2-optee.stm32}} {{Highlight|Binaries for OP-TEE OS runtime services (trusted boot chain) → STM32MP157F-DK2}} | |||
│ │ │ ├── {{Green| | │ │ │ ├── {{Green|tee-[header/pageable/pager]_v2-stm32mp157f-ev1-optee.stm32}} {{Highlight|Binaries for OP-TEE OS runtime services (trusted boot chain) → STM32MP157F-EV1}} | ||
│ │ │ ├── {{Green| | |||
│ │ │ └── {{Green|[...]}} | │ │ │ └── {{Green|[...]}} | ||
│ │ └── [...] | │ │ └── [...] | ||
│ └── | │ ├──{{EcosystemRelease/Package | revision=latest| package=TF-A source | request=path}} {{Highlight|'''TF-A installation directory'''}} | ||
│ ├── {{Green|build- | │ │ ├── {{Green|build}} {{Highlight|'''TF-A build directory'''}} | ||
│ │ ├── {{Green|u-boot- | │ │ │ ├── {{Green|optee}} {{Highlight|TF-A, with OP-TEE OS}} | ||
│ │ ├── {{Green|u-boot- | │ │ │ │ ├── {{Green|tf-a-bl2-optee.elf}} {{Highlight|Debug symbol file for TF-A, with OP-TEE OS → trusted boot firmware stage}} | ||
│ │ ├── {{Green|u-boot- | │ │ │ │ ├── {{Green|tf-a-stm32mp157a-dk1-optee.stm32}} {{Highlight|TF-A binary for ''FSBL'' partition (trusted boot chain), with OP-TEE OS → STM32MP157A-DK1}} | ||
│ │ ├── {{Green|u-boot- | │ │ │ │ ├── {{Green|tf-a-stm32mp157f-dk2-optee.stm32}} {{Highlight|TF-A binary for ''FSBL'' partition (trusted boot chain), with OP-TEE OS → STM32MP157F-DK2}} | ||
│ │ │ │ ├── {{Green|tf-a-stm32mp157f-ev1-optee.stm32}} {{Highlight|TF-A binary for ''FSBL'' partition (trusted boot chain), with OP-TEE OS → STM32MP157F-EV1}} | |||
│ │ │ │ └── {{Green|[...]}} | |||
│ │ │ └── {{Green|trusted}} {{Highlight|TF-A, without OP-TEE OS}} | |||
│ │ │ ├── {{Green|tf-a-bl2-trusted.elf}} {{Highlight|Debug symbol file for TF-A → trusted boot firmware stage}} | |||
│ │ │ ├── {{Green|tf-a-bl32-trusted.elf}} {{Highlight|Debug symbol file for TF-A → trusted boot firmware stage}} | |||
│ │ │ ├── {{Green|tf-a-stm32mp157a-dk1-trusted.stm32}} {{Highlight|TF-A binary for ''FSBL'' partition (trusted boot chain) → STM32MP157A-DK1}} | |||
│ │ │ ├── {{Green|tf-a-stm32mp157f-dk2-trusted.stm32}} {{Highlight|TF-A binary for ''FSBL'' partition (trusted boot chain) → STM32MP157F-DK2}} | |||
│ │ │ ├── {{Green|tf-a-stm32mp157f-ev1-trusted.stm32}} {{Highlight|TF-A binary for ''FSBL'' partition (trusted boot chain) → STM32MP157F-EV1}} | |||
│ │ │ └── {{Green|[...]}} | |||
│ │ └── [...] | |||
│ └── {{EcosystemRelease/Package | revision=latest| package=U-Boot source | request=path}} {{Highlight|'''U-Boot installation directory'''}} | |||
│ ├── {{Green|build-basic}} {{Highlight|'''U-Boot build directory for basic boot chain'''}} | |||
│ │ ├── {{Green|u-boot-spl.stm32-stm32mp157a-dk1-basic}} {{Highlight|U-Boot binary for ''FSBL'' partition (basic boot chain) → STM32MP157A-DK1}} | |||
│ │ ├── {{Green|u-boot-spl.stm32-stm32mp157f-dk2-basic}} {{Highlight|U-Boot binary for ''FSBL'' partition (basic boot chain) → STM32MP157F-DK2}} | |||
│ │ ├── {{Green|u-boot-spl.stm32-stm32mp157f-ev1-basic}} {{Highlight|U-Boot binary for ''FSBL'' partition (basic boot chain) → STM32MP157F-EV1}} | |||
│ │ ├── {{Green|u-boot-stm32mp157a-dk1-basic.img}} {{Highlight|U-Boot binary for ''SSBL'' partition (basic boot chain) → STM32MP157A-DK1}} | |||
│ │ ├── {{Green|u-boot-stm32mp157f-dk2-basic.img}} {{Highlight|U-Boot binary for ''SSBL'' partition (basic boot chain) → STM32MP157F-DK2}} | |||
│ │ ├── {{Green|u-boot-stm32mp157f-ev1-basic.img}} {{Highlight|U-Boot binary for ''SSBL'' partition (basic boot chain) → STM32MP157F-EV1}} | |||
│ ├── {{Green|build-optee}} {{Highlight|'''U-Boot build directory for trusted boot chain, with OP-TEE OS'''}} | |||
│ │ ├── {{Green|u-boot-stm32mp157a-dk1-optee.elf}} {{Highlight|Debug symbol file for U-Boot, with OP-TEE OS → STM32MP157A-DK1}} | |||
│ │ ├── {{Green|u-boot-stm32mp157a-dk1-optee.stm32}} {{Highlight|U-Boot binary for ''SSBL'' partition (trusted boot chain), with OP-TEE OS → STM32MP157A-DK1}} | |||
│ │ ├── {{Green|u-boot-stm32mp157f-dk2-optee.elf}} {{Highlight|Debug symbol file for U-Boot, with OP-TEE OS → STM32MP157F-DK2}} | |||
│ │ ├── {{Green|u-boot-stm32mp157f-dk2-optee.stm32}} {{Highlight|U-Boot binary for ''SSBL'' partition (trusted boot chain), with OP-TEE OS → STM32MP157F-DK2}} | |||
│ │ ├── {{Green|u-boot-stm32mp157f-ev1-optee.elf}} {{Highlight|Debug symbol file for U-Boot, with OP-TEE OS → STM32MP157F-EV1}} | |||
│ │ ├── {{Green|u-boot-stm32mp157f-ev1-optee.stm32}} {{Highlight|U-Boot binary for ''SSBL'' partition (trusted boot chain), with OP-TEE OS → STM32MP157F-EV1}} | |||
│ │ └── {{Green|[...]}} | |||
│ ├── {{Green|build-trusted}} {{Highlight|'''U-Boot build directory for trusted boot chain'''}} | |||
│ │ ├── {{Green|u-boot-stm32mp157a-dk1-trusted.elf}} {{Highlight|Debug symbol file for U-Boot → STM32MP157A-DK1}} | |||
│ │ ├── {{Green|u-boot-stm32mp157a-dk1-trusted.stm32}} {{Highlight|U-Boot binary for ''SSBL'' partition (trusted boot chain) → STM32MP157A-DK1}} | |||
│ │ ├── {{Green|u-boot-stm32mp157f-dk2-trusted.elf}} {{Highlight|Debug symbol file for U-Boot → STM32MP157F-DK2}} | |||
│ │ ├── {{Green|u-boot-stm32mp157f-dk2-trusted.stm32}} {{Highlight|U-Boot binary for ''SSBL'' partition (trusted boot chain) → STM32MP157F-DK2}} | |||
│ │ ├── {{Green|u-boot-stm32mp157f-ev1-trusted.elf}} {{Highlight|Debug symbol file for U-Boot → STM32MP157F-EV1}} | |||
│ │ ├── {{Green|u-boot-stm32mp157f-ev1-trusted.stm32}} {{Highlight|U-Boot binary for ''SSBL'' partition (trusted boot chain) → STM32MP157F-EV1}} | |||
│ │ └── {{Green|[...]}} | │ │ └── {{Green|[...]}} | ||
│ └── [...] | │ └── [...] | ||
Line 294: | Line 340: | ||
As long as you did not modify the source code: | As long as you did not modify the source code: | ||
* the {{ | * the {{STPurple|files in STPurple}} are the same as the ones available in the '''Starter Package''': flash layout, binaries for ''bootfs'', ''rootfs'', ''userfs'' and ''vendorfs'' partitions | ||
* the {{Grey|files in grey}} are the same as the ones available in the '''Starter and Developer Packages''': binaries for ''FSBL'' and ''SSBL'' partitions | * the {{Grey|files in grey}} are the same as the ones available in the '''Starter and Developer Packages''': binaries for ''FSBL'' and ''SSBL'' partitions, and for OP-TEE OS runtime services | ||
* the {{Orange|files in orange}} are the same as the ones available in the '''Developer Package''': Linux kernel image and device tree blobs | * the {{Orange|files in orange}} are the same as the ones available in the '''Developer Package''': Linux kernel image and device tree blobs, and debug symbol files | ||
Distribution-Package/ | Distribution-Package/{{EcosystemRelease/Package | revision=latest | package=OpenSTLinux distribution | request=name}} /build-openstlinuxweston-stm32mp/{{Green|tmp-glibc/deploy}} | ||
├── {{Green|images}} | |||
│ └── {{Green|stm32mp1}} | |||
│ ├── {{STPurple|flashlayout_st-image-weston}} {{Highlight|Flash layout files (description of the partitions) for the supported flash devices}} | |||
│ │ ├── {{STPurple|FlashLayout_emmc_stm32mp157f-ev1-optee.tsv}} {{Highlight|Flash layout file for eMMC and trusted boot chain, with OP-TEE OS → STM32MP157F-EV1}} | |||
│ │ ├── {{STPurple|FlashLayout_emmc_stm32mp157f-ev1-trusted.tsv}} {{Highlight|Flash layout file for eMMC and trusted boot chain → STM32MP157F-EV1}} | |||
│ │ ├── {{STPurple|FlashLayout_nand-4-256_stm32mp157f-ev1-optee.tsv}} {{Highlight|Flash layout file for NAND Flash and trusted boot chain, with OP-TEE OS → STM32MP157F-EV1}} | |||
│ │ ├── {{STPurple|FlashLayout_nand-4-256_stm32mp157f-ev1-trusted.tsv}} {{Highlight|Flash layout file for NAND Flash and trusted boot chain → STM32MP157F-EV1}} | |||
│ │ ├── {{STPurple|FlashLayout_nor-emmc_stm32mp157f-ev1-optee.tsv}} {{Highlight|Flash layout file for NOR Flash (and eMMC) and trusted boot chain, with OP-TEE OS → STM32MP157F-EV1}} | |||
│ │ ├── {{STPurple|FlashLayout_nor-emmc_stm32mp157f-ev1-trusted.tsv}} {{Highlight|Flash layout file for NOR Flash (and eMMC) and trusted boot chain → STM32MP157F-EV1}} | |||
│ │ ├── {{STPurple|FlashLayout_nor-nand-4-256_stm32mp157f-ev1-optee.tsv}} {{Highlight|Flash layout file for NOR Flash (and NAND Flash) and trusted boot chain, with OP-TEE OS → STM32MP157F-EV1}} | |||
│ │ ├── {{STPurple|FlashLayout_nor-nand-4-256_stm32mp157f-ev1-trusted.tsv}} {{Highlight|Flash layout file for NOR Flash (and NAND Flash) and trusted boot chain → STM32MP157F-EV1}} | |||
│ │ ├── {{STPurple|FlashLayout_nor-sdcard_stm32mp157f-ev1-optee.tsv}} {{Highlight|Flash layout file for NOR Flash (and microSD card) and trusted boot chain, with OP-TEE OS → STM32MP157F-EV1}} | |||
│ │ ├── {{STPurple|FlashLayout_nor-sdcard_stm32mp157f-ev1-trusted.tsv}} {{Highlight|Flash layout file for NOR Flash (and microSD card) and trusted boot chain → STM32MP157F-EV1}} | |||
| │ ├── {{ | │ │ ├── {{STPurple|FlashLayout_sdcard_stm32mp157a-dk1-basic.tsv}} {{Highlight|Flash layout file for microSD card and basic boot chain → STM32MP157A-DK1}} | ||
│ │ ├── {{STPurple|FlashLayout_sdcard_stm32mp157a-dk1-optee.tsv}} {{Highlight|Flash layout file for microSD card and trusted boot chain, with OP-TEE OS → STM32MP157A-DK1}} | |||
│ │ ├── {{STPurple|FlashLayout_sdcard_stm32mp157a-dk1-trusted.tsv}} {{Highlight|Flash layout file for microSD card and trusted boot chain ('''recommended setup''') → STM32MP157A-DK1}} | |||
│ │ ├── {{STPurple|FlashLayout_sdcard_stm32mp157f-dk2-basic.tsv}} {{Highlight|Flash layout file for microSD card and basic boot chain → STM32MP157F-DK2}} | |||
│ │ ├── {{STPurple|FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv}} {{Highlight|Flash layout file for microSD card and trusted boot chain, with OP-TEE OS → STM32MP157F-DK2}} | |||
│ │ ├── {{STPurple|FlashLayout_sdcard_stm32mp157f-dk2-trusted.tsv}} {{Highlight|Flash layout file for microSD card and trusted boot chain ('''recommended setup''') → STM32MP157F-DK2}} | |||
│ │ ├── {{STPurple|FlashLayout_sdcard_stm32mp157f-ev1-basic.tsv}} {{Highlight|Flash layout file for microSD card and basic boot chain → STM32MP157F-EV1}} | |||
│ │ ├── {{STPurple|FlashLayout_sdcard_stm32mp157f-ev1-optee.tsv}} {{Highlight|Flash layout file for microSD card and trusted boot chain, with OP-TEE OS → STM32MP157F-EV1}} | |||
│ │ └── {{STPurple|FlashLayout_sdcard_stm32mp157f-ev1-trusted.tsv}} {{Highlight|Flash layout file for microSD card and trusted boot chain ('''recommended setup''') → STM32MP157F-EV1}} | |||
│ │ └── [...] | |||
│ ├── {{STPurple|scripts}} | |||
│ │ └── {{STPurple|create_sdcard_from_flashlayout.sh}} | |||
│ ├── {{STPurple|st-image-bootfs-openstlinux-weston-stm32mp1.ext4}} {{Highlight|Binary for ''bootfs'' partition}} | |||
│ ├── {{STPurple|st-image-userfs-openstlinux-weston-stm32mp1.ext4}} {{Highlight|Binary for ''userfs'' partition}} | |||
│ ├── {{STPurple|st-image-vendorfs-openstlinux-weston-stm32mp1.ext4}} {{Highlight|Binary for ''vendorfs'' partition}} | |||
│ ├── {{STPurple|st-image-weston-openstlinux-weston-stm32mp1.ext4}} {{Highlight|Binary for ''rootfs'' partition}} | |||
│ ├── {{Grey|fip/}} {{Highlight|FIP images flashed according flashlayout selected}} | |||
│ ├── {{Orange|uImage}} {{Highlight|Linux kernel binary image file (with U-Boot wrapper) for ''bootfs'' partition}} | |||
│ ├── {{Orange|vmlinux}} {{Highlight|Debug symbol file for Linux kernel}} | |||
│ └── [...] | |||
└── [...] | |||
<noinclude> | |||
{{PublicationRequestId | 7649 | 2018-06-11 | AnneJ}} | |||
| | [[Category:STM32MPU Embedded Software distribution]] | ||
</noinclude> | |||
Latest revision as of 15:14, 16 November 2021
1. Article purpose[edit source]
This article aims at proposing a way to organize, on the host PC, the software packages of the different Packages (Starter, Developer and Distribution) for a given release of the STM32MPU Embedded Software distribution.
The main objective of the proposed organization is to keep together the software packages corresponding to a given release because there are links between them. For example:
- Flashing the image from the Starter Package on the board is mandatory before modifying the source code from the Developer Package. Both the image and the source code must belong to the same software release.
- The SDK (Developer Package) and the image (Starter Package) have both been generated from the Distribution Package. A software release thus guarantees that there is no misalignment between the different software packages.
Template:InfoTemplate:UpdateNeededForNewRelease
The directories are shown in Template:Green, while the files are in black.
2. Creating the structure[edit source]
- Create your <working directory> and assign a unique name to it (for example by including the release name):
Template:PC$ mkdir STM32MP15-Ecosystem-v3.1.0 Template:PC$ cd STM32MP15-Ecosystem-v3.1.0
- Create the first-level directories that will host the software packages delivered through the STM32MPU Embedded Software distribution release note:
Template:PC$ mkdir Starter-Package Template:PC$ mkdir Developer-Package Template:PC$ mkdir Distribution-Package
- The resulting directory structure looks as follows:
Template:Green Template:Highlight ├── Template:Green Template:Highlight ├── Template:Green Template:Highlight └── Template:Green Template:Highlight
Once all software packages have been installed according to the instructions given in the STM32MPU Embedded Software distribution release note, the resulting directory structure looks as follows:
Template:Green Template:Highlight ├── Template:Green Template:Highlight │ ├── Template:Green Template:Highlight │ ├── Template:Green Template:Highlight │ └── Template:Green Template:Highlight ├── Template:Green Template:Highlight │ └── Template:Green Template:Highlight └── Template:Green Template:Highlight └── Template:Green Template:Highlight
3. Focus on the Starter Package directory[edit source]
The Starter-Package directory contains the software image for the STM32MPU Embedded Software distribution.
The trusted boot chain is the default solution delivered by STMicroelectronics. It includes the superset of features (for example, all Flash memory devices are supported). The basic boot chain is also upstreamed by STMicroelectronics, with a limited number of features (for example microSD card memory boot only). Refer to the Boot chain overview article for details.
Flash memory partitions (e.g. rootfs, bootfs...) are explained in the STM32MP15 Flash mapping article.
Template:Green └── Template:Green └── Template:Green └── Template:Green ├── Template:Green Template:Highlight │ ├── FlashLayout_emmc_stm32mp157f-ev1-optee.tsv Template:Highlight │ ├── FlashLayout_emmc_stm32mp157f-ev1-trusted.tsv Template:Highlight │ ├── FlashLayout_sdcard_stm32mp157f-dk2-basic.tsv Template:Highlight │ ├── FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv Template:Highlight │ ├── FlashLayout_sdcard_stm32mp157f-dk2-trusted.tsv Template:Highlight │ ├── FlashLayout_sdcard_stm32mp157f-dk2-extensible.tsv Template:Highlight │ └── [...] ├── Template:Green │ ├── fip-<board>-<boot-type>.bin Template:Highlight ├── Template:Green │ ├── tf-a-<board>-<boot-type>.stm32 Template:Highlight ├── Template:Green │ ├── u-boot-nodtb-soc.bin Template:Highlight │ ├── u-boot-<board>-<boot-type>.dtb Template:Highlight ├── Template:Green │ ├── tee-header_v2-<board>.bin │ ├── tee-pageable_v2--<board>.bin │ ├── tee-pager_v2--<board>.bin ├── Template:Green │ ├── vmlinux Template:Highlight ├── Template:Green │ └── create_sdcard_from_flashlayout.sh ├── st-image-bootfs-openstlinux-weston-stm32mp1.ext4 Template:Highlight ├── st-image-bootfs-openstlinux-weston-stm32mp1.manifest ├── st-image-userfs-openstlinux-weston-stm32mp1.ext4 Template:Highlight ├── st-image-userfs-openstlinux-weston-stm32mp1.manifest ├── st-image-vendorfs-openstlinux-weston-stm32mp1.ext4 Template:Highlight ├── st-image-weston-openstlinux-weston-stm32mp1.ext4 Template:Highlight ├── st-image-weston-openstlinux-weston-stm32mp1.license ├── st-image-weston-openstlinux-weston-stm32mp1-license_content.html ├── st-image-weston-openstlinux-weston-stm32mp1.manifest └── [...]
4. Focus on the Developer Package directory[edit source]
The Developer-Package directory contains:
- The source code for the following OpenSTLinux software packages (development for Arm® Cortex®-A processor):
- Linux® kernel
- U-Boot
- TF-A
- OP-TEE OS
- The debug symbol files for Linux kernel, U-Boot, TF-A and OP-TEE OS
- The SDK (for cross-development on an host PC)
- The STM32Cube MPU Package (developed for Arm® Cortex®-M processor)
Template:Green ├── Template:Green Template:Highlight │ ├── environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi Template:Highlight │ ├── site-config-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi │ ├── Template:Green │ │ ├── Template:Green Template:Highlight │ │ │ └── [...] │ │ └── Template:Green Template:Highlight │ │ └── [...] │ └── version-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi
Template:Green Template:Highlight │ ├── Template:Green │ │ ├── Template:Green Template:Highlight │ │ │ └── [...] │ │ ├── Template:Green │ │ │ └── [...] │ │ └── Template:Green Template:Highlight │ │ └── [...] │ ├── Template:Green │ │ └── [...] │ ├── License.md Template:Highlight │ ├── Template:Green Template:Highlight │ │ └── [...] │ ├── package.xml │ ├── Template:Green │ │ ├── STM32CubeProjectsList.html Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ │ └── [...] │ │ └── Template:Green Template:Highlight │ │ └── [...] │ ├── Readme.md │ ├── Release_Notes.html Template:Highlight │ └── Template:Green │ └── [...]├──
Template:Green Template:Highlight ├── Template:Green │ └── Template:Green Template:Highlight │ ├── tf-a-bl2-optee.elf Template:Highlight │ ├── tf-a-bl2-trusted.elf Template:Highlight │ ├── tf-a-bl32-trusted.elf Template:Highlight │ ├── u-boot-stm32mp157a-dk1-optee.elf Template:Highlight │ ├── u-boot-stm32mp157a-dk1-trusted.elf Template:Highlight │ ├── u-boot-stm32mp157f-dk2-optee.elf Template:Highlight │ ├── u-boot-stm32mp157f-dk2-trusted.elf Template:Highlight │ ├── u-boot-stm32mp157f-ev1-optee.elf Template:Highlight │ ├── u-boot-stm32mp157f-ev1-trusted.elf Template:Highlight │ ├── vmlinux Template:Highlight │ └── [...]└──
Template:Green └── Template:Green ├── Template:Green└──
Template:Green Template:Highlight └── Template:Highlight├──
Appendix A shows the structure of the Linux kernel, U-Boot, TF-A and OP-TEE OS installation directories after these software packages have been built.
5. Focus on the Distribution Package directory[edit source]
The Distribution-Package directory contains all the OpenEmbedded layers required to get the source code of any STM32MPU Embedded Software component, as well as a build framework based on OpenEmbedded.
Template:Green └── Template:Green Template:Highlight └── Template:Green ├── Template:Green Template:Highlight │ └── [...] ├── Template:Green Template:Highlight │ └── [...]
Template:Green │ ├── Template:Green Template:Highlight │ │ ├── Template:Green │ │ │ ├── Template:Green │ │ │ │ ├── st-image-core.bb Template:Highlight │ │ │ │ └── st-image-weston.bb Template:Highlight │ │ │ └── Template:Green │ │ │ └── [...] │ │ └── [...]├──
Template:Green Template:Highlight │ │ ├── Template:Green │ │ │ ├── Template:Green Template:Highlight │ │ │ │ └── [...] │ │ │ ├── Template:Green Template:Highlight │ │ │ │ └── [...] │ │ │ ├── Template:Green Template:Highlight │ │ │ │ └── [...] │ │ │ └── Template:Green Template:Highlight │ │ │ └── [...] │ │ ├── Template:Green │ │ │ ├── Template:Green Template:Highlight │ │ │ │ └── [...] │ │ │ └── [...] │ │ ├── Template:Green │ │ │ ├── Template:Green Template:Highlight │ │ │ │ └── [...] │ │ │ └── [...] │ │ ├── Template:Green │ │ │ └── Template:Green Template:Highlight │ │ │ └── [...] │ │ │ └── Template:Green Template:Highlight │ │ │ └── [...] │ │ ├── Template:Green │ │ │ └── Template:Green │ │ │ ├── st-image-bootfs.bb Template:Highlight │ │ │ ├── st-image-userfs.bb Template:Highlight │ │ │ └── st-image-vendorfs.bb Template:Highlight │ │ └── [...]│ ├──
Template:Green Template:Highlight │ └── [...] │ └── Template:Green │ ├── envsetup.sh Template:Highlight │ └── [...]│ ├──
Template:Green Template:Highlight │ └── [...] └── Template:Green Template:Highlight └── [...]├──
Appendix B shows the structure of the build directory.
6. Appendix A: directory structure after build (Developer Package)[edit source]
Provided you have followed the recommendations of the README.HOW_TO.txt helper files to build the Linux kernel, the U-Boot and the TF-A, then the following Template:Green contain the build outputs.
Template:Highlight │ └── sources │ └── arm-ostl-linux-gnueabi │ ├── FIP_artifacts Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:HighlightDeveloper-Package ├── stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17
Template:Green Template:Highlight │ │ │ ├── Template:Green │ │ │ │ ├── Template:Green │ │ │ │ │ └── Template:Green │ │ │ │ │ └── Template:Green │ │ │ │ │ └── Template:Green Template:Highlight │ │ │ │ └── Template:Green │ │ │ │ ├── Template:Green Template:Highlight │ │ │ │ ├── Template:Green Template:Highlight │ │ │ │ ├── Template:Green Template:Highlight │ │ │ │ ├── Template:Green Template:Highlight │ │ │ │ └── Template:Green │ │ │ ├── Template:Green Template:Highlight │ │ │ └── Template:Green │ │ └── [...]│ ├── linux-5.10.61 │ │ ├──
Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ │ ├── Template:Green Template:Highlight │ │ │ ├── Template:Green Template:Highlight │ │ │ ├── Template:Green Template:Highlight │ │ │ └── Template:Green │ │ └── [...]│ ├── optee-os-stm32mp-3.12.0-stm32mp-r2
Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ │ ├── Template:Green Template:Highlight │ │ │ │ ├── Template:Green Template:Highlight │ │ │ │ ├── Template:Green Template:Highlight │ │ │ │ ├── Template:Green Template:Highlight │ │ │ │ ├── Template:Green Template:Highlight │ │ │ │ └── Template:Green │ │ │ └── Template:Green Template:Highlight │ │ │ ├── Template:Green Template:Highlight │ │ │ ├── Template:Green Template:Highlight │ │ │ ├── Template:Green Template:Highlight │ │ │ ├── Template:Green Template:Highlight │ │ │ ├── Template:Green Template:Highlight │ │ │ └── Template:Green │ │ └── [...]│ ├──tf-a-stm32mp-v2.4-stm32mp-r2
Template:Highlight │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ └── Template:Green │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ ├── Template:Green Template:Highlight │ │ └── Template:Green │ └── [...]│ └── u-boot-stm32mp-v2020.10-stm32mp-r2
7. Appendix B: directory structure after build (Distribution Package)[edit source]
Provided you have followed the build method explained in OpenSTLinux distribution, then the following Template:Green contain the build outputs.
As long as you did not modify the source code:
- the files in STPurple are the same as the ones available in the Starter Package: flash layout, binaries for bootfs, rootfs, userfs and vendorfs partitions
- the Template:Grey are the same as the ones available in the Starter and Developer Packages: binaries for FSBL and SSBL partitions, and for OP-TEE OS runtime services
- the Template:Orange are the same as the ones available in the Developer Package: Linux kernel image and device tree blobs, and debug symbol files
Template:Green ├── Template:Green │ └── Template:Green │ ├── flashlayout_st-image-weston Template:Highlight │ │ ├── FlashLayout_emmc_stm32mp157f-ev1-optee.tsv Template:Highlight │ │ ├── FlashLayout_emmc_stm32mp157f-ev1-trusted.tsv Template:Highlight │ │ ├── FlashLayout_nand-4-256_stm32mp157f-ev1-optee.tsv Template:Highlight │ │ ├── FlashLayout_nand-4-256_stm32mp157f-ev1-trusted.tsv Template:Highlight │ │ ├── FlashLayout_nor-emmc_stm32mp157f-ev1-optee.tsv Template:Highlight │ │ ├── FlashLayout_nor-emmc_stm32mp157f-ev1-trusted.tsv Template:Highlight │ │ ├── FlashLayout_nor-nand-4-256_stm32mp157f-ev1-optee.tsv Template:Highlight │ │ ├── FlashLayout_nor-nand-4-256_stm32mp157f-ev1-trusted.tsv Template:Highlight │ │ ├── FlashLayout_nor-sdcard_stm32mp157f-ev1-optee.tsv Template:Highlight │ │ ├── FlashLayout_nor-sdcard_stm32mp157f-ev1-trusted.tsv Template:Highlight │ │ ├── FlashLayout_sdcard_stm32mp157a-dk1-basic.tsv Template:Highlight │ │ ├── FlashLayout_sdcard_stm32mp157a-dk1-optee.tsv Template:Highlight │ │ ├── FlashLayout_sdcard_stm32mp157a-dk1-trusted.tsv Template:Highlight │ │ ├── FlashLayout_sdcard_stm32mp157f-dk2-basic.tsv Template:Highlight │ │ ├── FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv Template:Highlight │ │ ├── FlashLayout_sdcard_stm32mp157f-dk2-trusted.tsv Template:Highlight │ │ ├── FlashLayout_sdcard_stm32mp157f-ev1-basic.tsv Template:Highlight │ │ ├── FlashLayout_sdcard_stm32mp157f-ev1-optee.tsv Template:Highlight │ │ └── FlashLayout_sdcard_stm32mp157f-ev1-trusted.tsv Template:Highlight │ │ └── [...] │ ├── scripts │ │ └── create_sdcard_from_flashlayout.shDistribution-Package/openstlinux-5.10-dunfell-mp1-21-11-17 /build-openstlinuxweston-stm32mp/
st-image-bootfs-openstlinux-weston-stm32mp1.ext4 Template:Highlight │ ├── st-image-userfs-openstlinux-weston-stm32mp1.ext4 Template:Highlight │ ├── st-image-vendorfs-openstlinux-weston-stm32mp1.ext4 Template:Highlight │ ├── st-image-weston-openstlinux-weston-stm32mp1.ext4 Template:Highlight │ ├── Template:Grey Template:Highlight │ ├── Template:Orange Template:Highlight │ ├── Template:Orange Template:Highlight │ └── [...] └── [...]│ ├──