Closed jogibear9988 closed 9 months ago
Which Hardware? Which OS Version? Which piVCCU Version?
raspberry pi with pivccu3
pi@raspberrypi:/home/iobroker $ apt show pivccu3
Package: pivccu3
Version: 3.71.12-85
Priority: extra
Section: misc
Maintainer: Alexander Reinert <alex@areinert.de>
Installed-Size: unknown
Pre-Depends: pivccu-modules-dkms (>= 1.0.10), detect-radio-module, wait-sysfs-notify, perl, lxc, bridge-utils, net-tools, systemd, debconf (>= 0.5) | debconf-2.0
Conflicts: pivccu, pivccu-modules-dkms (>= 2.0.0)
Homepage: https://github.com/alexreinert/piVCCU
Download-Size: 122 MB
APT-Manual-Installed: yes
APT-Sources: https://apt.pivccu.de/piVCCU stable/main armhf Packages
Description: piVCCU - Homematic CCU LXC container
This package contains piVCCU - a Homematic CCU LXC container
N: There are 18 additional records. Please use the '-a' switch to see them.
pi@raspberrypi:/home/iobroker $ uname -r
6.1.61-v7l+
Which Hardware? Which OS Version?
And please output of sudo pivccu-info
sudo pivccu-info
piVCCU version: 3.71.12-85
OS: Raspbian GNU/Linux 11 (bullseye)
Kernel: 6.1.61-v7l+ armv7l
Kernel modules: Not available
Raw UART dev: Not available
Rasp.Pi UART: Assigned to GPIO pins
HMRF Hardware: unknown
HMIP Hardware: unknown
State: STOPPED
Which Hardware? Which OS Version?
Hardware : BCM2711
Revision : c03111
Serial : 100000008c9a7ae5
Model : Raspberry Pi 4 Model B Rev 1.1
raspbian bullseye
Did you reboot the system after the upgrade?
Output of sudo dpkg-reconfigure pivccu-modules-dkms
please.
rebootet 3 times
pi@raspberrypi:/home/iobroker/.npm/_logs $ sudo dpkg-reconfigure pivccu-modules-dkms Disabled DKMS service ... Done Remove obsolete kernel modules ... Done Ensure non mixed processor architecure ... Done Create kernel modules ... FAILED Check kernel headers ... FAILED No headers found for current active kernel 6.1.61-v7l+ Enable DKMS service ... Done pi@raspberrypi:/home/iobroker/.npm/_logs $
No headers found for current active kernel 6.1.61-v7l+
I'll look
pi@raspberrypi:/home/iobroker/.npm/_logs $ sudo apt install raspberrypi-kernel-headers Reading package lists... Done Building dependency tree... Done Reading state information... Done raspberrypi-kernel-headers is already the newest version (1:1.20230509~buster-1).
so the headers seem to be installed....
There is a header package installed, but it does not match the installed kernel. My guess: You updated to bullseye without changing /etc/apt/sources.list.d/raspi.list and manually updated the kernel using rpi-update. Is that correct?
I upgraded like described here: https://linuxnews.de/raspberry-pi-os-auf-bullseye-aktualisieren/
at first I ran:
sudo apt update
sudo apt full-upgrade
sudo rpi-update
then
sudo sed -i 's/buster/bullseye/g' /etc/apt/sources.list
sudo sed -i 's/buster/bullseye/g' /etc/apt/sources.list.d/raspi.list
then
sudo apt update && sudo apt install libgcc-8-dev gcc-8-base
and then
sudo apt full-upgrade
apt show raspberrypi-kernel shows a buster kenerl, maybe I need to switch that to bullseye?
pi@raspberrypi:/home/iobroker/.npm/_logs $ apt show raspberrypi-kernel
Package: raspberrypi-kernel
Version: 1:1.20230509~buster-1
Status: install ok installed
Priority: optional
Section: kernel
Source: raspberrypi-firmware
Maintainer: Serge Schneider <serge@raspberrypi.org>
Installed-Size: 287 MB
Provides: linux-image, wireguard-modules (= 1.0.0)
Breaks: raspberrypi-bootloader (<< 1.20160324-1)
Replaces: raspberrypi-bootloader (<< 1.20160324-1)
Homepage: https://github.com/raspberrypi/firmware
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: Raspberry Pi bootloader
This package contains the Raspberry Pi Linux kernel.
pi@raspberrypi:/home/iobroker/.npm/_logs $ apt show raspberrypi-kernel-headers
Package: raspberrypi-kernel-headers
Version: 1:1.20230509~buster-1
Status: install ok installed
Priority: optional
Section: kernel
Source: raspberrypi-firmware
Maintainer: Serge Schneider <serge@raspberrypi.org>
Installed-Size: 180 MB
Provides: linux-headers
Homepage: https://github.com/raspberrypi/firmware
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: Header files for the Raspberry Pi Linux kernel
This package provides the architecture-specific kernel header files for
the Raspberry Pi Linux kernel, generally used for building out-of-tree
kernel modules.
Yes, you need to install the bullseye kernel and its matching kernel header package. I assume, that the file /etc/apt/sources.list.d/raspi.list is not correct. And please do not use rpi-update. It install a testing kernel without headers. The Rasperry Pi foundation clearly state, that rpi-update should only be used, when they tell you to use it.
After using this tutorial to upgrade to bookworm it works: https://gist.github.com/jauderho/6b7d42030e264a135450ecc0ba521bd8
thx
After a System Upgrade I got the following error:
journalctl -xe shows following: