Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Fix for broken install of Piaware 3.6.3 and dump1090-fa 3.6.3 #471

Open
abcd567a opened this issue Sep 19, 2018 · 5 comments

Comments

@abcd567a
Copy link

@abcd567a abcd567a commented Sep 19, 2018

Workaround for installation of version 3.6.3 of:

  • dump1090-fa
  • piaware
    .

Tested on:

Raspbian (Stretch) on Raspberry Pi

Debian 9.5 (Stretch) x64 on Intel PC

Ubuntu 18.04 (Bionic) x64 on Intel PC

.
.

STEP 1 of 5

Update version numbers

sudo nano ~/adsb-receiver/bash/variables.sh

Scroll down till you see this code

# FlightAware PiAware
DUMP1090_FA_VERSION="3.5.3"
PIAWARE_VERSION="3.5.3"

Change 3.5.3 to 3.6.3 in both lines

.
.

STEP 2 of 5

Add code to install package libbladerf-dev to fulfill dependancy

sudo nano ~/adsb-receiver/bash/decoders/dump1090-fa.sh

Ctrl+w, then type CheckPackage
Cursor will jump to following code

CheckPackage git
CheckPackage curl
....
....

Above this code, ADD following line:

CheckPackage libbladerf-dev 

.
.

STEP 3 of 5

Add code to install package devscripts to provide needed tool
Add code to detect distro's Codename (jessie, stretch, bionic, xenial) etc
Modify code using jessie to use Codename detected by script

sudo nano ~/adsb-receiver/bash/feeders/piaware.sh

3.1 - Ctrl+w keys, type CheckPackage
The cursor will jump to following code

CheckPackage build-essential 
CheckPackage debhelper 
....
....

Above this code ADD following line

CheckPackage devscripts 

3.2 - Press Ctrl+w keys, type jessie
The cursor will jump to following line:

./sensible-build.sh jessie

