Building I-MX6 with Yocto Project

The folowing steps becomes from NXP document and can be found also on the Comunity site of NXP. Here

All the steps were be done on Xubuntu 16.04 Ubuntu Debian.

Configuring Machine to use Yocto Project

Yocto Project 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 found at Yocto Project and check for the packages that must be installed for your build machine. Essential Yocto Project host packages are:


$: sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential</br>
  chrpath socat libsdl1.2-dev
$: sudo apt-get install libsdl1.2-dev xterm sed cvs subversion coreutils texi2html docbookutils</br>
  python-pysqlite2 help2man make gcc g++ desktop-file-utils libgl1-mesa-dev libglu1-mesadev</br>
  mercurial autoconf automake groff curl lzop asciidoc 
$: sudo apt-get install uboot-mkimage
$: sudo apt-get install u-boot-tools

The configuration tool uses the default version of grep that is on your build machine. If there is a different version of grep in your path, it may cause builds to fail. One workaround is to rename the special version to something not containing “grep”.

Setting up REPO utility

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 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:

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