FlightAware Discussions

Upgraded Raspberry Pi OS Buster to Bullseye

 

image

 

Till the date of this post, the Raspberrypi foundation has not released their Bullseye image. To date their latest release is Buster. Then how I got Bullseye shown in screenshot above? Please see below to know:

Wrote following image to microSD card
2021-05-07-raspios-buster-arm64-lite.img .
Slipped microSD care in RPi Model 4, powered up and performed the following steps:

NOTE:
Later, instead of above 64-bit image, I used normal 32-bit Raspberry Pi OS Buster image:
2021-05-07-raspios-buster-armhf-lite.zip

However in this 32-bit image, in file /etc/apt/sources.list, I had to comment-out all lines pointing to raspbian.raspberrypi.org, and copy-paste 3 lines given below pointing to deb.debian.org:

deb [trusted=yes] http://deb.debian.org/debian bullseye main contrib non-free
deb [trusted=yes] http://deb.debian.org/debian-security/ bullseye/updates main contrib non-free
deb [trusted=yes] http://deb.debian.org/debian bullseye-updates main contrib non-free

CAUTION:

Do NOT use this method on Piaware SD Card image, or on an existing Buster image with piaware, dump1090-fa or dump978-fa already installed. Most likely it will break your system. Use this method on a freshly written Buster image, and AFTER upgrade to Bullseye, install piaware, dump1090-fa & dump978-fa using bash-scripts given in next post of this thread.

(1) Opened the sources.list file for editing:
sudo nano /etc/apt/sources.list

It contained following lines:

deb http://deb.debian.org/debian buster main contrib non-free
deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb http://deb.debian.org/debian buster-updates main contrib non-free

