Embedded Linux Primer: A Practical Real-World Approach and over one million other books are available for Amazon Kindle. Learn more
Sell yours for a Gift Card
We'll buy it for $2.00
Learn More
Trade in now
Have one to sell? Sell on Amazon
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See all 2 images

Embedded Linux Primer: A Practical Real-World Approach Paperback – September 28, 2006

ISBN-13: 978-0131679849 ISBN-10: 0131679848 Edition: 1st

8 New from $16.21 18 Used from $6.99 1 Collectible from $113.91
Amazon Price New from Used from
Kindle
"Please retry"
Paperback
"Please retry"
$16.21 $6.99
12%20Days%20of%20Deals%20in%20Books
NO_CONTENT_IN_FEATURE

Best Books of the Month
Best Books of the Month
Want to know our Editors' picks for the best books of the month? Browse Best Books of the Month, featuring our favorite new books in more than a dozen categories.

Product Details

  • Paperback: 576 pages
  • Publisher: Prentice Hall; 1 edition (September 28, 2006)
  • Language: English
  • ISBN-10: 0131679848
  • ISBN-13: 978-0131679849
  • Product Dimensions: 7 x 1.2 x 9.2 inches
  • Shipping Weight: 1.8 pounds
  • Average Customer Review: 4.8 out of 5 stars  See all reviews (20 customer reviews)
  • Amazon Best Sellers Rank: #483,498 in Books (See Top 100 in Books)

Editorial Reviews

About the Author

Christopher Hallinan is currently field applications engineer for Monta Vista Software, living and working in Massachusetts. Chris has spent more than 25 years in the networking and communications marketplace mostly in various product development roles, where he developed a strong background in the space where hardware meets software. Prior to joining Monta Vista, Chris spent four years as an independent Linux consultant providing custom Linux board ports, device drivers, and bootloaders. Chris’s introduction to the open source community was through contributions to the popular U-Boot bootloader. When not messing about with Linux, he is often found singing and playing a Taylor or Martin.

Excerpt. © Reprinted by permission. All rights reserved.

Embedded Linux Primer

Embedded Linux Primer

Preface

Although many good books cover Linux, none brings together so many dimensions of information and advice specifically targeted to the embedded Linux developer. Indeed, there are some very good books written about the Linux kernel, Linux system administration, and so on. You will find references right here in this book to many of the ones that I consider to be at the top of their categories.

Much of the material presented in this book is motivated by questions I've received over the years from development engineers, in my capacity as an embedded Linux consultant and my present role as a Field Application Engineer for Monta Vista Software, the leading vendor of embedded Linux distributions.

Embedded Linux presents the experienced software engineer with several unique challenges. First, those with many years of experience with legacy real-time operating systems (RTOSes) find it difficult to transition their thinking from those environments to Linux. Second, experienced application developers often have difficulty understanding the relative complexities of a cross-development environment.

Although this is a primer, intended for developers new to embedded Linux, I am confident that even developers who are experienced in embedded Linux will find some useful tips and techniques that I have learned over the years.

Practical Advice for the Practicing Embedded Developer

This book contains my view of what an embedded engineer needs to know to get up to speed fast in an embedded Linux environment. Instead of focusing on Linux kernel internals, the kernel chapter in this book focuses on the project nature of the kernel and leaves the internals to the other excellent texts on the subject. You will learn the organization and layout of the kernel source tree. You will discover the binary components that make up a kernel image, and how they are loaded and what purpose they serve on an embedded system. One of my favorite figures in the book is Figure 5-1, which schematically illustrates the build process of a composite kernel image.

In the pages of this book, you will learn how the build system works and how to incorporate into the Linux kernel your own custom changes that are required for your own projects. You will discover the mechanism used to drive the configuration of different architectures and features within the Linux kernel source tree and, more important, how to modify this system to customize it to your own requirements. We also cover in detail the kernel command-line mechanism. You will learn how it works, how to configure the kernel's runtime behavior for your requirements, and how to extend this functionality to your own project. You will learn how to navigate the kernel source code and how to configure the kernel for specific tasks related to an embedded system. You will learn many useful tips and tricks for your embedded project, from bootloaders, system initialization, file systems, and Flash memory to advanced kernel- and application-debugging techniques.

Intended Audience

This book is intended for programmers with a working knowledge of programming in C. I assume that you have a rudimentary understanding of local area networks and the Internet. You should understand and recognize an IP address and how it is used on a simple local area network. I also assume that you have an understanding of hexadecimal and octal numbering systems, and their common usage in a text such as this.

