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

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