Orange Pi PC -- a $15 alternative to RPi 2? So far, so good

Ver 3.7.2

Installation of piaware, dump1090-fa & dump978-fa pre-built packages on OrangePiPC / Armbian Buster

pi@orangepipc:~$ uname -a
Linux orangepipc 4.19.59-sunxi #5.91 SMP Mon Jul 15 14:09:32 CEST 2019 armv7l GNU/Linux

pi@orangepipc:~$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"

.
.

1 - Prepare repository

wget http://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_3.7.2_all.deb 
sudo dpkg -i piaware-repository_3.7.2_all.deb 
sudo apt-get update 

.

2 - Install dump1090-fa

sudo apt-get install dump1090-fa 
sudo reboot 

.

3 - Change apt source from default Buster to Stretch

Installation of piaware & dump978-fa fails with default apt-source Buster
Requires apt-source to be changed to Stretch

sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup 
sudo sed -i 's/buster/stretch/g' /etc/apt/sources.list 
sudo apt-get update 

.

4 - Install piaware

sudo apt-get install piaware 

.

5 - Install dump978-fa & skyaware978 (Optional, for USA only)

## 5.1 - Install required dependencies
sudo apt-get install skyaware978 soapysdr-module-rtlsdr soapysdr0.5-2-module-all 

## 5.2 - Install dump978-fa
sudo apt-get install dump978-fa 

.

6 - Restore apt source to Buster

sudo cp /etc/apt/sources.list_backup /etc/apt/sources.list
sudo apt-get update

.

7 - Configure

sudo piaware-config allow-auto-updates yes  
sudo piaware-config allow-manual-updates yes  
sudo piaware-config feeder-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx  

sudo piaware-config uat-receiver-type sdr  
sudo sed -i 's/--device-index 0/--device-index 00001090/' /etc/default/dump1090-fa  
sudo sed -i 's/driver=rtlsdr/driver=rtlsdr,serial=00000978/' /etc/default/dump978-fa  

sudo reboot 

.

8 - Check Status piaware

