Boot issue while upgrading to Raspberry PI 4

When I plugged my SD card (which worked flawlessly on my “older Raspberry PI” model) into my brand new “Raspberry PI 4” it simply didn’t boot. (My base image was a piaware Raspbian download from flightaware.) This is how I fixed that.

Backup your SD card beforehand, for instruction click here.

First we need to download the newest firmware as the previous one was not built with Raspberry PI 4 support.

https://github.com/raspberrypi/firmware/

Copy all the files in “firmware-master/boot/” onto your SD card and replace all the old files.

Next we need to edit cmdline.txt

Replace it’s content with this

dwc_otg.fiq_fix_enable=2 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rootflags=noload net.ifnames=0

It should boot again normally…

How to replace dump1090 with dump1090-mutability

I used the flightaware image for this swap to mutability. First thing you need to do is enable SSH on the device. Stop and remove dump1090-fa.

sudo service dump1090-fa stop
sudo apt-get remove dump1090-fa

Check the releases page on the dump1090 mutability git. Choose your version and copy the URL to the .deb file which is usually listed at the bottom if you click on a specific release.

Download & Install

sudo wget https://github.com/mutability/dump1090/releases/download/v1.14/dump1090-mutability_1.14_armhf.deb

sudo dpkg -i dump1090-mutability_1.14_armhf.deb

sudo apt-get update && sudo apt-get install dump1090-mutability

 

Configure

sudo dpkg-reconfigure dump1090-mutability (Make sure to choos port 30104 instead of 30004 when prompted)

 

Start

sudo service dump1090-mutability start

The only issue I’m currently having with this is the MLAT timestamp error. Btw. the URL to the radar map changed and is now accessible via serveradress/dump1090

How to enable SSH access on piaware (flightaware) since version 3.3

 

For security reasons, SSH access is disabled by default on new PiAware SD card installs, starting with version 3.3. To enable SSH, create an empty file on the /boot partition of the SD card with the filename of “ssh” only (no file extension). When this file is present, SSH will be automatically enabled.

Make sure however to change the default password for the user “pi” which is “flightaware” to something to your liking using…

To change the password of your account, use command: passwd.

To change password of any account when login as root, use command: passwd <account name>

How to clone/backup your Raspberry Pi’s SD card

If you want to preserve all of the data, you will probably have to create a disk image. Furthermore, Windows cannot recognize typical Linux filesystems, so you probably won’t even be able to see your files, when you plug in your SD card.

Creating a disk image will preserve not only files but also the filesystem structure and when you decide to flash your new SD card, you will be able to just plug it in and it will work.

Linux

On Linux, you can use the standard dd tool:

dd if=/dev/sdx of=/path/to/image bs=1M

Where /dev/sdx is your SD card.

Mac

On Mac, you can also use the standard dd tool with a slightly different syntax:

dd if=/dev/rdiskx of=/path/to/image bs=1m

Where /dev/rdiskx is your SD card.

(using rdisk is preferable as its the raw device – quicker)

To find out which disk your device is type diskutil list at a command prompt – also, you may need to be root; to do this type sudo -s and enter your password when prompted.

Windows

Option 1

On Windows, you can use the reverse process that you used when flashing the SD card.

You can use Win32 Disk Imager, which is the preferred tool for flashing a SD card of the Foundation. Just enter the filename, select the device and press read:

Win32 Disk Imager

Of course, you can also use RawWrite, dd for Windows or similar tools, the process is quite similar.

Option 2

If you don’t want to back up your entire system, but only specific files, I suggest you connect to your Raspberry Pi via SFTP and copy the files to your local computer (You can use the WinScp client). If you have SSH enabled, SFTP usually requires no special configuration on the Raspberry Pi side.

Another option is to copy the files to a remote system using rsync.

You can also install special drivers so your Windows can read ext filesystems (and will thus be able to read the whole SD card), such as ext2fsd but it is probably not worth the effort.

 

Source: http://raspberrypi.stackexchange.com/questions/311/how-do-i-backup-my-raspberry-pi

Updating your raspberrypi

Updating the GPU firmware on Debian/Raspbian

You can update the firmware using rpi-update by Hexxeh. On Raspbian, you can install it by running

sudo apt-get install rpi-update
To update the software, run

sudo rpi-update
Updating userspace and kernel Software on Debian/Raspbian

sudo apt-get upgrade
If there are any errors, you can try updating the database first by running

sudo apt-get update

Source: stackexchange

Back to Top