I am trying to troubleshoot a problem with upgrading the kernel and/or bootloader on a Raspberry Pi 2 Model B
I remotely manage several of these older (headless) raspberry-pi's as OpenVPN servers for several years now. They still are up to their task.
However, the upgrade on ONE of these pi's is repeatedly problematic: it somehow gets misconfigured after almost every raspberrypi-kernel or -bootloader update.
Since the problem until now happened using Stretch, I was hoping that a fresh install of Buster on another sd card would fix it, but unfortunately, already the first (remote) upgrade after the fresh install failed similarly.
There were NO related errors/warnings during the upgrade, and /var/log/apt/term.log shows NO evidence of any problems
The upgrade was supposed to bring the kernel from 4.19.58 to 4.19.66, but after the necessary reboot, uname -a still returns 4.19.58 This preventing the openvpn server from starting up properly, and conseuently I have to go through several hoops to get access to the problem pi over ssl (the ssl server fortunately still starts up)
The problem is NOT related to this specific version of the kernel/bootloader: it happened several times before with previous versions as well, however only on ONE specific raspberry pi
Steps taken so far:
Checked /lib/modules: the (new) 4.19.66 subfolders are present
Compared md5sum of the following files/folders with a similar pi:
/boot/*
/boot/overlays/*
/lib/modules/*
/var/cache/apt/archives/raspberrypi-*
/var/cache/apt/archives/libraspberrypi-*
Ran debsums on libraspberrypi-(bin dev) and raspberrypi-(bootloader kernel sys-mods net-mods)
However, no differences show up.
The only difference found (apart from uname -a) is, when I run
sudo /opt/vc/bin/vcgencmd version
The problem pi returns:
Jul 9 2019 14:40:53
Copyright (c) 2012 Broadcom
version 6c3fe3f096a93de3b34252ad98cdccadeb534be2 (clean) (release) (start)
The working pi shows
Aug 15 2019 12:06:42
Copyright (c) 2012 Broadcom
version 0e6daa5106dd4164474616408e0dc24f997ffcf3 (clean) (release) (start)
Could it be a hardware problem? It happens on both on Stretch and Buster, and I have used another sd card for the Buster installation. However, as far as I know, all 'code' comes from the sd card and nothing is written to the board...
Any hints on how to proceed would be welcome.