系统:ubuntu-14.04.2

1、建立主机需要的包:

A Freescale Yocto Project Community BSP build requires that some packages be installed for the build that are documented
under the Yocto Project.
You can go to Yocto Project Quick Start and check for the packages that must be installed for your build machine.
Essential Yocto Project host packages:
$ sudo apt-get install wget git-core unzip texinfo libsdl1.2-dev \
gawk diffstat build-essential chrpath
i.MX layers host packages for a Ubuntu 12.04 host setup:
$ sudo apt-get install sed cvs subversion coreutils texi2htmldocbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utilslibgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc xterm

2、建立repo环境:

Repo is a tool built on top of Git that makes it easier to manage projects that contain multiple repositories, which do not need
to be on the same server. Repo complements very well the layered nature of the Yocto Project, making it easier for customers
to add their own layers to the BSP.
To install the “repo” utility, perform these steps:
2.1. Create a bin folder in the home directory.
$ mkdir ~/bin (this step may not be needed if the bin folder already exists)

$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
官网给出的地址需要翻墙才能下载,所以换个地址:

curl http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo > ~/bin/repo

$ chmod a+x ~/bin/repo
2.2. Add the following line to the.bashrcfile to ensure that the~/binfolder is in your PATH variable.
export PATH=~/bin:$PATH

3、建立Yocto工程环境:
A Yocto Project directory contains a "sources" directory, which contains the recipes used to build, one or more build
directories, and a set of scripts used to set up the environment.
The recipes used to build the project come from both the community and Freescale. The following commands are used to
download the Freescale Yocto Project Community BSP recipe layers. The Yocto Project layers are downloaded and placed in
the "sources" directory. This sets up the recipes that are used to build the project.
For this example, a directory called "fsl-release-bsp" is created for the project.
$ mkdir fsl-release-bsp
$ cd fsl-release-bsp
$ git config --global user.name "Your Name"
$ git config --global user.email "Your Email"
$ repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.10.17-1.0.0_ga
$ repo sync
同步Yocto文件:此步奏过后需要等一段时间,多长时间由网上决定
3.1 使用root用户创建编译路径,执行fsl-setup-release.sh的时候需要在指定文件创建文件,但非root用户没有权限,所以在root用户模式中修改Yocto整个目录权限:chmod 777 ../fsl-release-bsp -R(递归)
3.2 切换用户到非root用户,su ***
3.3 搭建Yocto环境:
$ MACHINE=< machine name> source fsl-setup-release.sh -b <build directory> -e <backend fb,dfb, wayland, x11>
需要在fsl-setup-release.sh文件所在目录执行以上语句
MACHINE--指定板子型号:
• imx6qsabresd
• imx6qsabreauto
• imx6dlsabresd
• imx6dlsabreauto
• imx6solosabresd
• imx6solosabreauto
• imx6slevk
• imx6sxsabresd
• imx6sxsabreauto

-b指定编译路径

-e指定编译参数

When this process is completed, the source code is checked out atfsl-release-bsp/sources.
You can perform repo synchronization, with the commandrepo sync, periodically to update to the latest codes.

4、编译目标文件:

bitbake <image>

Examples:
• For building a non Qt 5 image:
bitbake fsl-image-gui
• For building a Qt 5 image for X11, Frame Buffer, and Wayland graphical backends:
bitbake fsl-image-qt5

To initialize the build environment when the session exits, run the following command in the directory above the build directory:
setup-environment <build directory>

