Book Image

Learning BeagleBone

By : Hunyue Yau
Book Image

Learning BeagleBone

By: Hunyue Yau

Overview of this book

Table of Contents (18 chapters)
Learning BeagleBone
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Terms and Definitions
Index

Summary


In this chapter, we went through the basic foundation to get a basic program on the BeagleBone. We looked at using a simple editor on the BeagleBone. Then, you learned about Linux file permissions. Linux file permissions are divided into three groups, namely, user, group, and other. Each group can have read, write, and execute permissions. We also looked at calculating the numeric representation of the permissions. The permissions can be examined using the ls command and set using the chmod command.

Using this basic foundation, we dived into our first Hello, World program on the BeagleBone. While being simple, it illustrated the importance of permissions. Building upon this with exercises 1 and 2, you learned about the sysfs files and how to use them to control the LEDs on the BeagleBone. We controlled the LEDs by first disconnecting them from the system control, and then turning them on and off by writing to the sysfs files using the echo command and shell redirection.

In the next...