Jump to content

Bastler

Members
  • Gesamte Inhalte

    12
  • Benutzer seit

  • Letzter Besuch

Posts erstellt von Bastler

  1. Hmm, das ist interesant. Nach einem Reboot kommt keine Fehlermeldung: (ich habe eine Ethernet-Extension und logge mich über ssh ein)

    udo@wks01 ~ $ ssh tf@srv02
    tf@srv02's password: 
    
    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.
    
    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    Last login: Sat Jul 23 09:34:10 2016
    tf@red-brick:~$ sudo -s
    [sudo] password for tf: 
    root@red-brick:/home/tf# dpkg
    dpkg: error: need an action option
    
    Type dpkg --help for help about installing and deinstalling packages [*];
    Use 'apt' or 'aptitude' for user-friendly package management;
    Type dpkg -Dhelp for a list of dpkg debug flag values;
    Type dpkg --force-help for a list of forcing options;
    Type dpkg-deb --help for help about manipulating *.deb files;
    
    Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
    root@red-brick:/home/tf# dpkg --configure -a
    root@red-brick:/home/tf#
    

     

    Nach dem Upgrade Versuch kommt ein Segmentation fault (hier mal und ungekürzte Version, falls da irgendwas wichtigen stehen sollte):

    root@red-brick:/home/tf# apt-get upgrade
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Calculating upgrade... Done
    The following packages have been kept back:
      openjdk-7-jre openjdk-7-jre-headless
    The following packages will be upgraded:
      apache2 apache2-bin apache2-data apache2-utils base-files dmsetup dpkg dpkg-dev gir1.2-gdkpixbuf-2.0 libapache2-mod-php5 libarchive13
      libavcodec-dev libavcodec56 libavformat-dev libavformat56 libavresample-dev libavresample2 libavutil-dev libavutil54 libcrypto++-dev libcrypto++9
      libdatetime-timezone-perl libdevmapper1.02.1 libdpkg-perl libexpat1 libexpat1-dev libgd-dev libgd2-xpm-dev libgd3 libgdk-pixbuf2.0-0
      libgdk-pixbuf2.0-common libgdk-pixbuf2.0-dev libidn11 libimlib2 libmysqlclient-dev libmysqlclient18 libperl5.20 librsvg2-2 librsvg2-common
      libssl-dev libssl1.0.0 libswscale-dev libswscale3 libtasn1-6 libxapian22 libxml2 libxml2-dev libxml2-utils libxslt1.1 linux-libc-dev mysql-common
      openssh-client openssh-server openssh-sftp-server openssl perl perl-base perl-modules php-pear php5 php5-cli php5-common php5-curl php5-gd
      php5-mcrypt php5-mysql php5-snmp php5-sqlite php5-xmlrpc tzdata tzdata-java xarchiver xsltproc
    73 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
    Need to get 0 B/41.0 MB of archives.
    After this operation, 253 kB disk space will be freed.
    Do you want to continue? [Y/n] Y
    Extracting templates from packages: 100%
    Preconfiguring packages ...
    (Reading database ... 138580 files and directories currently installed.)
    Preparing to unpack .../base-files_8+deb8u5_armhf.deb ...
    Unpacking base-files (8+deb8u5) over (8+deb8u4) ...
    Processing triggers for man-db (2.7.0.2-5) ...
    Setting up base-files (8+deb8u5) ...
    Installing new version of config file /etc/debian_version ...
    (Reading database ... 138580 files and directories currently installed.)
    Preparing to unpack .../dpkg_1.17.27_armhf.deb ...
    Unpacking dpkg (1.17.27) over (1.17.26) ...
    Processing triggers for man-db (2.7.0.2-5) ...
    Setting up dpkg (1.17.27) ...
    (Reading database ... 138580 files and directories currently installed.)
    Preparing to unpack .../perl_5.20.2-3+deb8u5_armhf.deb ...
    Unpacking perl (5.20.2-3+deb8u5) over (5.20.2-3+deb8u4) ...
    Preparing to unpack .../libperl5.20_5.20.2-3+deb8u5_armhf.deb ...
    Unpacking libperl5.20 (5.20.2-3+deb8u5) over (5.20.2-3+deb8u4) ...
    Preparing to unpack .../perl-base_5.20.2-3+deb8u5_armhf.deb ...
    Unpacking perl-base (5.20.2-3+deb8u5) over (5.20.2-3+deb8u4) ...
    Processing triggers for man-db (2.7.0.2-5) ...
    Setting up perl-base (5.20.2-3+deb8u5) ...
    (Reading database ... 138581 files and directories currently installed.)
    Preparing to unpack .../perl-modules_5.20.2-3+deb8u5_all.deb ...
    Unpacking perl-modules (5.20.2-3+deb8u5) over (5.20.2-3+deb8u4) ...
    Preparing to unpack .../dmsetup_2%3a1.02.90-2.2+deb8u1_armhf.deb ...
    Unpacking dmsetup (2:1.02.90-2.2+deb8u1) over (2:1.02.90-2.2) ...
    Processing triggers for man-db (2.7.0.2-5) ...
    Setting up dmsetup (2:1.02.90-2.2+deb8u1) ...
    (Reading database ... 138581 files and directories currently installed.)
    Preparing to unpack .../libdevmapper1.02.1_2%3a1.02.90-2.2+deb8u1_armhf.deb ...
    Unpacking libdevmapper1.02.1:armhf (2:1.02.90-2.2+deb8u1) over (2:1.02.90-2.2) ...
    Setting up libdevmapper1.02.1:armhf (2:1.02.90-2.2+deb8u1) ...
    Processing triggers for libc-bin (2.19-18+deb8u4) ...
    (Reading database ... 138581 files and directories currently installed.)
    Preparing to unpack .../libssl-dev_1.0.1t-1+deb8u2_armhf.deb ...
    Unpacking libssl-dev:armhf (1.0.1t-1+deb8u2) over (1.0.1k-3+deb8u4) ...
    Preparing to unpack .../libssl1.0.0_1.0.1t-1+deb8u2_armhf.deb ...
    Unpacking libssl1.0.0:armhf (1.0.1t-1+deb8u2) over (1.0.1k-3+deb8u4) ...
    Preparing to unpack .../libidn11_1.29-1+deb8u1_armhf.deb ...
    Unpacking libidn11:armhf (1.29-1+deb8u1) over (1.29-1+b2) ...
    Preparing to unpack .../libtasn1-6_4.2-3+deb8u2_armhf.deb ...
    Unpacking libtasn1-6:armhf (4.2-3+deb8u2) over (4.2-3+deb8u1) ...
    Preparing to unpack .../libxml2-dev_2.9.1+dfsg1-5+deb8u2_armhf.deb ...
    Unpacking libxml2-dev:armhf (2.9.1+dfsg1-5+deb8u2) over (2.9.1+dfsg1-5+deb8u1) ...
    Preparing to unpack .../libxml2_2.9.1+dfsg1-5+deb8u2_armhf.deb ...
    Unpacking libxml2:armhf (2.9.1+dfsg1-5+deb8u2) over (2.9.1+dfsg1-5+deb8u1) ...
    Preparing to unpack .../apache2_2.4.10-10+deb8u5_armhf.deb ...
    Unpacking apache2 (2.4.10-10+deb8u5) over (2.4.10-10+deb8u4) ...
    Preparing to unpack .../apache2-bin_2.4.10-10+deb8u5_armhf.deb ...
    Unpacking apache2-bin (2.4.10-10+deb8u5) over (2.4.10-10+deb8u4) ...
    Preparing to unpack .../apache2-utils_2.4.10-10+deb8u5_armhf.deb ...
    Unpacking apache2-utils (2.4.10-10+deb8u5) over (2.4.10-10+deb8u4) ...
    Preparing to unpack .../apache2-data_2.4.10-10+deb8u5_all.deb ...
    Unpacking apache2-data (2.4.10-10+deb8u5) over (2.4.10-10+deb8u4) ...
    Preparing to unpack .../libarchive13_3.1.2-11+deb8u1_armhf.deb ...
    Unpacking libarchive13:armhf (3.1.2-11+deb8u1) over (3.1.2-11) ...
    Preparing to unpack .../libswscale-dev_6%3a11.7-1~deb8u1_armhf.deb ...
    Unpacking libswscale-dev (6:11.7-1~deb8u1) over (6:11.6-1~deb8u1) ...
    Preparing to unpack .../libswscale3_6%3a11.7-1~deb8u1_armhf.deb ...
    Unpacking libswscale3:armhf (6:11.7-1~deb8u1) over (6:11.6-1~deb8u1) ...
    Preparing to unpack .../libavformat-dev_6%3a11.7-1~deb8u1_armhf.deb ...
    Unpacking libavformat-dev (6:11.7-1~deb8u1) over (6:11.6-1~deb8u1) ...
    Preparing to unpack .../libavcodec-dev_6%3a11.7-1~deb8u1_armhf.deb ...
    Unpacking libavcodec-dev (6:11.7-1~deb8u1) over (6:11.6-1~deb8u1) ...
    Preparing to unpack .../libavresample-dev_6%3a11.7-1~deb8u1_armhf.deb ...
    Unpacking libavresample-dev (6:11.7-1~deb8u1) over (6:11.6-1~deb8u1) ...
    Preparing to unpack .../libavresample2_6%3a11.7-1~deb8u1_armhf.deb ...
    Unpacking libavresample2:armhf (6:11.7-1~deb8u1) over (6:11.6-1~deb8u1) ...
    Preparing to unpack .../libavutil-dev_6%3a11.7-1~deb8u1_armhf.deb ...
    Unpacking libavutil-dev (6:11.7-1~deb8u1) over (6:11.6-1~deb8u1) ...
    Preparing to unpack .../libavutil54_6%3a11.7-1~deb8u1_armhf.deb ...
    Unpacking libavutil54:armhf (6:11.7-1~deb8u1) over (6:11.6-1~deb8u1) ...
    Preparing to unpack .../libavformat56_6%3a11.7-1~deb8u1_armhf.deb ...
    Unpacking libavformat56:armhf (6:11.7-1~deb8u1) over (6:11.6-1~deb8u1) ...
    Preparing to unpack .../libavcodec56_6%3a11.7-1~deb8u1_armhf.deb ...
    Unpacking libavcodec56:armhf (6:11.7-1~deb8u1) over (6:11.6-1~deb8u1) ...
    Preparing to unpack .../libexpat1-dev_2.1.0-6+deb8u3_armhf.deb ...
    Unpacking libexpat1-dev:armhf (2.1.0-6+deb8u3) over (2.1.0-6+deb8u1) ...
    Preparing to unpack .../libexpat1_2.1.0-6+deb8u3_armhf.deb ...
    Unpacking libexpat1:armhf (2.1.0-6+deb8u3) over (2.1.0-6+deb8u1) ...
    Preparing to unpack .../libgd-dev_2.1.0-5+deb8u4_armhf.deb ...
    Unpacking libgd-dev:armhf (2.1.0-5+deb8u4) over (2.1.0-5) ...
    Preparing to unpack .../libgd2-xpm-dev_2.1.0-5+deb8u4_armhf.deb ...
    Unpacking libgd2-xpm-dev (2.1.0-5+deb8u4) over (2.1.0-5) ...
    Preparing to unpack .../libgd3_2.1.0-5+deb8u4_armhf.deb ...
    Unpacking libgd3:armhf (2.1.0-5+deb8u4) over (2.1.0-5) ...
    Preparing to unpack .../librsvg2-common_2.40.5-1+deb8u2_armhf.deb ...
    Unpacking librsvg2-common:armhf (2.40.5-1+deb8u2) over (2.40.5-1+deb8u1) ...
    Preparing to unpack .../libgdk-pixbuf2.0-dev_2.31.1-2+deb8u5_armhf.deb ...
    Unpacking libgdk-pixbuf2.0-dev (2.31.1-2+deb8u5) over (2.31.1-2+deb8u4) ...
    Preparing to unpack .../libgdk-pixbuf2.0-common_2.31.1-2+deb8u5_all.deb ...
    Unpacking libgdk-pixbuf2.0-common (2.31.1-2+deb8u5) over (2.31.1-2+deb8u4) ...
    Preparing to unpack .../libgdk-pixbuf2.0-0_2.31.1-2+deb8u5_armhf.deb ...
    Unpacking libgdk-pixbuf2.0-0:armhf (2.31.1-2+deb8u5) over (2.31.1-2+deb8u4) ...
    Preparing to unpack .../librsvg2-2_2.40.5-1+deb8u2_armhf.deb ...
    Unpacking librsvg2-2:armhf (2.40.5-1+deb8u2) over (2.40.5-1+deb8u1) ...
    Preparing to unpack .../gir1.2-gdkpixbuf-2.0_2.31.1-2+deb8u5_armhf.deb ...
    Unpacking gir1.2-gdkpixbuf-2.0 (2.31.1-2+deb8u5) over (2.31.1-2+deb8u4) ...
    Preparing to unpack .../libmysqlclient-dev_5.5.50-0+deb8u1_armhf.deb ...
    Unpacking libmysqlclient-dev (5.5.50-0+deb8u1) over (5.5.47-0+deb8u1) ...
    Preparing to unpack .../mysql-common_5.5.50-0+deb8u1_all.deb ...
    Unpacking mysql-common (5.5.50-0+deb8u1) over (5.5.47-0+deb8u1) ...
    Preparing to unpack .../libmysqlclient18_5.5.50-0+deb8u1_armhf.deb ...
    Unpacking libmysqlclient18:armhf (5.5.50-0+deb8u1) over (5.5.47-0+deb8u1) ...
    Preparing to unpack .../libxslt1.1_1.1.28-2+deb8u1_armhf.deb ...
    Unpacking libxslt1.1:armhf (1.1.28-2+deb8u1) over (1.1.28-2+b2) ...
    Preparing to unpack .../tzdata-java_2016f-0+deb8u1_all.deb ...
    Unpacking tzdata-java (2016f-0+deb8u1) over (2016c-0+deb8u1) ...
    Preparing to unpack .../tzdata_2016f-0+deb8u1_all.deb ...
    Unpacking tzdata (2016f-0+deb8u1) over (2016c-0+deb8u1) ...
    Processing triggers for man-db (2.7.0.2-5) ...
    Processing triggers for systemd (215-17+deb8u4) ...
    Setting up tzdata (2016f-0+deb8u1) ...
    
    Current default time zone: 'Europe/Berlin'
    Local time is now:      Tue Jul 26 15:57:22 CEST 2016.
    Universal Time is now:  Tue Jul 26 13:57:22 UTC 2016.
    Run 'dpkg-reconfigure tzdata' if you wish to change it.
    
    (Reading database ... 138587 files and directories currently installed.)
    Preparing to unpack .../libxapian22_1.2.19-1+deb8u1_armhf.deb ...
    Unpacking libxapian22 (1.2.19-1+deb8u1) over (1.2.19-1) ...
    Preparing to unpack .../openssh-sftp-server_1%3a6.7p1-5+deb8u2_armhf.deb ...
    Unpacking openssh-sftp-server (1:6.7p1-5+deb8u2) over (1:6.7p1-5+deb8u1) ...
    Preparing to unpack .../openssh-server_1%3a6.7p1-5+deb8u2_armhf.deb ...
    Unpacking openssh-server (1:6.7p1-5+deb8u2) over (1:6.7p1-5+deb8u1) ...
    Preparing to unpack .../openssh-client_1%3a6.7p1-5+deb8u2_armhf.deb ...
    Unpacking openssh-client (1:6.7p1-5+deb8u2) over (1:6.7p1-5+deb8u1) ...
    Preparing to unpack .../dpkg-dev_1.17.27_all.deb ...
    Unpacking dpkg-dev (1.17.27) over (1.17.26) ...
    Preparing to unpack .../libdpkg-perl_1.17.27_all.deb ...
    Unpacking libdpkg-perl (1.17.27) over (1.17.26) ...
    Preparing to unpack .../php5-sqlite_5.6.23+dfsg-0+deb8u1_armhf.deb ...
    Unpacking php5-sqlite (5.6.23+dfsg-0+deb8u1) over (5.6.19+dfsg-0+deb8u1) ...
    Preparing to unpack .../php5-gd_5.6.23+dfsg-0+deb8u1_armhf.deb ...
    Unpacking php5-gd (5.6.23+dfsg-0+deb8u1) over (5.6.19+dfsg-0+deb8u1) ...
    Preparing to unpack .../php5-cli_5.6.23+dfsg-0+deb8u1_armhf.deb ...
    Unpacking php5-cli (5.6.23+dfsg-0+deb8u1) over (5.6.19+dfsg-0+deb8u1) ...
    Preparing to unpack .../php5-mcrypt_5.6.23+dfsg-0+deb8u1_armhf.deb ...
    Unpacking php5-mcrypt (5.6.23+dfsg-0+deb8u1) over (5.6.19+dfsg-0+deb8u1) ...
    Preparing to unpack .../php5-snmp_5.6.23+dfsg-0+deb8u1_armhf.deb ...
    Unpacking php5-snmp (5.6.23+dfsg-0+deb8u1) over (5.6.19+dfsg-0+deb8u1) ...
    Preparing to unpack .../php5-curl_5.6.23+dfsg-0+deb8u1_armhf.deb ...
    Unpacking php5-curl (5.6.23+dfsg-0+deb8u1) over (5.6.19+dfsg-0+deb8u1) ...
    Preparing to unpack .../php5-mysql_5.6.23+dfsg-0+deb8u1_armhf.deb ...
    Unpacking php5-mysql (5.6.23+dfsg-0+deb8u1) over (5.6.19+dfsg-0+deb8u1) ...
    Preparing to unpack .../php5-xmlrpc_5.6.23+dfsg-0+deb8u1_armhf.deb ...
    Unpacking php5-xmlrpc (5.6.23+dfsg-0+deb8u1) over (5.6.19+dfsg-0+deb8u1) ...
    Preparing to unpack .../libapache2-mod-php5_5.6.23+dfsg-0+deb8u1_armhf.deb ...
    Unpacking libapache2-mod-php5 (5.6.23+dfsg-0+deb8u1) over (5.6.19+dfsg-0+deb8u1) ...
    Preparing to unpack .../php5-common_5.6.23+dfsg-0+deb8u1_armhf.deb ...
    Unpacking php5-common (5.6.23+dfsg-0+deb8u1) over (5.6.19+dfsg-0+deb8u1) ...
    Preparing to unpack .../libcrypto++-dev_5.6.1-6+deb8u2_armhf.deb ...
    Unpacking libcrypto++-dev (5.6.1-6+deb8u2) over (5.6.1-6+deb8u1) ...
    Preparing to unpack .../libcrypto++9_5.6.1-6+deb8u2_armhf.deb ...
    Unpacking libcrypto++9 (5.6.1-6+deb8u2) over (5.6.1-6+deb8u1) ...
    Preparing to unpack .../libdatetime-timezone-perl_1%3a1.75-2+2016f_all.deb ...
    Unpacking libdatetime-timezone-perl (1:1.75-2+2016f) over (1:1.75-2+2016c) ...
    dpkg:../../src/unpack.c:123:deb_reassemble: internal error: unexpected exit status 11 from dpkg-split
    E: Sub-process /usr/bin/dpkg exited unexpectedly
    root@red-brick:/home/tf# dpkg
    Segmentation fault
    root@red-brick:/home/tf# dpkg --configure -a
    Segmentation fault
    root@red-brick:/home/tf# 
    

     

  2. Ich habe eben ein

    apt-get update
    apt-get upgrade
    

    auf meinem RED-Brick ausgeführt. Das upgrade bricht mit einem Fehler ab:

    .
    .
    .
    Preparing to unpack .../linux-libc-dev_3.16.7-ckt25-2+deb8u3_armhf.deb ...
    Unpacking linux-libc-dev:armhf (3.16.7-ckt25-2+deb8u3) over (3.16.7-ckt25-2) ...
    dpkg:../../src/unpack.c:123:deb_reassemble: internal error: unexpected exit status 11 from dpkg-split
    E: Sub-process /usr/bin/dpkg exited unexpectedly
    root@red-brick:/home/tf#
    

     

    Nochmal versucht:

    root@red-brick:/home/tf# apt-get upgrade
    E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
    

     

    Ok, getan (ich hatte vorher sudo -s ausgeführt):

    root@red-brick:/home/tf# dpkg --configure -a
    Segmentation fault
    root@red-brick:/home/tf#
    

     

    Sehr böse, oder !?

     

  3. Naja ganz ohne Fehler geht es (zumindest im Moment) nicht. Er hat irgendwo ein Problem mit der Perl. Hier mal die Ausgabe:

    root@red-brick:~# apt-get -f upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Correcting dependencies... Done
    Calculating upgrade... Done
    The following packages will be upgraded:
      apache2 apache2-bin apache2-data apache2-utils apt apt-utils bsd-mailx bzip2 cgmanager console-setup console-setup-linux
      curl dbus dbus-x11 debconf-i18n debconf-utils dmsetup dnsmasq dnsmasq-base dpkg-dev fake-hwclock file fuse icu-devtools
      ifupdown initscripts keyboard-configuration libapache2-mod-php5 libapt-inst1.5 libapt-pkg4.12 libavahi-client-dev
      libavahi-client3 libavahi-common-data libavahi-common-dev libavahi-common3 libavahi-glib1 libavahi-gobject0 libavcodec-dev
      libavcodec56 libavformat-dev libavformat56 libavresample-dev libavresample2 libavutil-dev libavutil54 libbatik-java
      libblkid1 libbz2-1.0 libcap2-bin libcgmanager0 libcups2 libcupsfilters1 libcupsimage2 libcurl3 libcurl3-gnutls
      libcurl4-openssl-dev libcv-dev libcvaux-dev libdatetime-timezone-perl libdbus-1-3 libdbus-1-dev libdevmapper1.02.1
      libdpkg-perl libfuse2 libgcrypt11-dev libgcrypt20 libgcrypt20-dev libgnutls-deb0-28 libgnutls-openssl27 libgssapi-krb5-2
      libhighgui-dev libibverbs-dev libibverbs1 libicu-dev libicu52 libjavascriptcoregtk-1.0-0 libjavascriptcoregtk-3.0-0
      libjavascriptcoregtk-4.0-18 libjpeg-dev libjpeg62-turbo libjpeg62-turbo-dev libk5crypto3 libkrb5-3 libkrb5support0
      libldap-2.4-2 libmagic1 libmono-2.0-1 libmono-2.0-dev libmono-accessibility2.0-cil libmono-accessibility4.0-cil
      libmono-c5-1.1-cil libmono-cairo2.0-cil libmono-cairo4.0-cil libmono-cecil-private-cil libmono-cil-dev
      libmono-codecontracts4.0-cil libmono-compilerservices-symbolwriter4.0-cil libmono-corlib2.0-cil libmono-corlib4.0-cil
      libmono-corlib4.5-cil libmono-cscompmgd8.0-cil libmono-csharp4.0c-cil libmono-custommarshalers4.0-cil
      libmono-data-tds2.0-cil libmono-data-tds4.0-cil libmono-db2-1.0-cil libmono-debugger-soft2.0a-cil
      libmono-debugger-soft4.0a-cil libmono-entityframework-sqlserver6.0-cil libmono-entityframework6.0-cil libmono-http4.0-cil
      libmono-i18n-cjk4.0-cil libmono-i18n-mideast4.0-cil libmono-i18n-other4.0-cil libmono-i18n-rare4.0-cil
      libmono-i18n-west2.0-cil libmono-i18n-west4.0-cil libmono-i18n2.0-cil libmono-i18n4.0-all libmono-i18n4.0-cil
      libmono-ldap2.0-cil libmono-ldap4.0-cil libmono-management2.0-cil libmono-management4.0-cil
      libmono-messaging-rabbitmq2.0-cil libmono-messaging-rabbitmq4.0-cil libmono-messaging2.0-cil libmono-messaging4.0-cil
      libmono-microsoft-build-engine4.0-cil libmono-microsoft-build-framework4.0-cil libmono-microsoft-build-tasks-v4.0-4.0-cil
      libmono-microsoft-build-utilities-v4.0-4.0-cil libmono-microsoft-build2.0-cil libmono-microsoft-build4.0-cil
      libmono-microsoft-csharp4.0-cil libmono-microsoft-visualc10.0-cil libmono-microsoft-web-infrastructure1.0-cil
      libmono-microsoft8.0-cil libmono-npgsql2.0-cil libmono-npgsql4.0-cil libmono-opensystem-c4.0-cil libmono-oracle2.0-cil
      libmono-oracle4.0-cil libmono-parallel4.0-cil libmono-peapi2.0a-cil libmono-peapi4.0a-cil libmono-posix2.0-cil
      libmono-posix4.0-cil libmono-profiler libmono-rabbitmq2.0-cil libmono-rabbitmq4.0-cil libmono-relaxng2.0-cil
      libmono-relaxng4.0-cil libmono-security2.0-cil libmono-security4.0-cil libmono-sharpzip2.6-cil libmono-sharpzip2.84-cil
      libmono-sharpzip4.84-cil libmono-simd2.0-cil libmono-simd4.0-cil libmono-sqlite2.0-cil libmono-sqlite4.0-cil
      libmono-system-componentmodel-composition4.0-cil libmono-system-componentmodel-dataannotations4.0-cil
      libmono-system-configuration-install4.0-cil libmono-system-configuration4.0-cil libmono-system-core4.0-cil
      libmono-system-data-datasetextensions4.0-cil libmono-system-data-linq2.0-cil libmono-system-data-linq4.0-cil
      libmono-system-data-services-client4.0-cil libmono-system-data-services2.0-cil libmono-system-data-services4.0-cil
      libmono-system-data2.0-cil libmono-system-data4.0-cil libmono-system-design4.0-cil libmono-system-drawing-design4.0-cil
      libmono-system-drawing4.0-cil libmono-system-dynamic4.0-cil libmono-system-enterpriseservices4.0-cil
      libmono-system-identitymodel-selectors4.0-cil libmono-system-identitymodel4.0-cil
      libmono-system-io-compression-filesystem4.0-cil libmono-system-io-compression4.0-cil libmono-system-json-microsoft4.0-cil
      libmono-system-json2.0-cil libmono-system-json4.0-cil libmono-system-ldap-protocols4.0-cil libmono-system-ldap2.0-cil
      libmono-system-ldap4.0-cil libmono-system-management4.0-cil libmono-system-messaging2.0-cil
      libmono-system-messaging4.0-cil libmono-system-net-http-formatting4.0-cil libmono-system-net-http-webrequest4.0-cil
      libmono-system-net-http4.0-cil libmono-system-net2.0-cil libmono-system-net4.0-cil libmono-system-numerics4.0-cil
      libmono-system-reactive-core2.2-cil libmono-system-reactive-debugger2.2-cil libmono-system-reactive-experimental2.2-cil
      libmono-system-reactive-interfaces2.2-cil libmono-system-reactive-linq2.2-cil
      libmono-system-reactive-observable-aliases0.0-cil libmono-system-reactive-platformservices2.2-cil
      libmono-system-reactive-providers2.2-cil libmono-system-reactive-runtime-remoting2.2-cil
      libmono-system-reactive-windows-forms2.2-cil libmono-system-reactive-windows-threading2.2-cil
      libmono-system-runtime-caching4.0-cil libmono-system-runtime-durableinstancing4.0-cil
      libmono-system-runtime-serialization-formatters-soap4.0-cil libmono-system-runtime-serialization4.0-cil
      libmono-system-runtime2.0-cil libmono-system-runtime4.0-cil libmono-system-security4.0-cil
      libmono-system-servicemodel-activation4.0-cil libmono-system-servicemodel-discovery4.0-cil
      libmono-system-servicemodel-routing4.0-cil libmono-system-servicemodel-web4.0-cil libmono-system-servicemodel4.0a-cil
      libmono-system-serviceprocess4.0-cil libmono-system-threading-tasks-dataflow4.0-cil libmono-system-transactions4.0-cil
      libmono-system-web-abstractions4.0-cil libmono-system-web-applicationservices4.0-cil libmono-system-web-dynamicdata4.0-cil
      libmono-system-web-extensions-design4.0-cil libmono-system-web-extensions4.0-cil libmono-system-web-http-selfhost4.0-cil
      libmono-system-web-http-webhost4.0-cil libmono-system-web-http4.0-cil libmono-system-web-mvc1.0-cil
      libmono-system-web-mvc2.0-cil libmono-system-web-mvc3.0-cil libmono-system-web-razor2.0-cil
      libmono-system-web-routing4.0-cil libmono-system-web-services4.0-cil libmono-system-web-webpages-deployment2.0-cil
      libmono-system-web-webpages-razor2.0-cil libmono-system-web-webpages2.0-cil libmono-system-web2.0-cil
      libmono-system-web4.0-cil libmono-system-windows-forms-datavisualization4.0a-cil libmono-system-windows-forms4.0-cil
      libmono-system-windows4.0-cil libmono-system-xaml4.0-cil libmono-system-xml-linq4.0-cil
      libmono-system-xml-serialization4.0-cil libmono-system-xml4.0-cil libmono-system2.0-cil libmono-system4.0-cil
      libmono-tasklets2.0-cil libmono-tasklets4.0-cil libmono-wcf3.0a-cil libmono-web4.0-cil libmono-webbrowser2.0-cil
      libmono-webbrowser4.0-cil libmono-webmatrix-data4.0-cil libmono-windowsbase3.0-cil libmono-windowsbase4.0-cil
      libmono-winforms2.0-cil libmono-xbuild-tasks2.0-cil libmono-xbuild-tasks4.0-cil libmono2.0-cil libmonoboehm-2.0-1
      libmonoboehm-2.0-dev libmonosgen-2.0-1 libmount1 libmp3lame0 libmysqlclient-dev libmysqlclient18 libopencv-calib3d-dev
      libopencv-calib3d2.4 libopencv-contrib-dev libopencv-contrib2.4 libopencv-core-dev libopencv-core2.4 libopencv-dev
      libopencv-features2d-dev libopencv-features2d2.4 libopencv-flann-dev libopencv-flann2.4 libopencv-gpu-dev libopencv-gpu2.4
      libopencv-highgui-dev libopencv-highgui2.4 libopencv-imgproc-dev libopencv-imgproc2.4 libopencv-legacy-dev
      libopencv-legacy2.4 libopencv-ml-dev libopencv-ml2.4 libopencv-objdetect-dev libopencv-objdetect2.4 libopencv-ocl-dev
      libopencv-ocl2.4 libopencv-photo-dev libopencv-photo2.4 libopencv-stitching-dev libopencv-stitching2.4
      libopencv-superres-dev libopencv-superres2.4 libopencv-ts-dev libopencv-ts2.4 libopencv-video-dev libopencv-video2.4
      libopencv-videostab-dev libopencv-videostab2.4 libopencv2.4-java libopencv2.4-jni libpam-systemd libparted2 libpython-dev
      libpython-stdlib libqt4-core libqt4-dbus libqt4-declarative libqt4-designer libqt4-dev libqt4-dev-bin libqt4-gui
      libqt4-help libqt4-network libqt4-opengl libqt4-opengl-dev libqt4-qt3support libqt4-script libqt4-scripttools libqt4-sql
      libqt4-sql-sqlite libqt4-svg libqt4-test libqt4-xml libqt4-xmlpatterns libqtcore4 libqtdbus4 libqtgui4 librest-0.7-0
      librtmp1 libruby2.1 libsasl2-2 libsasl2-modules-db libsmartcols1 libsnmp-base libsnmp30 libsqlite3-0 libsqlite3-dev
      libssh2-1 libssl-dev libssl1.0.0 libswscale-dev libswscale3 libsystemd0 libtasn1-6 libtcl8.6 libtcltk-ruby libtiff5
      libtiff5-dev libtiffxx5 libudev-dev libudev1 libuuid1 libwebkit2gtk-4.0-37 libwebkitgtk-1.0-0 libwebkitgtk-1.0-common
      libwebkitgtk-3.0-0 libwebkitgtk-3.0-common libxfont1 libxml-libxml-perl mono-2.0-gac mono-2.0-service mono-4.0-gac
      mono-4.0-service mono-complete mono-csharp-shell mono-devel mono-dmcs mono-gac mono-gmcs mono-jay mono-mcs mono-runtime
      mono-runtime-common mono-runtime-sgen mono-utils mono-xbuild monodoc-base monodoc-manual multiarch-support mysql-common
      nodejs nodejs-dev ntp openjdk-7-jre openjdk-7-jre-headless openssh-client openssh-server openssh-sftp-server openssl
      parted patch perl perl-doc perl-modules php-pear php5 php5-cli php5-common php5-curl php5-gd php5-mcrypt php5-mysql
      php5-snmp php5-sqlite php5-xmlrpc python python-dev python-minimal python-opencv python-requests python3-debian
      python3-requests qdbus qt4-dev-tools qt4-linguist-tools qt4-qmake qtcore4-l10n ri ruby ruby-dev ruby-full ruby2.1
      ruby2.1-dev ruby2.1-doc ruby2.1-tcltk sqlite3 sudo systemd systemd-sysv sysv-rc sysvinit-utils task-desktop tasksel
      tasksel-data tcl8.6 tzdata tzdata-java u-boot-tools udev unattended-upgrades util-linux vim vim-common vim-runtime
      wpasupplicant
    457 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    6 not fully installed or removed.
    Need to get 0 B/239 MB of archives.
    After this operation, 10.2 MB disk space will be freed.
    Do you want to continue? [Y/n] Y
    Extracting templates from packages: 100%
    Preconfiguring packages ...
    (Reading database ... 139359 files and directories currently installed.)
    Preparing to unpack .../perl_5.20.2-3+deb8u1_armhf.deb ...
    Unpacking perl (5.20.2-3+deb8u1) over (5.20.2-2) ...
    dpkg: error processing archive /var/cache/apt/archives/perl_5.20.2-3+deb8u1_armhf.deb (--unpack):
    trying to overwrite '/usr/bin/config_data', which is also in package libmodule-build-perl 0.421000-2
    Processing triggers for man-db (2.7.0.2-5) ...
    Errors were encountered while processing:
    /var/cache/apt/archives/perl_5.20.2-3+deb8u1_armhf.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    root@red-brick:~#
    

     

    Davon abgesehen läuft alles. Auch nach einem Reboot oder einem Kaltstart fährt der RED-Brick wieder hoch.

  4. Oder noch einfacher (nach http://www.cplusplus.com/reference/ctime/clock/):

    /* clock example: frequency of primes */
    #include <stdio.h>      /* printf */
    #include <time.h>       /* clock_t, clock, CLOCKS_PER_SEC */
    
    
    int main ()
    {
      clock_t t;
      int f;
      t = clock();
      printf ("Calculating...\n");
    
      sleep(10);    // 10 Sekunden
    
      t = clock() - t;
      printf ("It took me %d clicks (%f seconds).\n",t,((float)t)/CLOCKS_PER_SEC);
      return 0;
    }
    

     

    Die Ausgabe:

    tf@red-brick:~/programs/Test/bin$ ./zeit1
    Calculating...
    It took me 271 clicks (0.000271 seconds).
    tf@red-brick:~/programs/Test/bin$
    

     

     

  5. Hallo,

     

    ich versuche die Zeit zwischen zwei Impulsen zu messen. Dazu habe ich folgenden Aufbau:

     

    DC-Brick -> RED-Brick -> Ethernet-Extension -> Master-Brick

                                                          |-> IO16-Bricklet

     

    Wenn ich dann von Hand im Abstand von ca. 10 Senkunden ein Impuls auf ein PIN gebe erhalte ich folgende Ausgabe:

     

    tf@red-brick:~/programs/Test/bin$ ./zeit
    Press key to exit
    Konfiguriere UID: 329fJv
    Konfiguriere UID: 329fJv
    Konfiguriere UID: 68Wbrf
    Konfiguriere UID: spq
    
    ca. 10s
    Z1: 0.000499
    Z1: 0.000172
    
    ca. 10s
    Z1: 0.000621
    Z1: 0.000168
    
    ca. 10s
    Z1: 0.000638
    Z1: 0.000166
    
    ca. 10s
    Z1: 0.000571
    Z1: 0.000168
    
    ca. 10s
    Z1: 0.000496
    Z1: 0.000165
    
    ca. 10s
    Z1: 0.000738
    Z1: 0.000175
    
    ca. 1min
    Z1: 0.002010
    Z1: 0.000178
    
    tf@red-brick:~/programs/Test/bin$
    

     

    Die Zeiten passen nu gar nicht. Habe ich da noch irgendwo ein Programmfehler (ich finde keinen) oder Denkfehler ? Ich vermute fast das die CLOCKS_PER_SEC nicht richtig ist ?

     

    Hier das Programm:

    #include <stdio.h>
    #include <time.h>
    
    #include "ip_connection.h"
    #include "bricklet_io16.h"
    
    #define HOST "localhost"
    #define PORT 4223
    IPConnection ipcon;
    
    #define MASTER_1_UID "68Wbrf"
    
    #define IO16_1_UID "spq"
    IO16 io16_1;
    
    
    float z1;
    clock_t z1t;
    
    void printp(char port, int pin, uint8_t value_mask ) {
    
    int value = 0;
    if ( ( value_mask & ( 1 << pin  ) ) != 0 ) {
    	value = 1;
    }
    
    printf("Port: %c.%d = %d\n", port, pin, value );
    }
    
    
    // Callback function for interrupts
    void cb_interrupt(char port, uint8_t interrupt_mask, uint8_t value_mask, void *user_data) {
    
    // avoid unused parameter warning
    (void)user_data;
    
    //printf("Interrupt on port: %c\n", port);
    //printf("Interrupt by: %d\n", interrupt_mask);
    //printf("Value: %d\n", value_mask);
    
    
    z1 = ( ( (float)( clock() - z1t ) ) / CLOCKS_PER_SEC );
    z1t = clock();
    
    printf("Z1: %f\n",z1 );
    
    }
    
    
    
    void cb_enumerate( const char *uid, const char *connected_uid, char position, uint8_t hardware_version[3], uint8_t firmware_version[3], uint16_t device_identifier, uint8_t enumeration_type, void *user_data) {
    
    // avoid unused parameter warnings
    (void)user_data;
    (void)connected_uid;
    (void)position;
    (void)hardware_version;
    (void)firmware_version;
    (void)device_identifier;
    
    printf("Konfiguriere UID: %s\n", uid);
    
    if ( strcmp(uid, IO16_1_UID) == 0 ) {
    
    		// Create device object
    		//IO16 io;
    		io16_create(&io16_1, IO16_1_UID, &ipcon); 
    
    		// Set all pins on  port a to input with pullup
    		io16_set_port_configuration( &io16_1, 'a', 255, 'i', true );
    
    		// Set all pins on  port b to input with pullup
    		io16_set_port_configuration( &io16_1, 'b', 255, 'i', true );
    
    		// Set Enprellzeit
    		io16_set_debounce_period( &io16_1, 100 );
    
    		// Enable interrupt on all pins of port a
    		io16_set_port_interrupt( &io16_1, 'a', 255 );
    
    		// Enable interrupt on all pins of port b
    		io16_set_port_interrupt( &io16_1, 'b', 255 );
    
    		// Register callback for interrupts
    		io16_register_callback( &io16_1, IO16_CALLBACK_INTERRUPT, (void *)cb_interrupt, NULL );
    
    		z1t = clock();
    }
    }
    
    
    
    int main() {
    
    // Create IP connection
    ipcon_create(&ipcon);
    
    if ( ipcon_connect(&ipcon, HOST, PORT) < 0 ) {
    	fprintf( stderr, "Could not connect to brickd\n");
    	exit(1);
    }
    
    // Register enumeration callback to "cb_enumerate"
    ipcon_register_callback(&ipcon, IPCON_CALLBACK_ENUMERATE, (void *)cb_enumerate, NULL);
    
    ipcon_enumerate(&ipcon);
    
    printf( "Press key to exit\n" );
    getchar();
    
    ipcon_destroy( &ipcon ); // Calls ipcon_disconnect internally
    }
    

     

×
×
  • Neu erstellen...