Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Yocto for Raspberry Pi

You're reading from   Yocto for Raspberry Pi Create unique and amazing projects by using the powerful combination of Yocto and Raspberry Pi

Arrow left icon
Product type Paperback
Published in Jun 2016
Last Updated in Feb 2025
Publisher Packt
ISBN-13 9781785281952
Length 214 pages
Edition 1st Edition
Concepts
Arrow right icon
Authors (2):
Arrow left icon
 Pierre-Jean Pierre-Jean
Author Profile Icon Pierre-Jean
Pierre-Jean
 Mabäcker Mabäcker
Author Profile Icon Mabäcker
Mabäcker
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Meeting the Yocto Project 2. Building our First Poky Image for the Raspberry Pi FREE CHAPTER 3. Mastering Baking with Hob and Toaster 4. Understanding BitBake 5. Creating, Developing, and Deploying on the Raspberry Pi 6. Working with External Layers 7. Deploying a Custom Layer on the Raspberry Pi 8. Diving into the Raspberry Pi's Peripherals and Yocto Recipes 9. Making a Media Hub on the Raspberry Pi 10. Playing with an LCD Touchscreen and the Linux Kernel 11. Contributing to the Raspberry Pi BSP Layer 12. Home Automation Project - Booting a Custom Image

Creating the meta-packt_rpi layer with the yocto-layer script


To create our custom layer, we can use two different methods:

  • Manually: create the directory (meta-*) and create the layer configuration file (conf/layer.conf)

  • * Use the yocto-layer script provided by the Poky environment

To gain flexibility and avoid mishandling, we'll use the second option. To use it,  we must initially source all variables to gain access through our shell in the yocto-layer script, as shown in the following command:

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

Now that our environment is set up, we have access  to the yocto-layer  script,  and so,  we can begin the process of creating the layer.

Note that this script (yocto-layer) creates the layer in the current directory by default. That is why we must place it at the root of our environment:

$ cd /where/you/want/to/stored/your/layer

We can now launch the script using the following command:

$ yocto-layer create <layer_name> -o...
lock icon The rest of the chapter is locked
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Yocto for Raspberry Pi
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 €18.99/month. Cancel anytime
Modal Close icon
Modal Close icon