Arduino, Sensoren, Z-Wave, Bluetooth und mehr - SmartHome.Work - Beratung, Projektierung, Test

Direkt zum Seiteninhalt

Orange Pi Lite2 - first setup

SmartHome.Work - Beratung, Projektierung, Test
Veröffentlicht von in Organge Pi · 21 Oktober 2018
Tags: OrgangePi
The Orange Pi Lite2 is a very interesting small computer board.
  • AllWinner H6 CPU (64bit)
  • USB 3.0, USB2.0 and Micro SB OTG port
  • Wifi
  • Bluetooth
  • IR receiver
  • Microphone
  • NO Ethernet port (!)

In this time (october 2018) the software for this board is a bit limited, most versions are in Beta state.
Armbia, Debian Jessie and Ubuntu are not finished - and features are missing.

How to setup the Orange Pi Lite2?
At first - board does NOT support power via Micro-USB ! You should use the power connector - I have taken an USB cable:
USB -> DC 4.0x1.7mm male.
Oryou can use an other 5V/2A power source with same connector.

Download from Orange PI site (or maybe etter form OS vendors site) the latest image for your preferred OS and create a boot disk.
I think I must not explain how to do this.

HDMI output is not supported in this time for Debian and Ubuntu - I didn't realize this at first.
The only way is to use the serial debug output.

Connect a USB-to-Serial adapter to the connections RxD/TxD/GND near the USB3.0 port (see picture on left side TTL UART).
Of course connect board TxD with RxD of Adapter and board RxD with TxD.

Connect with a terminal program (Putty for Windows, picocom/minicom for LINUX) with 115200 baud.
(for picocom as sample: picocom --baud 115200 -r -l /dev/ttyUSB0)

Now connect the power source to the board and check the terminal output:

Default root password is in most cases orangepi.

WiFi setup:

Check at first for the name of your wlan interface.
Yes,.. it should be wlan0 - but in some cases (like my) it can be wlan3 or something like this!

Then check for the output - is there wlan0: or something else.

If your router is using wpa2-personal security (it will be in most cases) you can use:

wpa_passphrase "YOUR_SSID" "YOUR_WIRELESS_KEY" > /etc/wpa_supplicant.conf

Then check the output to be sure that all is ok:

root@Orangepi:~# cat /etc/wpa_supplicant.conf

Output looks like:

Define the IP for the Orangepi:

root@orangepilite:~# nano /etc/network/interfaces

For a static IP of your Orangepi delete all in this file (or comment it in) and insert:
REPLACE wlan0 with your interface name like wlan3, if needed - see above.

auto lo  
auto wlan0  
iface lo  
inet loopback  
iface wlan0  
inet static address  
pre-up sudo /sbin/wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -Dnl80211 -B  
pre-up sleep 5  
post-down sudo killall -q wpa_supplicant

(Ctrl-X for exit nano with saving before)

For a dynamic IP (DHCP) of your Orangepi delete all in this file (or comment it in) and insert:
REPLACE wlan0 with your interface name like wlan3, if needed - see above.

auto lo 
iface lo 
inet loopback 
auto wlan0 
iface wlan0 
inet dhcp 
wpa-ap-scan 1 
pre-up sudo /sbin/wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -Dnl80211 -B 
pre-up sleep 5 
post-down sudo killall -q wpa_supplicant
Reboot the orangepi with "reboot" - then check your configuration after login with 

The wlan0 interface shoud show you a line with inet address like this:

inet addr:  
inet6 addr: fe80::cccc:aaaa:feee:6002/64 Scope:Link
inet6 addr: 2003:cc:e777:400:ceee:aaff:feee:6002/64 Scope:Global  

disable ipV6 - if needed:

change: /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1

change: /proc/sys/net/ipv6/conf/all/disable_ipv6 to 1

enable root login via SSH (debian image)

As root, edit the sshd_config file in /etc/ssh/sshd_config:
nano /etc/ssh/sshd_config

Add a line in the Authentication section of the file that says PermitRootLogin yes. This line may already exist and be commented out with a "#". In this case, remove the "#".
# Authentication:
PermitRootLogin yes
#StrictModes yes

Save the updated /etc/ssh/sshd_config file.

Restart the SSH server
service sshd restart

2 Kommentare
Durchschnittliche Bewertung: 125.0/5
2019-01-22 20:12:32
2018-11-12 11:14:04
Danke für den Beitrag!
Ich habe schon viele Stunden damit verbracht meinen Orange Pi zum Laufen zu bekommen - vergeblich.
Aber jetzt funktioniert er!

Gut beschriebener Beitrag!

Copyright 2018 Michael Prüfer
Copyright 2018 Michael Prüfer
Zurück zum Seiteninhalt