(2) Edited these line and replaced buster with bullseye, and added [trusted=yes]`

The lines became like this:

deb [trusted=yes] http://deb.debian.org/debian bullseye main contrib non-free
deb [trusted=yes] http://deb.debian.org/debian-security/ bullseye/updates main contrib non-free
deb [trusted=yes] http://deb.debian.org/debian bullseye-updates main contrib non-free

(3) Saved and closed the file.

(4) Updated:
sudo apt update

(5) Upgraded:
sudo apt dist-upgrade

Above command resulted in a very lengthy upgrade process (about 45 minutes). Had to be patient.
In between upgrade process:

  • It gave some info about apt, and stopped with a line having only colon (:).
    Exited this by pressing q key.
  • It asked if you want to stop services without asking with No button highlighted red. Changed to Yes highlighted red and pressed Enter to proceed.
  • it asked if I want to keep existing configurations, and default is to keep (N). Typed N and pressed Enter key to accept “keep”.

(6) When upgrade completed, rebooted RPi to apply the changes.

sudo reboot 

(7) After reboot, used following command to remove the packages which were automatically installed and are no longer required.

sudo apt autoremove  

 

 

2 Likes

(1) dump1090-fa

 
INSTALL
sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/piaware-ubuntu20-amd64/master/install-dump1090-fa.sh)"

 
STATUS

pi@raspberrypi:~ $ 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 Fri 2021-10-08 11:08:45 BST; 9min ago
     Docs: https://flightaware.com/adsb/piaware/
 Main PID: 679 (dump1090-fa)
    Tasks: 3 (limit: 4165)
   CGroup: /system.slice/dump1090-fa.service
           └─679 /usr/bin/dump1090-fa --quiet --device-type rtlsdr --device-index 00001090 --gain 60 --adaptive-range --fix --lat 43.58010 --lon -79.62360 ->

Oct 08 11:08:45 raspberrypi dump1090-fa[679]: Found Rafael Micro R820T tuner
Oct 08 11:08:46 raspberrypi dump1090-fa[679]: rtlsdr: tuner gain set to about 58.6 dB (gain step 29) (tuner AGC enabled)
Oct 08 11:08:46 raspberrypi dump1090-fa[679]: adaptive: using 50% duty cycle
Oct 08 11:08:46 raspberrypi dump1090-fa[679]: adaptive: enabled adaptive gain control with gain limits 0.0dB (step 0) .. 58.6dB (step 29)
Oct 08 11:08:46 raspberrypi dump1090-fa[679]: adaptive: enabled dynamic range control, target dynamic range 30.0dB
Oct 08 11:08:46 raspberrypi dump1090-fa[679]: Allocating 4 zero-copy buffers
Oct 08 11:08:56 raspberrypi dump1090-fa[679]: adaptive: available dynamic range (24.7dB) < required dynamic range (30.0dB), switching to downward scan
Oct 08 11:08:56 raspberrypi dump1090-fa[679]: adaptive: changing gain from 58.6dB (step 29) to 49.6dB (step 28) because: probing dynamic range gain lower bo>
Oct 08 11:08:56 raspberrypi dump1090-fa[679]: rtlsdr: tuner gain set to 49.6 dB (gain step 28)
Oct 08 11:09:18 raspberrypi dump1090-fa[679]: adaptive: available dynamic range (34.7dB) >= required dynamic range (30.0dB), stopping downwards scan here


 

(2) dump978-fa

 
INSTALL
sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/piaware-ubuntu20-amd64/master/install-dump978-fa.sh)"

 
CONFIGURE

sudo sed -i 's/^RECEIVER_SERIAL=.*/RECEIVER_SERIAL=00001090/' /etc/default/dump1090-fa   
sudo sed -i 's/driver=rtlsdr[^ ]* /driver=rtlsdr,serial=00000978 /' /etc/default/dump978-fa   

sudo systemctl reboot   

 
STATUS

pi@raspberrypi:~ $ 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 Fri 2021-10-08 11:08:45 BST; 7min ago
     Docs: https://flightaware.com/adsb/piaware/
 Main PID: 672 (dump978-fa)
    Tasks: 4 (limit: 4165)
   CGroup: /system.slice/dump978-fa.service
           └─672 /usr/bin/dump978-fa --sdr driver=rtlsdr,serial=00000978 --format CS8 --raw-port 30978 --json-port 30979

Oct 08 11:08:47 raspberrypi dump978-fa[672]: Detached kernel driver
Oct 08 11:08:47 raspberrypi dump978-fa[672]: Found Rafael Micro R820T tuner
Oct 08 11:08:47 raspberrypi dump978-fa[672]: Exact sample rate is: 2083333.135571 Hz
Oct 08 11:08:47 raspberrypi dump978-fa[672]: [R82XX] PLL not locked!
Oct 08 11:08:47 raspberrypi dump978-fa[672]: SoapySDR: using maximum manual gain 49.6 dB
Oct 08 11:08:47 raspberrypi dump978-fa[672]: SoapySDR: using stream setting buffsize=262144
Oct 08 11:08:47 raspberrypi dump978-fa[672]: Allocating 15 zero-copy buffers
Oct 08 11:08:47 raspberrypi dump978-fa[672]: [::]:30978: accepted a connection from [::1]:39446
Oct 08 11:08:48 raspberrypi dump978-fa[672]: [::]:30978: accepted a connection from [::1]:39452
Oct 08 11:08:49 raspberrypi dump978-fa[672]: 0.0.0.0:30978: accepted a connection from 10.0.0.22:46058

 

(3) Piaware

 
INSTALL
sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/piaware-ubuntu20-amd64/master/install-piaware.sh)"

Additional commands if using dump978

sudo piaware-config uat-receiver-type sdr  

sudo systemctl restart piaware   

 
STATUS

pi@raspberrypi:~ $ 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 Fri 2021-10-08 11:08:45 BST; 6min ago
     Docs: https://flightaware.com/adsb/piaware/
 Main PID: 685 (piaware)
    Tasks: 6 (limit: 4165)
   CGroup: /system.slice/piaware.service
           ├─ 685 /usr/bin/piaware -p /run/piaware/piaware.pid -plainlog -statusfile /run/piaware/status.json
           ├─ 875 /usr/lib/piaware/helpers/faup1090 --net-bo-ipaddr localhost --net-bo-port 30005 --stdout --lat 43.580 --lon -79.624
           ├─ 878 /usr/lib/piaware/helpers/faup978 --connect localhost:30978
           └─1225 /usr/lib/piaware/helpers/fa-mlat-client --input-connect localhost:30005 --input-type dump1090 --results beast,connect,localhost:30104 --re>

Oct 08 11:10:08 raspberrypi piaware[685]: mlat-client(1225): fa-mlat-client 0.2.11 starting up
Oct 08 11:10:08 raspberrypi piaware[685]: mlat-client(1225): Using UDP transport to 2620:13d:c000:11::198 port 6956
Oct 08 11:10:08 raspberrypi piaware[685]: mlat-client(1225): Listening for Beast-format results connection on port 30105
Oct 08 11:10:08 raspberrypi piaware[685]: mlat-client(1225): Listening for Extended Basestation-format results connection on port 30106
Oct 08 11:10:08 raspberrypi piaware[685]: mlat-client(1225): Route MTU changed to 1500
Oct 08 11:10:08 raspberrypi piaware[685]: mlat-client(1225): Input connected to localhost:30005
Oct 08 11:10:08 raspberrypi piaware[685]: mlat-client(1225): Input format changed to BEAST, 12MHz clock
Oct 08 11:10:08 raspberrypi piaware[685]: mlat-client(1225): Beast-format results connection with ::1:30104: connection established
Oct 08 11:14:20 raspberrypi piaware[685]: 307 msgs recv'd from dump1090-fa (278 in last 5m); 301 msgs sent to FlightAware
Oct 08 11:14:20 raspberrypi piaware[685]: 1 msgs recv'd from dump978-fa (0 in last 5m); 1 msgs sent to FlightAware

 

(4) Piaware Web

 
INSTALL
sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/piaware-ubuntu20-amd64/master/install-piaware-web.sh)"

.

3 Likes