Embedded Linux Development with Yocto Project
eBook - ePub

Embedded Linux Development with Yocto Project

  1. 142 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Embedded Linux Development with Yocto Project

Book details
Book preview
Table of contents
Citations

About This Book

In Detail

Starting with the very basics of the Yocto Project tools, this book will provide you with all the knowledge you need to work on real Linux-based hardware.

With emphasis on practical implementation, this book starts by helping you set up and configure the Yocto Project tools. It then explains the Hob interface for BitBake in detail. You will explore different directory layouts and learn to maximize the use of the Poky build system.

Compliance is always a hassle, so you will learn the methods to share source code and modifications, and how to fulfill open source license compliance effectively and convincingly. You will then gain experience in the use and construction of layers.

This tutorial guide will teach you everything you need to know to get up and running with Yocto Project and develop amazing Linux-based projects.

Approach

A practical tutorial guide which introduces you to the basics of Yocto Project, and also helps you with its real hardware use to boost your Embedded Linux-based project.

Who this book is for

If you are an embedded systems enthusiast and willing to learn about compelling features offered by the Yocto Project, then this book is for you. With prior experience in the embedded Linux domain, you can make the most of this book to efficiently create custom Linux-based systems.

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access Embedded Linux Development with Yocto Project by Otavio Salvador, Daiane Angolini in PDF and/or ePUB format, as well as other popular books in Computer Science & Hardware. We have over one million books available in our catalogue for you to explore.

Information

Year
2014
ISBN
9781783282333
Edition
1

Embedded Linux Development with Yocto Project


Table of Contents

Embedded Linux Development with Yocto Project
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the color images of the book
Errata
Piracy
Questions
1. Meeting the Yocto Project
What is the Yocto Project?
Delineating the Yocto Project
Understanding Poky
Using BitBake
OpenEmbedded-Core
Metadata
The alliance of OpenEmbedded Project and Yocto Project
Summary
2. Baking Our Poky-based System
Configuring a host system
Installing Poky on Debian
Installing Poky on Fedora
Downloading the Poky source code
Preparing the build environment
Knowing the local.conf file
Building a target image
Running images in QEMU
Summary
3. Using Hob to Bake an Image
Building an image using Hob
Customizing an image with Hob
Summary
4. Grasping the BitBake Tool
Understanding the BitBake tool
Exploring metadata
Parsing metadata
Dependencies
Preferring and providing recipes
Fetching the source code
Remote file downloads
Git repositories
Other repositories
Optimizing the source code download
Disabling network access
Understanding BitBake's tasks
Extending tasks
Generating a root filesystem image
Summary
5. Detailing the Temporary Build Directory
Detailing the build directory
Constructing the build directory
Exploring the temporary build directory
Understanding the work directory
Understanding the sysroot directories
Summary
6. Assimilating Packaging Support
Using supported package formats
List of supported package formats
Choosing a package format
Running code during package installation
Understanding shared state cache
Explaining package versioning
Package feeds
Using package feeds
Summary
7. Diving into BitBake Metadata
Using metadata
Working with metadata
The basic variable setting
Variable expansion
Setting a default value using ?=
Setting a default value using ??=
Immediate variable expansion
Appending and prepending
Conditional metadata set
Conditional appending
File inclusion
Python variable expansion
Defining executable metadata
Defining Python functions in the global namespace
The inheritance system
Summary
8. Developing with the Yocto Project
Deciphering the software development kit
Working with the Poky SDK
Using an image-based SDK
Generic SDK – meta-toolchain
Using a SDK
Developing applications on the target
Integrating with Eclipse
Summary
9. Debugging with the Yocto Project
Differentiating metadata and application debugging
Tracking image, package, and SDK contents
Debugging packaging
Logging information during task execution
Utilizing a development shell
Using the GNU Project Debugger for debugging
Summary
10. Exploring External Layers
Powering flexibility with layers
Detailing the layer's source code
Adding meta layers
Summary
11. Creating Custom Layers
Making a new layer
Adding metadata to the layer
Creating an image
Adding a package recipe
Writing a machine definition
Using a custom distribution
Machine features versus distro features
Understanding the variables scope
Summary
12. Customizing Existing Recipes
Common use cases
Adding extra options to recipes based on Autoconf
Applying a patch
Adding extra files to the existing packages
Understanding file searching paths
Changing recipe feature configuration
Customizing BusyBox
Customizing the linux-yocto framework
Summary
13. Achieving GPL Compliance
Understanding copyleft
Copyleft compliance versus proprietary code
Some guidelines for license compliance
Managing software licensing with Poky
Commercial licenses
Using Poky to achieve copyleft compliance
License auditing
Providing the source code
Providing compilation scripts and source code modifications
Providing license text
Summary
14. Booting Our Custom Embedded Linux
Exploring the Wandboard
Discovering Freescale ARM BSP
Using Wandboard with the Yocto Project
Building an image for Wandboard
Booting Wandboard from the SD card
Summary
A. References
Index

Embedded Linux Development with Yocto Project

Copyright © 2014 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: July 2014
Production reference: 1020714
Published by Packt Publishing Ltd.
Liv...

Table of contents

  1. Embedded Linux Development with Yocto Project