ebook img

Linux Kernel in a Nutshell PDF

200 Pages·2007·1.745 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Linux Kernel in a Nutshell

. i&s v> ,- 'If 'J *: ;(cid:127) mi In 5ft] t'S m (cid:127)> , pli M * 5 .r- SU [(cid:127)® wn*i2? 1 f LINUX KERNEL IN A NUTSHELL Desktop Quick Reference O’REILLYB GregKroah-Uartman http://itbookshub.com/ LINUX KERNEL IN A NUTSHELL http://itbookshub.com/ http://www.freepdf-books.com/ Other Linux resources from O’Reilly Related titles Building Embedded Linux Running Linux Systems Understanding Linux Linux Device Drivers Network Internals Linux in a Nutshell Understanding the Linux Linux Pocket Guide Kernel Linux Books linux.oreilly.com is a complete catalog of O’Reilly’s Resource Center booksonLinuxandUnixandrelatedtechnologies,in- cluding sample chapters and code examples. Conferences O’Reilly brings diverse innovators together to nurture the ideas that spark revolutionary industries. We spe- cialize in documenting the latest tools and systems, translatingtheinnovator’sknowledgeintousefulskills forthoseinthetrenches.Visitconferences.oreilly.com for our upcoming events. Safari Bookshelf (safari.oreilly.com) is the premier on- line reference library for programmers and IT professionals. Conduct searches across more than 1,000 books. Subscribers can zero in on answers to time-criticalquestionsinamatterofseconds.Readthe books on your Bookshelf from cover to cover or sim- ply flip to the page you need. Try it today for free. http://itbookshub.com/ http://www.freepdf-books.com/ LINUX KERNEL IN A NUTSHELL Greg Kroah-Hartman Beijing • Cambridge • Farnham • Köln • Paris • Sebastopol • Taipei • Tokyo http://itbookshub.com/ http://www.freepdf-books.com/ Linux Kernel in a Nutshell by Greg Kroah-Hartman Copyright © 2007 O’Reilly Media, Inc. All rights reserved. Printed in the United States of America. PublishedbyO’ReillyMedia,Inc.,1005GravensteinHighwayNorth,Sebastopol,CA95472. O’Reillybooksmaybepurchasedforeducational,business,orsalespromotionaluse.Online editions are also available for most titles (safari.oreilly.com). For more information, contact our corporate/institutional sales department: (800) 998-9938 [email protected]. Editor: Andy Oram Indexer: Ellen Troutman Production Editor: Adam Witwer Cover Designer: Karen Montgomery Copyeditor: Mary Anne Weeks Mayo Interior Designer: David Futato Proofreader: Adam Witwer Illustrators: Robert Romano and Jessamyn Read Printing History: December 2006: First Edition. Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc. TheIn a Nutshell series designations,Linux Kernel in a Nutshell,theimageofcupcoral,andrelatedtradedressaretrademarksofO’ReillyMedia,Inc. This work is licensed under the Creative Commons Attribution-ShareAlike 2.5 License. To viewacopyofthislicense,visithttp://creativecommons.org/licenses/by-sa/2.5/orsendaletter toCreativeCommons,543HowardStreet,5thFloor,SanFrancisco,California,94105,USA. Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsare claimed as trademarks. Where those designations appear in this book, and O’Reilly Media, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps. While every precaution has been taken in the preparation of this book, the publisher and authorassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuse of the information contained herein. This book uses RepKover™, a durable and flexible lay-flat binding. ISBN-10: 0-596-10079-5 ISBN-13: 978-0-596-10079-7 [M] http://itbookshub.com/ http://www.freepdf-books.com/ Chapter1 Table of Contents Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .ix PartI. Building the Kernel 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Using This Book 4 2. Requirements for Building and Using the Kernel . . . . . . . . . . . . . . . . 5 Tools to Build the Kernel 5 Tools to Use the Kernel 6 3. Retrieving the Kernel Source. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 What Tree to Use 12 Where to Find the Kernel Source 13 What to Do with the Source 15 4. Configuring and Building. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Creating a Configuration 17 Modifying the Configuration 18 Building the Kernel 23 Advanced Building Options 26 5. Installing and Booting from a Kernel. . . . . . . . . . . . . . . . . . . . . . . . . . 29 Using a Distribution’s Installation Scripts 30 Installing by Hand 31 Modifying the Bootloader for the New Kernel 32 v http://itbookshub.com/ http://www.freepdf-books.com/ 6. Upgrading a Kernel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Download the New Source 36 Applying the Patch 38 Reconfigure the Kernel 40 Can’t This Be Automated? 42 PartII. Major Customizations 7. Customizing a Kernel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Using a Distribution Kernel 45 Determining the Correct Module from Scratch 52 8. Kernel Configuration Recipes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 Disks 63 Devices 66 CPU 71 Networking 75 Filesystems 80 Security 82 Kernel Debugging 83 PartIII. Kernel Reference 9. Kernel Boot Command-Line Parameter Reference . . . . . . . . . . . . . . 87 Module-Specific Options 87 Console Options 88 Interrupt Options 91 Memory Options 92 Suspend Options 94 CPU Options 95 Scheduler Options 97 Ramdisk Options 98 Root Disk Options 99 Init Options 101 kexec Options 101 RCU Options 102 ACPI Options 103 SCSI Options 106 PCI Options 107 vi | Table of Contents http://itbookshub.com/ http://www.freepdf-books.com/ Plug and Play BIOS Options 109 SELinux Options 110 Network Options 111 Network File System Options 111 Hardware-Specific Options 113 Timer-Specific Options 114 Miscellaneous Options 115 10. Kernel Build Command-Line Reference. . . . . . . . . . . . . . . . . . . . . . . 117 Informational Targets 117 Cleaning Targets 118 Configuration Targets 118 Build Targets 119 Packaging Targets 120 Documentation Targets 121 Architecture-Specific Targets 121 Analysis Targets 121 11. Kernel Configuration Option Reference. . . . . . . . . . . . . . . . . . . . . . . 122 PartIV. Additional Information A. Helpful Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 Managing Your Patches with quilt 163 git 165 ketchup 166 B. Bibliography. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 Table of Contents | vii http://itbookshub.com/ http://www.freepdf-books.com/ http://itbookshub.com/ http://www.freepdf-books.com/

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.