万本电子书0元读

万本电子书0元读

顶部广告

Yocto for Raspberry Pi电子书

售       价:¥

6人正在读 | 0人评论 9.8

作       者:Pierre-Jean Texier,Petter Mabäcker,

出  版  社:Packt Publishing

出版时间:2016-06-01

字       数:94.6万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Create unique and amazing projects by using the powerful combination of Yocto and Raspberry Pi About This Book Set up and configure the Yocto Project efficiently with Raspberry Pi Deploy multimedia applications from existing Yocto/OE layers An easy-to-follow guide to utilize your custom recipes on your Raspberry Pi Who This Book Is For If you are a student or a developer of embedded software, embedded Linux engineer or embedded systems in competence with Raspberry Pi and want to discover the Yocto Project, then this book is for you. Experience with Yocto is not needed. 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 In Detail 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). Style and approach A step by step guide covering the fundamentals to create amazing new projects with Raspberry Pi and Yocto.
目录展开

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

累计评论(0条) 1个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部