Build Poky with the Yocto Project for CI20

Revision as of 12:55, 6 December 2015 by Leon.anavi (talk | contribs) (Build)
Jump to: navigation, search

The following article will guide you how to build a bootable SD card with a minimal version of Poky, the references system of the Yocto Project, for CI20. It has been tested with release Fido of the Yocto Project on host with Ubuntu 15.10 and Ubuntu 14.04.

Get the source code

  • Please ensure that all required packages for cross-compiling Poky for mips are present on the host. For example, on Ubuntu you can installed them using the following command:
sudo apt-get install git gawk wget git-core diffstat unzip texinfo \
gcc-multilib g++-multilib build-essential chrpath libsdl1.2-dev xterm
  • Download Poky
git clone -b fido git://

  • Download meta-jz-mips
cd poky
git clone
  • Initialize build directory
source oe-init-build-env



Perform the following modifications of conf/local.conf:

  • Change machine type to creator-ci20:
MACHINE ??= "creator-ci20"


Perform the following modifications of conf/local.conf:

  • Add meta-jz-mips to BBLAYERS, for example, after the modification this part of the file should be something like:
  /media/storage/ci20/poky-jz/meta \
  /media/storage/ci20/poky-jz/meta-jz-mips \
  /media/storage/ci20/poky-jz/meta-yocto \
  /media/storage/ci20/poky-jz/meta-yocto-bsp \


  • Build core-image-minimal (or another image):
bitbake core-image-minimal
  • The build may take up to several hours depending on the technical specifications of the build system. Grab a cup of coffee and when the image is ready go to tmp/deploy/images/creator-ci20/. Replace X with the corresponding letter to a microSD card and copy the image to it using the following commands:
sudo umount /dev/sdX*
sudo dd if=tmp/deploy/images/creator-ci20/core-image-minimal-creation-ci20.sdcard of=/dev/sdX bs=4M conv=fsync