Last edited 3 years ago

Example of directory structure for Packages

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.
Info white.png Information
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 white.png Information
In practice, this article uses the release STM32MP15-Ecosystem-v2.1.0 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.


The directories are shown in 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):
 mkdir STM32MP15-Ecosystem-v2.1.0
 cd STM32MP15-Ecosystem-v2.1.0
  • Create the first-level directories that will host the software packages delivered through the STM32MPU Embedded Software distribution release note:
 mkdir Starter-Package
 mkdir Developer-Package
 mkdir Distribution-Package
  • The resulting directory structure looks as follows:
STM32MP15-Ecosystem-v2.1.0  STM32MPU Embedded Software release
โ”œโ”€โ”€ Developer-Package       Developer Package installation directory
โ”œโ”€โ”€ Distribution-Package    Distribution Package installation directory
โ””โ”€โ”€ Starter-Package         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:

STM32MP15-Ecosystem-v2.1.0                           STM32MPU Embedded Software release
โ”œโ”€โ”€ Developer-Package                                Developer Package installation directory
โ”‚   โ”œโ”€โ”€ SDK                                          SDK for OpenSTLinux distribution
โ”‚   โ”œโ”€โ”€ STM32Cube_FW_MP1_V1.3.0                      STM32CubeMP1 Package
โ”‚   โ””โ”€โ”€ stm32mp1-openstlinux-5.4-dunfell-mp1-20-11-12  Linux kernel, U-Boot, TF-A and OP-TEE OS source code (OpenSTLinux distribution)
โ”œโ”€โ”€ Distribution-Package                             Distribution Package installation directory
โ”‚   โ””โ”€โ”€ stm32mp1-openstlinux-5.4-dunfell-mp1-20-11-12  OpenSTLinux distribution (full source code and OpenEmbedded-based build framework)
โ””โ”€โ”€ Starter-Package                                  Starter Package installation directory
    โ””โ”€โ”€ stm32mp1-openstlinux-5.4-dunfell-mp1-20-11-12  Software image (binaries)

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.


Starter-Package
โ””โ”€โ”€ stm32mp1-openstlinux-5.4-dunfell-mp1-20-11-12 
    โ””โ”€โ”€ images
        โ””โ”€โ”€ stm32mp1
            โ”œโ”€โ”€ flashlayout_st-image-weston                                 Flash layout files (description of the partitions) for the supported Flash devices and boards
            โ”‚   โ”œโ”€โ”€ FlashLayout_emmc_stm32mp157c-ev1-optee.tsv              Flash layout file for eMMC and trusted boot chain, with OP-TEE OS โ†’ STM32MP157C-EV1
            โ”‚   โ”œโ”€โ”€ FlashLayout_emmc_stm32mp157c-ev1-trusted.tsv            Flash layout file for eMMC and trusted boot chain โ†’ STM32MP157C-EV1
            โ”‚   โ”œโ”€โ”€ FlashLayout_sdcard_stm32mp157c-dk2-basic.tsv            Flash layout file for microSD card and basic boot chain โ†’ STM32MP157C-DK2
            โ”‚   โ”œโ”€โ”€ FlashLayout_sdcard_stm32mp157c-dk2-optee.tsv            Flash layout file for microSD card and trusted boot chain, with OP-TEE OS โ†’ STM32MP157C-DK2
            โ”‚   โ”œโ”€โ”€ FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv          Flash layout file for microSD card and trusted boot chain (recommended setup) โ†’ STM32MP157C-DK2
            โ”‚   โ”œโ”€โ”€ FlashLayout_sdcard_stm32mp157c-dk2-extensible.tsv       Flash layout file for microSD card with no userfs partition but a rootfs partition extended to sdcard size (recommended setup for package repository service) โ†’ STM32MP157C-DK2
            โ”‚   โ””โ”€โ”€ [...]
            โ”œโ”€โ”€ scripts
            โ”‚   โ””โ”€โ”€ create_sdcard_from_flashlayout.sh
            โ”œโ”€โ”€ st-image-bootfs-openstlinux-weston-stm32mp1.ext4            Binary for bootfs partition
            โ”œโ”€โ”€ st-image-bootfs-openstlinux-weston-stm32mp1.manifest
            โ”œโ”€โ”€ st-image-userfs-openstlinux-weston-stm32mp1.ext4            Binary for userfs partition
            โ”œโ”€โ”€ st-image-userfs-openstlinux-weston-stm32mp1.manifest
            โ”œโ”€โ”€ st-image-vendorfs-openstlinux-weston-stm32mp1.ext4          Binary for vendorfs partition
            โ”œโ”€โ”€ st-image-weston-openstlinux-weston-stm32mp1.ext4            Binary for rootfs partition
            โ”œโ”€โ”€ st-image-weston-openstlinux-weston-stm32mp1.license
            โ”œโ”€โ”€ st-image-weston-openstlinux-weston-stm32mp1-license_content.html
            โ”œโ”€โ”€ st-image-weston-openstlinux-weston-stm32mp1.manifest
            โ”œโ”€โ”€ [...]
            โ”œโ”€โ”€ tee-[header/pageable/pager]_v2-stm32mp157c-dk2-optee.stm32  Binaries for OP-TEE OS runtime services (trusted boot chain) โ†’ STM32MP157C-DK2
            โ”œโ”€โ”€ [...]
            โ”œโ”€โ”€ tf-a-stm32mp157c-dk2-optee.stm32                            TF-A binary for FSBL partition (trusted boot chain), with OP-TEE OS โ†’ STM32MP157C-DK2
            โ”œโ”€โ”€ tf-a-stm32mp157c-dk2-trusted.stm32                          TF-A binary for FSBL partition (trusted boot chain) โ†’ STM32MP157C-DK2
            โ”œโ”€โ”€ [...]
            โ”œโ”€โ”€ u-boot-spl.stm32-stm32mp157c-dk2-basic                      U-Boot binary for FSBL partition (basic boot chain) โ†’ STM32MP157C-DK2
            โ”œโ”€โ”€ u-boot-spl.stm32-stm32mp157c-ev1-basic                      U-Boot binary for FSBL partition (basic boot chain) โ†’ STM32MP157C-EV1
            โ”œโ”€โ”€ u-boot-stm32mp157c-dk2-basic.img                            U-Boot binary for SSBL partition (basic boot chain) โ†’ STM32MP157C-DK2
            โ”œโ”€โ”€ u-boot-stm32mp157c-dk2-optee.stm32                          U-Boot binary for SSBL partition (trusted boot chain), with OP-TEE OS โ†’ STM32MP157C-DK2
            โ””โ”€โ”€ [...]

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)


