FAQ

From Yocto Project
(Difference between revisions)
Jump to: navigation, search
(added information for ubuntu 11.04 build patches)
(Technical)
(18 intermediate revisions by 8 users not shown)
Line 1: Line 1:
'''Yocto Project Public Messages and FAQ'''
+
=== Yocto Project Public Messages and FAQ ===
  
6, April 2011
+
Last edited: 28 Sept, 2012
  
 +
Note: technical FAQs are being added to the end of this document
  
  
'''Q: What is the Yocto Project?'''
+
==== What is the Yocto Project? ====
  
'''A:''' The Yocto Project provides open source, high-quality infrastructure and tools to help developers create their own custom Linux distributions for any hardware architecture and across multiple market segments. The Yocto Project is intended to provide a helpful starting point for developers. The Linux Foundation welcomes the participation of embedded vendors, developers, and other open source projects.
+
The Yocto Project provides open source, high-quality infrastructure and tools to help developers create their own custom Linux distributions for any hardware architecture and across multiple market segments. The Yocto Project is intended to provide a helpful starting point for developers. The Yocto Project hosts other projects as well, including the Poky build system, Autobuilder automated build and test system, and the Embedded GLIBC (EGLIBC)C library. The Linux Foundation welcomes the participation of embedded vendors, developers, and other open source projects.
  
  
  
'''Q: What does the Linux Foundation hope to achieve with the Yocto Project?'''
+
==== What does the Linux Foundation hope to achieve with the Yocto Project? ====
  
'''A:''' This year’s annual survey of embedded developers conducted by Embedded Market Forecasters reported that the two primary factors contributing to embedded developers’ choice of Operating Systems (OS) in their designs are cost (44.6%) and the availability of source code (33.1%). These factors have contributed to the explosion of demand for Linux in embedded devices. Until now, embedded vendors and their partners relied on deep customization, requiring developers to wrestle with rapidly changing software and difficult build and maintenance cycles. The Linux Foundation recognized that an opportunity existed for a collaboratively developed, open source project that would build high-quality tools for the embedded Linux ecosystem.  
+
This year’s annual survey of embedded developers conducted by Embedded Market Forecasters reported that the two primary factors contributing to embedded developers’ choice of Operating Systems (OS) in their designs are cost (44.6%) and the availability of source code (33.1%). These factors have contributed to the explosion of demand for Linux in embedded devices. Until now, embedded vendors and their partners relied on deep customization, requiring developers to wrestle with rapidly changing software and difficult build and maintenance cycles. The Linux Foundation recognized that an opportunity existed for a collaboratively developed, open source project that would build high-quality tools for the embedded Linux ecosystem.  
  
  
  
'''Q: How will the Yocto Project help Linux reach a wider embedded audience?'''
+
==== How does the Yocto Project help Linux reach a wider embedded audience? ====
  
'''A:''' This collaboratively developed, open source build system focused on the embedded segment will speed embedded vendors’ time to market by establishing a shared build infrastructure. This will enable Linux across the widest possible spectrum of devices, projects, and platforms. The Yocto Project has a great start on the code required to solve these problems.
+
This set of collaboratively developed, open source development tools focused on the embedded segment speeds embedded vendors’ time to market by establishing a shared build infrastructure. This enables Linux across the widest possible spectrum of devices, projects, and platforms. The Yocto Project has a great start on the code required to solve these problems.
  
  
  
'''Q: Isn’t the Yocto Project just yet another Linux distribution?'''
+
==== Isn’t the Yocto Project just yet another Linux distribution? ====
  
'''A:''' No.  The Yocto Project is a build system and tools that enables developers to construct their own custom distributions, targeted for specific embedded devices. It is not, itself, a complete Linux distribution. Rather, it is capable of outputting an image for a particular embedded device without dictating the composition of the Linux distribution actually built or the hardware architecture used.
+
No.  The Yocto Project is a set of tools and components, including a highly configurable build system, that enables developers to construct their own custom distributions, targeted for specific embedded devices. It is not, itself, a Linux distribution. Rather, it is capable of producing an image for a particular embedded device without dictating the composition of the Linux distribution actually built or the hardware architecture used.
  
  
  
'''Q: What benefits does the Yocto Project provide embedded developers and how is the Yocto Project superior to existing, similar tools?'''
+
==== What benefits does the Yocto Project provide embedded developers and how is the Yocto Project superior to existing, similar tools? ====
  
'''A:''' Unlike build systems based on shell scripts or makefiles, the Yocto Project automates the fetching of sources from a variety of upstream sources or from local project repositories. Updating to a new version of a package is often as easy as renaming a recipe file. It has a powerful customization architecture that allows the choice of a wide variety of footprint sizes as well as control over the choice or absence of components such as graphics subsystems, visualization middleware, and services.
+
Unlike build systems based on shell scripts or makefiles, the Yocto Project automates how source is fetched from a variety of upstream sources or from local project repositories. Updating to a new version of a package is often as easy as renaming a recipe file. It has a powerful customization architecture that allows the choice of a wide variety of footprint sizes as well as control over the choice or absence of components such as graphics subsystems, visualization middleware, and services.
  
  
Line 37: Line 38:
  
  
The Yocto Project is package-format agnostic; it supports both major Linux packaging systems (.rpm and .deb), as well as the embedded-friendly ipkg format. The Yocto Project is also architecturally agnostic, supporting all major embedded architectures (ARM, 32- and 64-bit x86, PowerPC, and MIPS).
+
The Yocto Project is package-format agnostic - supporting both major Linux packaging systems (.rpm and .deb), as well as the embedded-friendly ipk format. The Yocto Project is also architecturally agnostic - supporting all major embedded architectures: ARM, 32- and 64-bit x86, PowerPC, and MIPS.
  
  
The Yocto Project inherits the core build tool (bitbake) and metadata syntax from OpenEmbedded, which is currently the most popular embedded development tool. This commonality will provide automatic familiarity for developers already using OpenEmbedded. However, the learning curve for getting started with the Yocto Project and Poky is shallower. It is easier for new users to create a working distribution with the Yocto Project.  
+
The Yocto Project shares the core build tool (BitBake) and metadata syntax with OpenEmbedded, particularly the core set of components known as openembedded-core. This commonality provides automatic familiarity for developers already using OpenEmbedded. However, the learning curve for getting started with the Yocto Project is less steep. It is easier for new users to create a working distribution with the Yocto Project, and more work is being done currently on this subject with the new Hob graphical user interface.
  
     
+
     
When a distribution is created with the Yocto Project, the build tool creates an application development SDK tailored to that distribution.  This SDK can plug into the Eclipse and Anjuta IDEs, or it may be run as a command-line development system, complete with cross tools for the host and development tools for the device being developed.
+
When a distribution is created with the Yocto Project, the build tool creates an application development SDK tailored to that distribution.  This SDK can plug into the Eclipse IDE or it can be run as a command-line development system, complete with cross tools for the host and development tools for the device being developed.
  
  
  
'''Q: How does the existing embedded workflow compare to the Yocto Project and where can embedded developers save time?'''
+
==== How does the existing embedded workflow compare to the Yocto Project and where can embedded developers save time? ====
  
'''A:''' Existing embedded developers have many systems from which to choose. Once a system is chosen and a device's OS has been created, it can often be very difficult and time consuming to trim the distribution to an appropriate footprint size and assemble a working set of components. Then, for the developer’s next project, if updated components are needed, perhaps for bug fixes, security fixes, or new hardware support, the developer typically must start over, with little ability to re-use prior work on distributions. The Yocto Project solves these problems by providing a single focus for embedded development, requiring less time to get a working and up-to-date distribution together. In addition, if commercial support is desired, it is quite simple to transition to a supporting OSV who offers products and services compatible with the Yocto Project.
+
Existing embedded developers have many systems from which to choose. Once a system is chosen and a device's OS has been created, it can often be very difficult and time consuming to trim the distribution to an appropriate footprint size and assemble a working set of components. Then, for the developer’s next project, if updated components are needed, perhaps for bug fixes, security fixes, or new hardware support, the developer typically must start over, with little ability to re-use prior work on distributions. The Yocto Project solves these problems by providing a single focus for embedded development, requiring less time to get a working and up-to-date distribution together. In addition, if commercial support is desired, it is quite simple to transition to a supporting operating system vendor (OSV) who offers products and services compatible with the Yocto Project. All of the major embedded Linux OSVs are active members of the Yocto Project.
  
  
  
'''Q: Will the Yocto Project have a special governance model, or will it be managed as an open source project?'''
+
==== Does the Yocto Project have a special governance model, or is it managed as an open source project? ====
  
'''A:''' The Yocto Project will be governed as an open source project working group under the auspices of the Linux Foundation. There will be a Steering Group consisting of representatives from the major sponsoring organizations. This group will make decisions by majority vote, but the vast majority of decisions will be delegated to Maintainers; the Maintainers will only use the Steering Group to break deadlocks or to make final decisions about roadmaps. In addition, there will be Interest Groups who drive project feature requirements and an architect who will coordinate the work of the Maintainers and set project direction under the guidance of the Steering Group.
+
The Yocto Project is governed as an open source project working group under the auspices of the Linux Foundation. The Yocto Project Advisory Board consists of representatives from the major sponsoring organizations. This group advises the project on direction and provides resources, but all decisions are made by the project's Maintainers. In addition, there are Interest Groups who drive project feature requirements and provide direction on various aspects of project governance, including finances and infrastructure, and an Architect who coordinates the work of the Maintainers and sets project direction under the guidance of the Advisory Board and its subgroups.
  
  
  
