GELÖST: CUL V3 Probleme mit Synlogy Diskstation 414 DSM 5.1

Begonnen von startrix, 02 März 2015, 11:35:01

Vorheriges Thema - Nächstes Thema

startrix

Hallo Zusammen,

ich habe ein Problem den CUL V3 an meiner Synlogy Diskstation 414 zum laufen zu bekommen.
Im Log finde ich folgenden Eintrag dazu:

2015.03.02 11:26:51 1: configfile: WEBphone: attribute smallscreen deprecated, converted to stylesheetPrefix
WEBtablet: attribute touchpad deprecated, converted to stylesheetPrefix
2015.03.02 11:26:51 1: usb create starting

2015.03.02 11:26:51 1: PERL WARNING: Can't exec "lsusb": No such file or directory at /usr/local/FHEM/share/fhem/FHEM/98_autocreate.pm line 366.
2015.03.02 11:26:51 3: Probing CUL device /dev/ttyACM0
2015.03.02 11:26:51 1: Can't locate Device/SerialPort.pm in @INC (you may need to install the Device::SerialPort module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl . /usr/local/FHEM/share/fhem/FHEM) at /usr/local/FHEM/share/fhem/FHEM/DevIo.pm line 265.

2015.03.02 11:26:51 1: usb create end

Weiß jemand wie ich das Device ohne IPKG installiert bekomme?
Oder muss ich andere Treiber auf der DS installieren, die Treiber habe ich von hier aus installiert: http://jadahl.dscloud.me/sspks/packages/UsbSerialDrivers_3.0.2.spk

Viele Grüße Jannis

startrix

So nun hab ich wohl noch mehr kaputt gemacht, eine Neuinstallation von FHEM scheint auch nix gebracht zu haben:

configfile: modpath must point to a directory where the FHEM subdir is

2015.03.02 12:59:42 1: usb create starting
2015.03.02 12:59:42 1: PERL WARNING: Can't exec "lsusb": No such file or directory at /usr/local/FHEM/share/fhem/FHEM/98_autocreate.pm line 366.
2015.03.02 12:59:42 3: Probing CUL device /dev/ttyACM0
2015.03.02 12:59:42 1: Can't locate Device/SerialPort.pm in @INC (you may need to install the Device::SerialPort module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl . /usr/local/FHEM/share/fhem/FHEM) at /usr/local/FHEM/share/fhem/FHEM/DevIo.pm line 265.

2015.03.02 12:59:42 1: usb create end
2015.03.02 12:59:42 2: Error messages while initializing FHEM: configfile: modpath must point to a directory where the FHEM subdir is Valid value for verbose are 0,1,2,3,4,5 WEBphone: attribute smallscreen deprecated, converted to stylesheetPrefix WEBtablet: attribute touchpad deprecated, converted to stylesheetPrefix
2015.03.02 12:59:42 0: Server started with 8 defined entities (version $Id: fhem.pl 8115 2015-03-01 12:53:35Z rudolfkoenig $, os linux, user root, pid 18996)
2015.03.02 13:00:16 1: reload: Error:Modul 99_update deactivated:
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 37.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 38.
Global symbol "$DISTRIB_BRANCH" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 64.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 83.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 138.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 149.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 150.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 151.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 152.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 158.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 190.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 220.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 449.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 580.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 587.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 588.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 589.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 598.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 646.
Global symbol "$DISTRIB_RELEASE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 678.
Global symbol "$DISTRIB_RELEASE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 679.
Global symbol "$DISTRIB_BRANCH" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 680.
Global symbol "$DISTRIB_DESCRIPTION" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 681.
Global symbol "$DISTRIB_DESCRIPTION" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 689.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 700.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 700.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 701.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 720.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 725.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 729.
Global symbol "%UPDATE" requires explicit package name at /usr/local/FHEM/share/fhem/FHEM/99_update.pm line 734.


Ich vermute da passt was gar nicht mehr. Hat jemand eine Tipp für mich wie ich vorgehen könnte.

Die Installation auf der DS hab ich versucht gemäß folgender Anleitung durchzuführen:
http://www.fhemwiki.de/wiki/Synology_Diskstation

VG Jannis

startrix

So nun hab ich PERL & FHEM auf der DS deinstalliert und beides neuinstalliert.
Nach dem ich ein Update in FHEM gemacht habe, tritt obiges Fehlerbild direkt wieder auf.

eldrik

#3
Can't locate Device/SerialPort.pm

entsprechend aufgeführtes Perl Modul nachladen sowie

usbutils per ipkg installieren

und es sollte funktionieren!

Greetz
Eldrik

startrix

