How to Flash a SD Card for Aisoy1
This tutorial describes how to flash a SD card for your Aisoy1.
What do I need?
You can do it from your main computer regardless of whether you are using Apple OS X, Linux or Microsoft Windows. You will need an adapter to plug your SD card to your computer (many laptops include it) and in case your robot is using a microSD, you will also need an adapter, like the one above:
You also need the image you want to copy. It is normally a .img file.
Flashing the SD card in OS X
We recommend to use RPi-SD card builder x1.2 which is a little friendlier. Download, extract and launch this app to avoid the CLI.
On launching RPi-SD card builder x1.2, you are presented with a Finder window in order to navigate and select your chosen .img file. The app, itself, will be running as a Raspberry Pi icon in the dock.
Locate and select the image and ensure that your SD card is plugged in and mounted.
Locating the OS image file
You will be presented with a window asking you to select your SD card. Be extremely careful. All drives are selected by default and you could easily corrupt your Mac if you select the wrong disc. The clue is to look at the disc capacities and, in my example, you will see that the capacity of the SD card is only 8GB compared to 1TB for my Mac’s hard drive.
Pay attention to which volume you are selecting - they are all selected by default and this could be catastrophic
Only when you are sure that you have selected only the correct SD card, enter your administrator’s password when prompted.
Enter your admin password to continue
You are then given a warning not to remove the SD card whilst the app flashes the SD card. Click Continue.
Do not remove the SD card whilst flashing
You can monitor the progress of the operation by clicking on the rotating cog icon in the menu bar. The process to flash the SD card takes a few minutes, so be patient.
How to monitor the progress
A dialogue box will advise you on the completion of the SD card being flashed. The SD card has already been unmounted, so you are safe to remove the SD card from your Mac for use in your Aisoy1 robot.
Confirmation of completion
Flash a SD Card Using Linux
Format the SD Card
It may be necessary to format the SD card so that it can be read by your Raspberry Pi. If this is the case, you can use the Disk Utility application in Ubuntu.
Use Ubuntu Disk Utility to format the SD card
Select your SD card and format as FAT.
Formatting the SD card using Ubuntu Linux
Identify the SD Card
Plug the SD card into the SD card drive on your Linux machine.
Open a terminal window and, to list the attached discs, type:
sudo fdisk -l
Listing the attached volumes in Ubuntu Linux
Identify the SD card and make a note of the device address, such as /dev/sdXwhere X denotes the storage device. Note, you can easily identify your SD card by looking at the capacities of the discs listed.
Flash the SD Card
Once you have identified and formatted your SD card, you need to flash the SD card. This is done with the unix command dd.
Before proceeding, navigate to the directory that contains the downloaded and extracted .img file:
In a terminal window, enter the following, ensuring that the distribution name (in this example: if=2013-07-26-wheezy-raspbian.img) is correct and that the destination (in this example: /dev/sdb1) as they may be different to the ones used in this example:
sudo dd if=2013-07-26-wheezy-raspbian.img of/dev/sdb1 bs=2M
Locating the downloaded image file
Tip: You will need to exercise care using the dd command. Careless use may result in the corruption of your computer’s main hard drive if you incorrectly identify the drive required.
The process of flashing the SD card will take around two or three minutes during which time you are given no indication that anything is happening, unless your SD drive has a flashing LED.
Once the SD card has been flashed, you will see a further message in the terminal window.
Unmount the SD card and it is now ready for use in your Aisoy1.
Flash a SD Card Using Windows
Format the SD Card
Locate your SD card drive, in Windows Explorer, and secondary-click the mouse to bring up the context-senstive menu. From the menu select Format…. Ensure that the option FAT32 (Default) is selected and click Start.
Selecting a SD card to format
A few moments later you will see a confirmation that the format has been completed and you SD card is now ready for the next stage.
Formatting the SD card
Download Image Writer
Once downloaded, uncompress the .zip file by secondary-clicking it and selectingExtract all from the context-sensitive menu. This will normally place a folder of extracted files into the same folder that contains the downloaded .zip file.
Flash the SD Card
Locate and open the folder of uncompressed files that you recently downloaded. Launch the Image Writer application by double-clicking the Win32DiskImager.exeprogram that you can see in the folder of extracted files.
If your PC asks you, give permission for the program to make modifications. This will open the Image Writer program.
Grant permission for the program to run
In Image Writer click on the blue folder icon, to the right of the white box, and locate your .img file. This will be contained within a folder that you extracted from the downloaded .zip file. Select the .img file and click Open to populate the white box with the path to your image.
Selecting the image in Image Writer
In the Device box, on the right, ensure that the drive letter for your SD card is selected.
Tip: You can double-check the correct drive letter, for your SD card, by pressing CRTL E to open Windows Explorer and locating the SD card drive.
When you are satisfied that the path to the .img file and the destination drive letter are both correct, click the Write button to start the process of flashing the SD card. The process will take four or five minutes and you will be shown a green progress bar during the course of the operation.
Image Writer progress
Upon completion, a confirmation window will be displayed and you will be free to close Image Writer and eject the SD card before removing it.
Confirmation message on completion of flashing the SD card