'''Q: Why not just call this project Poky?  What has changed between Poky and the Yocto Project?'''
+
==== Why not just call this project Poky?  What has changed between Poky and the Yocto Project? ====
 
+
'''A:''' The Yocto Project is an umbrella project, similar to freedesktop.org. Accordingly, it includes a number of projects and resources specifically intended for facilitating development with Linux on embedded devices, and it is an appropriate place for larger organizations to collaborate on the development of build infrastructure for embedded Linux. Poky is indeed the largest part of the Yocto Project, and Poky will continue as an independent, open source project developing the build system used by the Yocto Project, as well as by other open source projects.
+
The Yocto Project is an umbrella project. Accordingly, it includes a number of projects and resources specifically intended for facilitating development with Linux on embedded devices, and it is an appropriate place for larger organizations to collaborate on the development of build infrastructure for embedded Linux. Poky is one of the the largest components of the Yocto Project, and Poky continues as an independent, open source project developing the build system used by the Yocto Project, as well as by other open source projects.  
  
 +
Poky is a reference system for the Yocto Project, showing how the tools work together. It includes BitBake, openembedded-core, and several other components that anyone can use to start developing with embedded Linux. Poky as a build system is tested by the Yocto Project teams before each release. When you download and use the Yocto Project build system, you are actually downloading Poky and using it to create a distribution that by default is also named Poky. (You can, of course, name your distribution anything you like.)
  
  
'''Q: Who defines the root filesystem and metadata?'''
 
  
'''A:''' Metadata represents the versions of the various components in a distribution, such as the particular versions of the Linux kernel or libraries. The project supplies an example set of metadata that can generate several example distributions. The actual metadata used for the construction of a custom distribution may be supplied by a commercial vendor or created by an embedded developer. The root filesystem is defined in the metadata for a given build of a distribution.
+
==== What is the difference between OpenEmbedded and the Yocto Project? ====
 +
 +
The Yocto Project and OpenEmbedded share a core collection of metadata called openembedded-core. However, the two organizations remain separate, each with its own focus. OpenEmbedded provides a comprehensive set of metadata for a wide variety of architectures, features, and applications. The Yocto Project focuses on providing powerful, easy-to-use, interoperable, well-tested tools, metadata, and board support packages (BSPs) for a core set of architectures and specific boards.  
  
  
 +
=== Release And Support ===
  
'''Q: What are the criteria for baseline metadata?'''
+
==== What is the release cycle of the Yocto Project? ====
  
