Using Yocto Project with BeagleBone Black
eBook - ePub

Using Yocto Project with BeagleBone Black

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

Using Yocto Project with BeagleBone Black

Trusted by 375,005 students

Access to over 1 million titles for a fair monthly price.

Study more efficiently using our study tools.

Using Yocto Project with BeagleBone Black


Table of Contents

Using Yocto Project with BeagleBone Black
Credits
Foreword
About the Author
Acknowledgments
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 example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Welcome to Yocto Project and BeagleBone Black
Setting up a host environment
Essentials
Graphics
Documentation
ADT Installer Extras
Obtaining Yocto Project
Let's build for BeagleBone
Local.conf
bblayers.conf
site.conf
auto.conf
Trigger build
Creating partitions and formatting the SD card
Copying images to the card
Hardware setup
Serial setup
Booting BeagleBone
More about configuration files
machine.conf
bitbake.conf
Standard target filesystem paths
Architecture-dependent build variables
Package default variables
General work and output directories for the build system
Specific image creation and rootfs population information
Build flags and options
Download locations and utilities
Including the rest of the config files
Summary
2. What's BitBake All About?
A brief history of BitBake
Legacy tools and BitBake
Cross-compilation
Resolving inter-package dependencies
Variety of target distribution
Coupling to build systems
Variety of build systems distros
Variety of architecture
Exploit parallelism
Easy to use, extend, and collaborate
BitBake execution
Parsing metadata
Preparing tasklist
Executing tasks
BitBake options
Building a specific recipe (-b)
ContinuContinuing build even in the case of errors (-k, --continue)
Force-specific tasks (-f, --force)
Using alternate providers (-a, --tryaltconfigs)
Executing a specific task (-c)
Invalidate stamps (-C, --clear-stamp)
Increasing verbosity (-v, --verbose)
Debug level (-D, --debug)
Dry run (-n, --dry-run)
Parse only (-p, --parse-only)
Show versions (-s, --show-versions)
Get environment (-e, --environment)
Generating a dependency graph (-g, --graphviz)
Log levels (-l DEBUG_DOMAINS, --log-domains=DEBUG_DOMAINS)
Profile (-P, --profile)
Select UI (-u UI, --ui=UI)
Don't use shared state (--no-setscene)
Summary
3. Creating the helloworld Recipe
Creating helloworld
Contents of the helloworld recipe
Recipe naming and related variables
Building a recipe
Build directories
Tasks
Build
Fetch
Unpack
Patch
Configure
Compile
Install
Package
Devshell
Clean
Cleansstate
Cleanall
Overriding default tasks
Deploying helloworld
Manually installing a package
Making an image dependent on our package
Summary
4. Adding Multimedia to Your Board
Introducing gaku
The recipe for gaku
Package control variables
Build dependencies (DEPENDS)
Runtime dependencies (RDEPENDS)
Runtime recommendations (RRECOMMENDS)
RCONFLICTS
RREPLACE
PROVIDES
RPROVIDES
Source control in a recipe
SRCREV
PV calculation
The SRC_URI specification
The S directory
Inheriting classes
GStreamer recipes' short trip
Types of variable assignments
EXTRA_OECONF
The FILES_ variables
Variable flags
ALLOW_EMPTY
FILESPATH
Conditional overriding mechanisms
Reusing and sharing the same code
Action time
Summary
5. Creating and Exploring Layers
Layer creation using script
Contents of layers
The conf directory
recipes-* director{y,ies}
Classes
COPYING.mit
README
Conditional selection based on layers
Append files
Packagegroups
Summary
6. Your First Console Game
Hardware requirements
Pacman4Console
Let's develop our recipe
Basic elements
Source control
Work directory and version
The S directory
Debugging compile tasks
Installing a task
Adding package contents
Adding a package to the root filesystem
packagegroup
Image bbappend
Action
Summary
7. Turning BeagleBone into a Home Surveillance System
Problem statement
Requirements
Existing solutions / literature survey
Requiring specialized capturing hardware
Requiring specialized software application
Based on Debian/Angstrom
Selected solution
Host/server side (BeagleBone)
Client side
Let's start the fun
Base plugins
Good plugins
Bad plugins
Ugly plugins
Enabling GStreamer and plugins
Enabling Video4Linux2
In-place amendment
Using append
Using local.conf
The GStreamer pipeline
Client side
VLC
GStreamer
Get ready for running and surprises
Camera-detection issues
UVC driver DMA issue
Build with the meta-ti layer
Fetch the layer
Set the layer priority
Enable the layer
Further enhancements
Summary
8. BeagleBone as a Wi-Fi Access Point
Problem statement / use case
Requirements
Literature survey
Our strategy
Enabling kernel support
Networking support – wireless
Device Drivers > Network device support > Wireless LAN > Atheros Wireless Cards
A better approach toward Kernel configurations
Copying firmware
Using the previous kernel version
Issue with rfkill
Required packages
Changing upstart scripts
Recipe Hotspot-yb
The access point launcher script
Systemd service unit file
Configuration file for the driver module
Configuration file for hostapd
The gateway setup file
The udhcp configuration file
The udhcp e...

Table of contents

  1. Using Yocto Project with BeagleBone Black

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
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 990+ topics, we’ve got you covered! Learn about our mission
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 about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Using Yocto Project with BeagleBone Black by H M Irfan Sadiq in PDF and/or ePUB format, as well as other popular books in Computer Science & Open Source Programming. We have over one million books available in our catalogue for you to explore.