alexreinert / piVCCU

piVCCU is a project to install the original Homematic CCU3 firmware inside a virtualized container (lxc) on ARM based single board computers.
Apache License 2.0
300 stars 62 forks source link

Installation auf Raspian Bookworm 64 Bit erkennt kein Funkmodul auf den UART #516

Closed simatec closed 6 months ago

simatec commented 6 months ago

Ich wollte heute mein System neu aufsetzen und scheitere daran das HM-MOD-RPI-PCB zum laufen zu bekommen.

Ich habe folgende Schritte mit dem aktuellen Raspian ausgeführt und egal was ich versucht habe, das funkmodul wird nicht erkannt.

pi@raspberrypi:~ $ sudo pivccu-info
piVCCU version: 3.73.9-87
OS:             Debian GNU/Linux 12 (bookworm)
Kernel:         6.1.0-rpi8-rpi-v8 aarch64
Kernel modules: Available
Raw UART dev:   Available
Rasp.Pi UART:   Not assigned to GPIO pins
HMRF Hardware:  unknown
HMIP Hardware:  unknown
State:          RUNNING
PID:            2206
IP:             10.1.1.200
Link:           vethpivccu
 TX bytes:      12.22 KiB
 RX bytes:      119.43 KiB
 Total bytes:   131.65 KiB

Hier die Schritte, die ich zum installieren verwendet habe:

sudo apt update && sudo apt upgrade
wget -q -O - https://apt.pivccu.de/piVCCU/public.key | sudo tee /usr/share/keyrings/pivccu.asc
echo "deb [signed-by=/usr/share/keyrings/pivccu.asc] https://apt.pivccu.de/piVCCU stable main" | sudo tee /etc/apt/sources.list.d/pivccu.list
sudo apt update

sudo apt install build-essential bison flex libssl-dev
sudo apt install raspberrypi-kernel-headers pivccu-modules-dkms

sudo apt install pivccu-modules-raspberrypi

sudo bash -c 'cat << EOT >> /boot/config.txt
dtoverlay=pi3-miniuart-bt
enable_uart=1
force_turbo=1
core_freq=250
EOT'

sudo sed -i /boot/cmdline.txt -e "s/console=serial0,[0-9]\+ //"
sudo sed -i /boot/cmdline.txt -e "s/console=ttyAMA0,[0-9]\+ //"

sudo bash -c 'cat << EOT > /etc/network/interfaces
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

auto br0
iface br0 inet static
  bridge_ports eth0
  address 10.x.x.205
  netmask 255.255.255.0
  gateway 10.x.x.1
  dns-nameservers 10.x.x.211 10.x.x.219
EOT'

sudo reboot

sudo apt install pivccu3

Hat jemand einen Tipp, was ich hier noch beachten muss?

simatec commented 6 months ago

Ich konnte den Fehler finden ... Im aktuellen Bookworm Raspian müsste der Pfad für folgende Befehle angepasst werden.


sudo bash -c 'cat << EOT >> /boot/firmware/config.txt
dtoverlay=pi3-disable-bt
EOT'
sudo sed -i /boot/firmware/cmdline.txt -e "s/console=serial0,[0-9]\+ //"
sudo sed -i /boot/firmware/cmdline.txt -e "s/console=ttyAMA0,[0-9]\+ //"
alexreinert commented 6 months ago

Ich habe die Doku entsprechend angepasst, bis vor kurzem waren da zumindest noch passende Symlinks, aber scheinbar wurden die jetzt entfernt.