Skip to content

How to run radarbox24 feeder on x86

  • by

PlaneFinder or Flightradar24 are providing x86 (i386 or x86_64) binaries, Radarbox only provide arm version for raspberry pie.There is request for x86 feeder package in forum but what they released due GPL is just a joke – can’t be compiled without knowing some keys.

I have found that there is rbfeeder docker image for x86 – how is this possible?

Explained by docker image author: “As RadarBox only provide armhf binaries for Linux, qemu-user-static is used to allow the armhf binaries to execute on amd64 (yes, I know 😕)”

Interesting idea. But I don’t have docker (I don’t like it). So how to build it? Instructions are based on build.amd64.sh github source

1) Obtain rbfeeder binary for arm

apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 1D043681
echo "deb https://apt.rb24.com/ buster main" > /etc/apt/sources.list.d/rb24.list
dpkg --add-architecture armhf
apt-get update
apt-get install --no-install-recommends -y rbfeeder:armhf
# I am running devuan, so systemd was missing. I went manualy downloading package (command below) rbfeeder_0.3.5-20200727132301_armhf.deb and extracting from deb package
# apt-get download --print-uris rbfeeder:armhf

# I put binary into /usr/bin/rbfeeder and config into /etc/rbfeeder.ini
Set autostart_mlat=no

2) Prepare host for running arm binaries

apt install qemu-user qemu-user-static binfmt-support
apt install libc6-armhf-cross
# maybe this is not needed, if rbfeeder.deb package is installed (this is probably installed as dependencies)
apt-get install libcurl3-gnutls:armhf
apt-get install libglib2.0-0:armhf
apt-get install libjansson4:armhf
apt-get install librtlsdr0:armhf
apt-get install libncurses6:armhf

3) run arm binary of feeder

/usr/bin/qemu-arm-static -L /usr/arm-linux-gnueabihf /usr/bin/rbfeeder

it was crashing (SIGSEV) due missing file /sys/class/thermal/thermal_zone0/temp (it does not exists on x86)
Workaround:

umount -l /sys
mkdir -p /sys/class/thermal/thermal_zone0 ; touch temp

Run agan and /etc/rbfeeder.ini shoud contain now your key.

4) Claiming Your Receiver
Go to https://www.radarbox.com/
Create an account or sign in
Claim your receiver by visiting https://www.radarbox.com/raspberry-pi/claim and following the instructions

4) Run mlat-client:

#user is "sn" from etc/rbfeeder.ini
/usr/bin/python3.7 /usr/bin/mlat-client --user EXTRPIXXX --lat 48.XXX --lon 17.XXX --alt 250 --input-type beast --input-connect localhost:30005 --server mlat1.rb24.com:40900 --results beast,connect,127.0.0.1:30104 --results ext_basestation,listen,3010

All done!

https://www.radarbox.com/stations/EXTRPI010525

Leave a Reply

Your email address will not be published. Required fields are marked *