BeagleBone Essentials
eBook - ePub

BeagleBone Essentials

Rodolfo Giometti

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

BeagleBone Essentials

Rodolfo Giometti

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
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.
Can/how do I download books?
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.
What is the difference between the pricing plans?
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.
What is Perlego?
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.
Do you support text-to-speech?
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.
Is BeagleBone Essentials an online PDF/ePUB?
Yes, you can access BeagleBone Essentials by Rodolfo Giometti in PDF and/or ePUB format, as well as other popular books in Ciencia de la computación & Hardware. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781784393526

BeagleBone Essentials


Table of Contents

BeagleBone Essentials
Credits
About the Author
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
Software prerequisites
Hardware prerequisites
Who this book is for
Conventions
Codes and command lines
Kernel and logging messages
File modifications
Other conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Installing the Developing System
Embedded world terms
A system overview
The first login
Checking out the preloaded tools
The SSH tool
The Apache web server
Setting up a developing system
The LAMP suite
Apache
PHP
MySQL
The compiler
(Re)Installing Debian
The virtual machine
Setting up the host
The serial connection
The Ethernet connection
The developing tools
Summary
2. Managing the System Console
Getting access to the serial console
Basic system management
File manipulation tools and friends
Package management
Managing the kernel messages
A quick tour of the bootloader
GPIOs management
The environment
Managing the storage devices
The kernel command line
Summary
3. Compiling versus Cross-compiling
Native compilation versus cross-compilation
Compiling a user-space software package
Native compilation
Cross-compilation
Compiling the kernel
The Linux kernel
Device drivers
Summary
4. Quick Programming with Scripts
The GPIO subsystem
The GPIOs on the BeagleBone Black
The sysfs API
Managing an LED in PHP
The LAMP solution
The built-in server solution
Managing an LED in Python
Managing an LED in Bash
Summary
5. Device Drivers
What is a device driver?
Char, block, and net devices
The modutils
Writing our own device driver
Summary
6. Serial Ports and TTY Devices
What is a serial port?
The electrical lines
Implementation of serial ports
The serial ports in Linux
The communication parameters
A simple serial echo
Managing a real device
Summary
7. Universal Serial Bus – USB
What is the Universal Serial Bus?
The electrical lines
The USB bus in Linux
Acting as a host
Acting as a device
Accessing the raw bus
Summary
8. Inter-integrated Circuit – I2C
What is the I2C bus?
The electrical lines
The I2C bus in Linux
Getting access to I2C devices
The EEPROM
The ADC chip
Accessing the bus directly
Summary
9. Serial Peripheral Interface – SPI
What is the SPI bus?
The electrical lines
The SPI bus in Linux
Getting access to the SPI devices
Accessing the raw bus
Summary
10. 1-Wire Bus – W1
What is the 1-Wire bus?
The electrical lines
The 1-Wire bus in Linux
Getting access to 1-Wire devices
Summary
11. Useful System Daemons
What is a daemon?
Useful and ready-to-use daemons
Syslogd
Using in Bash
Using in C
Using in PHP
Using in Python
Cron
MySQL
Getting access in Bash
Getting access in C
Getting access in PHP
Getting access in Python
Writing a custom daemon
Using C
Using PHP
Using Python
Using Bash
Summary
Index

BeagleBone Essentials

Copyright © 2015 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 author, 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: May 2015
Production reference: 1260515
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78439-352-6
www.packtpub.com
Cover image by Andrea Dovichi ()

Credits

Author
Rodolfo Giometti
Reviewers
Kumar Abhishek
Luca Belluomini
Richard Bottoms
Antonio Tringali
Commissioning Editor
Pramila Balan
Acquisition Editor
Subho Gupta
Content Development Editor
Samantha Gonsalves
Technical Editor
Siddhi Rane
Copy Editor
Rashmi Sawant
Project Coordinator
Kinjal Bari
Proofreaders
Stephen Copestake
Safis Editing
Indexer
Hemangini Bari
Graphics
Sheetal Aute
Production Coordinator
Komal Ramchandani
Cover Work
Komal Ramchandani

About the Author

Rodolfo Giometti is an engineer, IT specialist, GNU/Linux expert, and software libre evangelist.
He is the maintainer of LinuxPPS projects (Linux's Pulse Per Second subsystem). He also actively c...

Table of contents