
P A R T I
C O N N E C T I N G T H E B O A R D
78
Before you start to set up the wireless interface, you’ll need to know the
Service Set Identifier
(SSID)
—also known as the
network name
—of the wireless router to which you want to con-
nect, along with the type of encryption in use and the password required. You’ll also need to
know what type of wireless network it is. A USB adapter designed for 802.11a Wi-Fi may not
connect to an 802.11g network, and vice versa.
Installing Firmware
In order for the USB wireless adapter to be addressed by the system, a software bundle
known as a
firmware
is required. While some distributions include a selection of the most
common Wi-Fi firmware installed by default, others do not. Raspbian includes most com-
mon wireless firmware packages, and if this is the operating system you are using you can
skip ahead to the section on “Connecting to a Wireless Network via wpa_gui”; otherwise,
read on for instructions on installing firmware packages.
In order to download the firmware files, the Pi must be connected to the Internet. If you can
spare a wired port on your router or gateway for a few minutes, that’s not a problem. However,
if wireless is your only way of getting online, you’ll need to manually download the firmware
installation package on a different computer, and then transfer it across to the Pi by either
copying it to the Pi’s SD card or connecting an external storage device such as a USB flash drive.
To find the correct firmware file to download, you’ll need to know what type of wireless
adapter you have. Although various companies sell branded USB wireless adapters, the num-
ber of companies that actually manufacture the components is a lot smaller. Several differ-
ent manufacturers may use the same type of chip inside their USB wireless adapters, making
them all compatible with the same firmware. As a result, the labelling on a device or its pack-
aging is not enough to know which firmware you should install. Instead, you’ll need to con-
nect the device to the Pi and check the
kernel ring buffer
for error messages. If you’ve already
connected the wireless adapter as instructed in Chapter 2, “Getting Started with the
Raspberry Pi”, you can continue. If not, connect the adapter now.
The kernel ring buffer is a special portion of memory used by the Linux kernel to store its
human-readable output. It’s an important part of the Linux operating system: the text
flashes by too quickly to read while the Pi boots, so it’s critical that users are able to view the
messages at a later date to read errors and diagnose problems.
With the adapter connected but no wireless firmware packages installed, the kernel will print a
series of error messages to the ring buffer. To read these messages, you can use the
dmesg
com-
mand to print the contents of the buffer to the screen. At the terminal, or at the console if you
haven’t loaded the desktop environment, simply type the following command to view the buffer:
dmesg
Summary of Contents for A
Page 1: ......
Page 2: ......
Page 3: ...Raspberry Pi User Guide 2nd Edition...
Page 4: ......
Page 5: ...Raspberry Pi User Guide 2nd Edition Eben Upton and Gareth Halfacree...
Page 10: ......
Page 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...
Page 28: ......
Page 29: ...Chapter 1 Meet the Raspberry Pi...
Page 37: ...Chapter 2 Getting Started with the Raspberry Pi...
Page 56: ......
Page 57: ...Chapter 3 Linux System Administration...
Page 79: ...Chapter 4 Troubleshooting...
Page 89: ...Chapter 5 Network Configuration...
Page 109: ...Chapter 6 The Raspberry Pi Software Configuration Tool...
Page 122: ......
Page 123: ...Chapter 7 Advanced Raspberry Pi Configuration...
Page 140: ......
Page 141: ...Chapter 8 The Pi as a Home Theatre PC...
Page 151: ...Chapter 9 The Pi as a Productivity Machine...
Page 160: ......
Page 161: ...Chapter 10 The Pi as a Web Server...
Page 172: ......
Page 173: ...Chapter 11 An Introduction to Scratch...
Page 189: ...Chapter 12 An Introduction to Python...
Page 216: ......
Page 218: ......
Page 219: ...Chapter 13 Learning to Hack Hardware...
Page 234: ......
Page 235: ...Chapter 14 The GPIO Port...
Page 249: ...Chapter 15 The Raspberry Pi Camera Module...
Page 265: ...Chapter 16 Add on Boards...
Page 280: ......
Page 281: ...Appendix A Python Recipes...
Page 287: ...Appendix B Raspberry Pi Camera Module Quick Reference...
Page 293: ...Appendix C HDMI Display Modes...