没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
19页
This document describes how to build an image for an i.MX Freescale board by using a Yocto Project build environment. It describes the Freescale release layer and Freescale-specific usage.
资源推荐
资源详情
资源评论
1 Overview
This document describes how to build an image for an i.MX
Freescale board by using a Yocto Project build environment. It
describes the Freescale release layer and Freescale-specific
usage.
The Yocto Project is an open-source collaboration focused on
embedded Linux
®
OS development. For more information
regarding Yocto Project, see the Yocto Project page:
www.yoctoproject.org/. There are several documents on the
Yocto Project home page that describe in detail how to use the
system. The basic Yocto Project, without the Freescale release
layer, can be used by following the instructions in the Yocto
Project Quick Start found at www.yoctoproject.org/docs/
current/yocto-project-qs/yocto-project-qs.html.
The FSL Yocto Project Community BSP (found at
freescale.github.io ) is a development community outside
Freescale providing support for i.MX boards in the Yocto
Project environment. Freescale i.MX joined the Yocto Project
community providing a release based on the Yocto Project
framework. Information specific to FSL community BSP use
can be found on the community web page. This document is
an extension of the community BSP documentation.
Files used to build an image are stored in layers. Layers
contain different types of customizations and come from
different sources. Some of the files in a layer are called
NXP Semiconductors
Document Number: IMXLXYOCTOUG
User's Guide
Rev. L4.1.15_2.1.0-ga, 05/2017
i.MX Yocto Project User's Guide
Contents
1 Overview................................. ................................. 1
2 Features.....................................................................3
3 Host Setup................................................................. 4
4 Yocto Project Setup....................... ...........................5
5 Image Build...............................................................6
6 Image Deployment..................................................12
7 Customization.........................................................12
A Frequently Asked Questions...................................14
B References...............................................................18
C Revision History..................................................... 18
recipes. Yocto Project recipes contain the mechanism to retrieve source code, build and package a component. The following
lists show the layers used in this release.
Freescale release layer
• meta-fsl-bsp-release
• meta-bsp - updates for meta-fsl-arm, poky, and meta-openembedded layers
• meta-sdk - updates for meta-fsl-demos and distros
Yocto Project community layers
• meta-fsl-arm: provides support for the base and for Freescale ARM
®
reference boards.
• meta-fsl-arm-extra: provides support for 3rd party and partner boards.
• meta-fsl-demos: additional items to aid in development and exercise board capabilities.
• meta-fsl-community-base: often renamed to base. Provides base configuration for FSL Community BSP.
• meta-openembedded: Collection of layers for the OE-core universe. See layers.openembedded.org/.
• poky: basic Yocto Project items in Poky. See the Poky README for details.
• meta-browser: provides several browsers.
• meta-qt5: provides Qt5.
References to community layers in this document are for all the layers in Yocto Project except meta-fsl-bsp-release. Freescale
i.MX boards are configured in the meta-fsl-bsp-release and meta-fsl-arm layers. This includes U-Boot, the Linux kernel, and
reference board-specific details.
Freescale provides an additional layer called the Freescale BSP Release, named meta-fsl-bsp-release, to integrate a new
Freescale release with the FSL Yocto Project Community BSP. The meta-fsl-bsp-release layer aims to release the updated
and new Yocto Project recipes and machine configurations for new releases that are not yet available on the existing meta-
fsl-arm and meta-fsl-demos layers in the Yocto Project. The contents of the Freescale BSP Release layer are recipes and
machine configurations. In many test cases, other layers implement recipes or include files and the Freescale release layer
provides updates to the recipes by either appending to a current recipe, or including a component and updating with patches
or source locations. Most Freescale release layer recipes are very small because they use what the community has provided
and update what is needed for each new package version that is unavailable in the other layers.
The Freescale BSP Release layer also provides image recipes that include all the components needed for a system image to
boot, making it easier for the user. Components can be built individually or through an image recipe, which pulls in all the
components required in an image into one build process.
Freescale kernel and U-Boot releases are accessed through Freescale public git servers. However, several components are
released as packages on the Freescale mirror. The package-based recipes pull files from the Freescale mirror instead of a git
location and generate the package needed.
All packages which are released as binary are built with hardware floating point enabled as specified by the
DEFAULTTUNE defined in each machine configuration file. Software floating point packages are not provided starting with
the jethro releases.
Release L4.1.15_2.1.0_ga is released for Yocto Project 2.1 (Krogoth). The same recipes for Yocto Project 2.1 are going to be
upstreamed and made available on the next release of the Yocto Project release. The Yocto Project release cycle lasts roughly
six months.
The recipes and patches in meta-fsl-bsp-release are upstreamed to the community layers. Once that is done for a particular
component, the files in meta-fsl-bsp-release are no longer needed and the FSL Yocto Project Community BSP will provide
support. The community supports Freescale reference boards, community boards, and third-party boards. A complete list can
be found at freescale.github.io/doc/release-notes/2.1/index.html#document-bsp-scope. All board references in this document
are related to the Freescale machine configuration files only.
Overview
i.MX Yocto Project User's Guide, Rev. L4.1.15_2.1.0-ga, 05/2017
2 NXP Semiconductors
1.1 End user license agreement
During the setup environment process of Freescale Yocto Project Community BSP, the Freescale i.MX End User License
Agreement (EULA) is displayed. To continue to use the Freescale Proprietary software, users must agree to the conditions of
this license. The agreement to the terms allows the Yocto Project build to untar packages from the Freescale mirror.
NOTE
Read this license agreement carefully during the setup process, because once accepted, all
further work in the Freescale Yocto Project environment is tied to this accepted
agreement.
1.2 References
This release includes the following references and additional information.
•
i.MX Linux
®
Release Notes (IMXLXRN) - Provides the release information.
•
i.MX Linux
®
User's Guide (IMXLUG) - Contains the information on installing U-Boot and Linux OS and using i.MX-
specific features.
•
i.MX Yocto Project User's Guide (IMXLXYOCTOUG) - Contains the instructions for setting up and building Linux
OS in the Yocto Project.
•
i.MX Linux
®
Reference Manual (IMXLXRM) - Contains the information on Linux drivers for i.MX.
•
i.MX 6 Graphics User's Guide (IMX6GRAPHICUG) - Describes the graphics used.
•
i.MX BSP Porting Guide (IMXXBSPPG) - Contains the instructions on porting the BSP to a new board.
•
i.MX VPU Application Programming Interface Linux
®
Reference Manual (IMXVPUAPI) - Provides the reference
information on the VPU API.
The quick start guides contain basic information on the board and setting it up. They are on the NXP website.
• SABRE Platform Quick Start Guide (IMX6QSDPQSG)
• SABRE Board Quick Start Guide (IMX6QSDBQSG)
• i.MX 6UltraLite EVK Quick Start Guide (IMX6ULTRALITEQSG)
• i.MX 6ULL EVK Quick Start Guide (IMX6ULLQSG)
• SABRE Automotive Infotainment Quick Start Guide (IMX6SABREINFOQSG)
• i.MX 6SoloLite Evaluation Kit Quick Start Guide (IMX6SLEVKQSG)
Documentation is available online at nxp.com.
• i.MX 6 information is at nxp.com/iMX6series
• i.MX SABRE information is at nxp.com/imxSABRE
• i.MX 6SoloLite EVK information is at nxp.com/6SLEVK
• i.MX 6SLL EVK information is at nxp.com/6SLLEVK
• i.MX 6UltraLite information is at nxp.com/iMX6UL
• i.MX 6ULL information is at nxp.com/iMX6ULL
• i.MX 7Dual information is at nxp.com/iMX7D
2
Features
Freescale Yocto Project Release layers have the following features:
• Linux kernel recipe
• The kernel recipe resides in the recipes-kernel folder and integrates a Freescale kernel from the source
downloaded from the Freescale git server. This is done automatically by the recipes in the project.
Features
i.MX Yocto Project User's Guide, Rev. L4.1.15_2.1.0-ga, 05/2017
NXP Semiconductors 3
• L4.1.15_2.1.0_ga is a Linux kernel that Freescale has released only for the Yocto Project.
• Freescale L4.1.15_2.1.0_ga uses device trees. Device tree settings are found in the i.MX machine configuration
files.
• U-Boot recipe
• The U-Boot recipe resides in the recipes-bsp folder and integrates a Freescale uboot-imx.git from the source
downloaded from the Freescale git server.
• Certain i.MX boards use different U-Boot versions.
• Freescale release L4.1.15_2.1.0_ga for the i.MX 6 and i.MX 7 devices uses an updated v2016.07 Freescale U-
Boot version. This version has not been updated for other i.MX Freescale hardware.
• The Freescale Yocto Project Community BSP uses u-boot-fslc from the mainline, but this is only supported by
the U-Boot community and is not supported with the L4.1.15 kernel.
• The Freescale Yocto Project Community BSP updates U-Boot versions frequently, so the information above
might change as new U-Boot versions are integrated to meta-fsl-arm layers and updates from Freescale u-boot-
imx releases are integrated into the mainline.
• Graphics recipes
• Graphics recipes reside in recipes-graphics folder.
• Graphics recipes integrate the Freescale graphics package release. For the i.MX boards that have a GPU, the imx-
gpu-viv recipes package the graphic components for each DISTRO – X11, frame buffer (FB), Xwayland,
Wayland backend, and Weston compositor (Weston).
• Xorg-driver integrates the xserver-xorg.
• i.MX package recipes
imx-lib, imx-test, and firmware-imx reside in recipes-bsp and pull from the Freescale mirror to build and package into
image recipes.
• Multimedia recipes
• Multimedia recipes reside in recipes-multimedia.
• Recipes include imx-codec, imx-parser, libvpuwrap, and gstreamer that pull from the Freescale mirror to build
and package into image recipes.
• Some recipes are provided for codecs that are restricted. Packages for these are not on the Freescale mirror. These
packages are available separately. Contact your Freescale Marketing representative to acquire these.
• Core recipes
Some recipes for rules, such as udev, provide updated i.MX rules to be deployed in the system. These recipes are
usually updates of policy and are used for customization only. Releases only provide updates if needed.
• Demo recipes
Demonstration recipes reside in the meta-sdk directory. This layer contains image recipes and recipes for
customization, such as touch calibration, or recipes for demonstration applications.
3
Host Setup
To get the Yocto Project expected behavior in a Linux Host Machine, the packages and utilities described below must be
installed. An important consideration is the hard disk space required in the host machine. For example, when building on a
machine running Ubuntu, the minimum hard disk space required is about 50 GB for the X11 backend. It is recommended that
at least 120 GB is provided, which is enough to compile all backends together.
The recommended minimum Ubuntu version is 14.04 but builds for Jethro works on 12.04 or later. Earlier versions may
cause the Yocto Project build setup to fail, because it requires python versions only available starting wtih Ubuntu 12.04. See
The Yocto Project reference manual for more information.
Ubuntu 16.04 users have commented on errors during build for sdl. To fix this comment out in local.conf the following lines
as such adding # character
Host Setup
i.MX Yocto Project User's Guide, Rev. L4.1.15_2.1.0-ga, 05/2017
4 NXP Semiconductors
剩余18页未读,继续阅读
资源评论
Alvin2234
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功