Several advanced concepts related to C compiling and linking are explored, so you will benefit from having at least a cursory understanding of the role of the linker in ordinary C programming. Knowledge of the GNU make operation and semantics will also prove beneficial.

What This Book Is Not

This book is not a detailed hardware tutorial. One of the difficulties the embedded developer faces is the huge variety of hardware devices in use today. The user manual for a modern 32-bit processor with some integrated peripherals can easily exceed 1,000 pages. There are no shortcuts. If you need to understand a hardware device from a programmer's point of view, you will need to spend plenty of hours in your favorite reading chair with hardware data sheets and reference guides, and many more hours writing and testing code for these hardware devices!

This is also not a book about the Linux kernel or kernel internals. In this book, you won't learn about the intricacies of the Memory Management Unit (MMU) used to implement Linux's virtual memory-management policies and procedures; there are already several good books on this subject. You are encouraged to take advantage of the "Suggestions for Additional Reading" section found at the end of every chapter.

Conventions Used

Filenames and code statements are presented in Courier. Commands issued by the reader are indicated in bold Courier. New terms or important concepts are presented in italics.

When you see a pathname preceded with three dots, this references a well-known but unspecified top-level directory. The top-level directory is context dependent but almost universally refers to a top-level Linux source directory. For example, .../arch/ppc/kernel/setup.c refers to the setup.c file located in the architecture branch of a Linux source tree. The actual path might be something like ~/sandbox/linux.2.6.14/arch/ppc/kernel/setup.c.

Organization of the Book

Chapter 1, "Introduction," provides a brief look at the factors driving the rapid adoption of Linux in the embedded environment. Several important standards and organizations relevant to embedded Linux are introduced.

Chapter 2, "Your First Embedded Experience," introduces the reader to many concepts related to embedded Linux upon which we build in later chapters.

In Chapter 3, "Processor Basics," we present a high-level look at the more popular processors and platforms that are being used to build embedded Linux systems. We examine selected products from many of the major processor manufacturers. All of the major architecture families are represented.

Chapter 4, "The Linux Kernel—A Different Perspective," examines the Linux kernel from a slightly different perspective. Instead of kernel theory or internals, we look at its structure, layout, and build construction so you can begin to learn your way around this large software project and, more important, learn where your own customization efforts must be focused. This includes detailed coverage of the kernel build system.

Chapter 5, "Kernel Initialization," details the Linux kernel's initialization process. You will learn how the architecture- and bootloader-specific image components are concatenated to the image of the kernel proper for downloading to Flash and booting by an embedded bootloader. The knowledge gained here will help you customize the Linux kernel to your own embedded application requirements.

Chapter 6, "System Initialization," continues the detailed examination of the initialization process. When the Linux kernel has completed its own initialization, application programs continue the initialization process in a predetermined manner. Upon completing Chapter 6, you will have the necessary knowledge to customize your own userland application startup sequence.

Chapter 7, "Bootloaders," is dedicated to the booloader and its role in an embedded Linux system. We examine the popular open-source bootloader U-Boot and present a porting example. We briefly introduce additional bootloaders in use today so you can make an informed choice about your particular requirements.

Chapter 8, "Device Driver Basics," introduces the Linux device driver model and provides enough background to launch into one of the great texts on device drivers, listed as "Suggestions for Additional Reading" at the end of the chapter.

Chapter 9, "File Systems," presents the more popular file systems being u...

Customer Reviews

4.8 out of 5 stars
5 star
18
4 star
1
3 star
0
2 star
0
1 star
1
See all 20 customer reviews
It's a very good book, and very easy to read.
Jorge Esteban Malpartida
If the cross-development environment chapter had been about BUILDROOT, this book would have been THE BOOK for the present embedded Linux based systems designers.
Gilles
Highly recommended for coming up to speed on embedded Linux.
M. D. Yoke

Most Helpful Customer Reviews

54 of 58 people found the following review helpful By R. B. Dixon on October 6, 2006
Format: Paperback Verified Purchase
Hallinan's book presents a balanced tour of the basic knowledge

required for an embedded Linux design effort. The subject is

exceedingly large and the author wisely chooses to focus on essentials

such as tools, debugging, and architecture. There is less emphasis on

quickly dated material such as source code tours and build

instructions as is found in other texts. This book will add to your

knowledge... not just your script library.

Two attributes of this text are notable: a) This is the only text on

the market with an overview of the latest CONFIG_RT technology found

