piVCCU auf Banana Pi M1

Virtualisierte CCU für Raspberry Pi und Clones

Moderator: Co-Administratoren

winnypuh
Beiträge: 8
Registriert: 15.11.2018, 02:20

piVCCU auf Banana Pi M1

Beitrag von winnypuh » 15.11.2018, 02:25

Nabend liebe Leute,

ich habe vergeblich versucht piVCCU auf einem Banana Pi M1 mit aktuellem Armbian zum laufen zu bringen. Vielleicht habt ihr ja noch eine Idee :).

Die Installation ist strickt nach Anleitung erfolgt mit pivccu3 als Ziel.

Der Start läuft leider so ab:

Code: Alles auswählen

-- Unit pivccu.service has begun starting up.
Nov 15 01:19:34 bananapi piVCCU3[2355]: Could not load kernel modules plat_eq3ccu2 and eq3_char_loop.
Nov 15 01:19:34 bananapi start_container.sh[2347]: <11>Nov 15 01:19:34 piVCCU3: Could not load kernel modules plat_eq3ccu2 and eq3_char_loop.
Nov 15 01:19:34 bananapi systemd[1]: Started resolvconf-pull-resolved.service.
-- Subject: Unit resolvconf-pull-resolved.service has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit resolvconf-pull-resolved.service has finished starting up.
--
-- The start-up result is RESULT.
Nov 15 01:19:34 bananapi systemd[1]: pivccu.service: Control process exited, code=exited status=1
Nov 15 01:19:34 bananapi systemd[1]: pivccu.service: Failed with result 'exit-code'.
Nov 15 01:19:34 bananapi systemd[1]: Failed to start piVCCU.
-- Subject: Unit pivccu.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit pivccu.service has failed.
--
-- The result is RESULT.
dpkg-reconfigure pivccu-modules-dkms wirft folgendes:

Code: Alles auswählen

Removed /etc/systemd/system/multi-user.target.wants/pivccu-dkms.service.

------------------------------
Deleting module version: 1.0.13
completely from the DKMS tree.
------------------------------
Done.
Loading new pivccu-1.0.13 DKMS files...
Building for 4.14.78-sunxi
Module build for kernel 4.14.78-sunxi 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.
Linux Header sind Installiert:

Code: Alles auswählen

root@bananapi:~# sudo apt install `dpkg --get-selections | grep 'linux-image-' | grep '\sinstall' | sed -e 's/linux-image-\([a-z0-9-]\+\).*/linux-headers-\1/'`
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-next-sunxi is already the newest version (5.60).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Vielen Dank im vorraus!

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 auf Banana Pi M1

Beitrag von deimos » 15.11.2018, 04:30

Hi,

passen der Kernel und die Header zusammen?

Code: Alles auswählen

dpkg -s linux-headers-next-sunxi | grep Version
dpkg -s linux-image-next-sunxi | grep Version
Viele Grüße
Alex

winnypuh
Beiträge: 8
Registriert: 15.11.2018, 02:20

Re: piVCCU auf Banana Pi M1

Beitrag von winnypuh » 15.11.2018, 10:24

Hallo Alex,

da liegt der Hund begraben :)

Code: Alles auswählen

root@bananapi:~# dpkg -s linux-headers-next-sunxi | grep Version
Version: 5.60
root@bananapi:~# dpkg -s linux-image-next-sunxi | grep Version
Version: 5.65
hast du gerade die Zeile zum Glück parat :)?

Danke im vorraus!

Viele Grüße
Thomas

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 auf Banana Pi M1

Beitrag von deimos » 15.11.2018, 10:27

Hi,

einfachste Variante: Downgrade des Kernels, richtig spannendes ist zwischen der 5.60 und 5.65 nicht reingekommen.

Code: Alles auswählen

