Pro Linux Embedded Systems.pdf

(5895 KB) Pobierz
226203419 UNPDF
THE EXPERT’S VOICE ® IN LINUX
Linux Embedded
Systems
Your complete guide to developing
embedded Linux systems
Gene Sally
Pro
226203419.045.png 226203419.056.png 226203419.061.png 226203419.062.png 226203419.001.png 226203419.002.png 226203419.003.png 226203419.004.png 226203419.005.png 226203419.006.png 226203419.007.png 226203419.008.png 226203419.009.png 226203419.010.png 226203419.011.png 226203419.012.png 226203419.013.png 226203419.014.png 226203419.015.png
 
226203419.016.png
 
226203419.017.png
 
226203419.018.png
 
226203419.019.png
 
226203419.020.png 226203419.021.png 226203419.022.png 226203419.023.png 226203419.024.png 226203419.025.png 226203419.026.png 226203419.027.png 226203419.028.png 226203419.029.png 226203419.030.png
 
226203419.031.png 226203419.032.png 226203419.033.png 226203419.034.png 226203419.035.png 226203419.036.png 226203419.037.png 226203419.038.png 226203419.039.png 226203419.040.png 226203419.041.png 226203419.042.png 226203419.043.png 226203419.044.png 226203419.046.png 226203419.047.png 226203419.048.png 226203419.049.png 226203419.050.png 226203419.051.png 226203419.052.png 226203419.053.png 226203419.054.png
Pro Linux Embedded
Systems
Gene Sally
226203419.055.png
P r o L i n u x E m b e d d ed S y s t e m s
Copyright © 2010 by Gene Sally
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-13 (pbk): 978-1-4302-7227-4
ISBN-13 (electronic): 978-1-4302-7226-7
Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1
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.
President and Publisher: Paul Manning
Lead Editor: Michelle Lowman
Technical Reviewer: William von Hagen
Editorial Board: Clay Andres, Steve Anglin, Mark Beckner, Ewan Buckingham, Gary
Cornell, Jonathan Gennick, Jonathan Hassell, Michelle Lowman, Matthew Moodie,
Duncan Parkes, Jeffrey Pepper, Frank Pohlmann, Douglas Pundick, Ben Renow-Clarke,
Dominic Shakeshaft, Matt Wade, Tom Welsh
Coordinating Editor: Jim Markham
Copy Editor: Tiffany Taylor
Compositor: Bronkella Publishing LLC
Indexer: nSight Indexers
Artist: April Milne
Cover Designer: Anna Ishchenko
Distributed to the book trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street,
For information on translations, please contact Apress directly at 2855 Telegraph Avenue,
Suite 600, Berkeley, CA 94705. Phone 510-549-5930, fax 510-549-5939, e-mail info@apress.com ,
Apress and friends of ED books may be purchased in bulk for academic, corporate, or
promotional use. eBook versions and licenses are also available for most titles. For more
information, reference our Special Bulk Sales–eBook Licensing web page at
The information in this book is distributed on an “as is” basis, without warranty. Although
every precaution has 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.
The source code for this book is available to readers at http://www.apress.com .
ii
226203419.057.png
CONTENTS
For Tammi and our sons, Jonah, Benjamin, and Adam .
iii
226203419.058.png
CONTENTS
Contents at a Glance
C ont ent s at a G lan ce .... .... .... ..... .. ........ ......... ........ ......... ........ ......... .... iv
C ont ent s . ... ..... .... .... .... ..... .... .... .. ......... ........ ......... ........ ......... ........ ..... v
A bout t h e A ut hor ..... .... .... .... ..... .. ........ ......... ......... ........ ......... ........ ... xvi
A bout t h e Te chni cal R evi ewer ... ... ........ ......... ........ ......... ........ ......... .. xvii
A ckno wled gment s .... .... .... ..... .... .. ......... ........ ......... ........ ......... ........ . xvii i
Int r oduct ion ... ..... .... .... ..... .... .... .. ......... ........ ......... ........ ......... ........ ... xix
C hapt er 1 : A bout E m bedd ed L inu x ..... ........ ......... ......... ........ ......... .... 1
C hapt er 2: C onf ig ur ing t h e S of t war e Envir onment ........ ........ ......... ... 25
C hapt er 3 : Tar get Emul at ion and V ir t ual M achin es .... ........ ......... ...... 55
C hapt er 4: S t ar t ing Your P r o ject ..... ........ ......... ......... ........ ......... ..... 63
C hapt er 5 : G et t ing Linu x f or Your B o ar d ... ......... ........ ......... ....... ...... 83
C hapt er 6: C r eat in g a L inu x D ist r ibut io n f r om S cr at ch ....... ......... .... 107
C hapt er 7 : B oot in g t he B oar d .... ...... ......... ........ ......... ........ ......... .. 143
C hapt er 8 : C onf ig ur ing t h e A pp lic at ion D e velop ment E nvir onment . .. 169
C hapt er 9 : A ppli cat io n D ev elo pm ent . ........ ......... ..... ........ ......... ..... 197
C hapt er 10 : D ebugg ing A ppli cat io ns ...... ......... ........ ......... ........ ..... 215
C hapt er 11 : K er nel C onf i gur at i on an d D ev elopme nt . ......... ........ ...... 237
C hapt er 12 : R eal Time . .... .... ..... ...... ......... ........ ......... ........ ......... .. 257
C hapt er 1 3 : U sing O pen S our c e S of t war e P r oject s ....... ......... ........ . 273
C hapt er 14 : B usyB ox . ..... .... .... .. ........ ..... ........ ......... ........ ......... .... 293
C hapt er 1 5 : S yst em D e sign .. .... ...... ......... ............ ........ ......... ........ 309
C hapt er 1 6 : S yst em T uning .. .... .. ......... ........ ......... ....... ..... ........ .... 335
C hapt er 1 7 : D eplo ying A ppl icat ions ......... ........ ......... ........ ......... ... 363
C hapt er 18 : H andl ing F ield U pdat es ........ ........ ......... ........ ......... .... 383
226203419.059.png 226203419.060.png
Zgłoś jeśli naruszono regulamin