in the Linux kernel. CONFIG_RT is a new way of reaching real time

performance requirements that does not depend on sub-kernels or

interrupt abstraction. b) The author remains true to making this a

"primer". This is an ideal book to start with and lay the foundation

for future learning
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
28 of 28 people found the following review helpful By M. D. Yoke on September 28, 2007
Format: Paperback Verified Purchase
I am an experienced embedded developer that just inherited an embedded Linux-based project already in progress. As there happens to be no one else at my company with any embedded Linux experience, I automatically became the de-facto Linux expert and I needed to come up to speed on a lot of topics very quickly. I found this book to be an excellent survey of the must-know topics for the embedded Linux developer. It also contains many references to the most definitive sources of information on the various topics. Highly recommended for coming up to speed on embedded Linux.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
13 of 13 people found the following review helpful By Gilles on March 9, 2008
Format: Paperback
This book, the CALAO SYSTEM USB-A9260 card, an eeePC and a cross over cable is all that you need to study embedded system everywhere (even along the Seine river in Paris - yes I did it !).
The chapters about the U-BOOT bootloader, the BUSYBOX embeded Linux and an extra piece of information on the JFFS2 file system are welcome. If the cross-development environment chapter had been about BUILDROOT, this book would have been THE BOOK for the present embedded Linux based systems designers.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
4 of 4 people found the following review helpful By Amazon Customer on February 27, 2010
Format: Paperback
I am an embedded developer and a linux user/programmer/admin.
When I started joining the "embedded"+"linux" words (and worlds), I found out that I had a lot to learn from this book in both fields.
It's the best on the subject I've read up to now, really professional. The "Primer" in the title does not mean that it's for beginners: it's an advanced guide, and you need to have a background in both "Linux" and "Embedded".
I bought and read it some years ago, but sometimes I like to re-read some parts because I find it always useful and enjoyable.

Moreover, it's well written, fun and easy to read.
There are also a lot of useful references for further readings (I followed many of them!) and web documentations.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
4 of 4 people found the following review helpful By T. Yao on May 30, 2008
Format: Paperback
For those engineers who start their first embedded Linux project, this book is a must have. The book is not for those who want to understand how kernel runs but it gives you the most important concept and work flow to bring up the OS on your development board. The author also provides a useful further reading list in case you want to dig more. A very practical and clearly written book and I would recommend it to those who have solid experience in embedded development but just start to explore in Linux.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
3 of 3 people found the following review helpful By Jorge Reyes on December 22, 2008
Format: Paperback
This book is excellent to construct embedded software using Linux. This book explain all the process involved in embedded devices (toolchain, bsp, bootloader, cross-compilation, etc). This book is not inteded as entry book, you must have experience with Linux, C, compilers, etc. There are plenty lines of code an examples therefore is a practical book but you need to work on it

This book is a professional one, therefore this book can carry you to get real embedded linux appliances.

Jorge Luis
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
2 of 2 people found the following review helpful By J. Meyer on February 15, 2009
Format: Paperback Verified Purchase
I am just a newbie to the embedded linux world. Of all the books I have seen this book was the best overview but not a great reference book. It is well organized so that someone new to embedded linux will not get overwhelmed but it is also a good overall reference. It goes over all of the different bootloaders, target devices, file systems, busybox, etc. I would NOT recommend it to a reader without some background with linux. The whole embedded linux development moves very quickly so there may be need for new edition soon. It is a must buy if you are interested in learning embedded linux. If you are past the learning phase then it may be less useful.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
3 of 4 people found the following review helpful By iamtron on July 24, 2010
Format: Paperback Verified Purchase
This is a great book. This was one of the text books I had for a course at UCI in their embedded linux course. It provides a great overview to building an embedded linux system. I myself am not a C programmer or really heavy into Linux so my own embedded linux experiences have taken a slightly different turn. I've found development in this area can be extremely demanding and not for the faint of heart. My self and a friend developed an Off Site Backup Appliance a while back using an off the shelf Linux Distribution and familiar x86 Hardware using the Intel Atom. We managed to get the OS setup on a small flashrom and rather than the normal C approach which most texts and engineers take we used Ruby on Rails which is a modern object oriented language which was much simpler to work with coming from a background where we develop desktop and web apps in .net it was an easier transition. I've thought about making it into a kit or book as an example for other folks to spring board from who have a great idea but, maybe not the inclination to completely dive into the embedded world. Send me a comment if anyone could use such an item.
1 Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Most Recent Customer Reviews


What Other Items Do Customers Buy After Viewing This Item?