apt remove linux-image-next-sunxi
apt install linux-image-next-sunxi
Zwischen den Befehlen auf keinen Fall einen Reboot machen und bei Fehlern nicht abschalten, sondern hier mit der Fehlermeldung melden, sonst bootet dein System nicht mehr.

Viele Grüße
Alex

winnypuh
Beiträge: 8
Registriert: 15.11.2018, 02:20

Re: piVCCU auf Banana Pi M1

Beitrag von winnypuh » 15.11.2018, 11:00

leider bisher nur ein Teilerfolg. Er scheint beim kompilieren der Module immernoch zu hängen - ich werde aber nicht schlau daraus :(.

Start-up schaut jetzt so aus

Code: Alles auswählen

-- The start-up result is RESULT.
Nov 15 09:55:40 bananapi piVCCU3[3526]: Could not load kernel modules plat_eq3ccu2 and eq3_char_loop.
Nov 15 09:55:40 bananapi start_container.sh[3516]: <11>Nov 15 09:55:40 piVCCU3: Could not load kernel modules plat_eq3ccu2 and eq3_char_loop.
Nov 15 09:55:40 bananapi systemd[1]: pivccu.service: Control process exited, code=exited status=1
Nov 15 09:55:40 bananapi systemd[1]: pivccu.service: Failed with result 'exit-code'.
Nov 15 09:55:41 bananapi systemd[1]: Failed to start piVCCU.
-- Subject: Unit pivccu.service has failed

dpkg-reconfigure pivccu-modules-dkms:

Code: Alles auswählen

Removed /etc/systemd/system/multi-user.target.wants/pivccu-dkms.service.

------------------------------
Deleting module version: 1.0.13
completely from the DKMS tree.
------------------------------
Done.
Loading new pivccu-1.0.13 DKMS files...
Building for 4.14.70-sunxi
Building initial module for 4.14.70-sunxi
Error! Bad return status for module build on kernel: 4.14.70-sunxi (armv7l)
Consult /var/lib/dkms/pivccu/1.0.13/build/make.log for more information.
Created symlink /etc/systemd/system/multi-user.target.wants/pivccu-dkms.service → /lib/systemd/system/pivccu-dkms.service.
make.log:

Code: Alles auswählen

DKMS make.log for pivccu-1.0.13 for kernel 4.14.70-sunxi (armv7l)
Thu Nov 15 09:50:54 UTC 2018
make -C /lib/modules/4.14.70-sunxi/build M=/var/lib/dkms/pivccu/1.0.13/build modules
make[1]: Entering directory '/usr/src/linux-headers-4.14.70-sunxi'
Makefile:642: arch//Makefile: No such file or directory
make[1]: *** No rule to make target 'arch//Makefile'.  Stop.
make[1]: Leaving directory '/usr/src/linux-headers-4.14.70-sunxi'
Makefile:18: recipe for target 'all' failed
make: *** [all] Error 2
pivccu-info:

Code: Alles auswählen

piVCCU version: 3.37.8-6
Kernel modules: Not available
Raw UART dev:   Available
Failed to load config for lxc
Failure to retrieve information on /var/lib/piVCCU3:lxc
/usr/sbin/pivccu-info: line 35: [: ==: unary operator expected
HMRF Hardware:  FAKE_HMRF
HMIP Hardware:  FAKE_HMRF
Board serial:   FKE8626382
Radio MAC:      0x80d399
SGTIN:          3014F711A061A7D5699DAB52
Failed to load config for lxc
Failure to retrieve information on /var/lib/piVCCU3:lxc

noch eine Idee?

Viele Grüße
Thomas

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 auf Banana Pi M1

Beitrag von deimos » 15.11.2018, 11:06

Hi,

hast du einen Neustart nach dem Neuinstallieren des Kernels gemacht? (Ja, hätte ich sinnvollerweise dazu schreiben sollen...)

Viele Grüße
Alex

winnypuh
Beiträge: 8
Registriert: 15.11.2018, 02:20

Re: piVCCU auf Banana Pi M1

Beitrag von winnypuh » 15.11.2018, 11:20

deimos hat geschrieben:
15.11.2018, 11:06
Hi,

hast du einen Neustart nach dem Neuinstallieren des Kernels gemacht? (Ja, hätte ich sinnvollerweise dazu schreiben sollen...)

Viele Grüße
Alex
So schlau war ich tatsächlich schon :D :)

Ich führe jetzt aber noch einmal einen aus.


Nachtrag:
Spannend, beim booten scheint er die module erfolgreich zu bauen:

Code: Alles auswählen

root@bananapi:~# sudo pivccu-info
piVCCU version: 3.37.8-6
[b]Kernel modules: Available[/b]
Raw UART dev:   Available
Failed to load config for lxc
Failure to retrieve information on /var/lib/piVCCU3:lxc
/usr/sbin/pivccu-info: line 35: [: ==: unary operator expected
HMRF Hardware:  FAKE_HMRF
HMIP Hardware:  FAKE_HMRF
Board serial:   FKE8626382
Radio MAC:      0x80d399
SGTIN:          3014F711A061A7D5699DAB52
Failed to load config for lxc
Failure to retrieve information on /var/lib/piVCCU3:lxc
root@bananapi:~#
Wenn ich danach Manuell "dpkg-reconfigure pivccu-modules-dkms" ausführe, entfernt er diese und kann sie nicht mehr neu bauen.



Viele Grüße
Thomas

winnypuh
Beiträge: 8
Registriert: 15.11.2018, 02:20

Re: piVCCU auf Banana Pi M1

Beitrag von winnypuh » 15.11.2018, 11:42

Sieht so aus als hätte er jetzt noch Probleme mit der Network Bridge
-- The start-up result is RESULT.
Nov 15 10:38:10 bananapi start_container.sh[3676]: cat: /sys/class/net/eth0: Is a directory
Nov 15 10:38:10 bananapi start_container.sh[3676]: cat: br0/address: No such file or directory
Nov 15 10:38:10 bananapi start_container.sh[3676]: kernel.sched_rt_runtime_us = -1
Nov 15 10:38:10 bananapi start_container.sh[3676]: Failed to load config for lxc
Nov 15 10:38:10 bananapi systemd[1]: pivccu.service: Can't open PID file /var/run/pivccu3.pid (yet?) after start: No such file or directory
Nov 15 10:38:10 bananapi systemd[1]: pivccu.service: Failed with result 'protocol'.
Nov 15 10:38:10 bananapi systemd[1]: Failed to start piVCCU.
-- Subject: Unit pivccu.service has failed
die Bridge habe ich allerdings nicht strikt nach Anleitung erzeugt. Da der Netowrk Manager im Armbian Image genutzt wird, habe ich die Bridge per nmcli erzeugt.

Code: Alles auswählen

br0: connected to br0
        "br0"
        bridge, 56:03:3E:CA:99:AC, sw, mtu 1500
        inet4 192.168.0.201/24
        route4 192.168.0.0/24
        route4 169.254.0.0/16
        route4 0.0.0.0/0
        route6 ff00::/8
Nachtrag: Problem ist jetzt denke ich folgendes

Failed to load config for lxc

winnypuh
Beiträge: 8
Registriert: 15.11.2018, 02:20

Re: piVCCU auf Banana Pi M1

Beitrag von winnypuh » 15.11.2018, 17:20

Habe alles noch einmal auf Armbian Stretch anstatt Bionic eingeichtet und habe keine Probleme mehr :).

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 auf Banana Pi M1

Beitrag von deimos » 15.11.2018, 17:57

Hi,

klingt gut, dass dein Problem gelöst ist. Ich schau mir due Tage dann aber auch mal Ubuntu an, ob da irgendein genereller Issue ist.

Viele Grüße
Alex

Antworten

Zurück zu „piVCCU“