Danke für deine Antwort, wenn es denn so einfach wäre :-(

Kann ich prüfen ob die Installation von den Zusatzmodulen erfolgreich war / ist?

Folgendes lässt sich ja noch ausführen:
"ipkg install perl-device-serialport"


Bei folgendem bekomme ich aber einen Fehler, das ein erstellen nicht möglich wäre weil es ein Verzeichnis ist.

"cp /opt/lib/perl5/site_perl/5.10.0/arm-linux/Device/SerialPort.pm /volume1/@appstore/Perl/lib/perl5/site_perl/Device/"

"cp /opt/lib/perl5/site_perl/5.10.0/arm-linux/auto/Device/SerialPort/SerialPort.bs /volume1/@appstore/Perl/lib/perl5/site_perl/auto/Device/SerialPort/"

"cp /opt/lib/perl5/site_perl/5.10.0/arm-linux/auto/Device/SerialPort/SerialPort.so /volume1/@appstore/Perl/lib/perl5/site_perl/auto/Device/SerialPort/"


Ausserdem bekomme ich IPKG nicht dauerhaft auf der Diskstation zum laufen, nach jedem Neustart kann er es angeblich nicht, dafür erhalte ich folgende Meldung wenn ich mich erneut per SSH mit der Diskstation verbinde:

-ash: /opt/bin:: not found
-ash: /opt/bin:: not found


VG Jannis

startrix

#5
So nun hab ich alles nochmal neu aufgesetzt, aber ich scheitere immer noch am Paket Perl-Device-SerialPort:


DiskStation> /opt/bin/ipkg remove perl-device-serialport
Removing package perl-device-serialport from root...
Successfully terminated.
DiskStation> /opt/bin/ipkg install perl-device-serialport
Installing perl-device-serialport (1.04-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/perl-device-serialport_1.04-1_arm.ipk
Configuring perl-device-serialport
Successfully terminated.
DiskStation>


Wenn ich dann aber auf der DS nach den Dateien SerialPort.pm / SerialPort.bs / SerialPort.so suche kann ich nur die Dateien SerialPort.pm und SerialPort.xs finden, welche jedoch in diesem Verzeichnis /root/.cpan/build/Device-SerialPort-1.04-5N9hjS liegen.

Wenn ich das ganze mit CPAN versuche schlägt die Installation fehl, weil wohl ein Verzeichnis nicht existiert:
cpan[2]> Checking if your kit is complete...
Looks good
Unknown shell command 'Checking'. Type ? for help.

CONFIG key 'lddlflags' does not exist in Config.pm
CONFIG key 'ldflags' does not exist in Config.pm
Writing Makefile for install
Writing MYMETA.yml and MYMETA.json
Can't exec "make": No such file or directory at /usr/share/perl5/core_perl/CPAN/  Distribution.pm line 2084.
  DAGOLDEN/install-0.01.tar.gz
  make -- NOT OK
Running make for module 'Device::SerialPort'
Running make for C/CO/COOK/Device-SerialPort-1.04.tar.gz
Checksum for /root/.cpan/sources/authors/id/C/CO/COOK/Device-SerialPort-1.04.tar  .gz ok

  CPAN.pm: Building C/CO/COOK/Device-SerialPort-1.04.tar.gz

To enable serial port tests, use:
        perl Makefile.PL TESTPORT=<DEVICE>
where <DEVICE> is a specific port or 'auto' to autodetect.
Running ./configure ...
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
The 'configure' script didn't like something.  It should have told you
what went wrong, but you can check 'config.log' for more details.
Warning: No success on command[/usr/bin/perl Makefile.PL]
  COOK/Device-SerialPort-1.04.tar.gz
  /usr/bin/perl Makefile.PL -- NOT OK
Could not read metadata file. Falling back to other methods to determine prerequ  isites
Failed during this command:
DAGOLDEN/install-0.01.tar.gz                 : make NO
COOK/Device-SerialPort-1.04.tar.gz           : writemakefile NO '/usr/bin/perl   Makefile.PL' returned status 512


Irgendwie komme ich nicht weiter heute...

startrix

So vor lauter lesen heute hab ich nun doch noch den einen Baum im Wald entdeckt, oh mein Gott. Das hätte mir viel Zeit ersparen können.
Wie dämlich von mir...

Die Verzeichnisse unter /volume1/@appstore/Perl/lib/perl5/site_perl/ musste ich erst manuell anlegen, damit die CP Befehle für das serialport modul funktionieren.

Nun schaut es erstmal so aus:
2015.03.02 21:10:47 1: usb create starting
2015.03.02 21:10:47 3: Opening CUL device /dev/ttyACM0
2015.03.02 21:10:47 3: Setting CUL baudrate to 9600
2015.03.02 21:10:47 3: CUL device opened
2015.03.02 21:10:48 1: define CUL_0 CUL /dev/ttyACM0@9600 1034
2015.03.02 21:10:48 3: Opening CUL_0 device /dev/ttyACM0
2015.03.02 21:10:48 3: Setting CUL_0 baudrate to 9600
2015.03.02 21:10:48 3: CUL_0 device opened
2015.03.02 21:10:48 3: CUL_0: Possible commands: BbCFiAZEkGMKUYRTVWXefmltux
2015.03.02 21:10:48 1: usb create end


So weiter geht es bis zum nächsten Problem.