A fairly serious bug has been uncovered in sdm with respect to Bookworm. Bookworm IMGs customized with 'apt upgrade' and kernel 6.1.58 gets installed, that is, were updated to 6.1.58-1+rpt2 kernel during an IMG customize, are not really running the 6.1.58 kernel.
If the system was booted and runnng when the upgrade to 6.1.58 was done, there is no problem.
IDENTFICATION
You can identify problematic systems that are booted and running by:
- Determine the latest kernel version that is installed:
sudo apt search linux-image | grep installed
- Determine what kernel is running:
uname -r
If the version of the kernel running does NOT match the latest installed kernel, the system needs to be repaired.
REPAIRING THE RUNNING SYSTEM
- Install sdm V10.1 or later on your host:
curl -L https://raw.githubusercontent.com/gitbls/sdm/master/EZsdmInstaller | bash
- Determine which kernels are installed:
sudo apt search linux-image | grep 6.1.58 | grep installed
- Update each installed kernel:
sudo apt install --reinstall linux-image 6.1.0-rpi6-rpi-v8 linux-headers-6.1.0-rpi6-rpi-v8
Note that on 64-bit systems you should update both the -v8 and -2712 kernels.
REPAIRING SDM
- Install sdm V10.1 or later on your host:
curl -L https://raw.githubusercontent.com/gitbls/sdm/master/EZsdmInstaller | bash
- Delete and recreate any affected customized IMGs, or alternatively use the above REPAIRING THE RUNNING SYSTEM while doing a
--explore on the IMG with sdm 10.1
REPAIRING CUSTOMIZED IMGs
First update sdm on the host per above, then:
sdm --explore /path/to/img.img using sdm V10.1 or later
- Determine which kernels are installed:
sudo apt search linux-image | grep 6.1.58 | grep installed
apt install --reinstall linux-image 6.1.0-rpi6-rpi-v8 linux-headers-6.1.0-rpi6-rpi-v8
WHAT WAS BROKEN
Long story short: sdm was not updated correctly for /boot/firmware in Bookworm
A fairly serious bug has been uncovered in sdm with respect to Bookworm. Bookworm IMGs customized with 'apt upgrade' and kernel 6.1.58 gets installed, that is, were updated to 6.1.58-1+rpt2 kernel during an IMG customize, are not really running the 6.1.58 kernel.
If the system was booted and runnng when the upgrade to 6.1.58 was done, there is no problem.
IDENTFICATION
You can identify problematic systems that are booted and running by:
sudo apt search linux-image | grep installeduname -rIf the version of the kernel running does NOT match the latest installed kernel, the system needs to be repaired.
REPAIRING THE RUNNING SYSTEM
curl -L https://raw.githubusercontent.com/gitbls/sdm/master/EZsdmInstaller | bashsudo apt search linux-image | grep 6.1.58 | grep installedsudo apt install --reinstall linux-image 6.1.0-rpi6-rpi-v8 linux-headers-6.1.0-rpi6-rpi-v8Note that on 64-bit systems you should update both the -v8 and -2712 kernels.
REPAIRING SDM
curl -L https://raw.githubusercontent.com/gitbls/sdm/master/EZsdmInstaller | bash--exploreon the IMG with sdm 10.1REPAIRING CUSTOMIZED IMGs
First update sdm on the host per above, then:
sdm --explore /path/to/img.imgusing sdm V10.1 or latersudo apt search linux-image | grep 6.1.58 | grep installedapt install --reinstall linux-image 6.1.0-rpi6-rpi-v8 linux-headers-6.1.0-rpi6-rpi-v8WHAT WAS BROKEN
Long story short: sdm was not updated correctly for /boot/firmware in Bookworm