Home > Store > Operating Systems, Server

Embedded Linux: Hardware, Software, and Interfacing

Register your product to gain access to bonus material or receive a coupon.

Embedded Linux: Hardware, Software, and Interfacing

Best Value Purchase

Book + eBook Bundle

  • Your Price: $75.59
  • List Price: $125.98
  • About Adobe DRM eBooks
  • This eBook requires the free Adobe® Digital Editions software.

    Before downloading this DRM-encrypted PDF, be sure to:


    • Install the free Adobe Digital Editions software on your machine. Adobe Digital Editions only works on Macintosh and Windows, and requires the Adobe Flash Player. Please see the official system requirements.
    • Authorize your copy of Adobe Digital Editions using your Adobe ID (select AdobeID as the eBook vendor). If you don't already have an Adobe ID, you can create one here.

More Purchase Options

Book

  • Your Price: $55.99
  • List Price: $69.99
  • Usually ships in 24 hours.

eBook (Adobe DRM)

  • Your Price: $44.79
  • List Price: $55.99
  • About Adobe DRM eBooks
  • This eBook requires the free Adobe® Digital Editions software.

    Before downloading this DRM-encrypted PDF, be sure to:


    • Install the free Adobe Digital Editions software on your machine. Adobe Digital Editions only works on Macintosh and Windows, and requires the Adobe Flash Player. Please see the official system requirements.
    • Authorize your copy of Adobe Digital Editions using your Adobe ID (select AdobeID as the eBook vendor). If you don't already have an Adobe ID, you can create one here.

Description

  • Copyright 2002
  • Dimensions: 7-3/8x9-1/8
  • Pages: 432
  • Edition: 1st
  • Book
  • ISBN-10: 0-672-32226-9
  • ISBN-13: 978-0-672-32226-6
  • eBook (Adobe DRM)
  • ISBN-10: 0-7686-6226-5
  • ISBN-13: 978-0-7686-6226-9

Embedded Linux will help the user: select an Embedded Linux platform based on hardware requirements; build and boot a custom Linux kernel for the platform; remote debug programs running on the platform using GNU tools; connect data acquisition and control electronics/peripherals using the platform's serial, parallel, USB, I/O port and I2C interfaces; interface the peripherals to the kernel and applications using modules; collect, control, store and present data via open source protocols and applications; and analyze Embedded Linux vendor product offerings.

Downloads

Downloads

The scripts for the examples developed in the book - 42 kb -- scripts.tar.gz

Extras

Related Article

Cross-Compile Your C++ Apps with XMingwin

Author's Site

Click below for Web Resources related to this title:
Author Web Site

Sample Content

Online Sample Chapters

Selecting a Platform and Installing Tool Sets

Selecting a Platform and Installing Tool Sets for Embedded Linux

Table of Contents



Introduction.

I. GETTING STARTED.

1. Introducing Embedded Linux.

Why Linux, Why Now?

What Is an Embedded System?

What Does Real-Time Mean?

Implications of Open Source.

Summary.

Additional Reading.

2. System Architecture.

Introducing Project Trailblazer.

The Silverjack Resort Layout.

Project Trailblazer Requirements.

Safety Requirements.

Operations Requirements.

Supplier Requirements.

The Project Trailblazer System Architecture.

Summary.

3. Selecting a Platform and Installing Tool Sets.

Sources of Information.

The Project Trailblazer Strategic Direction.

Building tbdev1, the Embedded Linux Development Workstation.

Getting Started.

Installing the Linux Operating System.

Installing the Native GNU Tool Chain and Other Applications.

Building the GNU Tool Chain for Cross-Compiling.

Summary.

Additional Reading.

4. Booting Linux.

The Target PBRs.

The Linux Boot Process.

The Linux root Filesystem.

Required Files for init.

Required Files for bash.

The root Filesystem Binary Files: Compile or Download?

Creating the root Filesystem.

Deciding Which Package to Use.

The Process for Building the root Filesystem.

Running buildrootfilesystem.

Installing the TFTP Server.

Installing minicom.

Booting the Embedded Planet RPX-CLLF.

Embedded Planet RPX-CLLF Target PBR Review.

Booting the Brightstar Engineering MediaEngine.

Brightstar Engineering MediaEngine Target PBR Review.

Booting the Tri-M MZ104 and the COTS PC with a Flash IDE Drive.

Flash IDE Technology.

Preparing the Tri-M MZ104 and the COTS PC.

Booting the Tri-M MZ104 Target.

Tri-M MZ104 Target Platform Boot Requirements Review.

Boot Comparison.

Summary.

Additional Reading.

5. Debugging.

Introducing gdb.

Local Debugging.

Remote Debugging.

Network-Mounting the root Filesystem.

Configuring the NFS Server.

Configuring the Target Kernels.

Summary.

