Build Poky with the Yocto Project for CI20

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

git clone -b fido git://git.yoctoproject.org/poky.git
 * Download Poky


 * Download meta-jz-mips

cd poky git clone https://github.com/leon-anavi/meta-jz-mips.git


 * Initialize build directory

source oe-init-build-env

local.conf
Perform the following modifications of conf/local.conf:


 * Change machine type to creator-ci20:

MACHINE ??= "creator-ci20"

bblayers.conf
Perform the following modifications of conf/bblayers.conf:


 * Add meta-jz-mips to BBLAYERS, for example, after the modification this part of the file should be something like:

BBLAYERS ?= " \ /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

 * Build core-image-minimal (or another image):

bitbake core-image-minimal

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