Developer-Package
โ”œโ”€โ”€ SDK                                                                             SDK for OpenSTLinux distribution: details in Standard SDK directory structure article
โ”‚   โ”œโ”€โ”€ environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi  Environment setup script for Developer Package
โ”‚   โ”œโ”€โ”€ site-config-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi
โ”‚   โ”œโ”€โ”€ sysroots
โ”‚   โ”‚   โ”œโ”€โ”€ cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi                Target sysroot (libraries, headers, and symbols)
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ [...]
โ”‚   โ”‚   โ””โ”€โ”€ x86_64-ostl_sdk-linux                                     Native sysroot (libraries, headers, and symbols)
โ”‚   โ”‚       โ””โ”€โ”€ [...]
โ”‚   โ””โ”€โ”€ version-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi
โ”œโ”€โ”€ STM32Cube_FW_MP1_V1.3.0             STM32CubeMP1 Package: details in STM32CubeMP1 Package content article
โ”‚   โ”œโ”€โ”€ Drivers
โ”‚   โ”‚   โ”œโ”€โ”€ BSP                         BSP drivers for the supported STM32MPU boards
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ [...]
โ”‚   โ”‚   โ”œโ”€โ”€ CMSIS
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ [...]
โ”‚   โ”‚   โ””โ”€โ”€ STM32MP1xx_HAL_Driver       HAL drivers for the supported STM32MPU devices
โ”‚   โ”‚       โ””โ”€โ”€ [...]
โ”‚   โ”œโ”€โ”€ _htmresc
โ”‚   โ”‚   โ””โ”€โ”€ [...]
โ”‚   โ”œโ”€โ”€ License.md                      License types for the components
โ”‚   โ”œโ”€โ”€ Middlewares                     Middlewares used by the examples and applications
โ”‚   โ”‚   โ””โ”€โ”€ [...]
โ”‚   โ”œโ”€โ”€ package.xml
โ”‚   โ”œโ”€โ”€ Projects
โ”‚   โ”‚   โ”œโ”€โ”€ STM32CubeProjectsList.html  List of examples and applications for STM32CubeMP1 Package
โ”‚   โ”‚   โ”œโ”€โ”€ STM32MP157C-DK2             Set of examples and applications โ†’ STM32MP157C-DK2
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ [...]
โ”‚   โ”‚   โ””โ”€โ”€ STM32MP157C-EV1             Set of examples and applications โ†’ STM32MP157C-EV1
โ”‚   โ”‚       โ””โ”€โ”€ [...]
โ”‚   โ”œโ”€โ”€ Readme.md
โ”‚   โ”œโ”€โ”€ Release_Notes.html              Release note for STM32CubeMP1 Package
โ”‚   โ””โ”€โ”€ Utilities
โ”‚       โ””โ”€โ”€ [...]
โ””โ”€โ”€ stm32mp1-openstlinux-5.4-dunfell-mp1-20-11-12     Source code for OpenSTLinux distribution
    โ”œโ”€โ”€ images
    โ”‚   โ””โ”€โ”€ stm32mp1                                Debug symbol files installation directory
    โ”‚       โ”œโ”€โ”€ tf-a-bl2-optee.elf                  Debug symbol file for TF-A, with OP-TEE OS โ†’ trusted boot firmware stage
    โ”‚       โ”œโ”€โ”€ tf-a-bl2-trusted.elf                Debug symbol file for TF-A โ†’ trusted boot firmware stage
    โ”‚       โ”œโ”€โ”€ tf-a-bl32-trusted.elf               Debug symbol file for TF-A โ†’ runtime software stage
    โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157a-dk1-optee.elf    Debug symbol file for U-Boot, with OP-TEE OS โ†’ STM32MP157A-DK1
    โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157a-dk1-trusted.elf  Debug symbol file for U-Boot โ†’ STM32MP157A-DK1
    โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157c-dk2-optee.elf    Debug symbol file for U-Boot, with OP-TEE OS โ†’ STM32MP157C-DK2
    โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157c-dk2-trusted.elf  Debug symbol file for U-Boot โ†’ STM32MP157C-DK2
    โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157c-ev1-optee.elf    Debug symbol file for U-Boot, with OP-TEE OS โ†’ STM32MP157C-EV1
    โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157c-ev1-trusted.elf  Debug symbol file for U-Boot โ†’ STM32MP157C-EV1
    โ”‚       โ”œโ”€โ”€ vmlinux                             Debug symbol file for Linux kernel
    โ”‚       โ””โ”€โ”€ [...]
    โ””โ”€โ”€ sources
        โ””โ”€โ”€ arm-ostl-linux-gnueabi
            โ”œโ”€โ”€ linux-5.4.56
            โ”‚   โ”œโ”€โ”€ [*].patch            ST patches for Linux kernel
            โ”‚   โ”œโ”€โ”€ fragment-[*].config  ST configuration fragments for Linux kernel
            โ”‚   โ”œโ”€โ”€ linux-5.4.56         Linux kernel source code directory
            โ”‚   โ”œโ”€โ”€ linux-5.4.56.tar.xz
            โ”‚   โ”œโ”€โ”€ README.HOW_TO.txt    Helper file for Linux kernel management: reference for Linux kernel build
            โ”‚   โ””โ”€โ”€ series
            โ”œโ”€โ”€ optee-os-stm32mp-3.9.0.r2  OP-TEE OS installation directory
            โ”‚   โ”œโ”€โ”€ [*].patch              ST patches for OP-TEE OS
            โ”‚   โ”œโ”€โ”€ optee-os-stm32mp-3.9.0.r2
            โ”‚   โ”œโ”€โ”€ Makefile.sdk           Makefile for the OP-TEE OS compilation
            โ”‚   โ”œโ”€โ”€ optee-os-stm32mp-3.9.0.r2-r0.tar.gz         OP-TEE OS source code directory
            โ”‚   โ”œโ”€โ”€ README.HOW_TO.txt      Helper file for OP-TEE OS management: reference for OP-TEE OS build
            โ”‚   โ””โ”€โ”€ series
            โ”œโ”€โ”€ tf-a-stm32mp-2.2.r2           TF-A installation directory
            โ”‚   โ”œโ”€โ”€ [*].patch                 ST patches for TF-A
            โ”‚   โ”œโ”€โ”€ tf-a-stm32mp-2.2.r2  TF-A source code directory
            โ”‚   โ”œโ”€โ”€ Makefile.sdk              Makefile for the TF-A compilation
            โ”‚   โ”œโ”€โ”€ README.HOW_TO.txt         Helper file for TF-A management: reference for TF-A build
            โ”‚   โ”œโ”€โ”€ series
            โ”‚   โ””โ”€โ”€ tf-a-stm32mp-2.2.r2-r0.tar.gz
            โ””โ”€โ”€ u-boot-stm32mp-2020.01.r2  U-Boot installation directory
                โ”œโ”€โ”€ [*].patch              ST patches for U-Boot
                โ”œโ”€โ”€ Makefile.sdk           Makefile for the U-Boot compilation
                โ”œโ”€โ”€ README.HOW_TO.txt      Helper file for U-Boot management: reference for U-Boot build
                โ”œโ”€โ”€ series
                โ”œโ”€โ”€ u-boot-stm32mp-2020.01.r2  U-Boot installation directory         U-Boot source code directory
                โ””โ”€โ”€ u-boot-stm32mp-2020.01-r0.tar.gz

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.


Distribution-Package
โ””โ”€โ”€ openstlinux-5.4-dunfell-mp1-20-11-12  OpenSTLinux distribution
    โ””โ”€โ”€ layers
        โ”œโ”€โ”€ meta-openembedded  Collection of layers for the OpenEmbedded-Core universe (OpenEmbedded standard)
        โ”‚   โ””โ”€โ”€ [...]
        โ”œโ”€โ”€ meta-qt5           QT5 layer for OpenEmbedded (standard)
        โ”‚   โ””โ”€โ”€ [...]
        โ”œโ”€โ”€ meta-st
        โ”‚   โ”œโ”€โ”€ meta-st-openstlinux                   STMicroelectronics layer that contains the settings of the frameworks and images for the OpenSTLinux distribution
        โ”‚   โ”‚   โ”œโ”€โ”€ recipes-st
        โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ images
        โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ st-image-core.bb          Core image for OpenSTLinux distribution
        โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ st-image-weston.bb        Weston image with basic Wayland support for OpenSTLinux distribution: recommended setup
        โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ packagegroups
        โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ [...]
        โ”‚   โ”‚   โ””โ”€โ”€ [...]
        โ”‚   โ”œโ”€โ”€ meta-st-stm32mp                   STMicroelectronics layer that contains the description of the BSP for the STM32 MPU devices
        โ”‚   โ”‚   โ”œโ”€โ”€ recipes-bsp
        โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ alsa                      Recipes for ALSA control configuration
        โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ [...]
        โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ drivers                   Recipes for Vivante GCNANO GPU kernel drivers
        โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ [...]
        โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ trusted-firmware-a        Recipes for TF-A
        โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ [...]
        โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ u-boot                    Recipes for U-Boot
        โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ [...]
        โ”‚   โ”‚   โ”œโ”€โ”€ recipes-extended
        โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ m4projects                Recipes for STM32Cube MPU Package within the OpenSTLinux distribution
        โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ [...]
        โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ [...]
        โ”‚   โ”‚   โ”œโ”€โ”€ recipes-graphics
        โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ gcnano-userland           Recipes for Vivante libraries OpenGL ES, OpenVG and EGL (multi backend)
        โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ [...]
        โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ [...]
        โ”‚   โ”‚   โ”œโ”€โ”€ recipes-kernel
        โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ linux                     Recipes for Linux kernel
        โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ [...]
        โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ linux-firmware            Recipes for Linux firmwares (example, Bluetooth firmware)
        โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ [...]
        โ”‚   โ”‚   โ”œโ”€โ”€ recipes-st
        โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ images
        โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ st-image-bootfs.bb    Recipes for the bootfs partition binary
        โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ st-image-userfs.bb    Recipes for the userfs partition binary
        โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ st-image-vendorfs.bb  Recipes for the vendorfs partition binary
        โ”‚   โ”‚   โ””โ”€โ”€ [...]
        โ”‚   โ”œโ”€โ”€ meta-st-stm32mp-addons  STMicroelectronics layer that helps managing the STM32CubeMX integration
        โ”‚       โ””โ”€โ”€ [...]
        โ”‚   โ””โ”€โ”€ scripts
        โ”‚       โ”œโ”€โ”€ envsetup.sh         Environment setup script for Distribution Package
        โ”‚       โ””โ”€โ”€ [...]
        โ”œโ”€โ”€ meta-timesys       Timesys layer for OpenEmbedded (standard)
        โ”‚   โ””โ”€โ”€ [...]
        โ””โ”€โ”€ openembedded-core  Core metadata for current versions of OpenEmbedded (standard)
            โ””โ”€โ”€ [...]

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 new directories and files contain the build outputs.