Additional Reading.

II. INTERFACING.

6. Asynchronous Serial Communication Interfacing.

The Project Trailblazer Asynchronous Serial Hardware Development Environment.

Target EIA/TIA-232-E Compliance.

Linux Serial Communications.

Setting the Serial Port Control Signals with setSerialSignal.

Reading the Serial Port Control Signals with getSerialSignal.

Providing Serial Communication for bash Scripts, Using querySerial.

Summary.

Additional Reading.

7. Parallel Port Interfacing.

Control Using the Parallel Port.

Standard Parallel Port Control with Port I/O.

Monitoring Lift Operation Using Port I/O.

Snow-Making Control Using Port I/O.

Standard Parallel Port Control Using ppdev.

Developing a Custom Device Driver.

Understanding helloworld_proc_module.

Compiling, Inserting, and Testing helloworld_proc_module on the MediaEngine.

Standard Parallel Port Control Using the Custom Device Driver liftmon_snowcon.

Enhancements to helloworld_proc_module to Create liftmon_snowcon.

Compiling, Inserting, and Testing liftmon_snowcon on the MZ104.

Summary.

Additional Reading.

8. USB Interfacing.

Learning About USB.

Project Trailblazer USB Hardware.

USB Audio: Yamaha YST-MS35D USB Speakers.

USB Image Capture: Kensington VideoCAM Super-VGA PC Camera.

USB Mass Storage: SanDisk USB SmartMedia Card Reader.

Summary.

Additional Reading.

9. Memory I/O Interfacing.

The Hardware Design Process.

Developing Lift Monitoring and Snow-Making Control for the MediaEngine.

Designing the External Interface Hardware for the MediaEngine.

Finding Space in the Memory Map for the MediaEngine.

Finding the Register Base Address for the MediaEngine.

Configuring the Memory Controller for the MediaEngine.

Assigning the Output Module Enable Signal for the MediaEngine.

Configuring the I/O Port Controller for the MediaEngine.

Writing the helloworldbit Testing Device Driver for the MediaEngine.

Writing the liftmon_snowcon Device Driver for the MediaEngine.

Developing Lift Monitoring and Snow-Making Control for the RPX-CLLF.

Designing the External Interface Hardware for the RPX-CLLF.

Finding Space in the Memory Map for the RPX-CLLF.

Finding the Register Base Address for the RPX-CLLF.

Configuring the Memory Controller for the RPX-CLLF.

Assigning the Output Module Enable Signal for the RPX-CLLF.

Configuring the I/O Port Controller for the RPX-CLLF.

Writing the helloworldbit Testing Device Driver for the RPX-CLLF.

Writing the liftmon_snowcon Device Driver for the RPX-CLLF.

Summary.

Additional Reading.

10. Synchronous Serial Communication Interfacing.

Temperature Sensing and Display.

SPI Communication and the LM70.

Connecting the LM70 to the x86 Parallel Printer Port.

Connecting the LM70 to the MediaEngine.

I2C Communication with the Philips Semiconductor SAA1064.

Connecting the SAA1064 to the x86 Parallel Printer Port.

Connecting the SAA1064 to the RPX-CLLF.

Summary.

Additional Reading.

11. Using Interrupts For Timing.

Linux Timing Sources.

Measuring Interrupt Latency.

Measuring Interrupt Latency on the MZ104.

Measuring Interrupt Latency on the MediaEngine.

Measuring Interrupt Latency on the RPX-CLLF.

Interrupt Latency Test Summary.

Implementing the Race Timer.

Race Timer Interrupt Processing Using Tasklets.

Race Timer Status Display Using System Timers.

Summary.

Additional Reading.

12. System Integration.

Integration Overview.

Installing the System Integration Applications.

Creating and Testing the Project Trailblazer Database.

Developing the Target and CGI Integration Scripts.

Collecting and Distributing Temperature Data.

Collecting and Distributing Image Data.

Collecting Guest Pass Identification and Allowing Lift Access.

Summary.

Additional Reading.

13. Final Thoughts.

GUI Development.

Real-time Capabilities.

The Embedded Linux Vendor Offerings.

Project Trailblazer Hardware.

Summary.

Additional Reading.

Index. 0672322269T03282002

Preface

This is an exciting time. The proliferation of Internet technology has transformed our concept of information. 24 hours per day, people rely on network devices for business and personal use. Over time, this dependence will grow further. Today's network devices, such as servers, routers, and desktop computers, form the Internet's infrastructure. Tomorrow's devices will control your home's temperature, maintain inventory levels at your business, and monitor automobile traffic patterns. Only a handful of the billions of processors produced each year go into desktop or server computers. The remaining processors monitor and control other facets of the world.

