1、硬件准备
首先需要准备一台性能较强的电脑,推荐i7,64bit,32G内存,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(也可编译其它镜像,详见附件)