On this site you will get a few insights on the process of installing and managing different Banana Pi models.
It's quite easy to flash an image to a sdCard and boot up a SBC for the first time and yet there are so many problems users have with it. Therefore you can find a litte information and helpful commands here...
First of all, you have to download an image from the official banana pi google cloud.
In this tutorial we use an image for the bpi-m3. Follow these steps:
Open a terminal and change to the download directory where you have downloaded the zip file into
# For example cd ~/Downloads
Insert sdCard to your card reader and search it
In my case the sdCard is named as /dev/mmcblk0 and there are 2 partitions on it /dev/mmcblk0p1, /dev/mmcblk0p2. The name comes from the card reader installed in my notebook. There are also card readers that are plugged into an USB port. These ones are mostly named sd[a-z].
The image comes in a zip archive so we have to unzip and flash the image to the card. But before, we have to unmount all partitions on it.
# unmount all partitions sudo umount /dev/mmcblk0* sudo unzip -p 2018-01-15-ubuntu-16.04-server-v1.0-bpi-m3-sd-emmc.img.zip | dd bs=4M of=/dev/mmcblk0
There is no output that informs you about how long the process needs. So wait even if it needs a long time.
At the end you get a message like this
0+75281 records in 0+75281 records out 7650410496 bytes (7.7 GB, 7.1 GiB) copied, 762.362 s, 10.0 MB/s
So unplug the card from your card reader and plug it into your device and boot.
You can also flash the image to the emmc storage with the same steps. If you boot from your sdCard your root disk is /dev/mmcblk0 and the emmc storage is /dev/mmcblk1. So download the image to your sdCard and flash it to the integrated storage device. If you haven't enough space on your sdCard you could use samba to store it on a remote machine.
For our tests we'll use the CLI (command line interface) version of Armbian. Download the image from https://www.armbian.com/bananapi-m64/
Flash it with 7zip piped to dd
sudo apt update && sudo apt install p7zip
Search for your sdCard and unmount all partitions. Maybe blkid helps here.
sudo umount /dev/mmcblk0p* sudo 7za x Debian_stretch_next.7z -so | sudo dd of=/dev/mmcblk0 bs=4M
After I plugged in the sdCard to the board the operating system started with the boot process. The bpi-m64 has 3 small (RGB) LEDs on the board. Only the red one lights up. After a few seconds the network card started to blink.
I did a scan on my network with nmap do find the new board
sudo nmap -sn 192.168.0.0/24
If you are not sure wich of them are the new one you can scan each of them or try to connect to ssh port 22.
sudo nmap -A 192.168.0.100
Starting Nmap 7.40 ( https://nmap.org ) at 2018-05-14 17:04 CEST
Nmap scan report for 192.168.0.100
Host is up (0.00021s latency).
Not shown: 999 closed ports
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 7.4p1 Debian 10+deb9u2 (protocol 2.0)
| 2048 ... (RSA)
|_ 256 ... (ECDSA)
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 0.82 seconds
So we can connect to the board over SSH port 22. The password is 1234
ssh -p 22 email@example.com
The authenticity of host '192.168.0.100 (192.168.0.100)' can't be established.
ECDSA key fingerprint is SHA256:...
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.100' (ECDSA) to the list of known hosts.
Besides that you can see hardware information you have to change your password.
Unfortunately the kernels for the A64 boards are experimental. Therefore you get a warning message. The developers at Armbian working hard on getting this boards to run. So thinking about a donation makes a lot of sense. You can directly donate to them over their site. A second option is, that you buy the bpi-m64 directly over our site http://bpi.rothirsch.tech/#!bpi-m64. We will donate an euro to Armbian for each board we sell.
You are using an Armbian nightly build meant only for developers to provide
constructive feedback to improve build system, OS settings or user experience.
If this does not apply to you, STOP NOW!. Especially don't use this image for
daily work since things might not work as expected or at all and may break
anytime with next update. YOU HAVE BEEN WARNED!
This image is provided AS IS with NO WARRANTY and NO END USER SUPPORT!.
Before we do a few benchmarks we upgrade the system first.
apt update && apt -y upgrade
sysbench --test=cpu --cpu-max-prime=20000 run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 1
Doing CPU performance benchmark
Maximum prime number checked in CPU test: 20000
Test execution summary:
total time: 44.4469s
total number of events: 10000
total time taken by event execution: 44.4350
approx. 95 percentile: 4.45ms
events (avg/stddev): 10000.0000/0.00
execution time (avg/stddev): 44.4350/0.00
7z to dd http://mark.koli.ch/howto-whole-disk-backups-with-dd-gzip-and-p7zip)