How To: Setup Build Yocto Environment

From Estone Technology Wiki
Jump to: navigation, search

All the following steps are tested on Ubuntu. An Internet connection is required to finish this tutorial.

  • Check and install update for Ubuntu by Input the following commands to shell.
$ sudo apt-get update

Setting up the Ubuntu development host

Open a terminal on Ubuntu. Input the following commands to install the prerequired tools:

$ sudo apt-get install gawk wget git-core diffstat unzip texinfo build-essential chrpath
$ sudo apt-get install libsdl1.2-dev xterm 
$ sudo apt-get install curl nano gcc-multilib gettext git lzop bc automake

Installing the HIO Yocto meta layers

Input the following commands to synchronize our source code repository located on HIO Project GitHub.

$ mkdir ~/bin
$ curl > ~/bin/repo
$ chmod a+x ~/bin/repo
$ PATH=${PATH}:~/bin
$ mkdir hio-yocto-bsp
$ cd hio-yocto-bsp
$ repo init -u -b daisy
$ repo sync

Next Step: Build a HIO Image

  • hio-image-minimal
    • This is a small image that can only capable of allowing the system to boot with SSH and USB WiFi module driver support.
  • hio-image-fb
    • This image is based on hio-image-mimimal and added QT 5.2.1 frame buffer framework.
  • hio-image-x11
    • A full image that is based on Yocto Project's core image-sato with X11 Window System, SSH, USB Wifi module driver and Qt 5.2.1 framework]
  • hio-image-xfce
    • A full image with Xfce Desktop Environment, SSH, USB WiFi module driver and Qt 5.2.1 framework