B@llou - 2019-09-04

Hallo,

ich habe bereits einen Raspberry Pi 3B+ mit Codesys am laufen nun wollte ich mir einen 2. Raspberry mit Codesys aufsetzen. Leider gibt es da Probleme, dass dieses nicht funktioniert. Ich habe das neuste Raspian Strech auf der SD-Karte installiert, den Raspberry konfiguriert (Ethernet und WLAN aktiv, Dateisystem erweitert, SSH aktiviert, SPI aktiviert und I2C aktiviert)
Auf meinem Rechner habe ich Codesys V3.5 SP15 und Codesys Control for Raspberry Pi 3.5.15.0 installiert.
Wenn ich den Raspberry einschalte und im Codesys auf Update Raspberry Pi gehe und meinen Raspberry Pi suche, werden alle Raspberrys im Netzwerk gefunden außer der Neue. Da ich dies IP kenne, trage ich diese manuelle ein und installiere Codesys Runtime Package. Dann passiert lange gar nichts alles ist ausgegraut. Irgendwann ist Codesys dann wieder bedienbar und die Runtime sollte auf dem Pi installiert sein. Bei der letzten Installation wurde mir während oder am Ende noch die Auswahl vom Runtime Mode Standard und Multicore angezeigt, das ist diesmal nicht der Fall.
Nach dem Neustart vom Raspberry Starte ich das Laufzeitsystem und auch hier passiert lange Zeit nichts. Ebenso passiert nichts wenn ich über den Terminal den Befehl „sudo service codesyscontrol start“ ausführe.
Ich habe das System bereits mehrfach neu aufgesetzt aber es funktioniert nicht.

Informationen aus Codesys

CPU Info:
processor : 0
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 89.60
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 1
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 89.60
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41

Netzwerk Info:
eth0: flags=4163<up,broadcast,running,multicast> mtu 1500
inet 192.168.20.76 netmask 255.255.0.0 broadcast 192.168.255.255
inet6 fe80::caa2:ba0a:28f:91b2 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:88:2b:68 txqueuelen 1000 (Ethernet)
RX packets 71172 bytes 15892814 (15.1 MiB)
RX errors 0 dropped 2435 overruns 0 frame 0
TX packets 2244 bytes 546373 (533.5 KiB)
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 1000 (Lokale Schleife)
RX packets 25 bytes 1484 (1.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 25 bytes 1484 (1.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4098<broadcast,multicast> mtu 1500
ether b8:27:eb:dd:7e:3d txqueuelen 1000 (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
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.20.1 0.0.0.0 UG 202 0 0 eth0
192.168.0.0 0.0.0.0 255.255.0.0 U 202 0 0 eth0</broadcast,multicast></host></up,loopback,running></up,broadcast,running,multicast>

Package Info
Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
||/ Name Version Architektur Beschreibung
+++-==============-============-============-========================================
iF codesyscontrol 3.5.15.0 all V3.5.15.0, Mi 24. Jul 16:04:09 CEST 2019


Informationen über Terminal

pi@raspberrypi:~ $ systemctl status codesyscontrol.service
● codesyscontrol.service - LSB: Prepares and starts codesyscontrol
Loaded: loaded (/etc/init.d/codesyscontrol; generated; vendor preset: enabled)
Active: failed (Result: timeout) since Wed 2019-09-04 07:28:34 CEST; 1min 32s ago
Docs: man:systemd-sysv-generator(8)
Process: 1511 ExecStart=/etc/init.d/codesyscontrol start (code=killed, signal=TERM)
Tasks: 3 (limit: 4915)
CGroup: /system.slice/codesyscontrol.service
├─ 976 modprobe -q i2c-bcm2835 baudrate=400000
├─1400 modprobe -r -q spi-bcm2835
└─1529 modprobe -q spi-bcm2835

Sep 04 07:23:34 raspberrypi systemd[1]: Starting LSB: Prepares and starts codesyscontrol...
Sep 04 07:23:34 raspberrypi codesyscontrol[1511]: License backup created.
Sep 04 07:28:34 raspberrypi systemd[1]: codesyscontrol.service: Start operation timed out. Terminating.
Sep 04 07:28:34 raspberrypi systemd[1]: Failed to start LSB: Prepares and starts codesyscontrol.
Sep 04 07:28:34 raspberrypi systemd[1]: codesyscontrol.service: Unit entered failed state.
Sep 04 07:28:34 raspberrypi systemd[1]: codesyscontrol.service: Failed with result 'timeout'.


pi@raspberrypi:~ $ journalctl -xe
-- Subject: A new session c10 has been created for user pi
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- Documentation: http://www.freedesktop.org/wiki/Softwar ... /multiseat
--
-- A new session with the ID c10 has been created for the user pi.
--
-- The leading process of the session is 1403.
Sep 04 07:23:14 raspberrypi systemd[1]: Started Session c10 of user pi.
-- Subject: Unit session-c10.scope has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit session-c10.scope has finished starting up.
--
-- The start-up result is done.
Sep 04 07:23:27 raspberrypi sudo[1440]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/sbin/serv
Sep 04 07:23:27 raspberrypi sudo[1440]: pam_unix(sudo:session): session opened for user root by pi(uid=0)
Sep 04 07:23:27 raspberrypi systemd[1]: Stopped LSB: Prepares and starts codesyscontrol.
-- Subject: Unit codesyscontrol.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit codesyscontrol.service has finished shutting down.
Sep 04 07:23:27 raspberrypi sudo[1372]: pam_unix(sudo:session): session closed for user root
Sep 04 07:23:27 raspberrypi sudo[1440]: pam_unix(sudo:session): session closed for user root
Sep 04 07:23:27 raspberrypi sshd[1357]: Received disconnect from 192.168.20.41 port 50253:11: Connection termina
Sep 04 07:23:27 raspberrypi sshd[1357]: Disconnected from 192.168.20.41 port 50253
Sep 04 07:23:27 raspberrypi sshd[1347]: pam_unix(sshd:session): session closed for user pi
Sep 04 07:23:27 raspberrypi systemd-logind[324]: Removed session c9.
-- Subject: Session c9 has been terminated
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- Documentation: http://www.freedesktop.org/wiki/Softwar ... /multiseat
--
-- A session with the ID c9 has been terminated.
Sep 04 07:23:34 raspberrypi sudo[1484]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/sbin/serv
Sep 04 07:23:34 raspberrypi sudo[1484]: pam_unix(sudo:session): session opened for user root by pi(uid=0)
Sep 04 07:23:34 raspberrypi systemd[1]: Starting LSB: Prepares and starts codesyscontrol...
-- Subject: Unit codesyscontrol.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit codesyscontrol.service has begun starting up.
Sep 04 07:23:34 raspberrypi codesyscontrol[1511]: License backup created.
Sep 04 07:28:34 raspberrypi systemd[1]: codesyscontrol.service: Start operation timed out. Terminating.
Sep 04 07:28:34 raspberrypi systemd[1]: Failed to start LSB: Prepares and starts codesyscontrol.
-- Subject: Unit codesyscontrol.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit codesyscontrol.service has failed.
--
-- The result is failed.
Sep 04 07:28:34 raspberrypi systemd[1]: codesyscontrol.service: Unit entered failed state.
Sep 04 07:28:34 raspberrypi systemd[1]: codesyscontrol.service: Failed with result 'timeout'.
Sep 04 07:28:34 raspberrypi sudo[1484]: pam_unix(sudo:session): session closed for user root

 

Related

Talk.ru: 1