'''A:''' The project has selected several major embedded architectures (32- and 64-bit x86, ARM, MIPS, and PowerPC) and footprint sizes (minimal, sato, lsb). Metadata has been created that generates a working build for these architectures and footprints while providing up-to-date and modern versions of the various open source components. We also supply metadata for a number of other components ("world"), which can be pulled into a custom distribution.
+
Each release of the Yocto Project is subject to its own release schedule according to the community-maintained [https://wiki.yoctoproject.org/wiki/Planning#Yocto Project Planning Guide]. It is generally expected that a new version of the Yocto Project will be released every six months.
  
  
  
'''Q: What tool sets are included in the Yocto Project? When will they be available?'''
+
==== What is the overall support plan for the Yocto Project? ====
  
'''A:''' The development tool chain is based on GCC. However, if a project contributor wished to add metadata that uses another tool chain, the project would be happy to consider it.
+
Security patches and critical bug fixes are supplied one release back. No toolchain or kernel changes are allowed for these updates.  Support for longer periods of time can be supplied by commercial OSVs.
  
  
  
'''Q: What about graphics drivers? Will they be validated and integrated?'''
+
=== Technical ===
  
'''A:''' Yes.
+
==== Who defines the root filesystem and metadata? ====
  
 +
Metadata represents the versions of the various components in a distribution, such as the particular versions of the Linux kernel or libraries. The project supplies an example set of metadata that can generate several example distributions. The actual metadata used for the construction of a custom distribution may be supplied by a commercial vendor or created by an embedded developer. The root filesystem is defined in the metadata for a given build of a distribution.
  
  
'''Q: How will graphics IP in GPL drivers be handled?'''
 
  
'''A:''' The BSPs supplied in the open source project will generally be focused on open source code.
+
==== What are the criteria for baseline metadata? ====
  
 +
The project has selected several major embedded architectures (32- and 64-bit x86, ARM, MIPS, and PowerPC) and footprint sizes (minimal, sato, lsb). Metadata has been created that generates a working build for these architectures and footprints while providing up-to-date and modern versions of the various open source components. We also supply metadata for a number of other components ("world"), which can be pulled into a custom distribution.
  
  
'''Q: Where do BSPs come from?  Who creates them?  What if they need to include proprietary information?'''
 
  
'''A:''' A small set of example BSPs will be created and maintained for our supported architectures. Commercial Linux vendors, OSVs, silicon suppliers, and board vendors may supply their own BSPs. Proprietary information can be delivered in a BSP, and its distribution will be handled by the supplier.
+
==== What tool sets are included in the Yocto Project?  When will they be available? ====
  
 +
The development toolchain is based on GCC. However, if a project contributor wished to add metadata that uses another toolchain, the project would be happy to consider it.
  
  
'''Q: Are there tools that allow the removal of a package from the build?'''
 
  
'''A:''' Yes. The recipe for a given distribution can be modified to remove a package.  An end developer may remove a package from the specified path in the build process.  This allows for a completely customized Linux distribution.
+
==== What about graphics drivers? Will they be validated and integrated? ====
  
 +
Yes.
  
  
'''Q: How can one view the dependencies of packages and the resulting growth in code size as packages are added?'''
 
  
'''A:''' There are tools within Bitbake which allow this.
+
==== How will graphics IP in GPL drivers be handled? ====
  
“bitbake -g targetname” will create depends.dot and task-depends.dot files in the current directory. They show which packages and tasks depend on which other packages and tasks and are useful for debugging purposes. "bitbake -g -u depexp targetname" will show results in a more human-readable, GUI style. A simple mount of the resulting root image will show how much storage space is being used.
+
The Board Support Packages (BSPs) supplied in the open source project are generally focused on open source code.  
  
  
  
'''Q: What is the path for upgrading just drivers, or for upgrading drivers and related updates to the kernel?'''
+
==== Where do BSPs come from?  Who creates them?  What if they need to include proprietary information? ====
  
'''A:''' For a given 6-month release of the Yocto Project, the version of the kernel will be frozen 6 weeks before release.
+
A small set of example BSPs has been created and is maintained for our supported architectures. Commercial Linux vendors, OSVs, silicon suppliers, and board vendors may supply their own BSPs. Proprietary information can be delivered in a BSP, and its distribution is handled by the supplier.
  
  
  
'''Q: How often is the kernel updated?  How will we know what version of the kernel will be used in any particular Yocto Project release?'''
+
==== Are there tools that allow the removal of a package from the build? ====
  
'''A:''' Given the release cycle for the kernel, every 6-month release of the Yocto Project will usually have a new kernel. Specific announcements will be made on the Yocto Project mailing list and blogs.
+
Yes. The recipe for a given distribution can be modified to remove a package.  An end developer may add or remove packages from the specified path in the build process.  This allows for a completely customized Linux distribution.
  
  
  
'''Q: Is the kernel included in the Yocto Project?'''
+
==== How can one view the dependencies of packages and the resulting growth in code size as packages are added? ====
  
'''A:''' Metadata referring to a particular kernel version is provided in Yocto Project releases.  Of course, patches to the kernel (as with any of the source code in the project) can be applied by the developer. The Yocto Project’s kernel patching system is based on "git" and looks for patches in a git branch.
+
There are tools within BitBake that enable this level of examination.
  
 +
“bitbake -g targetname” creates depends.dot and task-depends.dot files in the current directory. These files show which packages and tasks depend on which other packages and tasks and are useful for debugging purposes.
  
 +
"bitbake -g -u depexp targetname" shows results in a more human-readable, GUI style. A simple mount of the resulting root image will show how much storage space is being used.
  
'''Q: What are some possible debugging targets?'''
+
In addition, the Hob is a new graphical user interface for BitBake that makes these tools much easier to use.
  
'''A:''' QEMU is the target for emulation. Several actual hardware targets will also be supported, as well as software emulators for various hardware models as provided by silicon vendors.
 
  
  
+
==== What is the path for upgrading just drivers, or for upgrading drivers and related updates to the kernel? ====
'''Q: What is the overall support plan for the Yocto Project?'''
+
  
'''A:''' Security patches and critical bug fixes will be supplied one release back. No tool chain or kernel changes will be allowed for these updatesSupport for longer periods of time can be supplied by commercial OSVs.
+
For a given 6-month release of the Yocto Project, the version of the kernel is frozen 6 weeks before release.   
  
  
  
'''Q: What is meant by automated test capability?'''
+
==== How often is the kernel updated? How will we know what version of the kernel is used in any particular Yocto Project release? ====
  
'''A:''' The Yocto Project will include a standard framework for testing on target devices. This will allow many existing tests to be reused across projects, reducing rework.
+
Given the release cycle for the kernel, every 6-month release of the Yocto Project usually has a new kernel. Specific announcements are made on the Yocto Project mailing list and blogs. In addition, the release notes for any release contains specific information about which kernel is included with that release.
  
  
  
'''Q: If a customer wants a commercial distribution of the Yocto Project, are there potential candidates for productization and commercial distribution?'''
+
==== Is the kernel included in the Yocto Project? ====
  
'''A:''' Yes, the Yocto Project is currently in discussion with several commercial OSVs.
+
Metadata referring to a particular kernel version is provided in Yocto Project releases.  Of course, patches to the kernel (as with any of the source code in the project) can be applied by the developer. The Yocto Project’s kernel patching system is based on "git" and looks for patches in a Git branch.
  
  
  
'''Q: For which software development boards will Yocto Project v0.9 be validated?'''
+
==== What are some possible debugging targets? ====
  
'''A:''' ARM Beagleboard, Intel Atom Black Sand, PowerPC - fsl-mpc8315e-rdb, and MIPS - Ubiquity Networks Router Station Pro
+
QEMU is the target for emulation. Several actual hardware targets are also supported, as well as software emulators for various hardware models as provided by silicon vendors.
  
  
  
'''Q: Is user interface development possible with the Yocto Project?'''
+
==== What is meant by automated test capability? ====
  
'''A:''' User Interface development is supported with the Yocto Project. The distribution resulting from a Yocto Project build is just like any other Linux distribution. Developers may build graphical interfaces using frameworks like QT, Clutter, or GTK+, all of which are included.
+
The Yocto Project includes a standard framework for testing on target devices. This allows many existing tests to be reused across projects, reducing rework.
  
  
  
'''Q: Will the Yocto Project be a project or a product? How much customer effort is required to productize the Yocto Project?'''
+
==== If a customer wants a commercial distribution of the Yocto Project, are there potential candidates for productization and commercial distribution? ====
  
'''A:''' The Yocto Project is an open source project with support provided by the open source community. Products can be created by OSVs who use the Yocto Project as their upstream or by customers who create their own “roll your own” Linux products from the Yocto Project.
+
Yes, all major commercial OSVs currently participate in the Yocto Project.
  
  
  
'''Q: Who may I contact for further questions regarding the Yocto Project?'''
+
==== For which software development boards is the Yocto Project validated? ====
  
'''A:''' For any additional questions, please contact Jennifer Cloer of the Linux Foundation at jennifer@linuxfoundation.org.
+
Version 1.1 was validated against:
 +
* ARM Beagleboard C4 and xM
 +
* Several Intel Atom SoCs
 +
* PowerPC - fsl-mpc8315e-rdb
 +
* MIPS - Ubiquity Networks Router Station Pro
 +
 
 +
 
 +
 
 +
==== Is user interface development possible with the Yocto Project? ====
 +
 
 +
User Interface development is supported with the Yocto Project. The distribution resulting from a Yocto Project build is just like any other Linux distribution. Developers may build graphical interfaces using frameworks such as Qt, Clutter, or GTK+, all of which are included.
 +
 
 +
 
 +
 
 +
==== Is the Yocto Project a project or a product? How much customer effort is required to productize the Yocto Project? ====
 +
 
 +
The Yocto Project is an open source project with support provided by the open source community. Products can be created by OSVs who use the Yocto Project as their upstream or by customers who create their own “roll your own” Linux products from the Yocto Project.
 +
 
 +
==== What are the Yocto ADT and Yocto SDK and how do they relate? ====
 +
 
 +
The Yocto Project provides support for target-device software developers. The SDK (software developement kit) can be created using ''bitbake <image> -c populate_sdk'', which builds the cross-toolchain and produces an installer in the build/tmp/deploy/sdk directory. This installer contains the image's rootfs and environment setup scripts that are needed for cross-developement. The ADT (application developper tools) are based on the SDK (i.e. architecture-specific cross-toolchain and matching sysroot), but when talking about the ADT we also mean the Eclipse Yocto Plug-in, the Quick EMUlator (QEMU, which lets you simulate target hardware) and various user-space tools (e.g. for application profiling or latency measurements).
 +
 
 +
== Usage FAQs ==
 +
 
 +
==== How can I add a package to my project? ====
 +
 
 +
As with any complex system, the real answer is ''it depends'', but of course that is not very helpful. The simplest method for adding a single package to your build is to add a line like this to <code>conf/local.conf</code>:
 +
 
 +
IMAGE_INSTALL_append = " package"
 +
 
 +
Use your own package name in place of '''package'''. Note the leading space before the package name.  If you want to add multiple packages, you can
 +
use multiple lines like the above, or list all packages on a single line with:
 +
 
 +
IMAGE_INSTALL_append = " package1 package2 package3"
 +
 
 +
For more information, read [http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#usingpoky-extend-addpkg this chapter in the Yocto Project Development Manual].
 +
 
 +
==== How can I use my own kernel with my project? ====
 +
 
 +
If you just want to change the kernel configuration, you can follow [http://www.yoctoproject.org/docs/current/kernel-manual/kernel-manual.html#kernel-configuration these instructions] to edit the stock kernel's configuration using <code>make menuconfig</code>.
 +
 
 +
If you have a separate kernel you wish to use, the simplest method for adding a new kernel to your build is to create a recipe for it and then add a line like this to <code>conf/local.conf</code>:
 +
 +
PREFERRED_PROVIDER_virtual/kernel = "<i>your-recipe-for-kernel</i>"
  
 +
You can find several kernel examples in the Yocto Project file's meta/recipes-kernel/linux directory that you can use as references. [http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#platdev-newmachine-kernel Look here] for more information.
  
'''Q: version 1.0 will not build on my Ubuntu 11.04 system'''
+
==== Who may I contact for further questions regarding the Yocto Project? ====
  
'''A:''' you need to add two patches, one for perl and one for x11.
+
For any additional questions, please contact [mailto:jeffrey.osier-mixon@intel.com Jeff Osier-Mixon], the Yocto Project Community Manager.
the x11 patch is here:
+
http://git.yoctoproject.org/cgit/cgit.cgi/poky/patch/?id=9a453893ad99f35805ac5f37dd64b17c42ae90e2
+
the perl patch is here:
+
http://git.yoctoproject.org/cgit/cgit.cgi/poky/patch/?id=0af5e136678c4735c85f81538a11fb5e6c489b9d
+
download them and apply them to the poky-bernard-5.0 directory
+

Revision as of 04:14, 18 December 2013

Contents

Yocto Project Public Messages and FAQ

Last edited: 28 Sept, 2012

Note: technical FAQs are being added to the end of this document


What is the Yocto Project?

The Yocto Project provides open source, high-quality infrastructure and tools to help developers create their own custom Linux distributions for any hardware architecture and across multiple market segments. The Yocto Project is intended to provide a helpful starting point for developers. The Yocto Project hosts other projects as well, including the Poky build system, Autobuilder automated build and test system, and the Embedded GLIBC (EGLIBC)C library. The Linux Foundation welcomes the participation of embedded vendors, developers, and other open source projects.


What does the Linux Foundation hope to achieve with the Yocto Project?

This year’s annual survey of embedded developers conducted by Embedded Market Forecasters reported that the two primary factors contributing to embedded developers’ choice of Operating Systems (OS) in their designs are cost (44.6%) and the availability of source code (33.1%). These factors have contributed to the explosion of demand for Linux in embedded devices. Until now, embedded vendors and their partners relied on deep customization, requiring developers to wrestle with rapidly changing software and difficult build and maintenance cycles. The Linux Foundation recognized that an opportunity existed for a collaboratively developed, open source project that would build high-quality tools for the embedded Linux ecosystem.


How does the Yocto Project help Linux reach a wider embedded audience?

This set of collaboratively developed, open source development tools focused on the embedded segment speeds embedded vendors’ time to market by establishing a shared build infrastructure. This enables Linux across the widest possible spectrum of devices, projects, and platforms. The Yocto Project has a great start on the code required to solve these problems.


Isn’t the Yocto Project just yet another Linux distribution?

No. The Yocto Project is a set of tools and components, including a highly configurable build system, that enables developers to construct their own custom distributions, targeted for specific embedded devices. It is not, itself, a Linux distribution. Rather, it is capable of producing an image for a particular embedded device without dictating the composition of the Linux distribution actually built or the hardware architecture used.


What benefits does the Yocto Project provide embedded developers and how is the Yocto Project superior to existing, similar tools?

Unlike build systems based on shell scripts or makefiles, the Yocto Project automates how source is fetched from a variety of upstream sources or from local project repositories. Updating to a new version of a package is often as easy as renaming a recipe file. It has a powerful customization architecture that allows the choice of a wide variety of footprint sizes as well as control over the choice or absence of components such as graphics subsystems, visualization middleware, and services.


A complete set of Linux package versions is specified in the metadata for the project; these versions are known to work correctly together. A robust effort within the project is dedicated to keeping this selection of packages fresh and up-to-date. Unlike other systems, however, only a single version of each package is typically provided with the project at any given time. This ensures that the packages are known to work well together, while providing the freedom to replace them at any time as the needs of a given embedded project mature.


The Yocto Project is package-format agnostic - supporting both major Linux packaging systems (.rpm and .deb), as well as the embedded-friendly ipk format. The Yocto Project is also architecturally agnostic - supporting all major embedded architectures: ARM, 32- and 64-bit x86, PowerPC, and MIPS.


The Yocto Project shares the core build tool (BitBake) and metadata syntax with OpenEmbedded, particularly the core set of components known as openembedded-core. This commonality provides automatic familiarity for developers already using OpenEmbedded. However, the learning curve for getting started with the Yocto Project is less steep. It is easier for new users to create a working distribution with the Yocto Project, and more work is being done currently on this subject with the new Hob graphical user interface.


When a distribution is created with the Yocto Project, the build tool creates an application development SDK tailored to that distribution. This SDK can plug into the Eclipse IDE or it can be run as a command-line development system, complete with cross tools for the host and development tools for the device being developed.


How does the existing embedded workflow compare to the Yocto Project and where can embedded developers save time?

Existing embedded developers have many systems from which to choose. Once a system is chosen and a device's OS has been created, it can often be very difficult and time consuming to trim the distribution to an appropriate footprint size and assemble a working set of components. Then, for the developer’s next project, if updated components are needed, perhaps for bug fixes, security fixes, or new hardware support, the developer typically must start over, with little ability to re-use prior work on distributions. The Yocto Project solves these problems by providing a single focus for embedded development, requiring less time to get a working and up-to-date distribution together. In addition, if commercial support is desired, it is quite simple to transition to a supporting operating system vendor (OSV) who offers products and services compatible with the Yocto Project. All of the major embedded Linux OSVs are active members of the Yocto Project.


Does the Yocto Project have a special governance model, or is it managed as an open source project?

The Yocto Project is governed as an open source project working group under the auspices of the Linux Foundation. The Yocto Project Advisory Board consists of representatives from the major sponsoring organizations. This group advises the project on direction and provides resources, but all decisions are made by the project's Maintainers. In addition, there are Interest Groups who drive project feature requirements and provide direction on various aspects of project governance, including finances and infrastructure, and an Architect who coordinates the work of the Maintainers and sets project direction under the guidance of the Advisory Board and its subgroups.


Why not just call this project Poky? What has changed between Poky and the Yocto Project?

The Yocto Project is an umbrella project. Accordingly, it includes a number of projects and resources specifically intended for facilitating development with Linux on embedded devices, and it is an appropriate place for larger organizations to collaborate on the development of build infrastructure for embedded Linux. Poky is one of the the largest components of the Yocto Project, and Poky continues as an independent, open source project developing the build system used by the Yocto Project, as well as by other open source projects.

Poky is a reference system for the Yocto Project, showing how the tools work together. It includes BitBake, openembedded-core, and several other components that anyone can use to start developing with embedded Linux. Poky as a build system is tested by the Yocto Project teams before each release. When you download and use the Yocto Project build system, you are actually downloading Poky and using it to create a distribution that by default is also named Poky. (You can, of course, name your distribution anything you like.)


What is the difference between OpenEmbedded and the Yocto Project?

The Yocto Project and OpenEmbedded share a core collection of metadata called openembedded-core. However, the two organizations remain separate, each with its own focus. OpenEmbedded provides a comprehensive set of metadata for a wide variety of architectures, features, and applications. The Yocto Project focuses on providing powerful, easy-to-use, interoperable, well-tested tools, metadata, and board support packages (BSPs) for a core set of architectures and specific boards.


Release And Support

What is the release cycle of the Yocto Project?

Each release of the Yocto Project is subject to its own release schedule according to the community-maintained Project Planning Guide. It is generally expected that a new version of the Yocto Project will be released every six months.


What is the overall support plan for the Yocto Project?

Security patches and critical bug fixes are supplied one release back. No toolchain or kernel changes are allowed for these updates. Support for longer periods of time can be supplied by commercial OSVs.


Technical

Who defines the root filesystem and metadata?

Metadata represents the versions of the various components in a distribution, such as the particular versions of the Linux kernel or libraries. The project supplies an example set of metadata that can generate several example distributions. The actual metadata used for the construction of a custom distribution may be supplied by a commercial vendor or created by an embedded developer. The root filesystem is defined in the metadata for a given build of a distribution.


What are the criteria for baseline metadata?

The project has selected several major embedded architectures (32- and 64-bit x86, ARM, MIPS, and PowerPC) and footprint sizes (minimal, sato, lsb). Metadata has been created that generates a working build for these architectures and footprints while providing up-to-date and modern versions of the various open source components. We also supply metadata for a number of other components ("world"), which can be pulled into a custom distribution.


What tool sets are included in the Yocto Project? When will they be available?

The development toolchain is based on GCC. However, if a project contributor wished to add metadata that uses another toolchain, the project would be happy to consider it.


What about graphics drivers? Will they be validated and integrated?

Yes.


How will graphics IP in GPL drivers be handled?

The Board Support Packages (BSPs) supplied in the open source project are generally focused on open source code.


Where do BSPs come from? Who creates them? What if they need to include proprietary information?

A small set of example BSPs has been created and is maintained for our supported architectures. Commercial Linux vendors, OSVs, silicon suppliers, and board vendors may supply their own BSPs. Proprietary information can be delivered in a BSP, and its distribution is handled by the supplier.


Are there tools that allow the removal of a package from the build?

Yes. The recipe for a given distribution can be modified to remove a package. An end developer may add or remove packages from the specified path in the build process. This allows for a completely customized Linux distribution.


How can one view the dependencies of packages and the resulting growth in code size as packages are added?

There are tools within BitBake that enable this level of examination.

“bitbake -g targetname” creates depends.dot and task-depends.dot files in the current directory. These files show which packages and tasks depend on which other packages and tasks and are useful for debugging purposes.

"bitbake -g -u depexp targetname" shows results in a more human-readable, GUI style. A simple mount of the resulting root image will show how much storage space is being used.

In addition, the Hob is a new graphical user interface for BitBake that makes these tools much easier to use.


What is the path for upgrading just drivers, or for upgrading drivers and related updates to the kernel?

For a given 6-month release of the Yocto Project, the version of the kernel is frozen 6 weeks before release.


How often is the kernel updated? How will we know what version of the kernel is used in any particular Yocto Project release?

Given the release cycle for the kernel, every 6-month release of the Yocto Project usually has a new kernel. Specific announcements are made on the Yocto Project mailing list and blogs. In addition, the release notes for any release contains specific information about which kernel is included with that release.


Is the kernel included in the Yocto Project?

Metadata referring to a particular kernel version is provided in Yocto Project releases. Of course, patches to the kernel (as with any of the source code in the project) can be applied by the developer. The Yocto Project’s kernel patching system is based on "git" and looks for patches in a Git branch.


What are some possible debugging targets?

QEMU is the target for emulation. Several actual hardware targets are also supported, as well as software emulators for various hardware models as provided by silicon vendors.


What is meant by automated test capability?

The Yocto Project includes a standard framework for testing on target devices. This allows many existing tests to be reused across projects, reducing rework.


If a customer wants a commercial distribution of the Yocto Project, are there potential candidates for productization and commercial distribution?

Yes, all major commercial OSVs currently participate in the Yocto Project.


For which software development boards is the Yocto Project validated?

Version 1.1 was validated against:

  • ARM Beagleboard C4 and xM
  • Several Intel Atom SoCs
  • PowerPC - fsl-mpc8315e-rdb
  • MIPS - Ubiquity Networks Router Station Pro


Is user interface development possible with the Yocto Project?

User Interface development is supported with the Yocto Project. The distribution resulting from a Yocto Project build is just like any other Linux distribution. Developers may build graphical interfaces using frameworks such as Qt, Clutter, or GTK+, all of which are included.


Is the Yocto Project a project or a product? How much customer effort is required to productize the Yocto Project?

The Yocto Project is an open source project with support provided by the open source community. Products can be created by OSVs who use the Yocto Project as their upstream or by customers who create their own “roll your own” Linux products from the Yocto Project.

What are the Yocto ADT and Yocto SDK and how do they relate?

The Yocto Project provides support for target-device software developers. The SDK (software developement kit) can be created using bitbake <image> -c populate_sdk, which builds the cross-toolchain and produces an installer in the build/tmp/deploy/sdk directory. This installer contains the image's rootfs and environment setup scripts that are needed for cross-developement. The ADT (application developper tools) are based on the SDK (i.e. architecture-specific cross-toolchain and matching sysroot), but when talking about the ADT we also mean the Eclipse Yocto Plug-in, the Quick EMUlator (QEMU, which lets you simulate target hardware) and various user-space tools (e.g. for application profiling or latency measurements).

Usage FAQs

How can I add a package to my project?

As with any complex system, the real answer is it depends, but of course that is not very helpful. The simplest method for adding a single package to your build is to add a line like this to conf/local.conf:

IMAGE_INSTALL_append = " package"

Use your own package name in place of package. Note the leading space before the package name. If you want to add multiple packages, you can use multiple lines like the above, or list all packages on a single line with:

IMAGE_INSTALL_append = " package1 package2 package3"

For more information, read this chapter in the Yocto Project Development Manual.

How can I use my own kernel with my project?

If you just want to change the kernel configuration, you can follow these instructions to edit the stock kernel's configuration using make menuconfig.

If you have a separate kernel you wish to use, the simplest method for adding a new kernel to your build is to create a recipe for it and then add a line like this to conf/local.conf:

PREFERRED_PROVIDER_virtual/kernel = "your-recipe-for-kernel"

You can find several kernel examples in the Yocto Project file's meta/recipes-kernel/linux directory that you can use as references. Look here for more information.

Who may I contact for further questions regarding the Yocto Project?

For any additional questions, please contact Jeff Osier-Mixon, the Yocto Project Community Manager.

Personal tools