Download An Introduction to Embedded Programming in a Linux Environment

Transcript
A Short Introduction to Linux
The readers of this book are expected to be reasonably adept C programmers with
an interest in embedded Linux. It is possible that some will be unfamiliar with
Linux and the purpose of this first chapter is to provide at least a rudimentary
overview of how to use Linux. Those familiar with Linux might scan the chapter to
see if they want to move directly to the next.
1 - 2 What is Linux?
Linux is a monolithic, multitasking, multiuser operating system (OS) which is a
UNIX workalike. It is modularly designed with well understood interdependencies,
which allows one to tailor Linux for a variety of purposes. In this course, Linux
exists on the development workstation as a full blown OS with an incredibly large
variety of features. However, it also exists on the target system as a very small,
focused OS appropriate for an embedded system.
An exciting attribute of Linux is that it can be run on a wide variety of
microprocessors and micro controllers. Once you are comfortable with Linux, you
will find this to be a great advantage in the embedded systems arena. In particular,
your development platform is a Linux box which can be used for many different
embedded targets spanning a range of processor architectures, but all running
Linux.
It is not the purpose of this introductory chapter to explore Linux in either great
depth or breadth. The assumption is that the course participants are quite computer
literate, but may have little previous experience with this particular OS. Hence our
goal is to get up and running on a generic Linux box. To accomplish this the
following sections will look at
•
•
•
•
logging on to a Linux system
the file system
a selection of commands
editing text files
Then we’ll close out the chapter with some activities/exercises followed by salient
references.
2
An Introduction to Embedded Programming in a Linux Environment