Table of Contents

Lab 9: Yocto Project first steps

Implement a project from scratch

Open the Quick start guide to Yocto Project, located at: Quick start guide

Set up your Linux system with the right packages (instruction are provided for Ubuntu, Fedora, CentOS and openSUSE)

  1. Install prerequisites:
    sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
         build-essential chrpath socat libsdl1.2-dev xterm
  2. Download the latest stable release:
    $ git clone -b zeus git://git.yoctoproject.org/poky.git

    or

    $ wget downloads.yoctoproject.org/releases/yocto/yocto-3.0/poky-zeus-22.0.0.tar.bz2
  3. Source oe-init-build-env script, to create the build directory:
    $ source poky/oe-init-build-env my_dir
  4. Edit conf/local.conf and set MACHINE as qemux86 and any extra required variables.
  5. Build the OS image:
    $ bitbake core-image-minimal
  6. Boot the OS image of your choice:
    $ runqemu qemux86

    Where:

    MACHINE=qemux86

Exercises

  1. Finish a successful Yocto Project build.
  2. Find a poky version that contains Hob and configure a Hob image.
  3. Setup and start Toaster on port 8399.
  4. Get the standards SDK installer and build htop package for your OS.
  5. Create a htop recipe and build it for your OS.
  6. Create a custom layer which should contain the htop recipes and busybox bbappend.
  7. Add support for htop inside core-image-minimal image. The enhanced core-image-minimal should be available inside the newly created layer.