FAQ: Difference between revisions

From Yocto Project
Jump to navigationJump to search
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''Yocto Project Public Messages and FAQ'''
=== Yocto Project Public Messages and FAQ ===


Last edited: 29 June, 2012
Last edited: 28 Sept, 2012


Note: technical FAQs are being added to the end of this document
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 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.
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 does the Yocto Project help Linux reach a wider embedded audience?'''
==== How does the Yocto Project help Linux reach a wider embedded audience? ====


'''A:''' 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.
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 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.
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 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.
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 43: Line 43:
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.
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.
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 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.
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: Does the Yocto Project have a special governance model, or is it 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 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.
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. 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.  
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.)
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.)
Line 68: Line 68:




'''Q: What is the difference between OpenEmbedded and the Yocto Project?'''
==== What is the difference between OpenEmbedded and the Yocto Project? ====
 
'''A:''' 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.  
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: Who defines the root filesystem and metadata?'''
==== What is the release cycle of the Yocto Project? ====


'''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.
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 are the criteria for baseline metadata?'''
==== What is the overall support plan for 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.
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 tool sets are included in the Yocto Project?  When will they be available?'''
=== Technical ===


'''A:''' 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.
==== 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: What about graphics drivers? Will they be validated and integrated?'''


'''A:''' Yes.
==== 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: How will graphics IP in GPL drivers be handled?'''


'''A:''' The Board Support Packages (BSPs) supplied in the open source project are generally focused on open source code.
==== 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: Where do BSPs come from?  Who creates them?  What if they need to include proprietary information?'''


'''A:''' 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.
==== What about graphics drivers? Will they be validated and integrated? ====


Yes.




'''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 add or remove packages from the specified path in the build process.  This allows for a completely customized Linux distribution.
==== 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.




'''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 that enable this level of examination.
==== 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 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.  
Line 128: Line 143:




'''Q: What is the path for upgrading just drivers, or for upgrading drivers and related updates to the kernel?'''
==== What is the path for upgrading just drivers, or for upgrading drivers and related updates to the kernel? ====
 
'''A:''' For a given 6-month release of the Yocto Project, the version of the kernel is frozen 6 weeks before release. 
 
 


'''Q: How often is the kernel updated?  How will we know what version of the kernel is used in any particular Yocto Project release?'''
For a given 6-month release of the Yocto Project, the version of the kernel is frozen 6 weeks before release


'''A:''' 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.




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


'''Q: Is the kernel included in the Yocto Project?'''
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.


'''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.




==== Is the kernel included in the Yocto Project? ====


'''Q: What are some possible debugging targets?'''
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.


'''A:''' 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 are some possible debugging targets? ====
'''Q: What is the overall support plan for the Yocto Project?'''


'''A:''' 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.
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: What is meant by automated test capability?'''
==== What is meant by automated test capability? ====


'''A:''' The Yocto Project includes a standard framework for testing on target devices. This allows many existing tests to be reused across projects, reducing rework.
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: If a customer wants a commercial distribution of the Yocto Project, are there potential candidates for productization and commercial distribution?'''
==== If a customer wants a commercial distribution of the Yocto Project, are there potential candidates for productization and commercial distribution? ====


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






'''Q: For which software development boards is the Yocto Project validated?'''
==== For which software development boards is the Yocto Project validated? ====


'''A:''' Version 1.1 was validated against:
Version 1.1 was validated against:
* ARM Beagleboard C4 and xM
* ARM Beagleboard C4 and xM
* Several Intel Atom SoCs
* Several Intel Atom SoCs
Line 180: Line 189:




'''Q: Is user interface development possible with the Yocto Project?'''
==== 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.
 


'''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 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.


'''Q: Is the Yocto Project a project or a product? How much customer effort is required to productize the Yocto Project?'''
==== What are the Yocto ADT and Yocto SDK and how do they relate? ====


'''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.
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 ==
== Usage FAQs ==


'''Q: How can I add a package to my project?'''
==== How can I add a package to my project? ====


'''A:''' 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>:
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"
  IMAGE_INSTALL_append = " package"
Line 203: Line 216:
  IMAGE_INSTALL_append = " package1 package2 package3"
  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].
For more information, read [http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#usingpoky-extend-customimage-localconf this chapter in the Yocto Project Development Manual].


'''Q: How can I use my own kernel with my project?'''
==== How can I use my own kernel with my project? ====


'''A:''' 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 just want to change the kernel configuration, you can follow [http://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html 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>:
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>"
  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.
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: Who may I contact for further questions regarding the Yocto Project?'''
==== Who may I contact for further questions regarding the Yocto Project? ====


'''A:''' For any additional questions, please contact [mailto:jeffrey.osier-mixon@intel.com Jeff Osier-Mixon], the Yocto Project Community Manager.
For any additional questions, please contact [mailto:jeffrey.osier-mixon@intel.com Jeff Osier-Mixon], the Yocto Project Community Manager.

Latest revision as of 17:18, 4 May 2015

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.