Freescale Yocto Project搭建相关推荐

  1. [ 物联网篇 ] 02 - Yocto Project (YP)快速入门

    NXP i.MX 8M Mini 的源码构建系统使用的是Yocto,如果不熟悉Yocto,完全看不懂 i.MX 8M Mini 的相关代码. 废话不多说,直接到Yocto 官网看文档,写Demo.参考 ...

  2. 【i.MX8 Linux】构建 i.MX8 Yocto Project 映像

    本文所使用的构建主机是 i5 四核 8GB 内存的 Ubuntu 20.04,构建目标系统为 Linux 5.4 版本(Yocto 3.0 Zeus).官方建议在 Ubuntu 18.04 上操作,不 ...

  3. Yocto Project - basic - 01 - Quick Start

    Yocto 是一个被广泛使用的操作系统,本节开始介绍: 文章的内容来自于Yocto的官方介绍文档. 1 简介 The Yocto Project is an open-source collabora ...

  4. 《嵌入式Linux系统开发:基于 Yocto Project》笔记

    写在前面 这本书的"译者序"里面有这么一句话: 市面上不缺乏适用于各种开发语言的开发.编译和打包工具,但在Yocto项目出现前,这些零散的工作需要嵌入式开发者自己串起来以交付最终的 ...

  5. yocto project

    学习yocto project 最好的文档,yocto project 官网上的Guide 文档: https://www.yoctoproject.org/documentation/archive ...

  6. YOCTO PROJECT安装

    1.按i.MX Yocto Project User's Guide.pdf里的第节开始,按文档一步步操作,UBNTU版本14.04.6 LTS(ubuntu-14.04.6-desktop-i386 ...

  7. 使用 Yocto Project 构建自定义嵌入式 Linux 发行版

    使用 Yocto Project 构建自定义嵌入式 Linux 发行版 转自: http://zzjlzx.blog.chinaunix.net/uid-9688646-id-5175371.html ...

  8. Yocto Project 快速入门指南

    原文:http://www.yoctoproject.org/docs/current/yocto-project-qs/yocto-project-qs.html Yocto Project 快速入 ...

  9. NXP freescale 开发环境搭建

    目录 NXP和freescale简介 本文使用的芯片 术语介绍 开发环境选择 MCUXpresso IDE环境搭建 ①下载安装 ②安装SDK 并 新建项目 MDK Keil + MCUXpresso ...

最新文章

  1. enote笔记语言(2)(ver0.3)
  2. ntohs的一个简单实现(将网络流中用两个字节16进制表示的资源数(如DNS)和长度转换为整形)...
  3. js 抛出异常 throw
  4. 钉钉大数据:贵州政府效率意识全国领先
  5. 区块链论文:OmniLedger,一种区块链分片技术
  6. 微软肿么了?版本更新大提速。Visual Studio 2012再次更新
  7. uniapp定义全局变量方法
  8. hdu 1757 矩阵连乘
  9. 数字化转型方法论_50+企业数字化转型、管理的方法论,这本书到底有什么干货?...
  10. 互联网金融数据分析-笔记
  11. rsync工具介绍,rsync常用选项,rsync通过ssh同步
  12. Java I/O(输入输出流)
  13. Linux自学之旅-安装篇(磁盘分区)
  14. Html+Css 3D旋转立方体
  15. wsl 设置阿里云源
  16. rescale matlab,frft_matlab integrated algorithm about Frft, matla - CodeBus
  17. 分治算法--L型骨牌棋盘覆盖
  18. Win系统 - 从USB3.0端口启动安装Windows系统,提示缺少驱动器设备驱动程序的解决办法
  19. 下载 github上面脚本_带大家一起来白嫖一波Github的免费计算资源呀~
  20. Matter Over Wifi 例程体验(CHIP Over Wifi)

热门文章

  1. SAP物料移动科目确认由浅入深无敌大解析
  2. 信息学奥赛一本通高手训练1679:子集
  3. 【网络科学0】新的开始
  4. 混合型数据的邻域条件互信息熵属性约简算法
  5. 安装lamp服务器系统,LAMP安装环境搭建详解
  6. linux中comm命令用法
  7. 人类历史上第一个推荐系统
  8. 书法字帖 PDF转化为可打印PDF
  9. 字符串匹配算法题:病毒感染监测
  10. webStrom 和 eclipse项目已经重启报端口冲突解决