To prepare your image and the SD card on Windows, you will usually need the following software ingredients:
A downloaded image from the previous recipe
Win32 Disk Imager to write Linux-based operating systems
PhoenixCard to write the Android operating system
Open the downloaded archive with 7-Zip. The following screenshot shows the 7-Zip application opening a compressed
Unpack the archive to a directory until you get a file with the file extension
.img. If it is
.tar.gzfile, you will need to unpack the archive twice. The following screenshot shows the final image file with the file extension
.imgand the unpacked and compressed
Choose Option to open the Option Setting window and choose:
FORMAT TYPE: FULL (Erase)
FORMAT SIZE ADJUSTMENT: ON
When everything is configured correctly, check again to see whether you are using the correct disk and click Format to start the formatting process.
Choose the Android image file by clicking on Img File.
Choose the write mode Startup and click on Format to Normal.
You will see a message, that the formatting was successful.
After the formatting, click on Burn while leaving the write mode as Startup. After a few minutes, your SD card should be ready to boot up Android on the Banana Pi.
The following screenshot shows the PhoenixCard application where the image has been successfully written:
Now you can insert the SD card into your Banana Pi and power it up. After the booting process, you will see the Android operating system.
Format the SD card using SD Formatter, which we covered in the previous section.
Open the Win32 Disk Imager.
Choose the image file by clicking on the directory button.
Once the burning process is done, you are ready to insert the freshly prepared SD card containing your Linux operating system into the Banana Pi and boot it up for the first time.
Some images are archived using Linux archive formats, which Windows may be unable to unpack natively. Therefore, it might be necessary to install a tool which is capable of unpacking the archive. In this recipe, we use 7-Zip to unpack the archives, which is open source software and is easy to use. Some images are also available as ZIP files, which can also be unpacked using 7-Zip or Windows Explorer. To extract the image from a ZIP file using the Windows Explorer, right-click on the ZIP file and select Extract all.
Linux archives usually have to be unpacked twice. Firstly, to uncompress the archive (
.tgz) and secondly, to unpack the actual tar archive (which is used to collect files into one uncompressed file). On Linux, you will be able to unpack the packed archives, and uncompress the compressed archives with one command.
After unpacking the image file and formatting your SD card, you need software to burn the image to the SD card. For Android, you will need the software PhoenixCard, for any other image based on Linux, the software Win32 Disk Imager is required.
SD Formatter is free downloadable software by the SD Association to reformat SD cards efficiently and safely. You can get it for the Windows platform at https://www.sdcard.org/downloads/formatter_4/
PhoenixCard is a specialized tool used to write Android images to the SD card. You can get it for the Windows platform at https://drive.google.com/file/d/0B_VynIqhAcB7NTg2UkRDdHRWX2s/edit?usp=sharing or alternatively at http://download.eldajani.net/bananapi/phoenixcard.zip
Win32 Disk Imager is an open source tool we use to write the operating system images to SD cards. You can get it for the Windows platform at http://sourceforge.net/projects/win32diskimager/