Hi @sunil
Thanks for the help.
Outputs of requested commands below:
The currently running kernel version: uname -a
Linux freedombox 6.1.0-18-arm64 #1 SMP Debian 6.1.76-1 (2024-02-01) aarch64 GNU/Linux
Show the list of currently installed kernel packages: dpkg -l linux-*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===================================-============-============-===============================================
ii linux-base 4.9 all Linux image base package
un linux-doc-6.1 <none> <none> (no description available)
ii linux-image-6.1.0-18-arm64 6.1.76-1 arm64 Linux 6.1 for 64-bit ARMv8 machines (signed)
un linux-image-6.1.0-18-arm64-unsigned <none> <none> (no description available)
ii linux-image-arm64 6.1.76-1 arm64 Linux for 64-bit ARMv8 machines (meta-package)
un linux-image-generic <none> <none> (no description available)
un linux-initramfs-tool <none> <none> (no description available)
un linux-latest-modules-6.1.0-18-arm64 <none> <none> (no description available)
ii linux-libc-dev:arm64 6.1.76-1 arm64 Linux support headers for userspace development
un linux-perf <none> <none> (no description available)
See if unattened-upgrades is refusing to remove kernel packages: unattended-upgrades --debug --dry-run
Starting unattended upgrades script
Allowed origins are: origin=Debian,codename=bookworm,label=Debian, origin=Debian,codename=bookworm,label=Debian-Security, origin=Debian,codename=bookworm-security,label=Debian-Security, o=Debian Backports,n=bookworm-backports,l=Debian Backports
Initial blacklist:
Initial whitelist (not strict):
Marking not allowed <apt_pkg.PackageFile object: filename:'/var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-updates_main_i18n_Translation-en' a=stable-updates,c=main,v=12-updates,o=Debian,l=Debian arch='' site='deb.debian.org' IndexType='Debian Translation Index' Size=83585 ID:5> with -32768 pin
Marking not allowed <apt_pkg.PackageFile object: filename:'/var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-updates_main_binary-arm64_Packages' a=stable-updates,c=main,v=12-updates,o=Debian,l=Debian arch='arm64' site='deb.debian.org' IndexType='Debian Package Index' Size=66088 ID:4> with -32768 pin
Applying pinning: PkgFilePin(id=5, priority=-32768)
Applying pin -32768 to package_file: <apt_pkg.PackageFile object: filename:'/var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-updates_main_i18n_Translation-en' a=stable-updates,c=main,v=12-updates,o=Debian,l=Debian arch='' site='deb.debian.org' IndexType='Debian Translation Index' Size=83585 ID:5>
Applying pinning: PkgFilePin(id=4, priority=-32768)
Applying pin -32768 to package_file: <apt_pkg.PackageFile object: filename:'/var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-updates_main_binary-arm64_Packages' a=stable-updates,c=main,v=12-updates,o=Debian,l=Debian arch='arm64' site='deb.debian.org' IndexType='Debian Package Index' Size=66088 ID:4>
Using (^linux-.*-[1-9][0-9]*\.[0-9]+\.[0-9]+-[0-9]+(-.+)?$|^kfreebsd-.*-[1-9][0-9]*\.[0-9]+\.[0-9]+-[0-9]+(-.+)?$|^gnumach-.*-[1-9][0-9]*\.[0-9]+\.[0-9]+-[0-9]+(-.+)?$|^.*-modules-[1-9][0-9]*\.[0-9]+\.[0-9]+-[0-9]+(-.+)?$|^.*-kernel-[1-9][0-9]*\.[0-9]+\.[0-9]+-[0-9]+(-.+)?$|^linux-.*-[1-9][0-9]*\.[0-9]+\.[0-9]+-[0-9]+(-.+)?$|^kfreebsd-.*-[1-9][0-9]*\.[0-9]+\.[0-9]+-[0-9]+(-.+)?$|^gnumach-.*-[1-9][0-9]*\.[0-9]+\.[0-9]+-[0-9]+(-.+)?$|^.*-modules-[1-9][0-9]*\.[0-9]+\.[0-9]+-[0-9]+(-.+)?$|^.*-kernel-[1-9][0-9]*\.[0-9]+\.[0-9]+-[0-9]+(-.+)?$) regexp to find kernel packages
Using (^linux-.*-6\.1\.0\-18\-arm64$|^linux-.*-6\.1\.0\-18$|^kfreebsd-.*-6\.1\.0\-18\-arm64$|^kfreebsd-.*-6\.1\.0\-18$|^gnumach-.*-6\.1\.0\-18\-arm64$|^gnumach-.*-6\.1\.0\-18$|^.*-modules-6\.1\.0\-18\-arm64$|^.*-modules-6\.1\.0\-18$|^.*-kernel-6\.1\.0\-18\-arm64$|^.*-kernel-6\.1\.0\-18$|^linux-.*-6\.1\.0\-18\-arm64$|^linux-.*-6\.1\.0\-18$|^kfreebsd-.*-6\.1\.0\-18\-arm64$|^kfreebsd-.*-6\.1\.0\-18$|^gnumach-.*-6\.1\.0\-18\-arm64$|^gnumach-.*-6\.1\.0\-18$|^.*-modules-6\.1\.0\-18\-arm64$|^.*-modules-6\.1\.0\-18$|^.*-kernel-6\.1\.0\-18\-arm64$|^.*-kernel-6\.1\.0\-18$) regexp to find running kernel packages
pkgs that look like they should be upgraded:
Fetched 0 B in 0s (0 B/s)
fetch.run() result: 0
Packages blacklist due to conffile prompts: []
No packages found that can be upgraded unattended and no pending auto-removals
The list of kept packages can't be calculated in dry-run mode.
Version of raspi-firmware package: dpkg -l raspi-firmware
dpkg-query: no packages found matching raspi-firmware
please note that i believe raspi-firmware
was removed from the debian installer after v.12.1. I believe this post may shed more light into the matter.
Contents of /boot and /boot/firmware: ls -l /boot
and ls -l /boot/firmware
me@freedombox:~$ ls -l /boot
total 68284
-rw-r--r-- 1 root root 291002 Şub 1 11:05 config-6.1.0-18-arm64
drwxr-xr-x 2 root root 16384 Oca 1 1970 firmware
-rw-r--r-- 1 root root 36981739 Şub 11 11:28 initrd.img-6.1.0-18-arm64
-rw-r--r-- 1 root root 83 Şub 1 11:05 System.map-6.1.0-18-arm64
-rw-r--r-- 1 root root 32622528 Şub 1 11:05 vmlinuz-6.1.0-18-arm64
me@freedombox:~$ ls -l /boot/firmware
total 89880
-rwxr-xr-x 1 root root 27406 Eki 18 16:31 bcm2711-rpi-400.dtb
-rwxr-xr-x 1 root root 27434 Eki 18 16:31 bcm2711-rpi-4-b.dtb
-rwxr-xr-x 1 root root 27323 Eki 18 16:31 bcm2711-rpi-cm4-io.dtb
-rwxr-xr-x 1 root root 14816 Eki 18 16:31 bcm2837-rpi-3-a-plus.dtb
-rwxr-xr-x 1 root root 14993 Eki 18 16:31 bcm2837-rpi-3-b.dtb
-rwxr-xr-x 1 root root 15349 Eki 18 16:31 bcm2837-rpi-3-b-plus.dtb
-rwxr-xr-x 1 root root 14355 Eki 18 16:31 bcm2837-rpi-cm3-io3.dtb
-rwxr-xr-x 1 root root 14667 Eki 18 16:31 bcm2837-rpi-zero-2-w.dtb
-rwxr-xr-x 1 root root 52460 Haz 15 2023 bootcode.bin
-rwxr-xr-x 1 root root 125 Ağu 12 2023 cmdline.txt
-rwxr-xr-x 1 root root 577 Şub 11 11:37 config.txt
-rwxr-xr-x 1 root root 3170 Haz 15 2023 fixup4cd.dat
-rwxr-xr-x 1 root root 5399 Haz 15 2023 fixup4.dat
-rwxr-xr-x 1 root root 8379 Haz 15 2023 fixup4db.dat
-rwxr-xr-x 1 root root 8379 Haz 15 2023 fixup4x.dat
-rwxr-xr-x 1 root root 3170 Haz 15 2023 fixup_cd.dat
-rwxr-xr-x 1 root root 7262 Haz 15 2023 fixup.dat
-rwxr-xr-x 1 root root 10228 Haz 15 2023 fixup_db.dat
-rwxr-xr-x 1 root root 10226 Haz 15 2023 fixup_x.dat
-rwxr-xr-x 1 root root 36981739 Şub 11 11:37 initrd.img-6.1.0-18-arm64
-rwxr-xr-x 1 root root 803964 Haz 15 2023 start4cd.elf
-rwxr-xr-x 1 root root 3744808 Haz 15 2023 start4db.elf
-rwxr-xr-x 1 root root 2249280 Haz 15 2023 start4.elf
-rwxr-xr-x 1 root root 2996680 Haz 15 2023 start4x.elf
-rwxr-xr-x 1 root root 803964 Haz 15 2023 start_cd.elf
-rwxr-xr-x 1 root root 4816712 Haz 15 2023 start_db.elf
-rwxr-xr-x 1 root root 2973536 Haz 15 2023 start.elf
-rwxr-xr-x 1 root root 3720360 Haz 15 2023 start_x.elf
-rwxr-xr-x 1 root root 32622528 Şub 11 11:37 vmlinuz-6.1.0-18-arm64
kindly note that upon noticing that apt
was installing the recent kernel and the old weren’t being removed i manually intervened with the following:
a. removed old kernels manually with following (x refers to old kernels)
sudo apt remove linux-image-x-arm64
sudo rm /boot/firmware/vmlinuz-x-arm64
sudo rm /boot/firmware/initrd.img-x-arm64
b. copied recent kernel files to /boot/firmware (y refers most recent kernel version)
sudo cp /boot/initrd.img-y-arm64 /boot/firmware/
sudo cp /boot vmlinuz-y-arm64 /boot/firmware/
c. manually modified the /boot/firmware/config.txt
file to point to the recent kernel at boot.
# Do not modify this file!
#
# It is automatically generated upon install or update of either the
# firmware or the Linux kernel.
#
# If you need to set boot-time parameters, do so via the
# /etc/default/raspi-firmware, /etc/default/raspi-firmware-custom or
# /etc/default/raspi-extra-cmdline files.
# Switch the CPU from ARMv7 into ARMv8 (aarch64) mode
arm_64bit=1
enable_uart=1
upstream_kernel=1
kernel=vmlinuz-y-arm64
# For details on the initramfs directive, see
# https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=10532
initramfs initrd.img-y-arm64
yes I know - it does say do not modify : ) i was out of options at the time…
Again, thank you for the time and support.
Ged
*edited: was trying to solve issue at the time, cant be sure if raspi-firware
is installed default.