NXP

imx6ul yocto project image build

2019-07-12 12:30发布

1.系统环境 系统推荐:Ubuntu 14.04  ,2G RAM,Dual cores 硬盘空间:至少50G,多多益善
2.工具安装 $ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev
$ 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
$ sudo apt-get install u-boot-tools

3.setup repo 官方文档给出的是google的源,翻墙可以下载成功。如果不翻墙,可以使用国内的源。 $ 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

export PATH=~/bin:$PATH 
国内源: curl "http://PHP.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ~/bin/repo

4.setup git and repo init $ git config --global user.name "Your Name" $ git config --global user.email "Your Email"

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


sync完成后,大约占用320M左右。
5.build image $ DISTRO=fsl-imx-fb MACHINE=imx6ulevk source fsl-setup-release.sh -b ./build_core
$ bitbake core-image-minimal
这个过程时间较长,主要看网速。fetch过程比较占用时间。 这个过程是把编译环境搭建好,源码下载并编译。可以关注路径./build_core/tmp/work/下的变化。