pi@orangepipc:~$ sudo systemctl status piaware
* piaware.service - FlightAware ADS-B uploader
   Loaded: loaded (/lib/systemd/system/piaware.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2019-09-21 21:45:31 EDT; 42s ago
     Docs: https://flightaware.com/adsb/piaware/
 Main PID: 1322 (piaware)
    Tasks: 6 (limit: 2072)
   Memory: 11.4M
   CGroup: /system.slice/piaware.service
           |-1322 /usr/bin/piaware -p /run/piaware/piaware.pid -plainlog -statusfile /run/piaware/status.json
           |-1334 /usr/lib/piaware/helpers/fa-mlat-client --input-connect localhost:30005 --input-type dump1090 --results beast,connect,lo
           |-1337 /usr/lib/piaware/helpers/faup1090 --net-bo-ipaddr localhost --net-bo-port 30005 --stdout --lat 43.xxx --lon -79.xxx
           `-1340 /usr/lib/piaware/helpers/faup978 --connect localhost:30978

Sep 21 21:45:35 orangepipc piaware[1322]: mlat-client(1334): Input connected to localhost:30005
Sep 21 21:45:35 orangepipc piaware[1322]: mlat-client(1334): Input format changed to BEAST, 12MHz clock
Sep 21 21:45:35 orangepipc piaware[1322]: faup978(1340): Connecting to localhost:30978
Sep 21 21:45:35 orangepipc piaware[1322]: faup978(1340): Connected to [::1]:30978
Sep 21 21:45:35 orangepipc piaware[1322]: piaware received a message from dump1090-fa!
Sep 21 21:45:35 orangepipc piaware[1322]: mlat-client(1334): Beast-format results connection with ::1:30104: connection established
Sep 21 21:45:36 orangepipc piaware[1322]: mlat-client(1334): Accepted Beast-format results connection from ::ffff:192.168.0.10:62474
Sep 21 21:45:36 orangepipc piaware[1322]: piaware has successfully sent several msgs to FlightAware!
Sep 21 21:46:06 orangepipc piaware[1322]: 113 msgs recv'd from dump1090-fa; 113 msgs sent to FlightAware
Sep 21 21:46:06 orangepipc piaware[1322]: 0 msgs recv'd from dump978-fa; 0 msgs sent to FlightAware

.

9 - Check Status dump1090-fa

pi@orangepipc:~$ sudo systemctl status dump1090-fa
* dump1090-fa.service - dump1090 ADS-B receiver (FlightAware customization)
   Loaded: loaded (/lib/systemd/system/dump1090-fa.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2019-09-21 21:42:47 EDT; 5min ago
     Docs: https://flightaware.com/adsb/piaware/
 Main PID: 1286 (dump1090-fa)
    Tasks: 3 (limit: 2072)
   Memory: 6.0M
   CGroup: /system.slice/dump1090-fa.service
           `-1286 /usr/bin/dump1090-fa --device-index 00001090 --gain -10 --ppm 0 --net-bo-port 30005 --max-range 360 --net --net-heartbea

Sep 21 21:42:47 orangepipc systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Sep 21 21:42:47 orangepipc dump1090-fa[1286]: Sat Sep 21 21:42:47 2019 EDT  dump1090-fa 3.7.2 starting up.
Sep 21 21:42:47 orangepipc dump1090-fa[1286]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001090)
Sep 21 21:42:47 orangepipc dump1090-fa[1286]: Detached kernel driver
Sep 21 21:42:47 orangepipc dump1090-fa[1286]: Found Rafael Micro R820T tuner
Sep 21 21:42:47 orangepipc dump1090-fa[1286]: rtlsdr: enabling tuner AGC
Sep 21 21:42:48 orangepipc dump1090-fa[1286]: Allocating 4 zero-copy buffers
Sep 21 21:42:48 orangepipc dump1090-fa[1286]: Detected Kernel usbfs mmap() bug, falling back to buffers in userspace

.

10 - Check Status dump978-fa

pi@orangepipc:~$ sudo systemctl status dump978-fa
* dump978-fa.service - dump978 ADS-B UAT receiver
   Loaded: loaded (/lib/systemd/system/dump978-fa.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2019-09-21 21:41:32 EDT; 7min ago
     Docs: https://flightaware.com/adsb/piaware/
 Main PID: 762 (dump978-fa)
    Tasks: 4 (limit: 2072)
   Memory: 17.1M
   CGroup: /system.slice/dump978-fa.service
           `-762 /usr/bin/dump978-fa --sdr driver=rtlsdr,serial=00000978 --format CS8 --raw-port 30978 --json-port 30979

Sep 21 21:41:35 orangepipc dump978-fa[762]: SoapySDR: using maximum manual gain 49.6 dB
Sep 21 21:41:35 orangepipc dump978-fa[762]: SoapySDR: using stream setting buffsize=262144
Sep 21 21:41:35 orangepipc dump978-fa[762]: Allocating 15 zero-copy buffers
Sep 21 21:41:35 orangepipc dump978-fa[762]: [::]:30978: accepted a connection from [::1]:46240
Sep 21 21:41:35 orangepipc dump978-fa[762]: Detected Kernel usbfs mmap() bug, falling back to buffers in userspace
Sep 21 21:41:42 orangepipc dump978-fa[762]: [::]:30978: accepted a connection from [::1]:46244
Sep 21 21:42:47 orangepipc dump978-fa[762]: [::1]:46240: connection closed
Sep 21 21:42:47 orangepipc dump978-fa[762]: [::]:30978: accepted a connection from [::1]:46246
Sep 21 21:45:30 orangepipc dump978-fa[762]: [::1]:46244: connection closed
Sep 21 21:45:35 orangepipc dump978-fa[762]: [::]:30978: accepted a connection from [::1]:46258