Individuals and businesses want smart, network-connected, devices to improve their lives, their efficiency, and their bottom dollar. These devices must be simple to operate, reliable, and inexpensive. This is where Linux comes in. Advances in technology accompanied by competitive pricing allow Linux to move from the desktop and server environment to embedded devices. Linux offers reliability, features, open-source code, and a proven track record; these features make it perfectly suited for embedded system designs. In this book, you will find information to create an embedded Linux foundation. You can then extend this foundation in your own designs.

Benefits of This Book

When I first started researching material for this book, I assumed that online embedded Linux information was like other Linux information--plentiful and well documented. I quickly discovered that my assumption was wrong. I found embedded Linux documentation to be sparse, scattered, incomplete, and sometimes dated. This was discouraging and invigorating at the same time. Although I worried about being able to find adequate information, I was further convinced of the need for this book. People are designing embedded products with Linux, so the information and knowledge are out there; it just hasn't all been in one place until now.

As an instructor, I have determined that students best understand and retain theoretical concepts and ideas when accompanied by examples. When students see a concept in action--whether it is a robotic arm movement, a voltmeter reading, or an oscilloscope waveform--they're most likely to later apply that concept to solve their own problems. That's why this book is full of step-by-step examples. You will learn through the example and be able to apply that knowledge to your own designs.

What This Book Covers

This book includes a complete series of real-world interfacing examples designed to introduce embedded Linux from hardware and software perspectives. After you create an embedded Linux development environment, you will step through hardware and software interfacing examples, using asynchronous serial communication, the PC parallel port, USB, memory I/O, synchronous serial communication, and interrupts. All interfacing examples are then tied together using system integration. All this material is presented by using a winter resort automation project called Project Trailblazer. You can find the book's source code and scripts at www.embeddedlinuxinterfacing.com.

The following text briefly summarizes each chapter.

Chapter 1, "Introducing Embedded Linux," describes the brief history of Linux as an embedded operating system and the implications of using open-source software in product design.

Chapter 2, "System Architecture," introduces a winter resort automation project called Project Trailblazer and develops a series of project requirements. Project Trailblazer and its requirements form the basis for the book's interfacing examples.

Chapter 3, "Selecting a Platform and Installing Tool Sets," describes the process of platform selection. Four target boards--which use x86, StrongARM, and PowerPC processors--are selected for Project Trailblazer. This chapter then describes the creation of an embedded Linux development workstation called tbdev1. All the development tools are either installed or compiled, including the cross-compiled tool chain for the StrongARM and PowerPC processors.

Chapter 4, "Booting Linux," describes the Linux boot process, from power-on to the bash prompt. Using a minimum root filesystem, each target board is booted using Linux version 2.4.

Chapter 5, "Debugging," configures gdb and gdbserver for target board debugging over the Ethernet network. A cross-compiled version of helloworld is remotely executed and debugged.

Chapter 6, "Asynchronous Serial Communication Interfacing," describes the Linux serial port device driver for control of port signals and buffers. An RFID tag reader, an LCD display, and control circuitry are interfaced to the Linux serial port.

Chapter 7, "Parallel Port Interfacing," describes interfacing AC circuits to an x86 target board's parallel printer port. A custom device driver called helloworld_proc_module that uses a /proc directory entry is introduced.

Chapter 8, "USB Interfacing," describes connecting a camera and speakers for visual input and audio output to a target board's USB port.

Chapter 9, "Memory I/O Interfacing," describes interfacing AC circuits to the StrongARM and PowerPC target boards' CPU buses.

Chapter 10, "Synchronous Serial Communication Interfacing," describes SPI and I2C connections and communications. A low-cost SPI temperature sensor and I2C LED display driver are interfaced to the target boards.

Chapter 11, "Using Interrupts for Timing," describes Linux timing sources and the measurement of each target board's average interrupt latency. An event timer with 1ms accuracy is developed to measure race times.

Chapter 12, "System Integration," describes the creation of the Project Trailblazer database. Target and server bash scripts are developed, using this database for collection and distribution of temperature, image, and authentication data.

Chapter 13, "Final Thoughts," summarizes the interfacing projects and discusses embedded Linux topics that are not addressed elsewhere in the book.

Who This Book Is For

If you are a hardware engineer, software developer, system integrator, or product manager who's begun exploring embedded Linux for interfacing applications, then this book is for you. The book's comprehensive interfacing examples are simple, requiring only a basic understanding of digital logic design, C and bash programming, and Linux system administration.

Conventions Used in This Book

This book uses several common conventions to help teach embedded Linux.

The typographical conventions used in this book include the following:

  • Commands and computer output appear in a monospaced computer font.
  • Commands you type appear in a boldfaced computer font.
  • Italics are used to introduce you to new terms.

In addition to typographical conventions, this book includes tips, which look like this:

TIP

Information that offers shortcuts and solutions to common problems is highlighted as a tip.


0672322269P03282002

Updates

Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership