[gelöst] Kernel Header fehlen auf Pi4

Virtualisierte CCU für Raspberry Pi und Clones

Moderator: Co-Administratoren

rentier-s
Beiträge: 352
Registriert: 19.06.2017, 09:24
Hat sich bedankt: 20 Mal
Danksagung erhalten: 63 Mal

[gelöst] Kernel Header fehlen auf Pi4

Beitrag von rentier-s » 18.03.2023, 08:23

Der Kernel meines Pi4 hat sich ge-updated. Seitdem funktioniert PivCCU3 nicht mehr. Ich habe versucht, die Kernel Header neu zu installieren, aber es kommt immer eine Fehlermeldung. Die Verzeichnisse zu den alten Kernel unter /lib/modules/... haben ein build Unterverzeichnis, beim aktuellen fehlt das tatsächlich.

Fehlt da irgendwas in den Paketen, oder wie kriege ich dieses build?

Ein Raspberry 3 hat sich auf denselben Kernel ge-updated, dort läuft alles einwandfrei.

Code: Alles auswählen

root@raspberrypi:/# apt reinstall pivccu-modules-dkms
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
  bc
Verwenden Sie »apt autoremove«, um es zu entfernen.
0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 42,2 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
Holen:1 https://www.pivccu.de/piVCCU stable/main armhf pivccu-modules-dkms all 1.0.79 [42,2 kB]
Es wurden 42,2 kB in 0 s geholt (109 kB/s).
Vorkonfiguration der Pakete ...
(Lese Datenbank ... 152474 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../pivccu-modules-dkms_1.0.79_all.deb ...
Removed /etc/systemd/system/debmatic.service.wants/pivccu-dkms.service.
Removed /etc/systemd/system/pivccu.service.requires/pivccu-dkms.service.
Removed /etc/systemd/system/multi-user.target.wants/pivccu-dkms.service.

------------------------------
Deleting module version: 1.0.79
completely from the DKMS tree.
------------------------------
Done.
Entpacken von pivccu-modules-dkms (1.0.79) über (1.0.79) ...
pivccu-modules-dkms (1.0.79) wird eingerichtet ...
Error! The module/version combo: pivccu-1.0.79
is not located in the DKMS tree.

Creating symlink /var/lib/dkms/pivccu/1.0.79/source ->
                 /usr/src/pivccu-1.0.79

DKMS: add completed.
Error! echo
Your kernel headers for kernel 6.1.19-v8+ cannot be found at
/lib/modules/6.1.19-v8+/build or /lib/modules/6.1.19-v8+/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Created symlink /etc/systemd/system/multi-user.target.wants/pivccu-dkms.service → /lib/systemd/system/pivccu-dkms.service.
Created symlink /etc/systemd/system/debmatic.service.wants/pivccu-dkms.service → /lib/systemd/system/pivccu-dkms.service.
Created symlink /etc/systemd/system/pivccu.service.requires/pivccu-dkms.service → /lib/systemd/system/pivccu-dkms.service.

Code: Alles auswählen

root@raspberrypi:/# cat /var/lib/dkms/pivccu/1.0.79/build/make.log
DKMS make.log for pivccu-1.0.79 for kernel 6.1.19-v7l+ (aarch64)
Sa 18. Mär 08:34:24 CET 2023
make -C /lib/modules/6.1.19-v7l+/build M=/var/lib/dkms/pivccu/1.0.79/build modules
make[1]: Verzeichnis „/usr/src/linux-headers-6.1.19-v7l+“ wird betreten
  CC [M]  /var/lib/dkms/pivccu/1.0.79/build/eq3_char_loop.o
  CC [M]  /var/lib/dkms/pivccu/1.0.79/build/plat_eq3ccu2.o
  CC [M]  /var/lib/dkms/pivccu/1.0.79/build/generic_raw_uart.o
  CC [M]  /var/lib/dkms/pivccu/1.0.79/build/pl011_raw_uart.o
In file included from ./include/linux/types.h:6,
                 from ./include/linux/limits.h:6,
                 from ./include/linux/kernel.h:16,
                 from /var/lib/dkms/pivccu/1.0.79/build/eq3_char_loop.c:23:
./include/uapi/linux/types.h:5:10: fatal error: asm/types.h: Datei oder Verzeichnis nicht gefunden
    5 | #include <asm/types.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:250: /var/lib/dkms/pivccu/1.0.79/build/eq3_char_loop.o] Fehler 1
make[2]: *** Es wird auf noch nicht beendete Prozesse gewartet....
In file included from ./include/linux/types.h:6,
                 from ./include/linux/limits.h:6,
                 from ./include/linux/kernel.h:16,
                 from /var/lib/dkms/pivccu/1.0.79/build/plat_eq3ccu2.c:20:
./include/uapi/linux/types.h:5:10: fatal error: asm/types.h: Datei oder Verzeichnis nicht gefunden
    5 | #include <asm/types.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:250: /var/lib/dkms/pivccu/1.0.79/build/plat_eq3ccu2.o] Fehler 1
In file included from ./include/linux/types.h:6,
                 from ./include/linux/limits.h:6,
                 from ./include/linux/kernel.h:16,
                 from /var/lib/dkms/pivccu/1.0.79/build/generic_raw_uart.c:21:
./include/uapi/linux/types.h:5:10: fatal error: asm/types.h: Datei oder Verzeichnis nicht gefunden
    5 | #include <asm/types.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:250: /var/lib/dkms/pivccu/1.0.79/build/generic_raw_uart.o] Fehler 1
In file included from ./include/linux/types.h:6,
                 from ./include/linux/limits.h:6,
                 from ./include/linux/kernel.h:16,
                 from /var/lib/dkms/pivccu/1.0.79/build/pl011_raw_uart.c:21:
./include/uapi/linux/types.h:5:10: fatal error: asm/types.h: Datei oder Verzeichnis nicht gefunden
    5 | #include <asm/types.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:250: /var/lib/dkms/pivccu/1.0.79/build/pl011_raw_uart.o] Fehler 1
make[1]: *** [Makefile:2012: /var/lib/dkms/pivccu/1.0.79/build] Fehler 2
make[1]: Verzeichnis „/usr/src/linux-headers-6.1.19-v7l+“ wird verlassen
make: *** [Makefile:30: all] Fehler 2
Zuletzt geändert von rentier-s am 18.03.2023, 11:02, insgesamt 1-mal geändert.

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

Re: Kernel Header fehlen auf Pi4

Beitrag von deimos » 18.03.2023, 09:46

Hi,

hast du nach dem Kernel Update einen Reboot gemacht?

Viele Grüße
Alex

rentier-s
Beiträge: 352
Registriert: 19.06.2017, 09:24
Hat sich bedankt: 20 Mal
Danksagung erhalten: 63 Mal

Re: Kernel Header fehlen auf Pi4

Beitrag von rentier-s » 18.03.2023, 10:02

deimos hat geschrieben:
18.03.2023, 09:46
hast du nach dem Kernel Update einen Reboot gemacht?
Grüß Dich,

ja, mehrfach. Habe auch versucht, alle möglichen händischen Reparaturen durchzuführen, die ich bezüglich PivCCU Kernel modules not available gefunden habe.

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

Re: Kernel Header fehlen auf Pi4

Beitrag von deimos » 18.03.2023, 10:18

Hi,

hast du das 32-Bit Image und darauf den 64-Bit Kernel aktiviert? Dieser Mischbetrieb wird leider nicht unterstützt, weil in dem Fall keine gültigen Kernel Header geliefert werden, es geht nur reiner 32 Bit Betrieb oder reiner 64 Bit Betrieb.

Viele Grüße
Alex

rentier-s
Beiträge: 352
Registriert: 19.06.2017, 09:24
Hat sich bedankt: 20 Mal
Danksagung erhalten: 63 Mal

Re: Kernel Header fehlen auf Pi4

Beitrag von rentier-s » 18.03.2023, 10:31

deimos hat geschrieben:
18.03.2023, 10:18
hast du das 32-Bit Image und darauf den 64-Bit Kernel aktiviert?

Code: Alles auswählen

uname -a
Linux raspberrypi 6.1.19-v8+ #1637 NB Tue Mar 14 11:11:47 GMT 2023 aarch64 GNU/Linux
Müsste ein 64bit System sein.

Ich habe nichts (bewusst) am Kernel gemacht. Bis heute Früh lief die ganze Geschichte ohne Probleme, nur nach einem unbedarften apt update && apt upgrade, was ich so von Zeit zu Zeit mache und was auch nie ein Problem war, ging plötzlich nichts mehr.

Wie kriege ich 64 und 32 bit jetzt wieder geregelt?
Zuletzt geändert von rentier-s am 20.03.2023, 20:54, insgesamt 2-mal geändert.

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

Re: Kernel Header fehlen auf Pi4

Beitrag von deimos » 18.03.2023, 10:38

Hi,

der Kernel ist 64 Bit. Die Ausgabe bei apt reinstall spricht aber für 32 Bit Image, weil das armhf und nicht das arm64 Paket angefordert wurde. Also Mischbetrieb.

Da hilft es den 64 Bit Kernel in der /boot/config.txt wieder zu deaktivieren.

Viele Grüße
Alex

rentier-s
Beiträge: 352
Registriert: 19.06.2017, 09:24
Hat sich bedankt: 20 Mal
Danksagung erhalten: 63 Mal

Re: Kernel Header fehlen auf Pi4

Beitrag von rentier-s » 18.03.2023, 11:01

deimos hat geschrieben:
18.03.2023, 10:38
Da hilft es den 64 Bit Kernel in der /boot/config.txt wieder zu deaktivieren.
OMG, das rennt wieder. Ich hatte zwar nichts dran gemacht, keine Ahnung warum dann neuerdings mit 64bit gestartet wurde, aber nach einfügen von arm_64bit=0 und anschließendem reboot, apt reinstall pivccu-modules-dkms pivccu-modules-raspberrypi (vorher fand pivccu-info noch keine Hardware), reboot läuft die Gaudi wieder!

Der Postbote bringt in den nächsten Tagen ein kleines Dankeschön für die Hilfe und für Deine Arbeit.

rauschbert
Beiträge: 5
Registriert: 20.03.2023, 19:23
System: Alternative CCU (auf Basis OCCU)

Re: [gelöst] Kernel Header fehlen auf Pi4

Beitrag von rauschbert » 20.03.2023, 19:37

Guten ABend zusammen,

ich habe das gleiche Problem wie rentier-s, allerdings hat bei mir das einfügen von arm_64bit=0 und anschließendem reboot, apt reinstall pivccu-modules-dkms pivccu-modules-raspberrypi leider keinen Erfolg gebracht.
Ich hab alles mögliche probiert, auf einem Pi3, Pi4, mit Raspberrymatic auf beiden Pi's, leider alles ohne Erfolg. Anfangs hatte ich einen Defekt des Funkmoduls vermutet, aber sudo pivccu-info spuckt bei mir folgendes aus:

Code: Alles auswählen

piVCCU version: 3.67.10-78
Kernel modules: Not available
lxc doesn't exist
Raw UART dev:   Not available
Rasp.Pi UART:   Assigned to GPIO pins
HMRF Hardware:  unknown
HMIP Hardware:  unknown
lxc doesn't exist
Reboot habe ich immer gemacht wenn ich dazu aufgefordert wurde. Ich habe die Neuinstallation nach der Anleitung auf Github gemacht.

Hat jemand eine Idee?

Besten Dank schonmal für eure Hilfe!

Schönen Abend,
Robert

rentier-s
Beiträge: 352
Registriert: 19.06.2017, 09:24
Hat sich bedankt: 20 Mal
Danksagung erhalten: 63 Mal

Re: [gelöst] Kernel Header fehlen auf Pi4

Beitrag von rentier-s » 20.03.2023, 20:53

Wie sehen die Ausgaben der Kommandos aus, die ich im Laufe des Thread aufgeführt habe?

rauschbert
Beiträge: 5
Registriert: 20.03.2023, 19:23
System: Alternative CCU (auf Basis OCCU)

Re: [gelöst] Kernel Header fehlen auf Pi4

Beitrag von rauschbert » 20.03.2023, 21:11

Hallo,

sudo apt reinstall pivccu-modules-dkms bringt folgendes:

Code: Alles auswählen

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 42.2 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://www.pivccu.de/piVCCU stable/main armhf pivccu-modules-dkms all 1.0.79 [42.2 kB]
Fetched 42.2 kB in 0s (119 kB/s)
Preconfiguring packages ...
(Reading database ... 130165 files and directories currently installed.)
Preparing to unpack .../pivccu-modules-dkms_1.0.79_all.deb ...
Removed /etc/systemd/system/pivccu.service.requires/pivccu-dkms.service.
Removed /etc/systemd/system/multi-user.target.wants/pivccu-dkms.service.
Removed /etc/systemd/system/debmatic.service.wants/pivccu-dkms.service.

-------- Uninstall Beginning --------
Module:  pivccu
Version: 1.0.79
Kernel:  6.1.19-v7l+ (armv7l)
-------------------------------------

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

dummy_rx8130.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/6.1.19-v7l+/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.


dw_apb_raw_uart.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/6.1.19-v7l+/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.xz:
 - Uninstallation
   - Deleting from: /lib/modules/6.1.19-v7l+/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.


fake_hmrf.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/6.1.19-v7l+/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.xz:
 - Uninstallation
   - Deleting from: /lib/modules/6.1.19-v7l+/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.


hb_rf_eth.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/6.1.19-v7l+/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.


hb_rf_usb.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/6.1.19-v7l+/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.


hb_rf_usb_2.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/6.1.19-v7l+/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.


led_trigger_timer.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/6.1.19-v7l+/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.xz:
 - Uninstallation
   - Deleting from: /lib/modules/6.1.19-v7l+/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.xz:
 - Uninstallation
   - Deleting from: /lib/modules/6.1.19-v7l+/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.xz:
 - Uninstallation
   - Deleting from: /lib/modules/6.1.19-v7l+/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.


rpi_rf_mod_led.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/6.1.19-v7l+/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.


rtc-rx8130.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/6.1.19-v7l+/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.79
completely from the DKMS tree.
------------------------------
Done.
Unpacking pivccu-modules-dkms (1.0.79) over (1.0.79) ...
Setting up pivccu-modules-dkms (1.0.79) ...
Error! The module/version combo: pivccu-1.0.79
is not located in the DKMS tree.

Creating symlink /var/lib/dkms/pivccu/1.0.79/source ->
                 /usr/src/pivccu-1.0.79

DKMS: add completed.
Error! echo
Your kernel headers for kernel 6.1.19-v8+ cannot be found at
/lib/modules/6.1.19-v8+/build or /lib/modules/6.1.19-v8+/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Created symlink /etc/systemd/system/multi-user.target.wants/pivccu-dkms.service → /lib/systemd/system/pivccu-dkms.service.
Created symlink /etc/systemd/system/debmatic.service.wants/pivccu-dkms.service → /lib/systemd/system/pivccu-dkms.service.
Created symlink /etc/systemd/system/pivccu.service.requires/pivccu-dkms.service → /lib/systemd/system/pivccu-dkms.service.
Weiterhin kommt noch:
cat /var/lib/dkms/pivccu/1.0.79/build/make.log

Code: Alles auswählen

cat: /var/lib/dkms/pivccu/1.0.79/build/make.log: No such file or directory
uname -a

Code: Alles auswählen

Linux raspberrypi3 6.1.19-v8+ #1637 SMP PREEMPT Tue Mar 14 11:11:47 GMT 2023 aarch64 GNU/Linux
Hab zwischenzeitlich alles auf 64bit und 32bit ausprobiert. Hilft eventuell ein Downgrade des Kernels weiter?

Antworten

Zurück zu „piVCCU“