售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Yocto for Raspberry Pi
Yocto for Raspberry Pi
Credits
About the Authors
About the Reviewers
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
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. Meeting the Yocto Project
The Yocto Project
Understanding the build system
The core components
What is Poky?
The Chief - BitBake
OpenEmbedded-Core
Exploring metadata
Yocto Project - workflow
Summary
2. Building our First Poky Image for the Raspberry Pi
Installing the required packages for the host system
Poky on Ubuntu
Poky on Fedora
Downloading the Poky metadata
Downloading the Raspberry Pi BSP metadata
The oe-init-build-env script
Editing the local.conf file
Editing the bblayers.conf file
Building the Poky image
Choice of image
Running BitBake
Creating an SD card
Booting the image on the Raspberry Pi
Summary
3. Mastering Baking with Hob and Toaster
Hob
Preparing the environment for Hob
Running Hob
Configuring recipes and packages
Building the image
Exploring Toaster
Installing the required packages for the host system
Running Toaster
Running BitBake
Running the web interface
Summary
4. Understanding BitBake
BitBake
Metadata
Configuration
Classes
Recipes
Parsing metadata
Preferences and providers
Dependencies
Fetching
The local file fetcher
The HTTP fetcher
The Git fetcher
Understanding BitBake's tasks
Summary
5. Creating, Developing, and Deploying on the Raspberry Pi
Software development kits (SDKs)
A generic SDK - meta-toolchain
image.bb -c populate_sdk
The Qt SDK - meta-toolchain-qt
The Qt5 SDK - meta-toolchain-qt5
Cross-compilation - an example
Configuration of the SDK environment
List of tools
Compilation
Raspberry Pi and a package manager
Package format availablility
Choosing a package format
Installing and updating a package on the target
RPM packages
Installing manually
Installing automatically
IPK packages
Installing manually
Installing automatically
Our application - an introduction
Our application - creating the recipe
The recipe explained
Summary
6. Working with External Layers
Introducing layers
The basic concepts of layers
Theory
The software layer
README and COPYING
The classes folder
The conf folder
The recipes-* directory
The machine (BSP) layer
Adding external layers to the Raspberry Pi
Summary
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
Generating the patch
Adding the patch to the recipe file
Creating the raspberry-packt-image.bb image
Creating the environment
Modifying the recipe file
Deploying the raspberry-packt-image.bb image
Summary
8. Diving into the Raspberry Pi's Peripherals and Yocto Recipes
The SPI bus
The spi-tools project
Inclusion in the meta-oe layer
Baking spi-tools
Testing on the Raspberry Pi
spi-config
spi-pipe
Conclusion
The i2c bus
The Wii Nunchuck
The Nunchuck connector
The Raspberry Pi connection
The Nunchuck's protocol
Encryption
Requesting sensor data
Testing the i2c connection
Creating the Nunchuck application
Integrating with meta-packt_rpi
Creating the Nunchuck recipe
Testing the Nunchuck application
V4L presentation
Video support
v4l-utils integration
Summary
9. Making a Media Hub on the Raspberry Pi
Project description â CPU temperature monitoring
Overview
Hardware/software requirements
Creating the main application
server.js
index.html
Creating the Yocto/OE environment
Modifying the image
Creating the recipe file
Explanation
Autostarting - the init file
Explanation
Autostarting - the recipe file
Explanation
Deploying raspberry-packt-image
Testing the application
The future of this project
Summary
10. Playing with an LCD Touchscreen and the Linux Kernel
The Linux kernel
The Linux kernels versus the Raspberry Pi Linux kernel
Getting started with the Linux kernel
Configuring the kernel in Yocto
Configuring the kernel with LCD support
The Raspberry Pi device tree
Configuring the touchscreen from the kernel perspective
Setting up an LCD display for the Raspberry Pi using the Yocto Project
The Raspberry Pi 7 touchscreen
The PiTFT 2.8 resistive touchscreen
Developing applications and using them on an LCD display
Developing a custom application using Qt
Summary
11. Contributing to the Raspberry Pi BSP Layer
Open source
Contributing to open source projects
Exploring Git
What is Git?
Working with Git
Contributing to the Yocto Project
Contributing to meta-raspberrypi
Setting up your Git repository
Creating your commit
Sending changes to the community
Follow-up
Practical example - sending a custom tool upstream
Summary
12. Home Automation Project - Booting a Custom Image
Home automation using a Raspberry Pi
Material required for the project
Setting up the base for the project
Creating a new layer
Customizing the image recipe
Building and booting the image
Creating the server side
Creating a packet list for your image
Setting up a customized package list
Start using a customized package list in meta-packt-iot
Putting it all together
Serial and SSH connections to the Raspberry Pi
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
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