FlightAware Discussions

Howto Install Piaware 4.0 on 64 bit Raspberry Pi OS (Raspbian) / Pi4

Distro image used: 2020-08-20-raspios-buster-arm64

Download page : https://downloads.raspberrypi.org/raspios_arm64/images/

Direct Download Link: https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2020-08-24/2020-08-20-raspios-buster-arm64.zip

OS details (on RPi 4)
$ uname -a
Linux raspberrypi 5.4.51-v8+ #1333 SMP PREEMPT Mon Aug 10 16:58:35 BST 2020 aarch64 GNU/Linux

Three options for Installation of dump1090-fa, piaware, and dump978-fa

OPTION-1: Bash script Installs pre-built packages & dependencies - FAST
OPTION-2: Bash script clones source-code, builds, & installs packages - LENGTHY
OPTION-3: Manualy clone source-code, build, & installs packages -TEDIOUS
 





1 - Bash script Installs pre-built packages & dependencies - FAST

1.1 - dump1090-fa

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/piaware-64bit-raspbian/main/install-dump1090.sh)"

IMPORTANT: Please reboot Pi after installing the dump1090-fa.

1.2 - piaware

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/piaware-64bit-raspbian/main/install-piaware.sh)"

1.3 - dump978-fa

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/piaware-64bit-raspbian/main/install-dump978.sh)"

IMPORTANT: Above script configures dump1090-fa to used dongle with serial number 00001090, and dump978-fa to use dongle serial number 00000978. You must serialize your dongles to match this (CLICK HERE) .
 





2 - Bash script clones source-code, builds, & installs packages - LENGTHY

2.1 - dump1090-fa

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/piaware-64bit-raspbian/main/build-and-install-dump1090.sh)"

IMPORTANT: Please reboot Pi after installing the dump1090-fa.

2.2 - piaware

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/piaware-64bit-raspbian/main/build-and-install-piaware.sh)"

2.3 - dump978-fa

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/piaware-64bit-raspbian/main/build-and-install-dump978.sh)"

IMPORTANT: Above script configures dump1090-fa to used dongle with serial number 00001090, and dump978-fa to use dongle serial number 00000978. You must serialize your dongles to match this (CLICK HERE) .
 





3 - Manually Build Packages from Source Code - TEDIOUS

3.1 - dump1090-fa

3.1.1 - Install build tools

sudo apt install -y git dh-systemd devscripts  

3.1.2 - Install dependencies

sudo apt install lighttpd librtlsdr-dev libusb-1.0-0-dev libncurses5-dev libbladerf-dev   
sudo apt install libhackrf-dev liblimesuite-dev   

 

3.1.3 - Clone dump1090-fa source code, build & install package

cd ~/
git clone https://github.com/flightaware/dump1090  

cd dump1090  
sudo dpkg-buildpackage -b --no-sign  

cd ../  
sudo dpkg -i dump1090-fa_*.deb   

IMPORTANT: Please reboot Pi after installing the dump1090-fa.

sudo reboot   

3.2 - piaware

3.2.1 - Install build tools

sudo apt install debhelper dh-systemd   

3.2.2 - Build & Install tcl-tls from source code
3.2.2.1 - Install tcl-tls dependencies

sudo apt install libssl-dev tcl-dev chrpath  

3.2.2.2 - Clone tcl-tls source code, build and install package

cd  ~/
git clone http://github.com/flightaware/tcltls-rebuild.git  
cd tcltls-rebuild
./prepare-build.sh buster
cd package-buster
sudo dpkg-buildpackage -b --no-sign

cd ../
sudo dpkg -i tcl-tls_*.deb

3.2.2.3 - Put tcl-tls package on hold to prevent its replacement by repository during upgrade

sudo apt-mark hold tcl-tls

3.2.3 - Install piaware dependencies

sudo apt install libboost-system-dev libboost-program-options-dev
sudo apt install libboost-regex-dev libboost-filesystem-dev
sudo apt install tclx8.4 tcllib itcl3

3.2.4 - Clone piaware source code, build & install package

cd ~/
git clone http://github.com/flightaware/piaware_builder
cd piaware_builder
sudo ./sensible-build.sh buster

cd package-buster
sudo dpkg-buildpackage -b --no-sign

cd ../
sudo dpkg -i piaware_*.deb   

3.3 - dump978-fa

3.3.1 - Install build tools

sudo apt install dh-systemd devscripts

3.3.2 - Install dependencies

sudo apt install libboost-system-dev libboost-program-options-dev  
sudo apt install libboost-regex-dev libboost-filesystem-dev  
sudo apt install libsoapysdr-dev lighttpd  

3.3.3 - Clone dump978-fa source code

cd ~/
git clone https://github.com/flightaware/dump978.git  
cd dump978
sudo dpkg-buildpackage -b

cd ../
sudo dpkg -i dump978-fa_*.deb
sudo dpkg -i skyaware978_*.deb

3.3.4 - Configure

3.3.4.1 - Serialize dongles: (CLICK HERE)

3.3.4.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.3.5 - Check Status

$ sudo systemctl status dump978-fa 

3.3.6 - Check dump978 Map
In browser go to this address:
IP-of-Pi//skyaware978/

 

4 Likes