Developer-Package
โ”œโ”€โ”€ stm32mp1-openstlinux-5.4-dunfell-mp1-20-11-12  Source code for OpenSTLinux distribution
โ”‚   โ””โ”€โ”€ sources
โ”‚       โ””โ”€โ”€ arm-ostl-linux-gnueabi
โ”‚           โ”œโ”€โ”€ linux-5.4.56                   Linux kernel installation directory
โ”‚           โ”‚   โ”œโ”€โ”€ build                               Linux kernel build directory
โ”‚           โ”‚   โ”‚   โ”œโ”€โ”€ install_artifact
โ”‚           โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ lib
โ”‚           โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ modules
โ”‚           โ”‚   โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ X.Y.Z
โ”‚           โ”‚   โ”‚   โ”‚   โ”‚           โ””โ”€โ”€ [...]           Kernel modules hierarchy (*.ko files)
โ”‚           โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ boot
โ”‚           โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ stm32mp157a-dk1[*].dtb  Linux kernel device tree blob files for bootfs partition โ†’ STM32MP157A-DK1
โ”‚           โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ stm32mp157c-dk2[*].dtb  Linux kernel device tree blob files for bootfs partition โ†’ STM32MP157C-DK2
โ”‚           โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ stm32mp157c-ev1[*].dtb  Linux kernel device tree blob files for bootfs partition โ†’ STM32MP157C-EV1
โ”‚           โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ uImage                  Linux kernel binary image file (with U-Boot wrapper) for bootfs partition
โ”‚           โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ [...]
โ”‚           โ”‚   โ”‚   โ”œโ”€โ”€ vmlinux                         Debug symbol file for Linux kernel
โ”‚           โ”‚   โ”‚   โ””โ”€โ”€ [...]
โ”‚           โ”‚   โ””โ”€โ”€ [...]
โ”‚           โ”œโ”€โ”€ optee-os-stm32mp-3.9.0.r2                                           OP-TEE OS installation directory
โ”‚           โ”‚   โ”œโ”€โ”€ build                                                           OP-TEE OS build directory
โ”‚           โ”‚   โ”‚   โ”œโ”€โ”€ tee-[header/pageable/pager]_v2-stm32mp157a-dk1-optee.stm32  Binaries for OP-TEE OS runtime services (trusted boot chain) โ†’ STM32MP157A-DK1
โ”‚           โ”‚   โ”‚   โ”œโ”€โ”€ tee-[header/pageable/pager]_v2-stm32mp157c-dk2-optee.stm32  Binaries for OP-TEE OS runtime services (trusted boot chain) โ†’ STM32MP157C-DK2
โ”‚           โ”‚   โ”‚   โ”œโ”€โ”€ tee-[header/pageable/pager]_v2-stm32mp157c-ev1-optee.stm32  Binaries for OP-TEE OS runtime services (trusted boot chain) โ†’ STM32MP157C-EV1
โ”‚           โ”‚   โ”‚   โ””โ”€โ”€ [...]
โ”‚           โ”‚   โ””โ”€โ”€ [...]
โ”‚           โ”œโ”€โ”€tf-a-stm32mp-2.2.r2                             TF-A installation directory
โ”‚           โ”‚   โ”œโ”€โ”€ build                                       TF-A build directory
โ”‚           โ”‚   โ”‚   โ”œโ”€โ”€ optee                                   TF-A, with OP-TEE OS
โ”‚           โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ tf-a-bl2-optee.elf                  Debug symbol file for TF-A, with OP-TEE OS โ†’ trusted boot firmware stage
โ”‚           โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ tf-a-stm32mp157a-dk1-optee.stm32    TF-A binary for FSBL partition (trusted boot chain), with OP-TEE OS โ†’ STM32MP157A-DK1
โ”‚           โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ tf-a-stm32mp157c-dk2-optee.stm32    TF-A binary for FSBL partition (trusted boot chain), with OP-TEE OS โ†’ STM32MP157C-DK2
โ”‚           โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ tf-a-stm32mp157c-ev1-optee.stm32    TF-A binary for FSBL partition (trusted boot chain), with OP-TEE OS โ†’ STM32MP157C-EV1
โ”‚           โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ [...]
โ”‚           โ”‚   โ”‚   โ””โ”€โ”€ trusted                                 TF-A, without OP-TEE OS
โ”‚           โ”‚   โ”‚       โ”œโ”€โ”€ tf-a-bl2-trusted.elf                Debug symbol file for TF-A โ†’ trusted boot firmware stage
โ”‚           โ”‚   โ”‚       โ”œโ”€โ”€ tf-a-bl32-trusted.elf               Debug symbol file for TF-A โ†’ trusted boot firmware stage
โ”‚           โ”‚   โ”‚       โ”œโ”€โ”€ tf-a-stm32mp157a-dk1-trusted.stm32  TF-A binary for FSBL partition (trusted boot chain) โ†’ STM32MP157A-DK1
โ”‚           โ”‚   โ”‚       โ”œโ”€โ”€ tf-a-stm32mp157c-dk2-trusted.stm32  TF-A binary for FSBL partition (trusted boot chain) โ†’ STM32MP157C-DK2
โ”‚           โ”‚   โ”‚       โ”œโ”€โ”€ tf-a-stm32mp157c-ev1-trusted.stm32  TF-A binary for FSBL partition (trusted boot chain) โ†’ STM32MP157C-EV1
โ”‚           โ”‚   โ”‚       โ””โ”€โ”€ [...]
โ”‚           โ”‚   โ””โ”€โ”€ [...]
โ”‚           โ””โ”€โ”€ u-boot-stm32mp-2020.01.r2                       U-Boot installation directory
โ”‚               โ”œโ”€โ”€ build-basic                                 U-Boot build directory for basic boot chain
โ”‚               โ”‚   โ”œโ”€โ”€ u-boot-spl.stm32-stm32mp157a-dk1-basic  U-Boot binary for FSBL partition (basic boot chain) โ†’ STM32MP157A-DK1
โ”‚               โ”‚   โ”œโ”€โ”€ u-boot-spl.stm32-stm32mp157c-dk2-basic  U-Boot binary for FSBL partition (basic boot chain) โ†’ STM32MP157C-DK2
โ”‚               โ”‚   โ”œโ”€โ”€ u-boot-spl.stm32-stm32mp157c-ev1-basic  U-Boot binary for FSBL partition (basic boot chain) โ†’ STM32MP157C-EV1
โ”‚               โ”‚   โ”œโ”€โ”€ u-boot-stm32mp157a-dk1-basic.img        U-Boot binary for SSBL partition (basic boot chain) โ†’ STM32MP157A-DK1
โ”‚               โ”‚   โ”œโ”€โ”€ u-boot-stm32mp157c-dk2-basic.img        U-Boot binary for SSBL partition (basic boot chain) โ†’ STM32MP157C-DK2
โ”‚               โ”‚   โ”œโ”€โ”€ u-boot-stm32mp157c-ev1-basic.img        U-Boot binary for SSBL partition (basic boot chain) โ†’ STM32MP157C-EV1
โ”‚               โ”œโ”€โ”€ build-optee                                 U-Boot build directory for trusted boot chain, with OP-TEE OS
โ”‚               โ”‚   โ”œโ”€โ”€ u-boot-stm32mp157a-dk1-optee.elf        Debug symbol file for U-Boot, with OP-TEE OS โ†’ STM32MP157A-DK1
โ”‚               โ”‚   โ”œโ”€โ”€ u-boot-stm32mp157a-dk1-optee.stm32      U-Boot binary for SSBL partition (trusted boot chain), with OP-TEE OS โ†’ STM32MP157A-DK1
โ”‚               โ”‚   โ”œโ”€โ”€ u-boot-stm32mp157c-dk2-optee.elf        Debug symbol file for U-Boot, with OP-TEE OS โ†’ STM32MP157C-DK2
โ”‚               โ”‚   โ”œโ”€โ”€ u-boot-stm32mp157c-dk2-optee.stm32      U-Boot binary for SSBL partition (trusted boot chain), with OP-TEE OS โ†’ STM32MP157C-DK2
โ”‚               โ”‚   โ”œโ”€โ”€ u-boot-stm32mp157c-ev1-optee.elf        Debug symbol file for U-Boot, with OP-TEE OS โ†’ STM32MP157C-EV1
โ”‚               โ”‚   โ”œโ”€โ”€ u-boot-stm32mp157c-ev1-optee.stm32      U-Boot binary for SSBL partition (trusted boot chain), with OP-TEE OS โ†’ STM32MP157C-EV1
โ”‚               โ”‚   โ””โ”€โ”€ [...]
โ”‚               โ”œโ”€โ”€ build-trusted                               U-Boot build directory for trusted boot chain
โ”‚               โ”‚   โ”œโ”€โ”€ u-boot-stm32mp157a-dk1-trusted.elf      Debug symbol file for U-Boot โ†’ STM32MP157A-DK1
โ”‚               โ”‚   โ”œโ”€โ”€ u-boot-stm32mp157a-dk1-trusted.stm32    U-Boot binary for SSBL partition (trusted boot chain) โ†’ STM32MP157A-DK1
โ”‚               โ”‚   โ”œโ”€โ”€ u-boot-stm32mp157c-dk2-trusted.elf      Debug symbol file for U-Boot โ†’ STM32MP157C-DK2
โ”‚               โ”‚   โ”œโ”€โ”€ u-boot-stm32mp157c-dk2-trusted.stm32    U-Boot binary for SSBL partition (trusted boot chain) โ†’ STM32MP157C-DK2
โ”‚               โ”‚   โ”œโ”€โ”€ u-boot-stm32mp157c-ev1-trusted.elf      Debug symbol file for U-Boot โ†’ STM32MP157C-EV1
โ”‚               โ”‚   โ”œโ”€โ”€ u-boot-stm32mp157c-ev1-trusted.stm32    U-Boot binary for SSBL partition (trusted boot chain) โ†’ STM32MP157C-EV1
โ”‚               โ”‚   โ””โ”€โ”€ [...]
โ”‚               โ””โ”€โ”€ [...]

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 new directories 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 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 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/openstlinux-5.4-dunfell-mp1-20-11-12 /build-openstlinuxweston-stm32mp/tmp-glibc/deploy
โ”œโ”€โ”€ images
โ”‚   โ””โ”€โ”€ stm32mp1
โ”‚       โ”œโ”€โ”€ flashlayout_st-image-weston                                 Flash layout files (description of the partitions) for the supported flash devices
โ”‚       โ”‚   โ”œโ”€โ”€ FlashLayout_emmc_stm32mp157c-ev1-optee.tsv              Flash layout file for eMMC and trusted boot chain, with OP-TEE OS โ†’ STM32MP157C-EV1
โ”‚       โ”‚   โ”œโ”€โ”€ FlashLayout_emmc_stm32mp157c-ev1-trusted.tsv            Flash layout file for eMMC and trusted boot chain โ†’ STM32MP157C-EV1
โ”‚       โ”‚   โ”œโ”€โ”€ FlashLayout_nand-4-256_stm32mp157c-ev1-optee.tsv        Flash layout file for NAND Flash and trusted boot chain, with OP-TEE OS โ†’ STM32MP157C-EV1
โ”‚       โ”‚   โ”œโ”€โ”€ FlashLayout_nand-4-256_stm32mp157c-ev1-trusted.tsv      Flash layout file for NAND Flash and trusted boot chain โ†’ STM32MP157C-EV1
โ”‚       โ”‚   โ”œโ”€โ”€ FlashLayout_nor-emmc_stm32mp157c-ev1-optee.tsv          Flash layout file for NOR Flash (and eMMC) and trusted boot chain, with OP-TEE OS โ†’ STM32MP157C-EV1
โ”‚       โ”‚   โ”œโ”€โ”€ FlashLayout_nor-emmc_stm32mp157c-ev1-trusted.tsv        Flash layout file for NOR Flash (and eMMC) and trusted boot chain โ†’ STM32MP157C-EV1
โ”‚       โ”‚   โ”œโ”€โ”€ FlashLayout_nor-nand-4-256_stm32mp157c-ev1-optee.tsv    Flash layout file for NOR Flash (and NAND Flash) and trusted boot chain, with OP-TEE OS โ†’ STM32MP157C-EV1
โ”‚       โ”‚   โ”œโ”€โ”€ FlashLayout_nor-nand-4-256_stm32mp157c-ev1-trusted.tsv  Flash layout file for NOR Flash (and NAND Flash) and trusted boot chain โ†’ STM32MP157C-EV1
โ”‚       โ”‚   โ”œโ”€โ”€ FlashLayout_nor-sdcard_stm32mp157c-ev1-optee.tsv        Flash layout file for NOR Flash (and microSD card) and trusted boot chain, with OP-TEE OS โ†’ STM32MP157C-EV1
โ”‚       โ”‚   โ”œโ”€โ”€ FlashLayout_nor-sdcard_stm32mp157c-ev1-trusted.tsv      Flash layout file for NOR Flash (and microSD card) and trusted boot chain โ†’ STM32MP157C-EV1
โ”‚       โ”‚   โ”œโ”€โ”€ FlashLayout_sdcard_stm32mp157a-dk1-basic.tsv            Flash layout file for microSD card and basic boot chain โ†’ STM32MP157A-DK1
โ”‚       โ”‚   โ”œโ”€โ”€ FlashLayout_sdcard_stm32mp157a-dk1-optee.tsv            Flash layout file for microSD card and trusted boot chain, with OP-TEE OS โ†’ STM32MP157A-DK1
โ”‚       โ”‚   โ”œโ”€โ”€ FlashLayout_sdcard_stm32mp157a-dk1-trusted.tsv          Flash layout file for microSD card and trusted boot chain (recommended setup) โ†’ STM32MP157A-DK1
โ”‚       โ”‚   โ”œโ”€โ”€ FlashLayout_sdcard_stm32mp157c-dk2-basic.tsv            Flash layout file for microSD card and basic boot chain โ†’ STM32MP157C-DK2
โ”‚       โ”‚   โ”œโ”€โ”€ FlashLayout_sdcard_stm32mp157c-dk2-optee.tsv            Flash layout file for microSD card and trusted boot chain, with OP-TEE OS โ†’ STM32MP157C-DK2
โ”‚       โ”‚   โ”œโ”€โ”€ FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv          Flash layout file for microSD card and trusted boot chain (recommended setup) โ†’ STM32MP157C-DK2
โ”‚       โ”‚   โ”œโ”€โ”€ FlashLayout_sdcard_stm32mp157c-ev1-basic.tsv            Flash layout file for microSD card and basic boot chain โ†’ STM32MP157C-EV1
โ”‚       โ”‚   โ”œโ”€โ”€ FlashLayout_sdcard_stm32mp157c-ev1-optee.tsv            Flash layout file for microSD card and trusted boot chain, with OP-TEE OS โ†’ STM32MP157C-EV1
โ”‚       โ”‚   โ””โ”€โ”€ FlashLayout_sdcard_stm32mp157c-ev1-trusted.tsv          Flash layout file for microSD card and trusted boot chain (recommended setup) โ†’ STM32MP157C-EV1
โ”‚       โ”‚   โ””โ”€โ”€ [...]
โ”‚       โ”œโ”€โ”€ scripts
โ”‚       โ”‚   โ””โ”€โ”€ create_sdcard_from_flashlayout.sh
โ”‚       โ”œโ”€โ”€ st-image-bootfs-openstlinux-weston-stm32mp1.ext4            Binary for bootfs partition
โ”‚       โ”œโ”€โ”€ st-image-userfs-openstlinux-weston-stm32mp1.ext4            Binary for userfs partition
โ”‚       โ”œโ”€โ”€ st-image-vendorfs-openstlinux-weston-stm32mp1.ext4          Binary for vendorfs partition
โ”‚       โ”œโ”€โ”€ st-image-weston-openstlinux-weston-stm32mp1.ext4            Binary for rootfs partition
โ”‚       โ”œโ”€โ”€ stm32mp157a-dk1[*].dtb                                      Linux kernel device tree blob files for bootfs partition โ†’ STM32MP157A-DK1
โ”‚       โ”œโ”€โ”€ stm32mp157c-dk2[*].dtb                                      Linux kernel device tree blob files for bootfs partition โ†’ STM32MP157C-DK2
โ”‚       โ”œโ”€โ”€ stm32mp157c-e[*].dtb                                        Linux kernel device tree blob files for bootfs partition โ†’ STM32MP157C-EV1
โ”‚       โ”œโ”€โ”€ tee-[header/pageable/pager]_v2-stm32mp157a-dk1-optee.stm32  Binaries for OP-TEE OS runtime services (trusted boot chain) โ†’ STM32MP157A-DK1
โ”‚       โ”œโ”€โ”€ tee-[header/pageable/pager]_v2-stm32mp157c-dk2-optee.stm32  Binaries for OP-TEE OS runtime services (trusted boot chain) โ†’ STM32MP157C-DK2
โ”‚       โ”œโ”€โ”€ tee-[header/pageable/pager]_v2-stm32mp157c-ev1-optee.stm32  Binaries for OP-TEE OS runtime services (trusted boot chain) โ†’ STM32MP157C-EV1
โ”‚       โ”œโ”€โ”€ tf-a-bl2-optee.elf                                          Debug symbol file for TF-A, with OP-TEE OS โ†’ trusted boot firmware stage
โ”‚       โ”œโ”€โ”€ tf-a-bl2-trusted.elf                                        Debug symbol file for TF-A โ†’ trusted boot firmware stage
โ”‚       โ”œโ”€โ”€ tf-a-bl32-trusted.elf                                       Debug symbol file for TF-A โ†’ runtime software stage
โ”‚       โ”œโ”€โ”€ tf-a-stm32mp157a-dk1-optee.stm32                            TF-A binary for FSBL partition (trusted boot chain), with OP-TEE OS โ†’ STM32MP157A-DK1
โ”‚       โ”œโ”€โ”€ tf-a-stm32mp157a-dk1-trusted.stm32                          TF-A binary for FSBL partition (trusted boot chain) โ†’ STM32MP157A-DK1
โ”‚       โ”œโ”€โ”€ tf-a-stm32mp157c-dk2-optee.stm32                            TF-A binary for FSBL partition (trusted boot chain), with OP-TEE OS โ†’ STM32MP157C-DK2
โ”‚       โ”œโ”€โ”€ tf-a-stm32mp157c-dk2-trusted.stm32                          TF-A binary for FSBL partition (trusted boot chain) โ†’ STM32MP157C-DK2
โ”‚       โ”œโ”€โ”€ tf-a-stm32mp157c-ev1-optee.stm32                            TF-A binary for FSBL partition (trusted boot chain), with OP-TEE OS โ†’ STM32MP157C-EV1
โ”‚       โ”œโ”€โ”€ tf-a-stm32mp157c-ev1-trusted.stm32                          TF-A binary for FSBL partition (trusted boot chain) โ†’ STM32MP157C-EV1
โ”‚       โ”œโ”€โ”€ u-boot-spl.stm32-stm32mp157a-dk1-basic                      U-Boot binary for FSBL partition (basic boot chain) โ†’ STM32MP157A-DK1
โ”‚       โ”œโ”€โ”€ u-boot-spl.stm32-stm32mp157c-dk2-basic                      U-Boot binary for FSBL partition (basic boot chain) โ†’ STM32MP157C-DK2
โ”‚       โ”œโ”€โ”€ u-boot-spl.stm32-stm32mp157c-ev1-basic                      U-Boot binary for FSBL partition (basic boot chain) โ†’ STM32MP157C-EV1
โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157a-dk1-basic.img                            U-Boot binary for SSBL partition (basic boot chain) โ†’ STM32MP157A-DK1
โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157a-dk1-optee.elf                            Debug symbol file for U-Boot, with OP-TEE OS โ†’ STM32MP157A-DK1
โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157a-dk1-optee.stm32                          U-Boot binary for SSBL partition (trusted boot chain), with OP-TEE OS โ†’ STM32MP157A-DK1
โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157a-dk1-trusted.elf                          Debug symbol file for U-Boot โ†’ STM32MP157A-DK1
โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157a-dk1-trusted.stm32                        U-Boot binary for SSBL partition (trusted boot chain) โ†’ STM32MP157A-DK1
โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157c-dk2-basic.img                            U-Boot binary for SSBL partition (basic boot chain) โ†’ STM32MP157C-DK2
โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157c-dk2-optee.elf                            Debug symbol file for U-Boot, with OP-TEE OS โ†’ STM32MP157C-DK2
โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157c-dk2-optee.stm32                          U-Boot binary for SSBL partition (trusted boot chain), with OP-TEE OS โ†’ STM32MP157C-DK2
โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157c-dk2-trusted.elf                          Debug symbol file for U-Boot โ†’ STM32MP157C-DK2
โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157c-dk2-trusted.stm32                        U-Boot binary for SSBL partition (trusted boot chain) โ†’ STM32MP157C-DK2
โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157c-ev1-basic.img                            U-Boot binary for SSBL partition (basic boot chain) โ†’ STM32MP157C-EV1
โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157c-ev1-optee.elf                            Debug symbol file for U-Boot, with OP-TEE OS โ†’ STM32MP157C-EV1
โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157c-ev1-optee.stm32                          U-Boot binary for SSBL partition (trusted boot chain), with OP-TEE OS โ†’ STM32MP157C-EV1
โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157c-ev1-trusted.elf                          Debug symbol file for U-Boot โ†’ STM32MP157C-EV1
โ”‚       โ”œโ”€โ”€ u-boot-stm32mp157c-ev1-trusted.stm32                        U-Boot binary for SSBL partition (trusted boot chain) โ†’ STM32MP157C-EV1
โ”‚       โ”œโ”€โ”€ uImage                                                      Linux kernel binary image file (with U-Boot wrapper) for bootfs partition
โ”‚       โ”œโ”€โ”€ vmlinux                                                     Debug symbol file for Linux kernel
โ”‚       โ””โ”€โ”€ [...]
โ””โ”€โ”€ [...]