This recipe will explain how to boot up and shut down the Banana Pi. As the Banana Pi is a real computer, these tasks are as equally important as tasks on your desktop computer. The booting process starts the Linux kernel and several important services. The shutting down stops them accordingly and does not power off the Banana Pi until all data is synchronized with the SD card or external components correctly.
To boot your device, you need the following ingredients:
A wired up Banana Pi
A prepared SD card with an operating system
We are going to boot up and shut down the Banana Pi.
Do the following steps to boot up your Banana Pi:
Attach the Ethernet cable to your local network.
Connect your Banana Pi to a display.
Plug in an USB keyboard and mouse.
Insert the SD card to your device.
Power your Banana Pi by plugging in the USB power cable.
The following screenshot shows a new Android installation on the Banana Pi after a successful boot:
To shut down your Linux-based distribution, you either use the
shutdown command or do it via the desktop environment (in case of Raspbian, it is called LXDE). For the latter method, these are the steps:
Click on the LXDE icon in the lower-left corner.
Click on Logout.
Click on Shutdown in the upcoming window.
To shut down your operating system via the shell, type in the following command:
$ sudo shutdown -h now
When you have prepared the SD card successfully, you can finally boot up your Banana Pi with your desired operating system.
The boot sequence should initiate immediately. You will see blinking LEDs. If only the red LED is lit, you probably made a mistake when writing the image to the SD card or the SD card is defective.
If you powered off the device previously, you may need to press and hold the Power key to restart the booting of your device. You will see the boot messages, if you connected your Banana Pi to a display. When the boot has finished, you are welcomed by your operating system for the first time.
If you are using the wired Ethernet network interface on Android, make sure to enable Use Ethernet in the Android settings under Wireless & Networks | More.
On Linux, you can shut down the device via the shell. If you are on the desktop, you can access the shell via an application called Terminal (or LXTerminal in case of Raspbian).
shutdown command expects a
mode parameter (
-h, that is, halt in this case) and a time (
now). If you want to reboot your device, you can use the mode
-r (reboot). As the
shutdown command requires root privileges, we are executing the
shutdown command with the prefix command
sudo. This will issue the next command—
shutdown—to be executed with root privileges. You will have to enter the password of the user. On most of the Banana Pi distributions, the default passwords for the default user is
$ sudo poweroff $ sudo reboot
For the manual page of the
$ man shutdown
Refer to Wikipedia for the article on the
sudocommand at https://en.wikipedia.org/wiki/Sudo