Exploring BeagleBone®: Tools and Techniques for Building with Embedded Linux®, Second Edition
Published by
John Wiley & Sons, Inc.
10475 Crosspoint Boulevard
Indianapolis, IN 46256
www.wiley.com
Copyright © 2019 by John Wiley & Sons, Inc., Indianapolis, Indiana
Published simultaneously in Canada
ISBN: 978-1-119-53316-0
ISBN: 978-1-119-53315-3 (ebk)
ISBN: 978-1-119-53317-7 (ebk)
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at
.http://www.wiley.com/go/permissions
Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or promotional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the publisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Web site is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or website may provide or recommendations it may make. Further, readers should be aware that Internet websites listed in this work may have changed or disappeared between when this work was written and when it is read.
For general information on our other products and services please contact our Customer Care Department within the United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002.
Wiley publishes in a variety of print and electronic formats and by print-on-demand. Some material included with standard print versions of this book may not be included in e-books or in print-on-demand. If this book refers to media such as a CD or DVD that is not included in the version you purchased, you may download this material at
. For more information about Wiley products, visit http://booksupport.wiley.com
.www.wiley.com
Library of Congress Control Number: 2018962584
Trademarks: Wiley and the Wiley logo are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. BeagleBone is a registered trademark of BeagleBoard.org Foundation. Linux is a registered trademark of Linus Torvalds. All other trademarks are the property of their respective owners. John Wiley & Sons, Inc. is not associated with any product or vendor mentioned in this book.
To Sally, Daragh, Eoghan, Aidan, and Sarah
Dr. Derek Molloy is an associate professor in the Faculty of Engineering and Computing's School of Electronic Engineering at Dublin City University, Ireland. He lectures at undergraduate and postgraduate levels in object-oriented programming with embedded systems, digital and analog electronics, and connected embedded systems. His research contributions have largely been in the fields of computer and machine vision, embedded systems, 3D graphics/visualization, and e-learning.
Derek produces a popular YouTube video series that has introduced millions of people to embedded Linux and digital electronics topics. In 2013, he launched a personal web/blog site that is visited by thousands of people every day and that integrates his YouTube videos with support materials, source code, and user discussion. In 2015, he published the first edition of this book on the BeagleBone platform, Exploring BeagleBone, and followed up in June 2016 with Exploring Raspberry Pi. Both of these books have received strong acclaim for both their depth of coverage and accessibility.
Derek has received several awards for teaching and learning. He was the winner of the 2012 Irish Learning Technology Association (ILTA) national award for Innovation in Teaching and Learning. The award recognizes his learning-by-doing approach to undergraduate engineering education, which utilizes electronic kits and online video content. In 2012, as a result of fervent nominations from his students and peers, he was also awarded the Dublin City University President's Award for Excellence in Teaching and Learning. This learning-by-doing approach is strongly reflected in his books.
You can learn more about Derek, his work, and his other publications at his personal website,
.www.derekmolloy.ie
Marcia K. Wilbur is a technical communicator consulting in the semiconductor field, focusing on industrial IoT (IIoT). Marcia holds degrees in computer science, technical communication, and information technology. As the Copper Linux User Group interim president, she is heavily involved in the East Valley maker community, leading regular Raspberry Pi, BeagleBone, Banana Pi/Pro, and ESP8266 projects, including home automation, gaming consoles, surveillance, network, multimedia and other “pi fun.”
In addition to tinkering, she volunteers to aid disaster-stricken areas in getting access to public domain content to enable students to continue learning. For fun, she serves the community as the lead Debian developer for Linux Respin, a backup and distro customization tool.
Many thanks to everyone at John Wiley & Sons, Inc once again for their exceptional work on this project: to Jim Minatel for encouraging me to take on the revision of this book and for supporting the enhancement of a book that engages in deeper learning; to Devon Lewis for guiding the project forward and for his expert support and help throughout the development of this book; to Adaobi Obi Tulton, the project editor, for driving this project to completion in the most efficient way possible—it was a real pleasure to work with such an accomplished and adept editor for the third time; to Kim Wimpsett, the copy editor, for translating this book into readable U.S. English; to Barath Kumar Rajasekaran, the production editor, for bringing everything together to create a final, polished product. Thanks to the technical editor, Marcia Wilbur, for her careful review and constructive feedback on the technical content in this book. Continued thanks to the technical editors from my previous titles, Tom Betka, Robert Zhu (Microsoft), and Jason Kridner (BeagleBoard.org Foundation), on whose advice this work is based. Thanks also to Cathy Wicks (Texas Instruments) for her advice and support in the development of this book.
Continued thanks to the thousands of people who take the time to comment on my YouTube videos, blog, and website articles. I always appreciate the feedback, advice, and comments—it has really helped in the development of the topics in all of my books.
The School of Electronic Engineering at Dublin City University is a great place to work, largely because of its esprit de corps and its commitment to rigorous, innovative, and accessible engineering education. Thanks again to all of my colleagues in the school for supporting, encouraging, and tolerating me in the development of this book. Thanks in particular must go to Noel Murphy and Conor Brennan for sharing the workload of the school executive with me while I was once again absorbed in a book. Thanks again to (my brother) David Molloy for his expert software advice and support. Thanks to Jennifer Bruton, Martin Collier, Pascal Landais, Michele Pringle, Robert Sadleir, Ronan Scaife, and John Whelan for their ongoing expertise, support, and advice on the various titles I have written.
The biggest thank-you must of course go to my own family once again. This revision was written over six months, predominantly at night and on weekends. Thanks to my wife, Sally, and our children, Daragh, Eoghan, Aidan, and Sarah for putting up with me (once again) while I was writing this book. Thank you, Mam, Dad, David, and Catriona for your endless lifelong inspiration, support, and encouragement. Finally, thank you to my extended family for your continued support, understanding, and constancy.