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

I had the same problem.
First I had a RasPi2B+ running CUPS and PiHole.
Then I Installed the ADSB-Feeders - this worked, but became lame.
So I bought a Banana Pi M1 (http://www.banana-pi.org/m1.html) and installed ArmBian Buster.
The Installations worked fine till I tried to Install the ADSB-Feeders.
This didn’t work.
Finallly I have re-activated the RasPi for the Feeders, it was simpler than to search the small differences between RaspBian and ArmBian.

2 Likes

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

At a glance you didn’t install any soapysdr driver modules.

I think it was installed. Please see this.

I have slipped out test microSD card and now regular microSD card (Armbian Stretch) is in the Orange Pi. Will tomorrow morning check if it was actually installed

apt-cache policy libsoapysdr0.5-2

That’s the soapysdr base library, not a driver. You need at least one driver, e.g. the rtlsdr module. There is a Recommends: dependency in the dump978 package:

Recommends: skyaware978, soapysdr-module-rtlsdr

Thanks for guidance. I am away from OrangePi, so will install missing module tomorrow after slipping-in the test microSD card.

sudo apt-get install soapysdr-module-rtlsdr

Realized that I have missed the recommended packages for dump978.
Purged skyview978 & dump978-fa, then did following, and now all is working OK.
Updated my post accordingly.

@orangepipc:~$ sudo apt-get install dump978-fa
.... ....
The following additional packages will be installed:
  libsoapysdr0.5-2
Recommended packages:
  skyview978 soapysdr-module-rtlsdr soapysdr0.5-2-module-all | soapysdr0.5-2-module
The following NEW packages will be installed:
  dump978-fa libsoapysdr0.5-2

Do you want to continue? [Y/n] n
Abort.

pi@orangepipc:~$ sudo apt-get install skyview978 soapysdr-module-rtlsdr soapysdr0.5-2-module-all
.... ....
The following additional packages will be installed:
  libairspy0 libasyncns0 libboost-atomic1.62.0 libboost-chrono1.62.0 libboost-date-time1.62.0
  libboost-serialization1.62.0 libboost-test1.62.0 libboost-thread1.62.0 libboost-timer1.62.0 libflac8 libhackrf0
  libhamlib2 libice6 libjack-jackd2-0 liblimesuite16.12-1 libogg0 libopus0 libpulse0 librtaudio5a libsm6 libsndfile1
  libsoapysdr0.5-2 libuhd003 libusb-0.1-4 libvorbis0a libvorbisenc2 libx11-6 libx11-data libx11-xcb1 libxau6 libxcb1
  libxdmcp6 libxext6 libxi6 libxtst6 multiarch-support soapysdr0.5-2-module-airspy soapysdr0.5-2-module-audio
  soapysdr0.5-2-module-bladerf soapysdr0.5-2-module-hackrf soapysdr0.5-2-module-lms7 soapysdr0.5-2-module-redpitaya
  soapysdr0.5-2-module-remote soapysdr0.5-2-module-rtlsdr soapysdr0.5-2-module-uhd x11-common
Suggested packages:
  jackd2 opus-tools pulseaudio gnuradio
Recommended packages:
  limesuite-udev
The following NEW packages will be installed:
  libairspy0 libasyncns0 libboost-atomic1.62.0 libboost-chrono1.62.0 libboost-date-time1.62.0
  libboost-serialization1.62.0 libboost-test1.62.0 libboost-thread1.62.0 libboost-timer1.62.0 libflac8 libhackrf0
  libhamlib2 libice6 libjack-jackd2-0 liblimesuite16.12-1 libogg0 libopus0 libpulse0 librtaudio5a libsm6 libsndfile1
  libsoapysdr0.5-2 libuhd003 libusb-0.1-4 libvorbis0a libvorbisenc2 libx11-6 libx11-data libx11-xcb1 libxau6 libxcb1
  libxdmcp6 libxext6 libxi6 libxtst6 multiarch-support skyview978 soapysdr-module-rtlsdr soapysdr0.5-2-module-airspy
  soapysdr0.5-2-module-all soapysdr0.5-2-module-audio soapysdr0.5-2-module-bladerf soapysdr0.5-2-module-hackrf
  soapysdr0.5-2-module-lms7 soapysdr0.5-2-module-redpitaya soapysdr0.5-2-module-remote soapysdr0.5-2-module-rtlsdr
  soapysdr0.5-2-module-uhd x11-common
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
.... ....
.... ....
Processing triggers for systemd (241-5) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...

.
.

pi@orangepipc:~$ sudo apt-get install dump978-fa 
.... .... 
The following NEW packages will be installed:
  dump978-fa
.... ....
Unpacking dump978-fa (3.7.1) ...
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.

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

Ver 3.8~dev on Armbian Buster / OrangePiPC

For Armbian Buster, the piaware ver 3.8~dev does not have issue of dependencies. Here is the procedure I took to do this:

pi@orangepipc:~$ uname -a
Linux orangepipc 5.3.9-sunxi #19.11.3 SMP Mon Nov 18 18:49:43 CET 2019 armv7l GNU/Linux

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

(1) dump10909-fa

The package install works fine. No need to build it from source code

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 

sudo apt-get install dump1090-fa 
sudo reboot 

(2) Piaware

Package install fails. Build from source-code

2.1 - Install dependencies

sudo apt install debhelper tcl8.6-dev python3-dev python3-venv libz-dev dh-systemd    
sudo apt install tcl tclx8.4 tcllib tcl-tls itcl3 libboost-system-dev     
sudo apt install libboost-program-options-dev libboost-regex-dev libboost-filesystem-dev       

2.2 - Clone source-code, checkout to dev version, and build the package

git clone https://github.com/flightaware/piaware_builder.git
cd piaware_builder
git checkout dev

./sensible-build.sh buster
cd package-buster
sudo dpkg-buildpackage -b 

cd ../
sudo dpkg -i piaware_3.8.0~dev_armhf.deb  

2.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 

2.4 - Checks what version installed

pi@orangepipc:~$ apt-cache policy piaware
piaware:
  Installed: 3.8.0~dev
  Candidate: 3.8.0~dev
  Version table:
 *** 3.8.0~dev 100
        100 /var/lib/dpkg/status
     3.7.2 500
        500 http://flightaware.com/adsb/piaware/files/packages stretch/piaware armhf Packages

2.5 - Check status

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-12-23 13:29:47 EST; 25min ago
     Docs: https://flightaware.com/adsb/piaware/
 Main PID: 1001 (piaware)
    Tasks: 3 (limit: 2068)
   Memory: 9.1M
   CGroup: /system.slice/piaware.service
           ├─1001 /usr/bin/piaware -p /run/piaware/piaware.pid -plainlog -statusfile /run/piaware/status.json
           └─1198 /usr/lib/piaware/helpers/faup1090 --net-bo-ipaddr localhost --net-bo-port 30005 --stdout --lat 43.xxx --lon -79.xxx

Dec 23 13:29:51 orangepipc piaware[1001]: Started faup1090 (pid 1198) to connect to dump1090-fa
Dec 23 13:29:51 orangepipc piaware[1001]: UAT support disabled by local configuration setting: uat-receiver-type
Dec 23 13:29:51 orangepipc piaware[1001]: piaware received a message from dump1090-fa!
Dec 23 13:29:52 orangepipc piaware[1001]: piaware has successfully sent several msgs to FlightAware!
Dec 23 13:30:22 orangepipc piaware[1001]: 196 msgs recv'd from dump1090-fa; 196 msgs sent to FlightAware
Dec 23 13:35:22 orangepipc piaware[1001]: 1806 msgs recv'd from dump1090-fa (1610 in last 5m); 1806 msgs sent to FlightAware
Dec 23 13:40:22 orangepipc piaware[1001]: 3496 msgs recv'd from dump1090-fa (1690 in last 5m); 3496 msgs sent to FlightAware
Dec 23 13:45:22 orangepipc piaware[1001]: 5062 msgs recv'd from dump1090-fa (1566 in last 5m); 5062 msgs sent to FlightAware
Dec 23 13:50:22 orangepipc piaware[1001]: 6714 msgs recv'd from dump1090-fa (1652 in last 5m); 6714 msgs sent to FlightAware
Dec 23 13:55:22 orangepipc piaware[1001]: 8320 msgs recv'd from dump1090-fa (1606 in last 5m); 8320 msgs sent to FlightAware

.

(3) dump978-fa (FAILED)

3.1 - Install build tools & dependencies

sudo apt install build-essential debhelper dh-systemd       
sudo apt install libboost-system-dev libboost-program-options-dev    
sudo apt install libboost-regex-dev libboost-filesystem-dev libsoapysdr-dev     

3.2. Clone source-code, build package, and install package

git clone https://github.com/flightaware/dump978.git 
cd dump978  
git checkout dev    

sudo dpkg-buildpackage -b  

cd ../
sudo dpkg -i dump978-fa_3.8.0~dev_armhf.deb

3.3 - Configure

3.3.1 - Serialize dongles: (CLICK HERE)

3.3.2 - configure dump1090 and dump978

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 

# Reboot Pi to implement configuration settings
sudo reboot

3.4 - Check status

pi@orangepipc:~$ sudo systemctl status dump978-fa
[sudo] password for pi:
● dump978-fa.service - dump978 ADS-B UAT receiver
   Loaded: loaded (/lib/systemd/system/dump978-fa.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Tue 2019-12-24 14:15:21 EST; 21s ago
     Docs: https://flightaware.com/adsb/piaware/
  Process: 5018 ExecStart=/usr/share/dump978-fa/start-dump978-fa (code=exited, status=2)
 Main PID: 5018 (code=exited, status=2)

1 Like

Hi Guys,

How are the orange Pi PC going? Still recommended?

Cheers
Chris

YES

1 Like

Yes from me too. Orange Pi PC has been my Piaware feeder for the last 4+ years

Workaround for installing dump978-fa ver 7.0 on OrangePiPC / Armbian Bullseye from my PPA.

The dump978-fa, though got installed, but failed to run. This was due to failure of Armbian’s apt to install dependencies listed under “Recommends:” in package’s file debian/rules .

The workaround I did was to install these manually by following command:

sudo apt install soapysdr-module-rtlsdr
sudo apt install skyaware978
sudo systemctl restart dump978-fa

sudo systemctl status dump978-fa

I have compared the /etc/apt/source.list of Armbian and RaspberryPiOS, and found the difference is as follows:

Armbian points to "deb http://deb.debian.org/debian"
RaspberryPi OS points to "deb http://raspbian.raspberrypi.org/raspbian/"

 

NOTE: This workaround is not required when installing same package on RPi / RaspberryPi OS Bullseye. Apt automatically installs all required dependencies.

 

1 Like