Build Poky with the Yocto Project for CI20

From eLinux.org
Revision as of 12:13, 6 December 2015 by Leon.anavi (talk | contribs) (Created page with "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 w...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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://git.yoctoproject.org/poky.git


  • 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

Configure

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/local.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
  • 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:
umount /dev/sdX*
dd if=tmp/deploy/images/creator-ci20/core-image-minimal-creation-ci20.sdcard of=/dev/sdX bs=4M conv=fsync