Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Banana Pi Cookbook
  • Table Of Contents Toc
  • Feedback & Rating feedback
Banana Pi Cookbook

Banana Pi Cookbook

By : RYAD E DAJANI, Ryad El-Dajani
4.5 (2)
close
close
Banana Pi Cookbook

Banana Pi Cookbook

4.5 (2)
By: RYAD E DAJANI, Ryad El-Dajani

Overview of this book

This book is intended for anybody who wants to learn how they can utilize the capabilities of the Banana Pi to its full potential. It's full of step-by-step guides and detailed descriptions for the whole range of possibilities in a language that is appropriate for computer enthusiasts and experts alike. It would be helpful to have a basic knowledge of Unix-like operating systems or programming, but no prior experience is required as every concept is explained in the appropriate sections.
Table of Contents (8 chapters)
close
close

Setting up the SD card on Windows

This recipe will explain how to set up the SD card using a Windows operating system.

Getting ready

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
  • 7-Zip
  • SD Formatter
  • Win32 Disk Imager to write Linux-based operating systems
  • PhoenixCard to write the Android operating system

    Note

    The upcoming screenshots are showing image files for the Banana Pro. If you are using the Banana Pi, make sure to download and burn the image files for the Banana Pi.

How to do it…

In the upcoming steps, we will unpack the archive containing the operating system image for the Banana Pi and write the image to the SD card:

  1. Open the downloaded archive with 7-Zip. The following screenshot shows the 7-Zip application opening a compressed .tgz archive:
    How to do it…
  2. Unpack the archive to a directory until you get a file with the file extension .img. If it is .tgz or .tar.gz file, you will need to unpack the archive twice. The following screenshot shows the final image file with the file extension .img and the unpacked and compressed .tgz archive:
    How to do it…
  3. Create a backup of the contents of the SD card as everything on the SD card is going to be erased unrecoverablely.
  4. Open SD Formatter and check the disk letter (E:\ in the following screenshot).
    How to do it…
  5. Choose Option to open the Option Setting window and choose:
    • FORMAT TYPE: FULL (Erase)
    • FORMAT SIZE ADJUSTMENT: ON
  6. When everything is configured correctly, check again to see whether you are using the correct disk and click Format to start the formatting process.

Writing an Android image to the SD card on Windows

In the following steps, we are writing an Android image to the SD card using Windows:

  1. Execute PhoenixCard.exe.
  2. Choose the Android image file by clicking on Img File.
  3. Choose the write mode Startup and click on Format to Normal.
  4. You will see a message, that the formatting was successful.
  5. 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:

    Writing an Android image to the SD card on Windows

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.

Writing a Linux distribution image to the SD card on Windows

The following steps explain how to write a Linux-based distribution to the SD card on Windows:

  1. Format the SD card using SD Formatter, which we covered in the previous section.
  2. Open the Win32 Disk Imager.
  3. Choose the image file by clicking on the directory button.
  4. Check, whether you are going to write to the correct disk and then click on Write. The next screenshot shows the writing operation of Win32 Disk Imager:
    Writing a Linux distribution image to the SD card on Windows

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.

How it works…

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 (.tar.gz or .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.

See also

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Banana Pi Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon