ac6-training, un département d'Ac6 SAS
 
Site displayed in English (USA)
Site affiché en English (USA)View the site in FrenchVoir le site en English (GB)
go-up

leftthintrapezium-20-8e689c ac6 > ac6-training > Operating Systems > Linux > Yocto Project Development Inquire Download as PDF Call us Write us

Y1 Yocto Project Development

Building a Linux Embedded image using Yocto

Building a Linux Embedded image using Yocto
Objectives
  • Using and customizing Yocto
  • Creating Yocto-based Embedded Linux platforms
  • Using Yocto to develop components
We use a recent Yocto version
Labs are conducted on qemu or on target boards, that can be:
    Dual Cortex/A7-based "STM32MP15-DISCO" boards from STMicroelectronics.
    Quad Cortex/A9-based "SabreLite" boards from NXP.
    Quad Cortex/A53-based "imx8q-evk" boards from NXP.
  • Theoretical course
    • PDF course material (in English) supplemented by a printed version.
    • The trainer answers trainees' questions during the training and provide technical and pedagogical assistance.
  • Practical activities
    • Practical activities represent from 40% to 50% of course duration.
    • Code examples, exercises and solutions
    • One PC (Linux ou Windows) for the practical activities with, if appropriate, a target board.
      • One PC for two trainees when there are more than 6 trainees.
    • For onsite trainings:
      • An installation and test manual is provided to allow preinstallation of the needed software.
      • The trainer come with target boards if needed during the practical activities (and bring them back at the end of the course).
  • Downloadable preconfigured virtual machine for post-course practical activities
  • At the start of each session the trainer will interact with the trainees to ensure the course fits their expectations and correct if needed
  • Any embedded systems engineer or technician with the above prerequisites.
  • The prerequisites indicated above are assessed before the training by the technical supervision of the traineein his company, or by the trainee himself in the exceptional case of an individual trainee.
  • Trainee progress is assessed in two different ways, depending on the course:
    • For courses lending themselves to practical exercises, the results of the exercises are checked by the trainer while, if necessary, helping trainees to carry them out by providing additional details.
    • Quizzes are offered at the end of sections that do not include practical exercises to verifythat the trainees have assimilated the points presented
  • At the end of the training, each trainee receives a certificate attesting that they have successfully completed the course.
    • In the event of a problem, discovered during the course, due to a lack of prerequisites by the trainee a different or additional training is offered to them, generally to reinforce their prerequisites,in agreement with their company manager if applicable.

Course Outline

  • Overview of Yocto
    • History
    • Yocto, Open Embedded and Poky
    • Purpose of the Yocto project
    • The main projects
  • Yocto architecture
    • Overview
    • Recipes and classes
    • Tasks
Exercise:  Setting up the labs environment
  • Build system objectives
    • Building deployable images
Exercise:  Building a root file system using Yocto
  • Build system architecture
    • Layers and layer priorities
    • Directory layout
    • Configuration files
      • Local
      • Machine
      • Distro
    • The bitbake tool
    • Common options
  • Using Yocto
    • The bitbake tool
      • Common options
      • Base commands
    • Building a package
    • Building an image (root file system + u-boot + kernel)
Exercise:  Use bitbake commands to build packages and images
  • Miscellaneous tools around Yocto
    • Yocto Application Development Toolkit (ADT)
    • Toaster
Exercise:  Deploy the generated image
  • Recipe architecture
    • Tasks
    • Task dependencies
    • Recipe dependencies
  • The bitbake language
    • Standard variables and functions
    • Classes and recipes
    • The base Yocto classes
    • Main bitbake commands
Exercise:  Examine and understand real-life configuration files
  • Various kind of recipes and classes
    • bare program
    • Makefile-based package
    • autotools-based package
    • u-boot
    • kernel
    • out-of-tree module
  • Recipe creation strategies
    • From scratch
    • Using devtool
    • Using recipetool
    • From an existing, similar, recipe
Exercise:  Writing a recipe for a local user-maintained package
Exercise:  Writing a recipe for a local out-of-tree module
  • Debugging recipes
    • Debugging recipe selection
    • Debugging dependencies
    • debugging tasks
Exercise:  Writing and debugging a recipe for an autotools, git-maintained, package
  • Defining packaging
    • Package splitting
Exercise:  Writing and debugging a recipe for an autotools library package
  • Automatically starting a program (class update-rc.d)
Exercise:  Starting an ssh daemon on the target
  • Customizing an existing package recipe (.bbappend)
  • Recipe dependencies
  • Creating and adding patches
    • Creating a patch for a community-provided component
    • Creating a patch for an user-maintained component
Exercise:  Adding patches and dependencies to a community package
  • Defining new tasks
    • Task declaration
    • Coding tasks
Exercise:  Adding a rootfsinstall task to directly copy the output of an user package in the rootfs image
  • Using devtool to create a package and its recipe
  • Using devtool to modify an existing package and recipe
  • Using devtool to update a recipe to build a new version of a package
Exercise:  Create, test and modify a recipe for an existing package using devtool
  • Creating classes
    • Creating new, independent, classes
    • Inheriting from an existing class
Exercise:  Create a class to generalize the “rootfsinstall” task
Exercise:  Create a class to build firmware packages (for example using an MCU toolchain)
  • Building a root file system with Yocto
    • Creating a custom root file system
  • Writing an image recipe
    • Selecting the packages to build
    • Selecting the file system types
    • The various kinds of images
  • Inheriting and customizing images
    • Customizing system configuration files (network, mount points, …)
Exercise:  Writing and building an image recipe
Exercise:  Creating a JFFS2, UBIFS or EXT2 image with Yocto
  • Package management
    • rpm
    • opkg
Exercise:  Create an image with package support for OTA deployment
Exercise:  Test OTA update on the generated image
  • Introduction to python
  • Using python in Yocto
    • The main bitbake classes
    • Defining variable values in Python
    • Writing tasks in Python
Exercise:  Writing a task and customizing a recipe in Python