Yocto for Raspberry Pi

Create unique and amazing projects by using the powerful combination of Yocto and Raspberry Pi

Yocto for Raspberry Pi

Pierre-Jean Texier, Petter Mabäcker

2 customer reviews
Create unique and amazing projects by using the powerful combination of Yocto and Raspberry Pi
Mapt Subscription
FREE
$29.99/m after trial
eBook
$19.60
RRP $27.99
Print + eBook
$34.99
RRP $34.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$19.60
$34.99
$29.99p/m after trial
RRP $27.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781785281952
Paperback214 pages

Book Description

The Yocto Project is a Linux Foundation workgroup, which produces tools (SDK) and processes (configuration, compilation, installation) that will enable the creation of Linux distributions for embedded software, independent of the architecture of embedded software (Raspberry Pi, i.MX6, and so on). It is a powerful build system that allows you to master your personal or professional development.

This book presents you with the configuration of the Yocto Framework for the Raspberry Pi, allowing you to create amazing and innovative projects using the Yocto/OpenEmbedded eco-system. It starts with the basic introduction of Yocto's build system, and takes you through the setup and deployment steps for Yocto. It then helps you to develop an understanding of Bitbake (the task scheduler), and learn how to create a basic recipe through a GPIO application example. You can then explore the different types of Yocto recipe elements (LICENSE, FILES, SRC_URI, and so on). Next, you will learn how to customize existing recipes in Yocto/OE layers and add layers to your custom environment (qt5 for example).

Table of Contents

Chapter 1: Meeting the Yocto Project
The Yocto Project
The core components
Yocto Project - workflow
Summary
Chapter 2: Building our First Poky Image for the Raspberry Pi
Installing the required packages for the host system
Building the Poky image
Booting the image on the Raspberry Pi
Summary
Chapter 3: Mastering Baking with Hob and Toaster
Hob
Exploring Toaster
Summary
Chapter 4: Understanding BitBake
BitBake
Metadata
Parsing metadata
Preferences and providers
Dependencies
Fetching
Understanding BitBake's tasks
Summary
Chapter 5: Creating, Developing, and Deploying on the Raspberry Pi
Software development kits (SDKs)
Raspberry Pi and a package manager
IPK packages
Our application - an introduction
Our application - creating the recipe
Summary
Chapter 6: Working with External Layers
Introducing layers
The basic concepts of layers
Adding external layers to the Raspberry Pi
Summary
Chapter 7: Deploying a Custom Layer on the Raspberry Pi
Creating the meta-packt_rpi layer with the yocto-layer script
Adding gpio-packt to meta-packt_rpi
Patching gpio-packt
Creating the raspberry-packt-image.bb image
Deploying the raspberry-packt-image.bb image
Summary
Chapter 8: Diving into the Raspberry Pi's Peripherals and Yocto Recipes
The SPI bus
The i2c bus
The Wii Nunchuck
The Raspberry Pi connection
Summary
Chapter 9: Making a Media Hub on the Raspberry Pi
Project description – CPU temperature monitoring
Creating the main application
Creating the Yocto/OE environment
Deploying raspberry-packt-image
Testing the application
The future of this project
Summary
Chapter 10: Playing with an LCD Touchscreen and the Linux Kernel
The Linux kernel
Setting up an LCD display for the Raspberry Pi using the Yocto Project
Developing applications and using them on an LCD display
Summary
Chapter 11: Contributing to the Raspberry Pi BSP Layer
Open source
Contributing to open source projects
Exploring Git
Contributing to the Yocto Project
Summary
Chapter 12: Home Automation Project - Booting a Custom Image
Home automation using a Raspberry Pi
Setting up the base for the project
Creating the server side
Creating a packet list for your image
Putting it all together
Controlling the relay using the Raspberry Pi
Controlling the lamp using the Raspberry Pi
Turning on/off the lamp from a smartphone
Extra - using a Raspberry Pi with an LCD as the client
Summary

What You Will Learn

  • Explore the basic concept of Yocto's build system and how it is organized in order to use it efficiently with Raspberry Pi
  • Generate your first image with Yocto for the Raspberry Pi
  • Understand how to customize your Linux kernel within the Yocto Project
  • Customize your image in order to integrate your own applications
  • Write your own recipes for your graphical applications
  • Integrate a custom layer for the Raspberry Pi

Authors

Table of Contents

Chapter 1: Meeting the Yocto Project
The Yocto Project
The core components
Yocto Project - workflow
Summary
Chapter 2: Building our First Poky Image for the Raspberry Pi
Installing the required packages for the host system
Building the Poky image
Booting the image on the Raspberry Pi
Summary
Chapter 3: Mastering Baking with Hob and Toaster
Hob
Exploring Toaster
Summary
Chapter 4: Understanding BitBake
BitBake
Metadata
Parsing metadata
Preferences and providers
Dependencies
Fetching
Understanding BitBake's tasks
Summary
Chapter 5: Creating, Developing, and Deploying on the Raspberry Pi
Software development kits (SDKs)
Raspberry Pi and a package manager
IPK packages
Our application - an introduction
Our application - creating the recipe
Summary
Chapter 6: Working with External Layers
Introducing layers
The basic concepts of layers
Adding external layers to the Raspberry Pi
Summary
Chapter 7: Deploying a Custom Layer on the Raspberry Pi
Creating the meta-packt_rpi layer with the yocto-layer script
Adding gpio-packt to meta-packt_rpi
Patching gpio-packt
Creating the raspberry-packt-image.bb image
Deploying the raspberry-packt-image.bb image
Summary
Chapter 8: Diving into the Raspberry Pi's Peripherals and Yocto Recipes
The SPI bus
The i2c bus
The Wii Nunchuck
The Raspberry Pi connection
Summary
Chapter 9: Making a Media Hub on the Raspberry Pi
Project description – CPU temperature monitoring
Creating the main application
Creating the Yocto/OE environment
Deploying raspberry-packt-image
Testing the application
The future of this project
Summary
Chapter 10: Playing with an LCD Touchscreen and the Linux Kernel
The Linux kernel
Setting up an LCD display for the Raspberry Pi using the Yocto Project
Developing applications and using them on an LCD display
Summary
Chapter 11: Contributing to the Raspberry Pi BSP Layer
Open source
Contributing to open source projects
Exploring Git
Contributing to the Yocto Project
Summary
Chapter 12: Home Automation Project - Booting a Custom Image
Home automation using a Raspberry Pi
Setting up the base for the project
Creating the server side
Creating a packet list for your image
Putting it all together
Controlling the relay using the Raspberry Pi
Controlling the lamp using the Raspberry Pi
Turning on/off the lamp from a smartphone
Extra - using a Raspberry Pi with an LCD as the client
Summary

Book Details

ISBN 139781785281952
Paperback214 pages
Read More
From 2 reviews

Read More Reviews