
P A R T I
C O N N E C T I N G T H E B O A R D
38
Flashing from OS X
If your current computer is a Mac running Apple OS X, you’ll be pleased to hear that things are
just as simple as with Linux. Thanks to a similar ancestry, OS X and Linux both contain the
dd
utility, which you can use to flash the system image to your blank SD card as follows:
1.
Select Utilities from the Application menu, and then click on the Terminal application.
2.
Plug your blank SD card into a card reader connected to the Mac.
3.
Type
diskutil list
to see a list of disks. Find the SD card by its size, and note the
device address (
/dev/diskX
,
where
X
is a letter identifying the storage device).
4.
If the SD card has been automatically mounted and is displayed on the desktop, type
diskutil unmountdisk /dev/diskX
to unmount it before proceeding.
5.
Use
cd
to change to the directory with the
.img
file you extracted from the Zip archive.
6.
Type
dd if=imagefilename.img of=/dev/diskX bs=2m
to write the file
imagefilename.img
to the SD card connected to the device address from step 3.
Replace
imagefilename.img
with the actual name of the file extracted from the Zip
archive. This step takes a while, so be patient!
Flashing from Windows
If your current PC is running Windows, things are slightly trickier than with Linux or OS X.
Windows does not have a utility like
dd
, so some third-party software is required to get the image
file flashed onto the SD card. Although it’s possible to install a Windows-compatible version of
dd
, there is an easier way: the Image Writer for Windows. Designed specifically for creating USB
or SD card images of Linux distributions, this features a simple graphical user interface that
makes the creation of a Raspberry Pi SD card straightforward.
The latest version of Image Writer for Windows can be found at the official website:
https://sourceforge.net/projects/win32diskimager/
. Follow these steps to
download, install and use the Image Writer for Windows software to prepare the SD card for
the Pi:
1.
Click the green Download button to download the Image Writer for Windows Zip file,
and extract it to a folder on your computer.
2.
Plug your blank SD card into a card reader connected to the PC.
3.
Double-click the
Win32DiskImager.exe
file to open the program, and click the blue
folder icon to open a file browse dialogue box.
Содержание 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...