您的位置:首页 > 运维架构 > Linux

IM6Q yocto开发平台搭建,学习FREESCALE官方手册笔记

2015-10-05 19:55 786 查看
本文文档是freescale手册fsl-yocto-3.14.28-1.0.0.tar.gz的学习笔记,资源以上传到csdn上了,免积分下载.

1.主机环境搭建,各种安装,

(1)安装主机环境,以下部分安装步骤直接摘抄官方<Freescale_Yocto_Project_User's_Guide.pdf>我试过,没有遇到问题,就是耗点时间

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 gawk wget git-core diffstat unzip texinfo gcc-multilib \

build-essential chrpath socat

i.MX layers host packages for a Ubuntu 12.04 or 14.04 host setup:

$ sudo apt-get install libsdl1.2-dev xterm sed cvs subversion coreutils texi2html \

docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils \

libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc

i.MX layers host packages for a Ubuntu 12.04 host setup only:

$ sudo apt-get install uboot-mkimage

i.MX layers host packages for a Ubuntu 14.04 host setup only:

$ sudo apt-get install u-boot-tools

(2)安装repo

官方步骤

To install the “repo” utility, perform these steps:

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

$ chmod a+x ~/bin/repo

2. Add the following line to the .bashrc file to ensure that the ~/bin folder is in your PATH variable.

export PATH=~/bin:$PATH

我在使用$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo 时,出现链接超时,因为google被和谐了,暂时没有翻墙,只能从其他地方找资源了,使用如下方式,即可,其他步骤不变

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

(3)Yocto工程安装,步骤直接超手册

Image Build

$mkdir fsl-release-bsp

$cd fsl-release-bsp

$git config --global user.name "Your Name"

$git config --global user.email "Your Email"

$git config --list

$repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.14.28-1.0.0_ga

$repo sync

以上步骤基本是,顺利安装,如果缺少什么直接按照提示进行apt-get install 就可以了,这一步会耗时比较长.

至此,镜像下载完毕,可以开始平台移植了.

(4)下载你想要的例程对应于文章的第五章 Image Build

根据自己的需要选择你需要的工程例程在5.1节介绍例程简介

我选择 X-11 image on i.MX 6Quad SABRE-SD例程,运行如下语句,即可安装例程,但是时间较长

$ MACHINE=imx6qsabresd source fsl-setup-release.sh -b build-x11 -e x11

$ bitbake fsl-image-gui

(5)资源目录

在 build-x11/tmp/work/imx6qsabresd-poky-linux-gnueabi 其中*代表你例程名称,我的例程按照(4)步就为build-x11

我的移植资源放到:im6q E9开发板移植下载
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux 嵌入式