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

OrangePiPC / Armbian Buster

Another tricky way to install ver 3.7.1 packages from Flightaware Repository

UPDATED: Sept 16, 2019 12:55 pm EDT

.

Change apt source from Buster to Stretch and then install piaware, skyview978, and dump978-fa
After installing piaware & dump978-fa, revert apt source to Buster and then install dump1090-fa

RESULTS:

Item Installation
Status
Operating
Status
Remarks
Piaware OK OK -
dump1090-fa OK OK warning “Detected Kernel usbfs mmap() bug,
falling back to buffers in userspace”
dump978-fa OK OK warning “Detected Kernel usbfs mmap() bug,
falling back to buffers in userspac”
skyview978 OK OK -
.

STEP-BY-STEP METHOD

STEP-1: Install piaware skyview978, & dump978-fa

Requires apt-source to be changed from Buster to Stretch

## Change default apt source from Buster to Stretch

pi@orangepipc:~$ sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
pi@orangepipc:~$ sudo sed -i 's/buster/stretch/g' /etc/apt/sources.list
pi@orangepipc:~$ sudo apt-get update
## 1.1 - Install piaware 
pi@orangepipc:~$ wget http://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_3.7.1_all.deb
pi@orangepipc:~$ sudo dpkg -i piaware-repository_3.7.1_all.deb
pi@orangepipc:~$ sudo apt-get update
pi@orangepipc:~$ sudo apt-get install piaware
..... ......
Created symlink /etc/systemd/system/piaware.service.wants/generate-pirehose-cert.service -> /lib/systemd/system/generate-pirehose-cert.service.
Processing triggers for rsyslog (8.1901.0-1) ...
Processing triggers for systemd (241-5) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...

## 1.2 - Install skyview978 & dump978-fa

pi@orangepipc:~$ sudo apt-get install skyview978 soapysdr-module-rtlsdr soapysdr0.5-2-module-all
.... ....
0 upgraded, 49 newly installed, 0 to remove and 21 not upgraded.
Need to get 6174 kB/8226 kB of archives.
After this operation, 30.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
....  ....

pi@orangepipc:~$ sudo apt-get install dump978-fa
.... ....
The following NEW packages will be installed:
  dump978-fa
.... ....
Setting up dump978-fa (3.7.1) ...
The user `dump978' is already a member of `plugdev'.
Created symlink /etc/systemd/system/default.target.wants/dump978-fa.service -> /lib/systemd/system/dump978-fa.service.

.

STEP-2: dump1090-fa

Install fails with apt-source Stretch.
Revert apt source to Buster

## Revert apt source from Stretch back to Buster
pi@orangepipc:~$ sudo cp /etc/apt/sources.list_backup /etc/apt/sources.list
pi@orangepipc:~$ sudo apt-get update


## Install dump1090-fa
pi@orangepipc:~$ sudo apt-get install dump1090-fa
.... ....
.... ....
Setting up dump1090-fa (3.7.1) ...
Adding user `dump1090' to group `plugdev' ...
Adding user dump1090 to group plugdev
Done.
Enabling lighttpd integration..
Enabling dump1090-fa: ok
Run "service lighttpd force-reload" to enable changes
Enabling lighttpd integration (stat cache)..
Enabling dump1090-fa-statcache: ok
Run "service lighttpd force-reload" to enable changes
Restarting lighttpd..
Created symlink /etc/systemd/system/default.target.wants/dump1090-fa.service -> /lib/systemd/system/dump1090-fa.service.
Processing triggers for systemd (241-5) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...


.

STEP-3: 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

pi@orangepipc:~$ sudo reboot

.

