You are previewing Raspberry Pi System Software Reference.
O'Reilly logo
Raspberry Pi System Software Reference

Book Description

Raspberry Pi is Linux, but it's a unique flavor of Linux, specifically for the ARM-based Pi. Raspberry Pi Software Reference guides you through the boot process, including options for tweaking HDMI, memory, and other boot options. You'll learn the details of run levels and creating new services, and how to use the custom command vcgencmd for doing things like reporting temperature, clock speeds, and voltage. And while there are cross-compilers available for some flavors of Linux, one of the most important things you'll get from Raspberry Pi Software Reference is how to build your own Raspberry Pi cross-compiler on your Mac OSX, Linux, or Windows computer.

Table of Contents

  1. Cover
  2. Title
  3. Copyright
  4. Dedication
  5. Contents at a Glance
  6. Contents
  7. About the Author
  8. About the Technical Reviewer
  9. Acknowledgments
  10. Introduction
  11. Chapter 1: Preparation
    1. Static IP Address
    2. Using SSH
    3. VNC
      1. Display Number
      2. Geometry
      3. Depth
      4. Pixel Format
      5. Password Setup
      6. Server Startup
      7. VNC Viewers
      8. Stopping VNC Server
    4. Prototype Station
    5. Adafruit Pi Cobbler
    6. Gertboard
    7. Bare Metal
  12. Chapter 2: Boot
    1. Booting ARM Linux
    2. Boot Sequence
    3. Boot Files
    4. config.txt
      1. Composite Video Settings
      2. High-Definition Video
      3. Overscan Video
      4. Frame Buffer Settings
      5. General Video Options
      6. Licensed Codecs
      7. Testing
      8. Memory
      9. Boot Options
      10. Overclocking
      11. Warranty and Overclocking
      12. Voltage Settings
    5. cmdline.txt
      1. Serial console=
      2. Virtual console=
      3. kgdboc=
      4. root=
      5. rootfstype=
      6. elevator=
      7. rootwait=
      8. nfsroot=
      9. ip=
    6. Emergency Kernel
  13. Chapter 3: Initialization
    1. Run Levels
    2. /etc/inittab
      1. inittab Action initdefault
      2. General Startup Sequence
      3. inittab Action wait
      4. inittab Action once
      5. inittab Action respawn
    3. Changing Run Levels
      1. telinit
      2. Change of Run Level
      3. Single-User Mode
      4. Halt and Reboot
    4. Creating a New Service
  14. Chapter 4: vcgencmd
    1. vcgencmd Commands
    2. Option measure_clock
    3. Option measure_volts
    4. Option measure_temp
    5. Option codec_enabled
    6. Option version
    7. Option get_lcd_info
    8. Option get_config
  15. Chapter 5: Linux Console
    1. Available Consoles
    2. Serial Console
  16. Chapter 6: Cross-Compiling
    1. Terminology
    2. Operating System
    3. Host, Guest, Build, and Target
      1. Platform Limitations
      2. Without VirtualBox (Native)
      3. Using VirtualBox (Ubuntu/Linux)
    4. Planning Your Cross-Development Environment
    5. Building the Cross-Compiler
      1. Download crosstool-NG
      2. Staging Directory
      3. Unpack the Tarball
      4. Create /opt/x-tools
      5. Install Package Dependencies
      6. Configure crosstools-NG
    6. make crosstool-ng
    7. make install
    8. PATH
    9. Cross-Compiler Configuration
      1. Paths and Misc Options
      2. Target Options
      3. Operating System
      4. Binary Utilities
      5. C Compiler
      6. Save Configuration
    10. Build Cross-Compiler
      1. Troubleshooting
  17. Chapter 7: Cross-Compiling the Kernel
    1. Image Tools
    2. Download Kernel
    3. Edit Makefile
    4. make mrproper
    5. Kernel Config
    6. make menuconfig
    7. make
    8. Prepare Kernel Image
    9. Install Kernel Image
      1. Boot Failure
    10. Modules
    11. Firmware
    12. VirtualBox Mount of SD Card
  18. Appendix A: Glossary
  19. Appendix B: Power Standards
  20. Appendix C: Raspbian apt Commands
    1. List Available Packages
    2. List Installed Packages
    3. List Files for Package
    4. Perform Package Search
    5. Install a Package
    6. Remove a Package
    7. Install Updates
    8. Upgrade
    9. Obtain Kernel Sources
  21. Appendix D: ARM Compile Options
  22. Appendix E: Mac OS X Tips
  23. Index