Comment-out above line (by adding # at its start), and add following 2 new line below it.

CODENAME=(`lsb_release -sc`)
./sensible-build.sh ${CODENAME}

3.3 - Press Ctrl+w keys, type package-jessie
The cursor will jump to following line:

cd ${RECEIVER_BUILD_DIRECTORY}/piaware_builder/package-jessie 2>&1 

Comment out this line (by adding # at its start), and add following new line below it

cd ${RECEIVER_BUILD_DIRECTORY}/piaware_builder/package-${CODENAME} 2>&1 

.
.

STEP 4 of 5

Remove restriction which prevents installation of of dump1090-fa on Ubuntu ver 17.10 or higher

sudo nano ~/adsb-receiver/bash/main.sh

Ctrl+w and type Ubuntu 17.10 and press Enter
the cursor will jump to top line of following chunk of code

        # Do not show dump 1090-fa option for Ubuntu 17.10 or higher until it is updated to support it.
        if [ ! "$RECEIVER_OS_DISTRIBUTION" == "ubuntu" ] && (( $(bc -l <<<"$RECEIVER_OS_RELEASE < 17.10") )); then
            DUMP1090_OPTION=$(whiptail --nocancel --backtitle "${RECEIVER_PROJECT_TITLE}" --title "Choose Dump1090 Version To Install" --$
        else
            DUMP1090_OPTION=$(whiptail --nocancel --backtitle "${RECEIVER_PROJECT_TITLE}" --title "Choose Dump1090 Version To Install" --$
        fi

.
.
In this 5-line chunk of code, comment out 4 lines and leave only 1 line un-commented, as shown below

        # Do not show dump 1090-fa option for Ubuntu 17.10 or higher until it is updated to support it.
        #if [ ! "$RECEIVER_OS_DISTRIBUTION" == "ubuntu" ] && (( $(bc -l <<<"$RECEIVER_OS_RELEASE < 17.10") )); then
            DUMP1090_OPTION=$(whiptail --nocancel --backtitle "${RECEIVER_PROJECT_TITLE}" --title "Choose Dump1090 Version To Install" --$
        #else
        #    DUMP1090_OPTION=$(whiptail --nocancel --backtitle "${RECEIVER_PROJECT_TITLE}" --title "Choose Dump1090 Version To Install" -$
        #fi

.
.

STEP 5 of 5

Run the script

cd adsb-receiver
./install.sh

.
.

Screenshot 1 of 3 - Raspbian (Stretch) arm Raspberry Pi

dump1090-fa 3.63 + Piaware 3.6.3

dump1090-fa 3 6 3 on raspbian stretch rpi

.
.

Screenshot 2 of 3 - Ubuntu 18.04 (Bionic) x64

dump1090-fa 3.63 + Piaware 3.6.3

dump1090-fa 3 6 3 on ubuntu 18 04 x64

.

Screenshot 3 of 3 - Debian 9.5 (Stretch) x64

dump1090-fa 3.63 + Piaware 3.6.3

dump1090-fa 3 6 3 on debian 9 5 x64

@jprochazka

This comment has been minimized.

Copy link
Owner

@jprochazka jprochazka commented Oct 11, 2018

As far as Ubuntu 18.04+ support goes things still appear to be broken so the option to install dump1090-fa will remain hidden from Ubuntu 18.04+ users until it is resolved.

sdr_bladerf.c: In function ‘show_config’:
sdr_bladerf.c:116:76: error: passing argument 3 of ‘bladerf_get_frequency’ from incompatible pointer type [-Werror=incompatible-pointer-types]
         (status = bladerf_get_frequency(BladeRF.device, BLADERF_MODULE_RX, &freq)) < 0 ||
                                                                            ^
In file included from sdr_bladerf.c:23:0:
/usr/include/libbladeRF.h:1262:15: note: expected ‘bladerf_frequency * {aka long unsigned int *}’ but argument is of type ‘unsigned int *’
 int CALL_CONV bladerf_get_frequency(struct bladerf *dev,
               ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Makefile:41: recipe for target 'sdr_bladerf.o' failed
make[2]: *** [sdr_bladerf.o] Error 1
make[2]: Leaving directory '/home/joe/adsb-receiver/build/dump1090-fa/dump1090'
dh_auto_build: make -j1 RTLSDR=yes BLADERF=yes DUMP1090_VERSION=3.6.3 returned exit code 2
debian/rules:23: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory '/home/joe/adsb-receiver/build/dump1090-fa/dump1090'
debian/rules:32: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

This looks to be related to this pull request on the FlightAware dump1090 repository.
flightaware/dump1090#22

@abcd567a

This comment has been minimized.

Copy link
Author

@abcd567a abcd567a commented Oct 11, 2018

Build & Install dump1090-fa WITHOUT bladeRF

Installing dump1090-fa on Debian 9.5 amd64 (on Intel PC).

The asdsb-receiver project script failed due to packages for bladeRF.

Installed by hand, and it works fine. Thanks to Oliver Jowett for guidance.

1- INSTALL PRE-REQUISITES

sudo apt update  
sudo apt install git  
sudo apt install libncurses5-dev  
sudo apt install librtlsdr-dev  

sudo apt install make
sudo apt install pkg-config
sudo apt install build-essential

2 - BUILD

sudo mkdir ~/build-dump-fa  
cd ~/build-dump-fa  
sudo git clone https://github.com/flightaware/dump1090.git  
cd ~/build-dump-fa/dump1090  

sudo make BLADERF=no  

3 - TEST

cd ~/build-dump-fa/dump1090
sudo ./dump1090

Thu Aug 23 10:58:16 2018 EDT  dump1090-fa  starting up.
rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832UFA, SN 00000001)
Detached kernel driver
Found Rafael Micro R820T tuner
rtlsdr: tuner gain set to 49.6 dB

4 - CONFIGURATION & INSTALLATION TO AUTO-START AT BOOT

sudo cp -r ~/build-dump-fa/dump1090/dump1090  /usr/bin/dump1090-fa  

sudo cp ~/build-dump-fa/dump1090/debian/dump1090-fa.default /etc/default/dump1090-fa 

sudo cp ~/build-dump-fa/dump1090/debian/dump1090-fa.service  /lib/systemd/system/dump1090-fa.service  

sudo systemctl enable dump1090-fa.service 

sudo adduser --system dump1090 

sudo wget -O  /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules"  

sudo reboot

5 - SETUP WEB SERVER AND SKYVIEW MAP

sudo apt install lighttpd 
sudo mkdir /usr/share/dump1090-fa  
sudo cp -r ~/build-dump-fa/dump1090/public_html /usr/share/dump1090-fa/html  

sudo cp ~/build-dump-fa/dump1090/debian/lighttpd/89-dump1090-fa.conf  /etc/lighttpd/conf-available/89-dump1090-fa.conf  
sudo lighty-enable-mod dump1090-fa  
sudo service lighttpd force-reload  

ENABLED RANGE CIRCLES AND CENTER MARKER
sudo nano /usr/share/dump1090-fa/html/config.js

Edited following entries
SiteShow = true; // true to show a center marker
SiteLat = xx.xxxx; // position of the marker
SiteLon = yy.yyyy;

.
.

image

@onshisan

This comment has been minimized.

Copy link

@onshisan onshisan commented Oct 12, 2018

Few days ago I have written Armbian_5.59_Orangepipc_Debian_stretch_next_4.14.65 on my OrangePi PC, and I used package install of dump1090-fa 3.6.3 and Piaware 3.6.3 from Flightaware site https://flightaware.com/adsb/piaware/install (steps 2 and 3)

This weekend I will try the following and post the results here.

I will be available to test/replicate anything of interest, too. As of right now, FA's instructions (step 2) are giving me some trouble:

Skipping acquire of configured file 'piaware/binary-arm64/Packages' as repository 'http://flightaware.com/adsb/piaware/files/packages stretch InRelease' doesn't support architecture 'arm64'

@abcd567a

This comment has been minimized.

Copy link
Author

@abcd567a abcd567a commented Oct 12, 2018

As far as Ubuntu 18.04+ support goes things still appear to be broken so the option to install dump1090-fa will remain hidden from Ubuntu 18.04+ users until it is resolved.

Skipping acquire of configured file 'piaware/binary-arm64/Packages' as repository 'http://flightaware.com/adsb/piaware/files/packages stretch InRelease' doesn't support architecture 'arm64'

@jprochazka
@onshisan 
Please see this issue:

Issue #473

Build "deb package" of dump1090-fa WITHOUT bladeRF on armhf and amd64

@slickfddi

This comment has been minimized.

Copy link

@slickfddi slickfddi commented Jan 28, 2019

Build & Install dump1090-fa WITHOUT bladeRF

Installing dump1090-fa on Debian 9.5 amd64 (on Intel PC).

The asdsb-receiver project script failed due to packages for bladeRF.

Installed by hand, and it works fine. Thanks to Oliver Jowett for guidance.

1- INSTALL PRE-REQUISITES

sudo apt update  
sudo apt install git  
sudo apt install libncurses5-dev  
sudo apt install librtlsdr-dev  

sudo apt install make
sudo apt install pkg-config
sudo apt install build-essential

2 - BUILD

sudo mkdir ~/build-dump-fa  
cd ~/build-dump-fa  
sudo git clone https://github.com/flightaware/dump1090.git  
cd ~/build-dump-fa/dump1090  

sudo make BLADERF=no  

3 - TEST

cd ~/build-dump-fa/dump1090
sudo ./dump1090

Thu Aug 23 10:58:16 2018 EDT  dump1090-fa  starting up.
rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832UFA, SN 00000001)
Detached kernel driver
Found Rafael Micro R820T tuner
rtlsdr: tuner gain set to 49.6 dB

4 - CONFIGURATION & INSTALLATION TO AUTO-START AT BOOT

sudo cp -r ~/build-dump-fa/dump1090/dump1090  /usr/bin/dump1090-fa  

sudo cp ~/build-dump-fa/dump1090/debian/dump1090-fa.default /etc/default/dump1090-fa 

sudo cp ~/build-dump-fa/dump1090/debian/dump1090-fa.service  /lib/systemd/system/dump1090-fa.service  

sudo systemctl enable dump1090-fa.service 

sudo adduser --system dump1090 

sudo wget -O  /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules"  

sudo reboot

5 - SETUP WEB SERVER AND SKYVIEW MAP

sudo apt install lighttpd 
sudo mkdir /usr/share/dump1090-fa  
sudo cp -r ~/build-dump-fa/dump1090/public_html /usr/share/dump1090-fa/html  

sudo cp ~/build-dump-fa/dump1090/debian/lighttpd/89-dump1090-fa.conf  /etc/lighttpd/conf-available/89-dump1090-fa.conf  
sudo lighty-enable-mod dump1090-fa  
sudo service lighttpd force-reload  

ENABLED RANGE CIRCLES AND CENTER MARKER
sudo nano /usr/share/dump1090-fa/html/config.js

Edited following entries
SiteShow = true; // true to show a center marker
SiteLat = xx.xxxx; // position of the marker
SiteLon = yy.yyyy;

.
.

image

You sir, are a hero. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.