Symcon Installation auf C.H.I.P-Board

Moin zusammen!

Ich weiß das Symcon unter den Debian Derivaten nur das originale Raspberry OS unterstützt, aber denoch möchte ich meine Frage gerne loswerden, weil ich denke, das ich der Lösung nicht mehr weit entfernt sein kann.

Zu meinem Problem:
Ich nutze derzeit für einige Projekte die neuen C.H.I.P. Boards ( https://getchip.com/pages/chippro ). Auf diesen Boards mit einem ARMv7 Prozessor ( ähnlich dem Raspberry PI) läuft ein Debian mit 4.4 Kernel.

Ich habe versucht Symcon von sämtlichen im Forum erwähnten Quellen bzw. in allen erwähnten Varianten (ubuntu, Ordoid, Banana Pi, etc) zu installieren, leider bekomme ich es nicht gestartet.

Ich glaube das Problem zu kennen, weil das OS sagt, es ist keine Datei in /usr/bin/symcon gefunden werden kann. Ist dem wirklich so oder gibt es nur keinen anzeigbaren Inhalt? In

IP-Symcon auf Odroid C2
habe ich bereits gelesen, das es scheinbar bei Nicht-original-RPI´s nicht immer so ist, das dieser Ordner bei der Installation gefüllt wird. Meiner Meinung nach wiederspricht sicht das aber, mit dem Log-File.

Dies ist mein Logfile:


sudo nano /var/log/symcon/logfile.log

 

20:55:01 | 00000 | MESSAGE | Kernel               | Creating...

20:55:01 | 00000 | MESSAGE | Kernel               | IP-Symcon Kernel Version: 4$

20:55:01 | 00000 | MESSAGE | Kernel               | IP-Symcon Kernel WorkingDir$

20:55:01 | 00000 | MESSAGE | Kernel               | IP-Symcon Kernel SystemDir:$

20:55:01 | 00000 | MESSAGE | Kernel               | IP-Symcon Kernel LogDir: /v$

20:55:01 | 00000 | MESSAGE | Kernel               | IP-Symcon System: linux

20:55:01 | 00000 | MESSAGE | Kernel               | Boost Version: 1_61

20:55:01 | 00000 | MESSAGE | Kernel               | cURL Version: libcurl/7.38.$

20:55:01 | 00000 | MESSAGE | Kernel               | Git2 Version: 0.23.4

20:55:01 | 00000 | MESSAGE | Kernel               | SSH2 Version: 1.4.3

20:55:01 | 00000 | MESSAGE | Kernel               | ZLIB Version: 1.2.8

20:55:01 | 00000 | MESSAGE | Kernel               | RapidJSON Version: 1.0.2

20:55:01 | 00000 | MESSAGE | Kernel               | OpenSSL Version: OpenSSL 1.$

20:55:01 | 00000 | MESSAGE | Kernel               | OpenSSL CertDir: /usr/lib/s$

20:55:01 | 00000 | MESSAGE | Kernel               | XML2 Version: 20901

20:55:01 | 00000 | MESSAGE | Kernel               | XML2 Threads: Yes

20:55:01 | 00000 | MESSAGE | Kernel               | PHP Version: 5.6.26

20:55:01 | 00000 | MESSAGE | Kernel               | Initializing...

20:55:01 | 00000 | MESSAGE | LocalePool           | Creating...

20:55:01 | 00000 | MESSAGE | LocalePool           | Detected locale:

20:55:01 | 00000 | MESSAGE | LocalePool           | Invalid locale

20:55:01 | 00000 | MESSAGE | LicensePool          | Creating...

20:55:01 | 00000 | MESSAGE | LicensePool          | LiveUpdate: 21.11.2016, b72$

20:55:01 | 00000 | MESSAGE | LicensePool          | Cannot verify license. Runn$

20:55:01 | 00000 | MESSAGE | Settings             | Creating...

20:55:01 | 00000 | MESSAGE | Settings             | Creating settings thread...

20:55:01 | 00000 | MESSAGE | Settings             | Cleaning up Backup Folder...

20:55:01 | 00000 | MESSAGE | ObjectManager        | Creating...

20:55:01 | 00000 | MESSAGE | ObjectManager        | Creating root category...

20:55:01 | 00000 | MESSAGE | CategoryManager      | Creating...

20:55:01 | 00000 | MESSAGE | VariableManager      | Creating...

20:55:01 | 00000 | MESSAGE | InstanceManager      | Creating...

20:55:01 | 00000 | MESSAGE | ScriptManager        | Creating...

20:55:01 | 00000 | MESSAGE | EventManager         | Creating...

20:55:01 | 00000 | MESSAGE | MediaManager         | Creating...

20:55:01 | 00000 | MESSAGE | LinkManager          | Creating...

20:55:01 | 00000 | MESSAGE | MediaManager         | Creating...

20:55:01 | 00000 | MESSAGE | LinkManager          | Creating...

20:55:01 | 00000 | MESSAGE | ModuleLoader         | Creating...

20:55:01 | 00000 | MESSAGE | FlowHandler          | Creating...

20:55:01 | 00000 | MESSAGE | SyncHandler          | Creating...

20:55:01 | 00000 | MESSAGE | ProfilePool          | Creating...

Dies ist der gdb Aufruf:


root@chip:/# sudo gdb /usr/bin/symcon

GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1

Copyright (C) 2014 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.  Type "show copying"

and "show warranty" for details.

This GDB was configured as "arm-linux-gnueabihf".

Type "show configuration" for configuration details.

For bug reporting instructions, please see:

<http://www.gnu.org/software/gdb/bugs/>.

Find the GDB manual and other documentation resources online at:

<http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".

Type "apropos word" to search for commands related to "word"...

Reading symbols from /usr/bin/symcon...done.

(gdb) run

Starting program: /usr/bin/symcon

[Thread debugging using libthread_db enabled]

Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".

Cannot access memory at address 0x0
 

Program received signal SIGILL, Illegal instruction.

0xb6e95e68 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0

(gdb)

Dies sind noch einige Systeminformationen:
Prozessor


cat /proc/cpuinfo

processor       : 0

model name      : ARMv7 Processor rev 2 (v7l)

BogoMIPS        : 429.72

Features        : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32

CPU implementer : 0x41

CPU architecture: 7

CPU variant     : 0x3

CPU part        : 0xc08

CPU revision    : 2

 

Hardware        : Allwinner sun4i/sun5i Families

Revision        : 0000

Serial          : 162542910b01d5de

Speicher


cat /proc/meminfo

 

MemTotal:         503604 kB

MemFree:           99320 kB

MemAvailable:     429064 kB

Buffers:               0 kB

Cached:           336596 kB

SwapCached:            0 kB

Active:           265912 kB

Inactive:          88416 kB

Active(anon):      21020 kB

Inactive(anon):     7620 kB

Active(file):     244892 kB

Inactive(file):    80796 kB

Unevictable:           0 kB

Mlocked:               0 kB

HighTotal:             0 kB

HighFree:              0 kB

LowTotal:         503604 kB

LowFree:           99320 kB

SwapTotal:             0 kB

SwapFree:              0 kB

Dirty:                 8 kB

Writeback:             0 kB

AnonPages:         17760 kB

Mapped:            12168 kB

Shmem:             10908 kB

Slab:              26728 kB

SReclaimable:      14736 kB

SUnreclaim:        11992 kB

KernelStack:         768 kB

PageTables:          664 kB

NFS_Unstable:          0 kB

Bounce:                0 kB

WritebackTmp:          0 kB

CommitLimit:      251800 kB

Committed_AS:     186584 kB

VmallocTotal:     516096 kB

VmallocUsed:           0 kB

VmallocChunk:          0 kB

CmaTotal:          65536 kB

CmaFree:           62744 kB

Ich hoffe jemand hat eine Idee was fehlen könnte, damit ich Symcon auf dem Chip-Board ans laufen bekomme.

Sollte noch etwas fehlen, bitte Fragen,

Danke und Gruß
Lars

Bei gdb kannst du an den SIGILLs noch mit c + ENTER weitergehen bis es wahrscheinlich endgültig abstürzt.

Was passiert denn wenn du einfach sudo symcon startest? Vermutlich wird irgendeib „virtual function called error“ kommen, welchen du einfach nicht beheben können wirst, weil die Bibliotheken einfach nicht zueinander passen.

paresy

Moin paresy,

danke für die Antwort. Rufe ich symcon direkt auf, erscheint folgende Ausgabe:


root@chip:~# sudo symcon
*** IP-Symcon starting
17:15:44 | 00000 | Kernel | Creating...
17:15:44 | 00000 | Kernel | IP-Symcon Kernel Version: 4.10
17:15:44 | 00000 | Kernel | IP-Symcon Kernel WorkingDir: /var/lib/symcon/
17:15:44 | 00000 | Kernel | IP-Symcon Kernel SystemDir: /usr/share/symcon/
17:15:44 | 00000 | Kernel | IP-Symcon Kernel LogDir: /var/log/symcon/
17:15:44 | 00000 | Kernel | IP-Symcon System: linux
17:15:44 | 00000 | Kernel | Boost Version: 1_61
17:15:44 | 00000 | Kernel | cURL Version: libcurl/7.38.0 OpenSSL/1.0.1t zlib/1.2.8 libidn/1.29 libssh2/1.4.3 librtmp/2.3
17:15:44 | 00000 | Kernel | Git2 Version: 0.23.4
17:15:44 | 00000 | Kernel | SSH2 Version: 1.4.3
17:15:44 | 00000 | Kernel | ZLIB Version: 1.2.8
17:15:44 | 00000 | Kernel | RapidJSON Version: 1.0.2
17:15:44 | 00000 | Kernel | OpenSSL Version: OpenSSL 1.0.1t  3 May 2016
17:15:44 | 00000 | Kernel | OpenSSL CertDir: /usr/lib/ssl/certs
17:15:44 | 00000 | Kernel | XML2 Version: 20901
17:15:44 | 00000 | Kernel | XML2 Threads: Yes
17:15:44 | 00000 | Kernel | PHP Version: 5.6.26
17:15:44 | 00000 | Kernel | Initializing...
17:15:44 | 00000 | LocalePool | Creating...
17:15:44 | 00000 | LocalePool | Detected locale:
17:15:44 | 00000 | LocalePool | Invalid locale
17:15:44 | 00000 | LicensePool | Creating...
17:15:44 | 00000 | LicensePool | LiveUpdate: 21.11.2016, b722c6df00139f9473e5f1e6f1545ff53900b6b3
17:15:44 | 00000 | LicensePool | Cannot verify license. Running in Demo mode.
17:15:45 | 00000 | Settings | Creating...
17:15:45 | 00000 | Settings | Creating settings thread...
17:15:45 | 00000 | Settings | Cleaning up Backup Folder...
17:15:45 | 00000 | ObjectManager | Creating...
17:15:45 | 00000 | ObjectManager | Creating root category...
17:15:45 | 00000 | CategoryManager | Creating...
17:15:45 | 00000 | VariableManager | Creating...
17:15:45 | 00000 | InstanceManager | Creating...
17:15:45 | 00000 | ScriptManager | Creating...
17:15:45 | 00000 | EventManager | Creating...
17:15:45 | 00000 | MediaManager | Creating...
17:15:45 | 00000 | LinkManager | Creating...
17:15:45 | 00000 | ModuleLoader | Creating...
17:15:45 | 00000 | FlowHandler | Creating...
17:15:45 | 00000 | SyncHandler | Creating...
17:15:45 | 00000 | ProfilePool | Creating...

Also, ich denke, er macht alles das, was auch beim Raspberry passiert, nur das der Dienst nicht startet.

Hier nochmal die Ausgabe von gdb mit zweimal „c“ Eingaben:


root@chip:~# sudo gdb /usr/bin/symcon
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/symcon...done.
(gdb) run
Starting program: /usr/bin/symcon
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Cannot access memory at address 0x0

Program received signal SIGILL, Illegal instruction.
0xb6e95e68 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
(gdb) c
Continuing.
*** IP-Symcon starting
17:22:29 | 00000 | Kernel | Creating...
17:22:29 | 00000 | Kernel | IP-Symcon Kernel Version: 4.10
17:22:29 | 00000 | Kernel | IP-Symcon Kernel WorkingDir: /var/lib/symcon/
17:22:29 | 00000 | Kernel | IP-Symcon Kernel SystemDir: /usr/share/symcon/
17:22:29 | 00000 | Kernel | IP-Symcon Kernel LogDir: /var/log/symcon/
17:22:29 | 00000 | Kernel | IP-Symcon System: linux
17:22:29 | 00000 | Kernel | Boost Version: 1_61
17:22:29 | 00000 | Kernel | cURL Version: libcurl/7.38.0 OpenSSL/1.0.1t zlib/1.2.8 libidn/1.29 libssh2/1.4.3 librtmp/2.3
17:22:29 | 00000 | Kernel | Git2 Version: 0.23.4
17:22:29 | 00000 | Kernel | SSH2 Version: 1.4.3
17:22:29 | 00000 | Kernel | ZLIB Version: 1.2.8
17:22:29 | 00000 | Kernel | RapidJSON Version: 1.0.2
17:22:29 | 00000 | Kernel | OpenSSL Version: OpenSSL 1.0.1t  3 May 2016
17:22:29 | 00000 | Kernel | OpenSSL CertDir: /usr/lib/ssl/certs
17:22:29 | 00000 | Kernel | XML2 Version: 20901
17:22:29 | 00000 | Kernel | XML2 Threads: Yes
17:22:29 | 00000 | Kernel | PHP Version: 5.6.26
17:22:29 | 00000 | Kernel | Initializing...
17:22:29 | 00000 | LocalePool | Creating...
17:22:29 | 00000 | LocalePool | Detected locale:
17:22:29 | 00000 | LocalePool | Invalid locale
17:22:29 | 00000 | LicensePool | Creating...
17:22:29 | 00000 | LicensePool | LiveUpdate: 21.11.2016, b722c6df00139f9473e5f1e6f1545ff53900b6b3
17:22:30 | 00000 | LicensePool | Cannot verify license. Running in Demo mode.
17:22:30 | 00000 | Settings | Creating...
17:22:30 | 00000 | Settings | Creating settings thread...
[New Thread 0xb6335430 (LWP 898)]
17:22:30 | 00000 | Settings | Cleaning up Backup Folder...
17:22:30 | 00000 | ObjectManager | Creating...
17:22:30 | 00000 | ObjectManager | Creating root category...
17:22:30 | 00000 | CategoryManager | Creating...
17:22:30 | 00000 | VariableManager | Creating...
17:22:30 | 00000 | InstanceManager | Creating...
17:22:30 | 00000 | ScriptManager | Creating...
17:22:30 | 00000 | EventManager | Creating...
17:22:30 | 00000 | MediaManager | Creating...
17:22:30 | 00000 | LinkManager | Creating...
17:22:30 | 00000 | ModuleLoader | Creating...
17:22:30 | 00000 | FlowHandler | Creating...
17:22:30 | 00000 | SyncHandler | Creating...
17:22:30 | 00000 | ProfilePool | Creating...

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6335430 (LWP 898)]
0xb6aa1114 in ?? () from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6
(gdb) c
Continuing.
[Thread 0xb6335430 (LWP 898) exited]

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb)


Dankeschön

Ich habe mich auch mal am C.H.I.P versucht. Allerdings ohne Erfolg. Da sind meine Linux-Kenntnisse doch überfordert.
Wenn du es hinkriegst, wäre ich auch daran interessiert.