Hi again! A few days ago I made a post about the Raspberry Pi board that I recently got in the mail. I only made a short description of the board since I hadn’t test it at the time. I still haven’t much to say but I have finally tested it and I’ll share my first impressions of the board.
So.. the first thing to do was to download the image of the Debian Squeeze distribution here and set it up in a SD card. The SD card that I used was a Class 4 4GB Emtec card and it although I got some strange errors in the boot process, it worked (from what I’ve read it may be related with the quality of the card). The process that I used to setup the SD card was the following (see the full guides for Windows, Linux and Mac here):
Download the zip file containing the image from a mirror or torrent from here: http://www.raspberrypi.org/downloads
Verify if the the hash key of the zip file is the same as shown on the downloads page (optional). Assuming that you put the zip file in your home directory (~/), in the terminal run:
This will print out a long hex number which should match the “SHA-1” line for the SD image you have downloaded
- Extract the image, with
- Run df to see what devices are currently mounted
- Connect the SD card reader with the SD card inside
- Run df again. The device that wasn’t there last time is your SD card. The left column gives the device name of your SD card. It will be listed as something like “/dev/mmcblk0p1” or “/dev/sdd1”. The last part (“p1” or “1” respectively) is the partition number, but you want to write to the whole SD card, not just one partition, so you need to remove that part from the name (getting for example “/dev/mmcblk0” or “/dev/sdd”) as the device for the whole SD card. Note that the SD card can show up more than once in the output of df: in fact it will if you have previously written a Raspberry Pi image to this SD card, because the RPi SD images have more than one partition.
Now that you’ve noted what the device name is, you need to unmount it so that files can’t be read or written to the SD card while you are copying over the SD image. So run the command below, replacing “/dev/sdd1” with whatever your SD card’s device name is (including the partition number)
If your SD card shows up more than once in the output of df due to having multiple partitions on the SD card, you should unmount all of these partitions.
- In the terminal write the image to the card with this command, making sure you replace the input file if= argument with the path to your .img file, and the “/dev/sdd” in the output file of= argument with the right device name (this is very important: you can trash the hard drive on your computer if you get the wrong device name). Make sure the device name is the name of the whole SD card as described above, not just a partition of it (for example, sdd, not sdds1 or sddp1, or mmcblk0 not mmcblk0p1)
dd bs=1M if=~/debian6-19-04-2012/debian6-19-04-2012.img of=/dev/sdd
Note that if you are not logged in as root you will need to prefix this with sudo.
- Remove SD card from card reader, insert it in the Raspberry Pi, and have fun. 🙂
sudo nano /etc/default/keyboard
sudo dpkg-reconfigure locales