Best Value Purchase

Book + eBook Bundle

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.

eBook (Adobe DRM)

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.

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 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:

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