
114
P A R T I
C O N N E C T I N G T H E B O A R D
For the changes to take effect, the Pi must be restarted. If you find that your changes have
disabled the Pi’s video output on your monitor, simply insert the SD card into another com-
puter and either modify the
config.txt
file with new settings or delete it altogether to
restore the defaults.
Boot Options
The
config.txt
file can also be used to control how Linux is loaded on the Raspberry Pi.
Although the most common method for controlling the loading of the Linux kernel is to use
a separate file called
cmdline.txt
(which you’ll learn about later in this chapter), it is pos-
sible to use just
config.txt
. The following options control the boot process:
❍
disable_commandline_tags
—This tells the
start.elf
module that loads first dur-
ing the Pi’s boot process to skip filling in memory locations past 0x100 before loading
the Linux kernel. This option should not be disabled, as doing so can cause Linux to
load incorrectly and crash.
❍
cmdline
—The command line parameters to be passed to the Linux kernel. This can be
used in place of the
cmdline.txt
file, usually found in the
/boot
directory.
❍
kernel
—The name of the kernel file to be loaded. This can be used as a way to load the
emergency kernel (see Chapter 4, “Troubleshooting”).
❍
ramfsfile
—The name of the initial RAM file system (RAMFS) to be loaded. This should
rarely be modified, unless you’ve built a new initial file system with which to experiment.
❍
init_uart_baud
—The speed of the serial console, in bits per second. The default is
115200, but lower values may improve the connection if the Pi is used with an older
hardware serial terminal.
Overclocking the Raspberry Pi
The
config.txt
file not only controls the graphics outputs of the Pi’s BCM2835 processor
but also enables you to control the chip in other ways. In particular, it allows you to alter the
speed at which the chip runs, increasing its performance at the expense of the part’s lifes-
pan—a process known as
overclocking
.
WARNING
Adjusting any of the settings listed in this section can result in damage to your Pi. In particular,
changing settings corresponding to memory, GPU or CPU voltages will set a fuse in the chip,
which invalidates the Raspberry Pi’s warranty even if the setting is returned to normal before any
damage is done. Damage caused when using these settings will not be put right by the Raspberry
Pi Foundation or by the retailer from whom you purchased your Pi. If in doubt,
don’t alter these
settings
: the performance gains through overclocking are rarely worth the risk to the Pi.
Содержание A
Страница 1: ......
Страница 2: ......
Страница 3: ...Raspberry Pi User Guide 2nd Edition...
Страница 4: ......
Страница 5: ...Raspberry Pi User Guide 2nd Edition Eben Upton and Gareth Halfacree...
Страница 10: ......
Страница 26: ...R A S P B E R R Y P I U S E R G U I D E S E C O N D E D I T I O N 10...
Страница 28: ......
Страница 29: ...Chapter 1 Meet the Raspberry Pi...
Страница 37: ...Chapter 2 Getting Started with the Raspberry Pi...
Страница 56: ......
Страница 57: ...Chapter 3 Linux System Administration...
Страница 79: ...Chapter 4 Troubleshooting...
Страница 89: ...Chapter 5 Network Configuration...
Страница 109: ...Chapter 6 The Raspberry Pi Software Configuration Tool...
Страница 122: ......
Страница 123: ...Chapter 7 Advanced Raspberry Pi Configuration...
Страница 140: ......
Страница 141: ...Chapter 8 The Pi as a Home Theatre PC...
Страница 151: ...Chapter 9 The Pi as a Productivity Machine...
Страница 159: ...C H A P T E R 9 T H E P I A S A P R O D U C T I V I T Y M A C H I N E 143 Figure 9 4 Exporting a file from The Gimp...
Страница 160: ......
Страница 161: ...Chapter 10 The Pi as a Web Server...
Страница 171: ...Part III Programming with the Raspberry Pi Chapter 11 An Introduction to Scratch Chapter 12 An Introduction to Python...
Страница 172: ......
Страница 173: ...Chapter 11 An Introduction to Scratch...
Страница 189: ...Chapter 12 An Introduction to Python...
Страница 216: ......
Страница 218: ......
Страница 219: ...Chapter 13 Learning to Hack Hardware...
Страница 234: ......
Страница 235: ...Chapter 14 The GPIO Port...
Страница 249: ...Chapter 15 The Raspberry Pi Camera Module...
Страница 265: ...Chapter 16 Add on Boards...
Страница 279: ...Part V Appendixes Appendix A Python Recipes Appendix B Camera Module Quick Reference Appendix C HDMI Display Modes...
Страница 280: ......
Страница 281: ...Appendix A Python Recipes...
Страница 287: ...Appendix B Raspberry Pi Camera Module Quick Reference...
Страница 293: ...Appendix C HDMI Display Modes...