.
.

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 Mon 2019-09-16 16:24:55 UTC; 25min ago
     Docs: https://flightaware.com/adsb/piaware/
 Main PID: 4054 (piaware)
    Tasks: 6 (limit: 2072)
   Memory: 11.9M
   CGroup: /system.slice/piaware.service
           |-4054 /usr/bin/piaware -p /run/piaware/piaware.pid -plainlog -statusfile /run/piaware/status.json
           |-4067 /usr/lib/piaware/helpers/fa-mlat-client --input-connect localhost:30005 --input-type dump1090 --results beast,connect,localhost:30104
           |-4070 /usr/lib/piaware/helpers/faup1090 --net-bo-ipaddr localhost --net-bo-port 30005 --stdout --lat 43.xxx --lon -79.xxx
           `-4903 /usr/lib/piaware/helpers/faup978 --connect localhost:30978

Sep 16 16:39:58 orangepipc piaware[4054]: mlat-client(4067): Receiver status: connected
Sep 16 16:39:58 orangepipc piaware[4054]: mlat-client(4067): Server status:   synchronized with 114 nearby receivers
Sep 16 16:39:58 orangepipc piaware[4054]: mlat-client(4067): Receiver:  179.6 msg/s received       73.4 msg/s processed (41%)
Sep 16 16:39:58 orangepipc piaware[4054]: mlat-client(4067): Server:      0.1 kB/s from server    0.0kB/s TCP to server     0.5kB/s UDP to server
Sep 16 16:39:58 orangepipc piaware[4054]: mlat-client(4067): Results:  63.7 positions/minute
Sep 16 16:39:58 orangepipc piaware[4054]: mlat-client(4067): Aircraft: 26 of 49 Mode S, 24 of 41 ADS-B used
Sep 16 16:40:30 orangepipc piaware[4054]: 5274 msgs recv'd from dump1090-fa (1576 in last 5m); 5274 msgs sent to FlightAware
Sep 16 16:40:30 orangepipc piaware[4054]: 0 msgs recv'd from dump978-fa (0 in last 5m); 0 msgs sent to FlightAware
Sep 16 16:45:30 orangepipc piaware[4054]: 6491 msgs recv'd from dump1090-fa (1217 in last 5m); 6491 msgs sent to FlightAware
Sep 16 16:45:30 orangepipc piaware[4054]: 0 msgs recv'd from dump978-fa (0 in last 5m); 0 msgs sent to FlightAware

.

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 Mon 2019-09-16 16:15:35 UTC; 36min ago
     Docs: https://flightaware.com/adsb/piaware/
 Main PID: 768 (dump1090-fa)
    Tasks: 3 (limit: 2072)
   Memory: 12.3M
   CGroup: /system.slice/dump1090-fa.service
           `-768 /usr/bin/dump1090-fa --device-index 00001090 --gain -10 --ppm 0 --net-bo-port 30005 --max-range 360 --net --net-heartbeat 60 --net-ro-

Sep 16 16:15:35 orangepipc systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Sep 16 16:15:35 orangepipc dump1090-fa[768]: Mon Sep 16 16:15:35 2019 UTC  dump1090-fa 3.7.1 starting up.
Sep 16 16:15:36 orangepipc dump1090-fa[768]: rtlsdr: using device #1: Generic RTL2832U (Realtek, RTL2832U, SN 00001090)
Sep 16 16:15:36 orangepipc dump1090-fa[768]: Detached kernel driver
Sep 16 16:15:36 orangepipc dump1090-fa[768]: Found Rafael Micro R820T tuner
Sep 16 16:15:36 orangepipc dump1090-fa[768]: rtlsdr: enabling tuner AGC
Sep 16 16:15:36 orangepipc dump1090-fa[768]: Allocating 4 zero-copy buffers
Sep 16 16:15:36 orangepipc dump1090-fa[768]: Detected Kernel usbfs mmap() bug, falling back to buffers in userspace

.

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 Mon 2019-09-16 16:30:19 UTC; 22min ago
     Docs: https://flightaware.com/adsb/piaware/
 Main PID: 4876 (dump978-fa)
    Tasks: 4 (limit: 2072)
   Memory: 4.3M
   CGroup: /system.slice/dump978-fa.service
           `-4876 /usr/bin/dump978-fa --sdr driver=rtlsdr,serial=00000978 --format CS8 --raw-port 30978 --json-port 30979

Sep 16 16:30:20 orangepipc dump978-fa[4876]: Detached kernel driver
Sep 16 16:30:20 orangepipc dump978-fa[4876]: Found Rafael Micro R820T tuner
Sep 16 16:30:20 orangepipc dump978-fa[4876]: Exact sample rate is: 2083333.135571 Hz
Sep 16 16:30:20 orangepipc dump978-fa[4876]: [R82XX] PLL not locked!
Sep 16 16:30:20 orangepipc dump978-fa[4876]: SoapySDR: using maximum manual gain 49.6 dB
Sep 16 16:30:20 orangepipc dump978-fa[4876]: SoapySDR: using stream setting buffsize=262144
Sep 16 16:30:20 orangepipc dump978-fa[4876]: Allocating 15 zero-copy buffers
Sep 16 16:30:20 orangepipc dump978-fa[4876]: Detected Kernel usbfs mmap() bug, falling back to buffers in userspace
Sep 16 16:30:48 orangepipc dump978-fa[4876]: [::]:30978: accepted a connection from [::1]:36078
Sep 16 16:30:49 orangepipc dump978-fa[4876]: [::]:30978: accepted a connection from [::1]:36080

.
.

Station 76000:

1090Mhz: OrangePiPC + ProStick Plus + FA Filter + FA Antenna (indoor in a window)
978 MHz: OrangePiPC + Generic DVB-T with it’s mag-mount whip antenna in window