Yocto开发环境搭建

1、硬件准备

首先需要准备一台性能较强的电脑,推荐i764bit32G内存,200G硬盘。

注意:公司的网络进行代理上网,一般不太可以,本人在此情况下使用,一天未果出现N多的毛病;建议直通无阻,成功

2、软件准备

需要使用Ubuntu14.04版本。

先安装一些必要的工具:

$ sudo apt-get install gawk wget git-core diffstat unzip texinfogcc-multilib \
build-essential chrpath socat libsdl1.2-dev

$ sudo apt-get install libsdl1.2-dev xterm sed cvs subversioncoreutils texi2html \
docbook-utils python-pysqlite2 help2manmake gcc g++ desktop-file-utils \
libgl1-mesa-devlibglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc

$ sudo apt-get install u-boot-tools

3、安装repo

$ mkdir ~/bin (this step may not be needed if the bin folder alreadyexists)

$ curlhttp://commondatastorage.googleapis.com/git-repo-downloads/repo> ~/bin/repo(此需要翻墙,建议使用清华的)

$ chmod a+x ~/bin/repo

$ export PATH=~/bin:$PATH

4、设置git

$ git config --global user.name "YourName"
$ git config --global user.email "Your Email"
$git config --list

5、下载YoctoBPS

$ mkdir fsl-release-bsp
$ cd fsl-release-bsp
$ repo init -ugit://git.freescale.com/imx/fsl-arm-yocto-bsp.git-b imx-4.1-krogoth
$ repo sync

6、编译Yocto

$: DISTRO=fsl-imx-fb MACHINE=<machine name> sourcefsl-setup-release.sh -b build-fb

$ bitbake fsl-image-gui(也可编译其它镜像,详见附件)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值