-
Notifications
You must be signed in to change notification settings - Fork 85
BananaPi (Pro) mit Bananian
- Bananien downloaden
- Auf SD-Karte bringen und im BananaPi einstecken
- BananaPi starten.
Wenn ein Netzwerkkabel eingesteckt ist, dann mittels SSH verbinden (DHCP-Server verrät die IP, sonst Hostnamen 'bananapi' versuchen) Wenn kein Netzwerkkabel eingesteckt ist, dann per HDMI die Konsole anzeigen lassen und WLan konfigurieren.
Zuerst aber bananian-config ausführen und das System entsprechend anpassen (speziell "hardware configuration"). Beispiel für bananian-config
---------------------------------------------------------------------------------
Welcome to bananian-config!
This script assists you to set up some basic parameters...
For news and updates check: http://www.bananian.org
---------------------------------------------------------------------------------
Your current keyboard layout is 'de'. Do you want to change it? (y/N) n
---------------------------------------------------------------------------------
Do you want to change your root password? (y/N) n
---------------------------------------------------------------------------------
Your current timezone is 'Europe/Berlin'. Do you want to change it? (y/N) n
---------------------------------------------------------------------------------
Your current locale is 'de_DE.UTF-8'. Do you want to change it? (y/N) n
---------------------------------------------------------------------------------
Your current hostname is 'bananapipro'. Do you want to change it? (y/N) n
---------------------------------------------------------------------------------
Video acceleration is currently disabled. Do you want to enable it? (y/N) n
---------------------------------------------------------------------------------
Your current hardware configuration is: BananaPro
Do you want to change it? (y/N) n
---------------------------------------------------------------------------------
Do you want to expand the root file system (recommended)? (y/N) n
---------------------------------------------------------------------------------
done! please reboot your system now! (shutdown -r now)
Wenn es ein BananaPi Pro ist, muss danach die WLan-Karte aktiviert werden. Unter /etc/modules muss "ap6210" hinzugefügt werden.
TODO Sollte die Konfiguration vom WLan lieber ein eigener Artikel sein? Ist ja für alle Debian-basierenden Systeme gleich.TODO-Ende
Um das Wlan dann zu konfigurieren, muss zuerst passphrase ermitteln mit:
wpa_passphrase "WLAN_ESSID" WLAN_KENNWORT
Die angezeigten Werte müssen danach als Einstellungen unter /etc/network/interfaces eintragen werden:
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "WLAN_ESSID"
wpa-psk PHASSPHRASE
Danach bereiten wir das System vor:
apt-get update &&
apt-get upgrade -y &&
apt-get install -y wget git-core python2.7-dev python-dev gcc sudo make
Installation von RPi.GPIO_BP. Dabei bitte darauf achten ob es sich um einen BananaPi oder einen BananaPi Pro handelt.
mkdir $HOME/tmp
cd $HOME/tmp &&
git clone https://github.com/LeMaker/RPi.GPIO_BP -b bananapro &&
cd $HOME/tmp/RPi.GPIO_BP &&
python setup.py install
Und die Installation von WiringBP. Dabei bitte darauf achten ob es sich um einen BananaPi oder einen BananaPi Pro handelt.
mkdir $HOME/tmp
cd $HOME/tmp &&
git clone https://github.com/LeMaker/WiringBP.git -b bananapro &&
cd $HOME/tmp/WiringBP &&
chmod +x ./build && ./build
test wiringBP with the command gpio readall will output
+-----+-----+---------+------+---+--Banana Pro--+---+------+---------+-----+-----+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
| | | 3.3v | | | 1 || 2 | | | 5v | | |
| 2 | 8 | SDA.1 | ALT5 | 0 | 3 || 4 | | | 5V | | |
| 3 | 9 | SCL.1 | ALT5 | 0 | 5 || 6 | | | 0v | | |
| 4 | 7 | GPIO. 7 | IN | 0 | 7 || 8 | 0 | ALT0 | TxD | 15 | 14 |
| | | 0v | | | 9 || 10 | 0 | ALT0 | RxD | 16 | 15 |
| 17 | 0 | GPIO. 0 | ALT4 | 0 | 11 || 12 | 0 | IN | GPIO. 1 | 1 | 18 |
| 27 | 2 | GPIO. 2 | ALT4 | 0 | 13 || 14 | | | 0v | | |
| 22 | 3 | GPIO. 3 | ALT4 | 0 | 15 || 16 | 0 | IN | GPIO. 4 | 4 | 23 |
| | | 3.3v | | | 17 || 18 | 0 | IN | GPIO. 5 | 5 | 24 |
| 10 | 12 | MOSI | IN | 0 | 19 || 20 | | | 0v | | |
| 9 | 13 | MISO | IN | 0 | 21 || 22 | 0 | ALT4 | GPIO. 6 | 6 | 25 |
| 11 | 14 | SCLK | IN | 0 | 23 || 24 | 0 | IN | CE0 | 10 | 8 |
| | | 0v | | | 25 || 26 | 0 | IN | CE1 | 11 | 7 |
| 0 | 30 | SDA.0 | ALT4 | 0 | 27 || 28 | 0 | ALT4 | SCL.0 | 31 | 1 |
| 5 | 21 | GPIO.21 | IN | 0 | 29 || 30 | | | 0v | | |
| 6 | 22 | GPIO.22 | ALT4 | 0 | 31 || 32 | 0 | ALT4 | GPIO.26 | 26 | 12 |
| 13 | 23 | GPIO.23 | IN | 0 | 33 || 34 | | | 0v | | |
| 19 | 24 | GPIO.24 | IN | 0 | 35 || 36 | 0 | IN | GPIO.27 | 27 | 16 |
| 26 | 25 | GPIO.25 | IN | 0 | 37 || 38 | 0 | IN | GPIO.28 | 28 | 20 |
| | | 0v | | | 39 || 40 | 0 | IN | GPIO.29 | 29 | 21 |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
+-----+-----+---------+------+---+--Banana Pro--+---+------+---------+-----+-----+