Anthony J. Massa

Total Page:16

File Type:pdf, Size:1020Kb

Anthony J. Massa EMBEDDED SOFTWARE DEVELOPMENT WITH ECOS™ Anthony J. Massa EMBEDDED SOFTWARE DEVELOPMENT WITH ECOS Anthony J. Massa PRENTICE HALL PROFESSIONAL TECHNICAL REFERENCE UPPER SADDLE RIVER, NJ 07458 WWW.PHPTR.COM WWW.PHPTR.COM/MASSA/ Library of Congress Cataloging-in-Publication Data Massa, Anthony J. Embedded software development with eCos / Anthony J. Massa p. cm.--(Bruce Perens' Open source series) ISBN 0-13-035473-2 1. Embedded computer systems--Programming. 2. Application software--Development. 3. Real-time data processing. I. Title. II. Series. QA76.6 .M364317 2002 005.26--dc21 2002035507 Editorial/production supervision: Techne Group Cover design director: Jerry Votta Cover design: Anthony Gemmellaro Art director: Gail Cocker-Bogusz Interior design: Meg Van Arsdale Manufacturing buyer: Maura Zaldivar Editor-in-Chief: Mark L. Taub Editorial assistant: Kate Wolf Marketing manager: Bryan Gambrel Full-service production manager: Anne R. Garcia © 2003 Pearson Education, Inc. Publishing as Prentice Hall Professional Technical Reference Upper Saddle River, New Jersey 07458 This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later (the latest version is presently available at <http://www.opencontent.org/openpub/>). Prentice Hall books are widely used by corporations and government agencies for training, marketing, and resale. For information regarding corporate and government bulk discounts please contact: Corporate and Government Sales (800) 382-3419 or [email protected] Other company and product names mentioned herein are the trademarks or registered trademarks of their respective owners. All rights reserved. No part of this book may be reproduced, in any form or by any means, without permission in writing from the publisher. Printed in the United States of America 10 9 8 7 6 5 4 3 2 1 ISBN 0-13-035473-2 Pearson Education LTD. Pearson Education Australia PTY, Limited Pearson Education Singapore, Pte. Ltd. Pearson Education North Asia Ltd. Pearson Education Canada, Ltd. Pearson Educación de Mexico, S.A. de C.V. Pearson Education—Japan Pearson Education Malaysia, Pte. Ltd. This book is dedicated to my girls, Katie and Deanna. You mean the world to me. I love you. CONTENTS Foreword xv Preface xvii Chapter 1 An Introduction to the eCos World 1 1.1 Where It All Started—Cygnus Solutions 1 1.2 The Origins of eCos 2 1.2.1 In a Word: Configurability 3 1.2.2 The eCos Configuration Method 4 1.2.3 eCos Core Components 5 1.2.4 Processor and Evaluation Platform Support 6 1.2.5 eCos Support 6 1.3 Architecture Overview 8 1.3.1 eCos Terminology 8 1.3.1.1 Component Framework 8 1.3.1.2 Component Repository 10 1.3.1.3 Configuration Options 13 1.3.1.4 Components and Packages 14 1.3.1.5 Targets 14 1.3.1.6 Templates 15 1.4 Summary 16 vii viii Contents Chapter 2 The Hardware Abstraction Layer 17 2.1 Overview 17 2.1.1 HAL Directory Structure 19 2.1.1.1 Example HAL Function Call Trace 22 2.1.2 HAL Macro Definitions 23 2.1.3 HAL Configuration 24 2.1.3.1 Common Configuration Components 25 2.1.3.2 Architecture-Specific Configuration Components 25 2.1.4 HAL Startup 26 2.2 Summary 29 Chapter 3 Exceptions and Interrupts 31 3.1 Exceptions 31 3.1.1 HAL and Kernel Exception Handling 32 3.1.2 Application Exception Handling 38 3.2 Interrupts 40 3.2.1 eCos Interrupt Model 40 3.2.1.1 Interrupt and Scheduler Synchronization 41 3.2.2 Interrupt Configuration 42 3.2.3 Interrupt Handling 44 3.2.4 Interrupt Control 50 3.2.4.1 Interrupt Service Routine Management 51 3.2.4.2 Interrupt State Management 53 3.2.4.3 Interrupt Controller Management 54 3.3 Summary 58 Chapter 4 Virtual Vectors 59 4.1 Virtual Vectors 59 4.1.1 Virtual Vector Configuration 63 4.1.2 Virtual Vector Table Initialization 64 4.1.2.1 Communication Channels 67 4.2 Summary 71 Chapter 5 The Kernel 73 5.1 The Kernel 73 5.1.1 Kernel Directory Structure 74 5.1.2 Kernel Startup 75 5.1.3 The Scheduler 77 5.1.3.1 Multilevel Queue Scheduler 79 Contents ix 5.1.3.2 Bitmap Scheduler 81 5.1.3.3 Priority Levels 81 5.1.3.4 Scheduler Configuration 83 5.2 Summary 84 Chapter 6 Threads and Synchronization Mechanisms 85 6.1 Threads 85 6.1.1 Thread Stacks and Stack Sizes 94 6.2 Synchronization Mechanisms 95 6.2.1 Mutexes 95 6.2.2 Semaphores 101 6.2.3 Condition Variables 105 6.2.4 Flags 110 6.2.5 Message Boxes 113 6.2.6 Spinlocks 118 6.3 Summary 120 Chapter 7 Other eCos Architecture Components 121 7.1 Counters, Clocks, Alarms, and Timers 121 7.1.1 Counters 125 7.1.2 Clocks 129 7.1.3 Alarms 130 7.1.4 Timers 133 7.2 Asserts and Tracing 134 7.3 ISO C and Math Libraries 138 7.4 I/O Control System 140 7.4.1 I/O Sub-System 142 7.4.2 Device Drivers 146 7.5 Summary 148 Chapter 8 Additional Functionality and Third-Party Contributions 149 8.1 Compatibility Layers 150 8.1.1 POSIX 150 8.1.1.1 EL/IX 151 8.1.2 µITRON 152 8.2 ROM Monitors 152 8.2.1 CygMon 153 8.2.2 RedBoot 153 8.2.3 GDB Stub 154 x Contents 8.3 File Systems 155 8.3.1 ROM File System 157 8.3.2 RAM File System 158 8.3.3 Journalling Flash File System Version 2 160 8.4 PCI Support 160 8.4.1 PCI Library API 161 8.5 USB Support 165 8.6 Networking Support 167 8.6.1 OpenBSD 168 8.6.2 FreeBSD 169 8.6.3 lwIP 170 8.6.4 Networking Threads 170 8.6.5 Networking Configuration 171 8.6.6 Networking Tests 176 8.6.7 DNS Support 178 8.7 SNMP Support 179 8.8 The GoAhead Embedded WebServer 180 8.9 Symmetric Multi-Processing Support 182 8.10 Additional Features 183 8.11 Summary 184 Chapter 9 The RedBoot ROM Monitor 185 9.1 Overview 185 9.2 RedBoot Directory Structure 187 9.3 Installation and Configuration 188 9.3.1 RedBoot Configuration 189 9.3.2 Host Configuration 193 9.3.2.1 Serial 193 9.3.2.2 Ethernet 194 9.4 User Interface and Command Set 195 9.4.1 RedBoot Commands 196 9.4.1.1 Boot Scripting 204 9.5 Summary 206 Chapter 10 The Host Development Platform 207 10.1 Overview 207 10.2 Configuring the Windows Host 209 10.2.1 Installing the Cygwin Native Tools 210 Contents xi 10.2.1.1 Cygwin Tools Directory Structure 217 10.2.1.2 Upgrading the Cygwin Tools 219 10.2.2 Installing the Platform-Specific Cross-Development Tools 220 10.2.3 Installing the eCos Development Kit 223 10.2.3.1 eCos Development Kit Directory Structure 229 10.2.4 Accessing the Online eCos Source Code Repository 229 10.2.4.1 Installing WinCVS 230 10.2.4.2 Setting WinCVS Preferences 235 10.2.4.3 WinCVS Update Commands 236 10.3 Summary 238 Chapter 11 The eCos Toolset 239 11.1 Packages 239 11.1.1 Package Directory Structure 240 11.1.2 The Component Definition Language Overview 243 11.1.2.1 CDL Script Files 243 11.2 The Configuration Tool 248 11.2.1 Screen Layout 248 11.2.1.1 Saving Configurations 251 11.2.1.2 Importing and Exporting Configurations 253 11.2.1.3 Configuration Window 254 11.2.1.4 Conflicts Window 255 11.2.1.5 Properties Window 256 11.2.1.6 Short Description Window 256 11.2.1.7 Output Window 256 11.2.1.8 Memory Layout Window 256 11.2.1.9 Memory Layout Manipulation 257 11.2.2 eCos Repository Database 264 11.2.3 Graphical Representation of CDL Script Files 266 11.2.4 Using Templates 270 11.2.4.1 Conflicts and Resolutions 272 11.2.5 Package Control 274 11.3 Other eCos Tools 274 11.3.1 The Package Administration Tool 275 11.3.2 The Command-Line Configuration Tool 277 11.4 Building the eCos Tools 277 11.5 Additional Open-Source Tools 277 11.5.1 Source-Navigator 278 xii Contents 11.5.2 Splint 279 11.6 Summary 280 Chapter 12 An Example Application Using eCos 281 12.1 The eCos Build Process 281 12.1.1 A Closer Look 282 12.2 Examples Overview 285 12.2.1 Development Hardware Setup 286 12.2.2 eCos Tools 288 12.3 RedBoot 288 12.3.1 Building RedBoot 288 12.3.2 Installing RedBoot 292 12.3.3 Booting RedBoot 293 12.4 eCos 295 12.4.1 Building eCos 295 12.5 Application 298 12.5.1 Building the Application 299 12.5.2 Loading the Application 303 12.5.3 Debugging the Application 305 12.5.3.1 Using the GDB Command-Line Interface 309 12.6 The eCos Tests 310 12.7 Simulators 311 12.8 Summary 313 Chapter 13 Porting eCos 315 13.1 Overview of Porting 315 13.2 A Platform Porting Example 317 13.2.1 PowerPC HAL Directory and File Structure 320 13.2.2 Porting Hints 334 13.3 Summary 335 Appendix A Supported Processors and Evaluation Platforms 337 Appendix B eCos License 345 B.1 eCos License 345 B.2 GNU General Public License 346 B.2.1 Version 2, June 1991 346 B.2.2 Preamble 346 B.2.3 How to Apply These Terms to Your New Programs 352 Contents xiii Appendix C Cygwin Tools Upgrade Procedure 355 Appendix D Building the GNU Cross-Development Tools 361 About the Author 369 Index 371 About the CD-ROM 392 FOREWORD n 1997, there were over 100 commercially supported embedded operating systems, none of Iwhich had more than a minority share of the overall embedded OS market, not to mention countless thousands of others developed for specific projects (cell phones, radar arrays, net- working equipment, etc.) that had no application developer base beyond that specific project.
Recommended publications
  • The GNU Configure and Build System
    The GNU configure and build system Ian Lance Taylor Copyright c 1998 Cygnus Solutions Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the con- ditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this manual into another lan- guage, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the Free Software Foundation. i Table of Contents 1 Introduction ............................... 1 1.1 Goals................................................... 1 1.2 Tools ................................................... 1 1.3 History ................................................. 1 1.4 Building ................................................ 2 2 Getting Started............................ 3 2.1 Write configure.in ....................................... 4 2.2 Write Makefile.am ....................................... 6 2.3 Write acconfig.h......................................... 7 2.4 Generate files ........................................... 8 2.5 Example................................................ 8 2.5.1 First Try....................................... 9 2.5.2 Second Try.................................... 10 2.5.3 Third
    [Show full text]
  • Cygwin User's Guide
    Cygwin User’s Guide Cygwin User’s Guide ii Copyright © Cygwin authors Permission is granted to make and distribute verbatim copies of this documentation provided the copyright notice and this per- mission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this documentation under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this documentation into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the Free Software Foundation. Cygwin User’s Guide iii Contents 1 Cygwin Overview 1 1.1 What is it? . .1 1.2 Quick Start Guide for those more experienced with Windows . .1 1.3 Quick Start Guide for those more experienced with UNIX . .1 1.4 Are the Cygwin tools free software? . .2 1.5 A brief history of the Cygwin project . .2 1.6 Highlights of Cygwin Functionality . .3 1.6.1 Introduction . .3 1.6.2 Permissions and Security . .3 1.6.3 File Access . .3 1.6.4 Text Mode vs. Binary Mode . .4 1.6.5 ANSI C Library . .4 1.6.6 Process Creation . .5 1.6.6.1 Problems with process creation . .5 1.6.7 Signals . .6 1.6.8 Sockets . .6 1.6.9 Select . .7 1.7 What’s new and what changed in Cygwin . .7 1.7.1 What’s new and what changed in 3.2 .
    [Show full text]
  • Integrating the GNU Debugger with Cycle Accurate Models a Case Study Using a Verilator Systemc Model of the Openrisc 1000
    Integrating the GNU Debugger with Cycle Accurate Models A Case Study using a Verilator SystemC Model of the OpenRISC 1000 Jeremy Bennett Embecosm Application Note 7. Issue 1 Published March 2009 Legal Notice This work is licensed under the Creative Commons Attribution 2.0 UK: England & Wales License. To view a copy of this license, visit http://creativecommons.org/licenses/by/2.0/uk/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA. This license means you are free: • to copy, distribute, display, and perform the work • to make derivative works under the following conditions: • Attribution. You must give the original author, Jeremy Bennett of Embecosm (www.embecosm.com), credit; • For any reuse or distribution, you must make clear to others the license terms of this work; • Any of these conditions can be waived if you get permission from the copyright holder, Embecosm; and • Nothing in this license impairs or restricts the author's moral rights. The software for the SystemC cycle accurate model written by Embecosm and used in this document is licensed under the GNU General Public License (GNU General Public License). For detailed licensing information see the file COPYING in the source code. Embecosm is the business name of Embecosm Limited, a private limited company registered in England and Wales. Registration number 6577021. ii Copyright © 2009 Embecosm Limited Table of Contents 1. Introduction ................................................................................................................ 1 1.1. Why Use Cycle Accurate Modeling .................................................................... 1 1.2. Target Audience ................................................................................................ 1 1.3. Open Source ..................................................................................................... 2 1.4. Further Sources of Information ......................................................................... 2 1.4.1.
    [Show full text]
  • Jaké Je to Vyvíjet Prekladace?
    Jak to zacalo?ˇ What’s GNU? Gnu’s Not Unix! AMD64 port a SUSE GCC dnes Jaké je to vyvíjet prekladaˇ ce?ˇ Jan Hubickaˇ Katedra aplikované matematiky Filosofické problémy informatiky Jak to zacalo?ˇ What’s GNU? Gnu’s Not Unix! AMD64 port a SUSE GCC dnes Co je GCC GNU Compiler collection: • Prekladaˇ cˇ C, C++, obj-C, obj-C++, Fortranu, Ady, Go,. • Podporující více než 50 procesor˚ua nekolikˇ set target˚u(kombinací procesor+OS) • Vyvjený od 80. let jako jeden ze základních balík˚uGNU projektu • První verze vydaná v roce 1987 • Verze 8 vyjde tento týden? • 10m rádek,ˇ cca 100-150 aktivních vývojár˚u,odhademˇ 2000 clovˇ ekoletˇ Hacker na MIT od 1971. V záríˇ 1983 oznamuje GNU operating system. 1984 ochází a venujeˇ se GNU projektu. Zacalˇ vyvíjet základní nástroje Emacs, GCC, GDB, make, . Jak to zacalo?ˇ What’s GNU? Gnu’s Not Unix! AMD64 port a SUSE GCC dnes Richard Mathew Stallman (RMS) vs Xerox 9700 Hacker na MIT od 1971. V záríˇ 1983 oznamuje GNU operating system. 1984 ochází a venujeˇ se GNU projektu. Zacalˇ vyvíjet základní nástroje Emacs, GCC, GDB, make, . Jak to zacalo?ˇ What’s GNU? Gnu’s Not Unix! AMD64 port a SUSE GCC dnes Richard Mathew Stallman (RMS) vs Xerox 9700 Jak to zacalo?ˇ What’s GNU? Gnu’s Not Unix! AMD64 port a SUSE GCC dnes Richard Mathew Stallman (RMS) vs Xerox 9700 Hacker na MIT od 1971. V záríˇ 1983 oznamuje GNU operating system. 1984 ochází a venujeˇ se GNU projektu. Zacalˇ vyvíjet základní nástroje Emacs, GCC, GDB, make, .
    [Show full text]
  • GNU / Linux and Free Software
    GNU / Linux and Free Software GNU / Linux and Free Software An introduction Michael Opdenacker Free Electrons http://free-electrons.com Created with OpenOffice.org 2.x GNU / Linux and Free Software © Copyright 2004-2007, Free Electrons Creative Commons Attribution-ShareAlike 2.5 license http://free-electrons.com Sep 15, 2009 1 Rights to copy Attribution ± ShareAlike 2.5 © Copyright 2004-2007 You are free Free Electrons to copy, distribute, display, and perform the work [email protected] to make derivative works to make commercial use of the work Document sources, updates and translations: Under the following conditions http://free-electrons.com/articles/freesw Attribution. You must give the original author credit. Corrections, suggestions, contributions and Share Alike. If you alter, transform, or build upon this work, you may distribute the resulting work only under a license translations are welcome! identical to this one. For any reuse or distribution, you must make clear to others the license terms of this work. Any of these conditions can be waived if you get permission from the copyright holder. Your fair use and other rights are in no way affected by the above. License text: http://creativecommons.org/licenses/by-sa/2.5/legalcode GNU / Linux and Free Software © Copyright 2004-2007, Free Electrons Creative Commons Attribution-ShareAlike 2.5 license http://free-electrons.com Sep 15, 2009 2 Contents Unix and its history Free Software licenses and legal issues Free operating systems Successful project highlights Free Software
    [Show full text]
  • Free As in Freedom (2.0): Richard Stallman and the Free Software Revolution
    Free as in Freedom (2.0): Richard Stallman and the Free Software Revolution Sam Williams Second edition revisions by Richard M. Stallman i This is Free as in Freedom 2.0: Richard Stallman and the Free Soft- ware Revolution, a revision of Free as in Freedom: Richard Stallman's Crusade for Free Software. Copyright c 2002, 2010 Sam Williams Copyright c 2010 Richard M. Stallman Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled \GNU Free Documentation License." Published by the Free Software Foundation 51 Franklin St., Fifth Floor Boston, MA 02110-1335 USA ISBN: 9780983159216 The cover photograph of Richard Stallman is by Peter Hinely. The PDP-10 photograph in Chapter 7 is by Rodney Brooks. The photo- graph of St. IGNUcius in Chapter 8 is by Stian Eikeland. Contents Foreword by Richard M. Stallmanv Preface by Sam Williams vii 1 For Want of a Printer1 2 2001: A Hacker's Odyssey 13 3 A Portrait of the Hacker as a Young Man 25 4 Impeach God 37 5 Puddle of Freedom 59 6 The Emacs Commune 77 7 A Stark Moral Choice 89 8 St. Ignucius 109 9 The GNU General Public License 123 10 GNU/Linux 145 iii iv CONTENTS 11 Open Source 159 12 A Brief Journey through Hacker Hell 175 13 Continuing the Fight 181 Epilogue from Sam Williams: Crushing Loneliness 193 Appendix A { Hack, Hackers, and Hacking 209 Appendix B { GNU Free Documentation License 217 Foreword by Richard M.
    [Show full text]
  • Anthony J. Massa
    EMBEDDED SOFTWARE DEVELOPMENT WITH ECOS™ Anthony J. Massa EMBEDDED SOFTWARE DEVELOPMENT WITH ECOS Anthony J. Massa PRENTICE HALL PROFESSIONAL TECHNICAL REFERENCE UPPER SADDLE RIVER, NJ 07458 WWW.PHPTR.COM WWW.PHPTR.COM/MASSA/ Library of Congress Cataloging-in-Publication Data Massa, Anthony J. Embedded software development with eCos / Anthony J. Massa p. cm.--(Bruce Perens' Open source series) ISBN 0-13-035473-2 1. Embedded computer systems--Programming. 2. Application software--Development. 3. Real-time data processing. I. Title. II. Series. QA76.6 .M364317 2002 005.26--dc21 2002035507 Editorial/production supervision: Techne Group Cover design director: Jerry Votta Cover design: Anthony Gemmellaro Art director: Gail Cocker-Bogusz Interior design: Meg Van Arsdale Manufacturing buyer: Maura Zaldivar Editor-in-Chief: Mark L. Taub Editorial assistant: Kate Wolf Marketing manager: Bryan Gambrel Full-service production manager: Anne R. Garcia © 2003 Pearson Education, Inc. Publishing as Prentice Hall Professional Technical Reference Upper Saddle River, New Jersey 07458 This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later (the latest version is presently available at <http://www.opencontent.org/openpub/>). Prentice Hall books are widely used by corporations and government agencies for training, marketing, and resale. For information regarding corporate and government bulk discounts please contact: Corporate and Government Sales (800) 382-3419 or [email protected] Other company and product names mentioned herein are the trademarks or registered trademarks of their respective owners. All rights reserved. No part of this book may be reproduced, in any form or by any means, without permission in writing from the publisher.
    [Show full text]
  • Embedded Configurable Operating System
    eCos Embedded Configurable Operating System Embedded Track – FOSDEM 2003 Nick Garnett – Copyright © 2003 eCosCentric Features • Open Source • Royalty Free • Highly Configurable • Very Portable • Real Time • Small Footprint • Standards • Networking Embedded Track – FOSDEM 2003 Nick Garnett – Copyright © 2003 eCosCentric History • Cygnus Solutions – 1997 Project started – 1998 First release • Red Hat – 1999 Cygnus acquired by Red Hat – 2000 RedBoot added – 2002 Red Hat lay off eCos team • eCosCentric – 2002 eCos team form eCosCentric Embedded Track – FOSDEM 2003 Nick Garnett – Copyright © 2003 eCosCentric Licensing • RHEPL – Red Hat eCos Public License – Allowed proprietary code to be linked with eCos – Required all changes to be returned to Red Hat • GPL + exception – Standard GPL – Exception allows non-GPL code to be linked with eCos – No change requirement – No “plain” GPL code allowed in eCos Embedded Track – FOSDEM 2003 Nick Garnett – Copyright © 2003 eCosCentric Configuration • Packages – Separate package for each subsystem – Independently selectable – Self describing • Component Description Language – Describes features provided by package – Describes features required by package • Inference Engine – Automatic resolution of constraints Embedded Track – FOSDEM 2003 Nick Garnett – Copyright © 2003 eCosCentric Configuration Tools • GUI Configuration Tool – wxWindows based – Linux and Windows NT/2000/XP – Includes build and test systems – Large and small scale configuration • Command line Tool – Linux and Windows (Cygwin) – Automation
    [Show full text]
  • A Highly Configurable Operating System - Ecos
    A highly configurable operating system - eCos Shilei He Department of computer science and engineering Aalto University Helsinki, Finland [email protected] Abstract— This paper introduces an embedded maintainer of eCos and laid off the developing team. configurable operating system – eCos. It describes the Nevertheless, some of the laid off employees continued the background and functionality of eCos; and it gives a deep work of eCos and made their business by providing services discussion of its configuration method, which is the key for eCos. According to the request from eCos development innovation technology and making eCos distinguish from other community, Red Hat agreed to transfer the ownership and operating systems. Moreover, it compares the memory maintenance of eCos to Free Software Foundation [6]. With requirement and kernel performance between eCos and the feature of open sourse, eCos had to be royalty-free, in traditional operating systems. other words, eCos was abled to be developed with no initial cost which reduced the costs for embedded products [3]. Keywords—eCos; Real Time Operating Systems; Open Source Software; High configurable RTOS III. ECOS ARCHITECTURE I. INTRODUCTION eCos (embedded configurable operating system) [4] is an With the development of science and technology, open source real-time operating system intended for embedded operating systems are widely used in many fields, embedded applications, and it is supported by the GNU open source development tools. eCos made the innovation on its such as military, industry and electric equipment. This paper highly configurable system, which allows the developers to introduces an embedded configurable operating system – create customized applications with precise requirements.
    [Show full text]
  • Selected Essays of Richard M. Stallman
    Free Software, Free Society: Selected Essays of Richard M. Stallman Introduction by Lawrence Lessig Edited by Joshua Gay GNU Press www.gnupress.org Free Software Foundation Boston, MA USA First printing, first edition. Copyright © 2002 Free Software Foundation, Inc. ISBN 1-882114-98-1 Published by the Free Software Foundation 59 Temple Place Boston, MA Tel: 1-617-542-5942 Fax: 1-617-542-2652 Email: [email protected] Web: www.gnu.org GNU Press is an imprint of the FSF. Email: [email protected] Web: www.gnupress.org Please contact the GNU Press for information regarding bulk purchases for class- room or user group use, reselling, or any other questions or comments. Original artwork by Etienne Suvasa. Cover design by Jonathan Richard. Permission is granted to make and distribute verbatim copies of this book provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute translations of this book into another language, from the original English, with respect to the conditions on distribution of modified versions above, provided that it has been approved by the Free Software Foundation. i Short Contents Editor’s Note................................................ 1 A Note on Software .......................................... 3 Topic Guide ................................................ 7 Introduction ............................................... 11 Section One ............................................... 15 1 The GNU Project ....................................... 17 2 The GNU Manifesto ..................................... 33 3 Free Software Definition ................................. 43 4 Why Software Should Not Have Owners ..................... 47 5 What’s in a Name? ...................................... 53 6 Why “Free Software” is Better than “Open Source” ............ 57 7 Releasing Free Software if You Work at a University ........... 63 8 Selling Free Software ...................................
    [Show full text]
  • The Definitive Guide to GCC
    The Definitive Guide to GCC KURT WALL AND WILLIAM VON HAGEN APress Media, LLC The Definitive Guide to GCC Copyright ©2004 by Kurt Wall and William von Hagen Originally published by Apress in 2004 All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher. ISBN 978-1-59059-109-3 ISBN 978-1-4302-0704-7 (eBook) DOI 10.1007/978-1-4302-0704-7 Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. Technical Reviewer: Gene Sally Editorial Board: Steve Anglin, Dan Appleman, Gary Cornell, James Cox, Tony Davis, John Franklin, Chris Mills, Steven Rycroft, Dominic Shakeshaft, Julian Skinner, Martin Streicher, Jim Sumser, Karen Watterson, Gavin Wray, John Zukowski Assistant Publisher: Grace Wong Project Manager: Sofia Marchant Copy Editor: Ami Knox Production Manager: Kari Brooks Production Editor: Janet Vaii Proofreader: Elizabeth Berry Compositor and Artist: Kinetic Publishing Services, llC Indexer: Valerie Perry Cover Designer: Kurt Krames Manufacturing Manager: Tom Debolski The information in this book is distributed on an "as is" hasis, without warranty. Although every precaution bas been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work.
    [Show full text]
  • Gdb Internals a Guide to the Internals of the GNU Debugger
    gdb Internals A guide to the internals of the GNU debugger John Gilmore Cygnus Solutions Second Edition: Stan Shebs Cygnus Solutions Cygnus Solutions Revision TEXinfo 2007-09-03.05 Copyright c 1990-2013 Free Software Foundation, Inc. Contributed by Cygnus Solutions. Written by John Gilmore. Second Edition by Stan Shebs. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled \GNU Free Documentation License". i Table of Contents Scope of this Document :::::::::::::::::::::::::::: 1 1 Summary :::::::::::::::::::::::::::::::::::::::: 1 1.1 Requirements :::::::::::::::::::::::::::::::::::::::::::::::::: 1 1.2 Contributors ::::::::::::::::::::::::::::::::::::::::::::::::::: 1 2 Overall Structure ::::::::::::::::::::::::::::::: 2 2.1 The Symbol Side ::::::::::::::::::::::::::::::::::::::::::::::: 2 2.2 The Target Side :::::::::::::::::::::::::::::::::::::::::::::::: 2 2.3 Configurations ::::::::::::::::::::::::::::::::::::::::::::::::: 2 2.4 Source Tree Structure :::::::::::::::::::::::::::::::::::::::::: 3 3 Algorithms :::::::::::::::::::::::::::::::::::::: 4 3.1 Prologue Analysis :::::::::::::::::::::::::::::::::::::::::::::: 4 3.2 Breakpoint Handling ::::::::::::::::::::::::::::::::::::::::::: 6 3.3 Single Stepping ::::::::::::::::::::::::::::::::::::::::::::::::
    [Show full text]