Virtualisierte CCU für Raspberry Pi und Clones
Moderator: Co-Administratoren
-
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:
Beitrag
von deimos » 16.03.2018, 20:04
Hi,
es sollte eigentlich keinen Unterschied machen, aber kannst du vor die beiden dtoverlay Zeilen mal
einfügen und neu starten?
Und dann bitte mal die Ausgaben von folgenden Befehlen:
Code: Alles auswählen
dtc -I fs -O dts /proc/device-tree | grep pivccu
sudo dmesg | grep serial
lsmod | grep uart
Viele Grüße
Alex
-
Stryker1
- Beiträge: 33
- Registriert: 23.08.2017, 10:57
- Hat sich bedankt: 1 Mal
Beitrag
von Stryker1 » 16.03.2018, 21:18
dtc -I fs -O dts /proc/device-tree | grep pivccu
Code: Alles auswählen
<stdout>: Warning (unit_address_vs_reg): Node /soc has a reg or ranges property, but no unit name
<stdout>: Warning (unit_address_vs_reg): Node /soc/vchiq has a reg or ranges pro perty, but no unit name
<stdout>: Warning (unit_address_vs_reg): Node /soc/gpiomem has a reg or ranges p roperty, but no unit name
<stdout>: Warning (unit_address_vs_reg): Node /soc/local_intc has a reg or range s property, but no unit name
<stdout>: Warning (unit_address_vs_reg): Node /memory has a reg or ranges proper ty, but no unit name
<stdout>: Warning (unit_address_vs_reg): Node /axi/vc_mem has a reg or ranges pr operty, but no unit name
<stdout>: Warning (avoid_default_addr_size): Relying on default #address-cells v alue for /axi/vc_mem
<stdout>: Warning (avoid_default_addr_size): Relying on default #size-cells valu e for /axi/vc_mem
compatible = "pivccu,pl011";
pivccu,gpio_pin = <0x12>;
Die letzten beiden Befehle hatten keine Ausgabe
-
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:
Beitrag
von deimos » 16.03.2018, 21:28
Hi,
dann bitte mal
Code: Alles auswählen
dtc -I fs -O dts -f /proc/device-tree/soc/serial@7e201000
sudo modprobe pl011_raw_uart
sudo dmesg | grep serial
lsmod | grep uart
Viele Grüße
Alex
-
Stryker1
- Beiträge: 33
- Registriert: 23.08.2017, 10:57
- Hat sich bedankt: 1 Mal
Beitrag
von Stryker1 » 16.03.2018, 21:41
dtc -I fs -O dts -f /proc/device-tree/soc/serial@7e201000
Code: Alles auswählen
<stdout>: ERROR (name_properties): "name" property in / is incorrect ("serial" i nstead of base node name)
Warning: Input tree has errors, output forced
/dts-v1/;
/ {
compatible = "pivccu,pl011";
clocks = <0x7 0x13 0x7 0x14>;
pivccu,gpio_pin = <0x12>;
clock-names = "uartclk", "apb_pclk";
status = "okay";
interrupts = <0x2 0x19>;
phandle = <0x21>;
arm,primecell-periphid = <0x241011>;
reg = <0x7e201000 0x1000>;
pinctrl-0 = <0x8>;
cts-event-workaround;
name = "serial";
pinctrl-names = "default";
};
sudo modprobe pl011_raw_uart
Code: Alles auswählen
modprobe: FATAL: Module pl011_raw_uart not found in directory /lib/modules/4.9.59-v7+
Die letzten beiden haben keine Ausgabe
-
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:
Beitrag
von deimos » 16.03.2018, 21:49
Hi,
ok, irgendwie habe ich deine Ausgabe von pivccu-info und die Ausgabe im ersten Post im Kopf durcheinandergebracht und war total auf dem Holzweg.
Kannst du bitte mal die Ausgabe von
posten?
Viele Grüße
Alex
-
Stryker1
- Beiträge: 33
- Registriert: 23.08.2017, 10:57
- Hat sich bedankt: 1 Mal
Beitrag
von Stryker1 » 16.03.2018, 21:58
Zwischendurch erst nichmal ein großes Dankeschön und Respekt, dass du hier so viele Befehle lässig aus der Hüfte schießt!
Ich verstehe nix davon
Hier jetzt die lange Ausgabe:
Code: Alles auswählen
Removed /etc/systemd/system/multi-user.target.wants/pivccu-dkms.service.
-------- Uninstall Beginning --------
Module: pivccu
Version: 1.0.9
Kernel: 4.9.80+ (armv7l)
-------------------------------------
Status: Before uninstall, this module version was ACTIVE on this kernel.
dw_apb_raw_uart.ko:
- Uninstallation
- Deleting from: /lib/modules/4.9.80+/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.80+/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.80+/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.80+/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.80+/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.80+/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.9
Kernel: 4.9.80-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.80-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.80-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.80-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.80-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.80-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.80-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.9
completely from the DKMS tree.
------------------------------
Done.
Loading new pivccu-1.0.9 DKMS files...
It is likely that 4.9.59-v7+ belongs to a chroot's host
Building for 4.9.59+, 4.9.59-v7+, 4.9.80+ and 4.9.80-v7+
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.
Building initial module for 4.9.80+
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.80+/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.80+/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.80+/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.80+/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.80+/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.80+/kernel/drivers/pivccu/
depmod...
DKMS: install completed.
Building initial module for 4.9.80-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.80-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.80-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.80-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.80-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.80-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.80-v7+/kernel/drivers/pivccu/
depmod...
DKMS: install completed.
Created symlink /etc/systemd/system/multi-user.target.wants/pivccu-dkms.service â /lib/systemd/system/pivccu-dkms.service.
-
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:
Beitrag
von deimos » 16.03.2018, 22:09
Hi,
ok, da ist jetzt der Grund: Dein System läuft mit Kernel 4.9.59, du hast aber die Header für 4.9.80 installiert, daher können die Kernel Module nicht gebaut werden. Wir müssen jetzt dafür sorgen, dass dein Kernel auch sauber auf 4.9.80 kommt (aktuelle Stable)
Kannst du bitte mal
Code: Alles auswählen
sudo apt install --reinstall raspberrypi-kernel raspberrypi-kernel-headers raspberrypi-bootloader
ausführen und die Ausgabe posten? Wenn da keine Fehler kommen, dann bitte einen Reboot, 5-10 Minuten warten und nochmal pivccu-info aufrufen.
Viele Grüße
Alex
-
Stryker1
- Beiträge: 33
- Registriert: 23.08.2017, 10:57
- Hat sich bedankt: 1 Mal
Beitrag
von Stryker1 » 16.03.2018, 22:55
Ich glaube das war's!
sudo pivccu-info:
Code: Alles auswählen
piVCCU version: 2.31.25-23
Kernel modules: Available
Raw UART dev: Available
Rasp.Pi3 UART: Assigned to GPIO pins
Board serial: OEQ22995XX
State: RUNNING
PID: 6302
IP: 192.168.1.225
CPU use: 27.38 seconds
BlkIO use: 43.87 MiB
Link: vethpivccu
TX bytes: 23.07 KiB
RX bytes: 32.70 KiB
Total bytes: 55.77 KiB
Müsste die Weboberfläche der CCU2 jetzt schon über die dort aufgelistete
http://192.168.1.225 aufrufbar sein? Hab hier allerdings einen 3er-Adressbereich. Openhab ist z.B. neben
http://openhabianpi:8080 über
http://192.168.3.129:8080 erreichbar.
-
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:
Beitrag
von deimos » 17.03.2018, 00:25
Hi,
sehr gut, dann läuft jetzt auf jeden Fall schonmal das Funkmodul.
Die Adresse 192.168.1.225 ist bei der CCU etwas spezielles Wenn die CCU keine Adresse per DHCP erhält, dann wird diese Adresse verwendet.
Kannst du bitte mal deine /etc/network/interfaces und die Ausgabe von
posten? Und wer macht bei dir DHCP? Fritzbox?
Viele Grüße
Alex
-
Stryker1
- Beiträge: 33
- Registriert: 23.08.2017, 10:57
- Hat sich bedankt: 1 Mal
Beitrag
von Stryker1 » 17.03.2018, 17:38
DHCP macht ein Lancom-Router an dem der Raspberry per Kabel angeschlossen ist.
Hätte aber lieber eine feste IP-Adresse für den Raspberry und die pivccu.
/etc/network/interfaces
Code: Alles auswählen
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
auto br0
iface br0 inet dhcp
bridge_ports eth0
sudo ifconfig
Code: Alles auswählen
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.3.129 netmask 255.255.255.0 broadcast 192.168.3.255
inet6 fe80::ba27:ebff:fef6:3bb7 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:f6:3b:b7 txqueuelen 1000 (Ethernet)
RX packets 445315 bytes 160401032 (152.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 303110 bytes 30428630 (29.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:2b:e1:37:67 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether b8:27:eb:f6:3b:b7 txqueuelen 1000 (Ethernet)
RX packets 439890 bytes 160481509 (153.0 MiB)
RX errors 0 dropped 2264 overruns 0 frame 0
TX packets 314953 bytes 34629980 (33.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 686 bytes 56885 (55.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 686 bytes 56885 (55.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vethpivccu: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::fc5f:1dff:fe35:dd12 prefixlen 64 scopeid 0x20<link>
ether fe:5f:1d:35:dd:12 txqueuelen 1000 (Ethernet)
RX packets 13113 bytes 1361710 (1.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12481 bytes 1111461 (1.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0