Last edited 6 months ago

How to create your own image: Difference between revisions

Registered User
m (Undo revision 74984 by Registered User (-))
Tag: Undo
Registered User
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{ApplicableFor
|MPUs list=STM32MP13x, STM32MP15x, STM32MP21x, STM32MP23x, STM32MP25x
|MPUs checklist=STM32MP13x, STM32MP15x, STM32MP21x, STM32MP23x, STM32MP25x
}}
<noinclude></noinclude>
==Article purpose==
==Article purpose==
The main goal of this article is to describe how to customize images to fit application requirements.<br>
The main goal of this article is to describe how to customize images to fit application requirements.<br>
Line 10: Line 15:
===OpenEmbedded images===
===OpenEmbedded images===
The OpenEmbedded build system provides severals example images to satisfy different needs.<br>
The OpenEmbedded build system provides severals example images to satisfy different needs.<br>
All details are explained {{DocSource | domain=Yocto Project | path=mega-manual/mega-manual.html#ref-images | text=Yocto Megamanual Reference Images}<br>
All details are explained {{DocSource | domain=Yocto Project | path=singleindex.html#document-ref-manual/ref-images | text=Yocto Project Reference Manual Reference Images}}<br>
Some existing images are located here: '''<path of OpenSTLinux distribution delivery>/openembedded-core/meta/recipes-*/images/*.bb'''
 
Some existing images are located here: {{STLightGreen|''<path of OpenSTLinux distribution delivery>''}}'''/openembedded-core/meta/recipes-*/images/*.bb'''


The core-image-base can be a good starting points and a source or inspiration for creating user's own images:
The core-image-base can be a good starting points and a source or inspiration for creating user's own images:
Line 29: Line 35:
===Official OpenSTLinux images===
===Official OpenSTLinux images===
*'''st-image-weston''' : OpenSTLinux weston image with basic Wayland support (if enable in distro)
*'''st-image-weston''' : OpenSTLinux weston image with basic Wayland support (if enable in distro)
This image is located here : '''<path of OpenSTLinux distribution delivery>/meta-st/meta-st-openstlinux/recipes-st/images/st-image-weston.bb'''
This image is located here : {{STLightGreen|''<path of OpenSTLinux distribution delivery>''}}'''/meta-st/meta-st-openstlinux/recipes-st/images/st-image-weston.bb'''


===Others OpenSTLinux images===
===Others OpenSTLinux images===
====Supported images====
====Supported images====
*'''st-image-core'''  : OpenSTLinux core image
*'''st-image-core'''  : OpenSTLinux core image
This image is located here : '''<path of OpenSTLinux distribution delivery>/meta-st/meta-st-openstlinux/recipes-st/images/st-image-core.bb'''  
This image is located here : {{STLightGreen|''<path of OpenSTLinux distribution delivery>''}}'''/meta-st/meta-st-openstlinux/recipes-st/images/st-image-core.bb'''


  {{Highlight|meta-st-openstlinux}}             
  {{Highlight|meta-st-openstlinux}}             
Line 50: Line 56:
*'''st-example-image-qtwayland''' : ST example of image based on QT framework (require 'openstlinux-weston' distro, only available for {{EcosystemRelease | revision=2.1.0 | range=and after}})
*'''st-example-image-qtwayland''' : ST example of image based on QT framework (require 'openstlinux-weston' distro, only available for {{EcosystemRelease | revision=2.1.0 | range=and after}})


More images are available here : '''<path of OpenSTLinux distribution delivery>/meta-st/meta-st-openstlinux/recipes-samples/images/'''
More images are available here : {{STLightGreen|''<path of OpenSTLinux distribution delivery>''}}'''/meta-st/meta-st-openstlinux/recipes-samples/images/'''


  {{Highlight|meta-st-openstlinux}}             
  {{Highlight|meta-st-openstlinux}}             
Line 61: Line 67:


==Customizing images==
==Customizing images==
Several ways are explained and described here {{DocSource | domain=Yocto Project | path=mega-manual/mega-manual.html#usingpoky-extend-customimage | text=Yocto Megamanual Customizing Images}}<br>
Several ways are explained and described here {{DocSource | domain=Yocto Project | path=singleindex.html#customizing-images | text=Yocto Megamanual Customizing Images}}<br>


The way recommended and used by ST is to follow the method described in chapters '''Customizing Images Using Custom .bb Files''' and '''Customizing Images Using Custom Package Groups''' of Yocto Megamanual.
The way recommended and used by ST is to follow the method described in chapters '''Customizing Images Using Custom .bb Files''' and '''Customizing Images Using Custom Package Groups''' of Yocto Megamanual.

Latest revision as of 12:52, 5 November 2024

Applicable for STM32MP13x lines, STM32MP15x lines, STM32MP21x lines, STM32MP23x lines, STM32MP25x lines

1. Article purpose

The main goal of this article is to describe how to customize images to fit application requirements.
The idea is to add missing tools in the user file system.
Tools are related to kernel, network, audio, ui, ...

2. Prerequisites

The OpenSTLinux distribution delivery must be already installed.

3. Available ST images

3.1. OpenEmbedded images

The OpenEmbedded build system provides severals example images to satisfy different needs.
All details are explained Yocto Project Reference Manual Reference Images

Some existing images are located here: <path of OpenSTLinux distribution delivery>/openembedded-core/meta/recipes-*/images/*.bb

The core-image-base can be a good starting points and a source or inspiration for creating user's own images:

openembedded-core            
├── meta  
│   ├── classes
│       ├── core-image.bbclass
│   ├── recipes-core
│       ├── images
│           ├── core-image-base.bb
└── [...]


In addition OpenSTLinux Distribution provides even more images, still derived from OpenEmbedded, and that can be used as example and for demonstration.

Warning.png ST images are not optimized in term of size or features.

3.2. Official OpenSTLinux images

  • st-image-weston : OpenSTLinux weston image with basic Wayland support (if enable in distro)

This image is located here : <path of OpenSTLinux distribution delivery>/meta-st/meta-st-openstlinux/recipes-st/images/st-image-weston.bb

3.3. Others OpenSTLinux images

3.3.1. Supported images

  • st-image-core  : OpenSTLinux core image

This image is located here : <path of OpenSTLinux distribution delivery>/meta-st/meta-st-openstlinux/recipes-st/images/st-image-core.bb

meta-st-openstlinux            
├── recipes-st  
│   ├── images
│       ├── st-image-core.bb
│       ├── st-image.inc
│       ├── st-image-weston.bb
│   ├── packagegroups
│       ├── packagegroup-framework-tools.bb
└── [...]

3.3.2. Images proposed as example-only

  • st-example-image-qt : ST example of image based on QT framework (require 'openstlinux-eglfs' distro)
  • st-example-image-qtwayland : ST example of image based on QT framework (require 'openstlinux-weston' distro, only available for ecosystem release ≥ v2.1.0 More info.png )

More images are available here : <path of OpenSTLinux distribution delivery>/meta-st/meta-st-openstlinux/recipes-samples/images/

meta-st-openstlinux            
├── recipes-samples  
│   ├── images
│       ├── st-example-image-qt.bb
│       ├── st-example-image-qtwayland.bb
│       │ [...]
└── [...]

4. Customizing images

Several ways are explained and described here Yocto Megamanual Customizing Images

The way recommended and used by ST is to follow the method described in chapters Customizing Images Using Custom .bb Files and Customizing Images Using Custom Package Groups of Yocto Megamanual.