Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Yocto for Raspberry Pi

You're reading from  Yocto for Raspberry Pi

Product type Book
Published in Jun 2016
Publisher Packt
ISBN-13 9781785281952
Pages 214 pages
Edition 1st Edition
Languages
Concepts
Authors (2):
TEXIER Pierre-Jean TEXIER Pierre-Jean
Profile icon TEXIER Pierre-Jean
Petter Mabäcker Petter Mabäcker
Profile icon Petter Mabäcker
View More author details

Table of Contents (18) Chapters

Yocto for Raspberry Pi
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Meeting the Yocto Project Building our First Poky Image for the Raspberry Pi Mastering Baking with Hob and Toaster Understanding BitBake Creating, Developing, and Deploying on the Raspberry Pi Working with External Layers Deploying a Custom Layer on the Raspberry Pi Diving into the Raspberry Pi's Peripherals and Yocto Recipes Making a Media Hub on the Raspberry Pi Playing with an LCD Touchscreen and the Linux Kernel Contributing to the Raspberry Pi BSP Layer Home Automation Project - Booting a Custom Image

Chapter 3. Mastering Baking with Hob and Toaster

In this chapter, we will explore two powerful tools included in the Yocto Project. In the first part of the chapter, we will speak about Hob, which is a graphical interface for BitBake. In the second part, we will work with Toaster, a web interface that enables you to follow the advanced parts of the build with a simple browser (such as Firefox).

Hob


In order to explore Hob, we will, through this section, sweep through the different essential steps for its proper functioning.

Preparing the environment for Hob

As in Chapter 2 , Building our First Poky Image for the Raspberry Pi, the first step is to initialize the environment. Recall this command:

$ source oe-init-build-env rpi-build

Once the command is launched, the terminal will be redirected to the rpi-build directory.

Running Hob

Now that we have initialized all the variables required to build, we can start the Hob interface with this command:

$ hob

Once you run this command, Hob will try to parse the configuration files (local.conf and bblayers.conf) in order to find the metadata available to create the image. After this step, you will see the interface launch screen, as shown here:

Now, we can choose the desired machine from the list offered by Hob. Select the raspberrypi machine.

Note

The machine option you choose corresponds to the MACHINE variable in the local.conf file.

You will...

Exploring Toaster


Toaster is a web interface for BitBake. The Yocto Project website describes it as follows:

"Toaster is an Application Programming Interface (API) and web-based interface to the OpenEmbedded build system, which uses BitBake. Currently, Toaster collects and presents information about your builds, which you can navigate and query using a web browser"

Installing the required packages for the host system

In order to use Toaster correctly on your preferred Linux distribution, you need to install Django and South:

$ sudo pip install django==1.6
$ sudo pip install South==0.8.4

Note

The pip command makes it easy to install Python modules, in the same way you install packages in a Linux distribution.

Running Toaster

Now that our system is ready to use Toaster, we only have to run it using the following command in order to launch the service:

$ source toaster start

This will give you the following output:

The system will start. Syncing... Creating tables ... Installing custom SQL ......

Summary


In this chapter, we discovered how to use user-friendly interfaces such as Hob and Toaster. We learned the different capabilities of these tools (configuration and functionality). It is worth noting that these tools allow better flexibility for development teams.

In the next chapter, we will learn the main role played by BitBake within the Yocto Project. We will discover the different tasks that enable us to generate packages for our image.

lock icon The rest of the chapter is locked
You have been reading a chapter from
Yocto for Raspberry Pi
Published in: Jun 2016 Publisher: Packt ISBN-13: 9781785281952
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}