piVCCU Support für rpi-update in testing verfügbar

Virtualisierte CCU für Raspberry Pi und Clones

Moderator: Co-Administratoren

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

piVCCU Support für rpi-update in testing verfügbar

Beitrag von deimos » 18.01.2018, 10:26

Hi,

nach einem Hinweis von Leo, dass man die Kernel Sourcen bei rpi-update zuverlässig erkennen kann, habe ich das Modul Paket für den Raspberry jetzt umgebaut, so dass auf dem Raspberry analog zum Tinkerboard oder den OrangePis jetzt auch DKMS für die Module genutzt wird. Zusätzlich ist aber noch eine Erkennung drin, ob ein Kernel Update mit rpi-update gemacht wurde und in diesem Fall werden dann auch die passenden Sourcen für die Erstellung geladen.

Auch ein erneutes Update mittels rpi-update wird unterstützt, ohne dass man da manuell eingreifen müsste.

Einzig muss man beachten, dass beim ersten Reboot nach einem Kernel Update mit rpi-update das Laden von piVCCU bis zu 15 Minuten dauert.

Ich bleibe aber weiterhin bei meiner Empfehlung rpi-update nicht zu nutzen, da hier ein unstable Kernel installiert wird, der ggf. auch mal einige Bugs hat. Die Raspberry Foundation schreibt selbst, dass das sogar soweit gehen kann, dass der Raspberry nicht mehr bootet.

Ich habe das grade eben im testing apt Repo hochgeladen. Wenn keine Probleme auftauchen, werde ich das in ca. 2 Wochen in stable übernehmen.

Viele Grüße
Alex

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: piVCCU Support für rpi-update in testing verfügbar

Beitrag von deimos » 02.02.2018, 18:55

Hi,

ich habe das jetzt auch grade in stable bereitgestellt.

Viele Grüße
Alex

maverick
Beiträge: 20
Registriert: 26.05.2016, 19:07

Re: piVCCU Support für rpi-update in testing verfügbar

Beitrag von maverick » 02.02.2018, 23:02

Hi Alex,

erstmals Danke für das tolle Projekt!
ich habe soeben das Update gemacht und bekomme folgende Fehlermeldung(en)

Code: Alles auswählen

● pivccu.service - piVCCU
   Loaded: loaded (/lib/systemd/system/pivccu.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2018-02-02 22:49:45 CET; 12min ago
  Process: 13781 ExecStart=/var/lib/piVCCU/start_container.sh (code=exited, status=1/FAILURE)
      CPU: 21ms

Feb 02 22:49:45 raspberry-1 systemd[1]: Starting piVCCU...
Feb 02 22:49:45 raspberry-1 piVCCU[13784]: Could not locate raw uart interface. Are the kernel modules and the device tree overlays installed?
Feb 02 22:49:45 raspberry-1 start_container.sh[13781]: <11>Feb  2 22:49:45 piVCCU: Could not locate raw uart interface. Are the kernel modules and the device tree overlays installed?
Feb 02 22:49:45 raspberry-1 systemd[1]: pivccu.service: Control process exited, code=exited status=1
Feb 02 22:49:45 raspberry-1 systemd[1]: Failed to start piVCCU.
Feb 02 22:49:45 raspberry-1 systemd[1]: pivccu.service: Unit entered failed state.
Feb 02 22:49:45 raspberry-1 systemd[1]: pivccu.service: Failed with result 'exit-code'.
Gruß
Mav

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: piVCCU Support für rpi-update in testing verfügbar

Beitrag von deimos » 03.02.2018, 07:18

Hi,

hast du schon mal einen Reboot probiert? Wäre der erste Versuch.

Wenn das nicht hilft: Kannst du bitte mal folgendes ausführen (jeweils Zeile für Zeile) und die Ausgabe hier posten:

Code: Alles auswählen

sudo pivccu-info
uname -a
sudo dpkg -s pivccu-modules-raspberrypi
sudo dpkg -s pivccu-modules-dkms
sudo dpkg-reconfigure pivccu-modules-dkms
Viele Grüße
Alex

maverick
Beiträge: 20
Registriert: 26.05.2016, 19:07

Re: piVCCU Support für rpi-update in testing verfügbar

Beitrag von maverick » 03.02.2018, 19:58

Hi,

reboot hatte leider nicht geholfen.

Code: Alles auswählen

piVCCU version: 2.31.25-21
Kernel modules: Not available
Raw UART dev:   Not available
Rasp.Pi3 UART:  Assigned to GPIO pins
Board serial:   Unknown
State:          STOPPED
Linux raspberry-1 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux
Package: pivccu-modules-raspberrypi
Status: install ok installed
Priority: extra
Section: kernel
Maintainer: Alexander Reinert <alex@areinert.de>
Architecture: armhf
Version: 2.0-8
Depends: raspberrypi-kernel-headers, pivccu-modules-dkms, bc
Pre-Depends: debconf (>= 0.5) | debconf-2.0
Description: Raspberry Pi kernel modules needed for Homematic
This package contains the Raspberry Pi kernel needed for Homematic.
Homepage: https://github.com/alexreinert/piVCCU
Package: pivccu-modules-dkms
Status: install ok installed
Priority: extra
Section: kernel
Maintainer: Alexander Reinert <alex@areinert.de>
Architecture: all
Version: 1.0.8
Provides: pivccu-kernel-modules
Pre-Depends: dkms, build-essential, debconf (>= 0.5) | debconf-2.0
Conffiles:
/lib/systemd/system/pivccu-dkms.service d187d04431c630742ac6401c9f5e575b
Description: DKMS package for kernel modules needed for Homematic
This package contains the a DKMS package for kernel needed for Homematic.
Homepage: https://github.com/alexreinert/piVCCU
Removed /etc/systemd/system/multi-user.target.wants/pivccu-dkms.service.

-------- Uninstall Beginning --------
Module: pivccu
Version: 1.0.8
Kernel: 4.9.35+ (armv7l)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

dw_apb_raw_uart.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.35+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


eq3_char_loop.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.35+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


generic_raw_uart.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.35+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


meson_raw_uart.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.35+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


pl011_raw_uart.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.35+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


plat_eq3ccu2.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.35+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.

-------- Uninstall Beginning --------
Module: pivccu
Version: 1.0.8
Kernel: 4.9.35-v7+ (armv7l)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

dw_apb_raw_uart.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.35-v7+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


eq3_char_loop.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.35-v7+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


generic_raw_uart.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.35-v7+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


meson_raw_uart.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.35-v7+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


pl011_raw_uart.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.35-v7+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


plat_eq3ccu2.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.35-v7+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.

-------- Uninstall Beginning --------
Module: pivccu
Version: 1.0.8
Kernel: 4.9.50-v7+ (armv7l)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

dw_apb_raw_uart.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.50-v7+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


eq3_char_loop.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.50-v7+/
rmdir: failed to remove '': No such file or directory
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


generic_raw_uart.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.50-v7+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


meson_raw_uart.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.50-v7+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


pl011_raw_uart.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.50-v7+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


plat_eq3ccu2.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.50-v7+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.

-------- Uninstall Beginning --------
Module: pivccu
Version: 1.0.8
Kernel: 4.9.60-v7+ (armv7l)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

dw_apb_raw_uart.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.60-v7+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


eq3_char_loop.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.60-v7+/
rmdir: failed to remove '': No such file or directory
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


generic_raw_uart.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.60-v7+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


meson_raw_uart.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.60-v7+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


pl011_raw_uart.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.60-v7+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


plat_eq3ccu2.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.60-v7+/kernel/drivers/pivccu/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.

------------------------------
Deleting module version: 1.0.8
completely from the DKMS tree.
------------------------------
Done.
Loading new pivccu-1.0.8 DKMS files...
It is likely that 4.9.59-v7+ belongs to a chroot's host
Building for 4.9.35+, 4.9.35-v7+, 4.9.50+, 4.9.50-v7+, 4.9.59+, 4.9.59-v7+, 4.9.60+, 4.9.60-v7+, 4.9.70+ and 4.9.70-v7+
Building initial module for 4.9.35+
Done.

dw_apb_raw_uart:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.35+/kernel/drivers/pivccu/

eq3_char_loop.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.35+/kernel/drivers/pivccu/

generic_raw_uart.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.35+/kernel/drivers/pivccu/

meson_raw_uart.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.35+/kernel/drivers/pivccu/

pl011_raw_uart.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.35+/kernel/drivers/pivccu/

plat_eq3ccu2.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.35+/kernel/drivers/pivccu/

depmod...

DKMS: install completed.
Building initial module for 4.9.35-v7+
Done.

dw_apb_raw_uart:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.35-v7+/kernel/drivers/pivccu/

eq3_char_loop.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.35-v7+/kernel/drivers/pivccu/

generic_raw_uart.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.35-v7+/kernel/drivers/pivccu/

meson_raw_uart.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.35-v7+/kernel/drivers/pivccu/

pl011_raw_uart.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.35-v7+/kernel/drivers/pivccu/

plat_eq3ccu2.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.35-v7+/kernel/drivers/pivccu/

depmod...

DKMS: install completed.
Module build for kernel 4.9.50+ was skipped since the
kernel headers for this kernel does not seem to be installed.
Building initial module for 4.9.50-v7+
Done.

dw_apb_raw_uart:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.50-v7+/kernel/drivers/pivccu/

eq3_char_loop.ko:
Running module version sanity check.
Error! Module version 2D47FF686A462D70DB6BA3C for eq3_char_loop.ko
is not newer than what is already found in kernel 4.9.50-v7+ (4A89A12F5F97580769D2D3B).
You may override by specifying --force.

generic_raw_uart.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.50-v7+/kernel/drivers/pivccu/

meson_raw_uart.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.50-v7+/kernel/drivers/pivccu/

pl011_raw_uart.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.50-v7+/kernel/drivers/pivccu/

plat_eq3ccu2.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.50-v7+/kernel/drivers/pivccu/

depmod...

DKMS: install completed.
Module build for kernel 4.9.59+ was skipped since the
kernel headers for this kernel does not seem to be installed.
Module build for kernel 4.9.59-v7+ was skipped since the
kernel headers for this kernel does not seem to be installed.
Module build for kernel 4.9.60+ was skipped since the
kernel headers for this kernel does not seem to be installed.
Building initial module for 4.9.60-v7+
Done.

dw_apb_raw_uart:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.60-v7+/kernel/drivers/pivccu/

eq3_char_loop.ko:
Running module version sanity check.
Error! Module version 2D47FF686A462D70DB6BA3C for eq3_char_loop.ko
is not newer than what is already found in kernel 4.9.60-v7+ (4A89A12F5F97580769D2D3B).
You may override by specifying --force.

generic_raw_uart.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.60-v7+/kernel/drivers/pivccu/

meson_raw_uart.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.60-v7+/kernel/drivers/pivccu/

pl011_raw_uart.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.60-v7+/kernel/drivers/pivccu/

plat_eq3ccu2.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.60-v7+/kernel/drivers/pivccu/

depmod...

DKMS: install completed.
Module build for kernel 4.9.70+ was skipped since the
kernel headers for this kernel does not seem to be installed.
Module build for kernel 4.9.70-v7+ was skipped since the
kernel headers for this kernel does not seem to be installed.
Created symlink /etc/systemd/system/multi-user.target.wants/pivccu-dkms.service → /lib/systemd/system/pivccu-dkms.service.
Gruß Mavericks

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: piVCCU Support für rpi-update in testing verfügbar

Beitrag von deimos » 03.02.2018, 20:32

Hi,

du hast jede Menge alte Kernel rumliegen, vermutlich von rpi-update. Es gibt jetzt zwei Möglichkeiten:

1. Den stable Kernel verwenden:

Code: Alles auswählen

sudo apt-get install --reinstall raspberrypi-bootloader raspberrypi-kernel raspberrypi-kernel-headers
Dann Reboot, dann alle Ordner unter /lib/modules löschen außer die mit 4.9.59 anfangen und dann nochmal

Code: Alles auswählen

sudo dpkg-reconfigure pivccu-modules-dkms
und nochmal Reboot.

2. Den Kernel von rpi-update verwenden

Code: Alles auswählen

sudo rpi-update
Reboot,

Code: Alles auswählen

uname -a
dann alle Ordner unter /lib/modules löschen außer die mit der Kernel Version vom uname anfangen und dann nochmal

Code: Alles auswählen

sudo dpkg-reconfigure pivccu-modules-dkms
und nochmal Reboot.

Meine persönliche Empfehlung wäre Variante 1.

Viele Grüße
Alex

maverick
Beiträge: 20
Registriert: 26.05.2016, 19:07

Re: piVCCU Support für rpi-update in testing verfügbar

Beitrag von maverick » 03.02.2018, 21:27

Hi,

leider lässt sich raspberrypi-kernel nicht installieren :?:

Reinstallation of raspberrypi-kernel is not possible, it cannot be downloaded.

Gruß Mav

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: piVCCU Support für rpi-update in testing verfügbar

Beitrag von deimos » 03.02.2018, 21:36

Hi,

war da was mit 500 Internal Server error?

Dann einfach nochmal probieren. Scheinbar hat ein Mirror da grade etwas Probleme, ich habe da heute vormittag auch ein paar Fehler bekommen bei komplett anderen Paketen.

Viele Grüße
Alex

maverick
Beiträge: 20
Registriert: 26.05.2016, 19:07

Re: piVCCU Support für rpi-update in testing verfügbar

Beitrag von maverick » 03.02.2018, 21:52

Hi,

nein, keine errors, sieht so aus als würde er das package nicht finden:

apt-get download raspberrypi-kernel
E: Can't find a source to download version '1.20171029-1' of 'raspberrypi-kernel:armhf'

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: piVCCU Support für rpi-update in testing verfügbar

Beitrag von deimos » 03.02.2018, 22:07

Hi,

ich bin mir nicht sicher, ob du da nicht auch ein sudo brauchst.
Wie ist denn die komplette Ausgabe von

Code: Alles auswählen

sudo apt update
und den Befehlen von oben?

Viele Grüße
Alex

Antworten

Zurück zu „piVCCU“