ufechner Posted March 13, 2013 at 10:56 AM Share Posted March 13, 2013 at 10:56 AM Hallo, ich versuche den brickd auf einem Electrum100 zu installieren (siehe: http://wiki.micromint.com/index.php/Electrum_Documentation ). Das board hat einen ARM Processor von Atmel mit 400 MHz, aber ohne FPU. uname -a Linux icarus 2.6.33.5-at91 #1 PREEMPT Sun Jan 1 23:03:26 CET 2012 armv5tejl GNU/Linux Fehlermeldung: dpkg: Fehler beim Bearbeiten von brickd_linux_latest_armhf.deb (--install): Paket-Architektur (armhf) passt nicht zum System (armel) Fehler traten auf beim Bearbeiten von: brickd_linux_latest_armhf.deb Wie kann ich den brickd auf dieser Maschine (debian 6) zum laufen bekommen? Mit besten Grüßen: Uwe Fechner Quote Link to comment Share on other sites More sharing options...
Einstein Posted March 13, 2013 at 11:04 AM Share Posted March 13, 2013 at 11:04 AM Da du eine andere ARM Architektur (armel) verwendest als das vorgebaute Paket (armhf) müsstest du dir den brickd selber kompilieren. Beschrieben ist das hier. du müsstest also git clone git://github.com/Tinkerforge/brickd.git eingeben und dann unter src dein paket erstellen Quote Link to comment Share on other sites More sharing options...
FabianB Posted March 13, 2013 at 11:06 AM Share Posted March 13, 2013 at 11:06 AM Diese Seite hier könnte auch helfen: Hier ist erklärt, wie brickd auf dem Raspberry Pi (auch armel) installiert wird: http://www.tinkerforge.com/de/doc/Embedded/Raspberry_Pi.html Quote Link to comment Share on other sites More sharing options...
ufechner Posted March 13, 2013 at 04:35 PM Author Share Posted March 13, 2013 at 04:35 PM To compile brickd (tinkerforge) for the Electrum 100 computer on debian 6.x, I needed the following commands: > cd ~ > mkdir 00Software > cd 00Software > sudo apt-get install git > git clone git://github.com/Tinkerforge/brickd.git > cd brickd/src/brickd > sudo apt-get install libusb-dev > sudo apt-get install pkg-config > sudo apt-get install libusb-1.0 > sudo apt-get install libudev-dev > make But what next? I can start it with: ./brickd And stop it with <ctrl><c> . But I would like to have a start-stop script so that I can start it with: > sudo service brick start and stop it with > sudo service brick stop. Did anyone write such a script already? Uwe Fechner Quote Link to comment Share on other sites More sharing options...
ufechner Posted March 13, 2013 at 04:40 PM Author Share Posted March 13, 2013 at 04:40 PM Diese Seite hier könnte auch helfen: Hier ist erklärt, wie brickd auf dem Raspberry Pi (auch armel) installiert wird: http://www.tinkerforge.com/de/doc/Embedded/Raspberry_Pi.html Nun, der Raspberry Pi benutzt NICHT die armel Architektur, sondern die armhf Architektur. Merke: Mit FPU: armhf, ohne FPU: armel. Quote Link to comment Share on other sites More sharing options...
FabianB Posted March 13, 2013 at 04:42 PM Share Posted March 13, 2013 at 04:42 PM Ups stimmt sorry, da war ich was vorschnell. Quote Link to comment Share on other sites More sharing options...
FabianB Posted March 13, 2013 at 04:50 PM Share Posted March 13, 2013 at 04:50 PM Hier ist das Start-Stop Skript (nicht von mir, von TF) #!/bin/sh ### BEGIN INIT INFO # Provides: brickd # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: brickd # Description: brick daemon ### END INIT INFO # brickd (Brick Daemon) # Copyright (C) 2011-2012 Olaf Lüke <olaf@tinkerforge.com> # # based on skeleton from Debian GNU/Linux # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public # License along with this program; if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/bin/brickd NAME=brickd DESC="Brick Daemon" test -f $DAEMON || exit 0 set -e case "$1" in start) echo -n "Starting $DESC: " start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON echo "$NAME." ;; stop) echo -n "Stopping $DESC: " start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid echo "$NAME." ;; restart|force-reload) echo -n "Restarting $DESC: " start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid sleep 1 start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON echo "$NAME." ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|restart|force-reload}" >&2 exit 1 ;; esac exit 0 Das solltest du eigentlich so übernehmen können (musst du nochmal kontrollieren, ich weiß nicht, ob beim selber kompilieren alles genauso angelegt wird. Eher nicht, vermute ich. Ich weiß es nicht. DU wirst die Dateien entsprechend an die Orte verschieben müssen, an die sie gehören). Kann dann als "brickd" in /etc/init.d/brickd eingetragen werden. Dazu natürlich in die Runlevel-Verzeichnisse /etc/rcX.d/K20brickd Quote Link to comment Share on other sites More sharing options...
photron Posted March 13, 2013 at 05:11 PM Share Posted March 13, 2013 at 05:11 PM FabianB, das ist nicht die aktuelle Version des Start-Stop Skripts. ufechner, das aktuelle Start-Stop Skript ist auch im git: http://github.com/Tinkerforge/brickd/blob/master/src/build_data/linux/etc/init.d/brickd Das Makefile hat im Moment kein install Target, mit dem man brickd richtig installieren könnte. Ich setzt das mal auf die TODO Liste. Quote Link to comment Share on other sites More sharing options...
ufechner Posted March 13, 2013 at 05:39 PM Author Share Posted March 13, 2013 at 05:39 PM Vielen Dank für die schnelle Unterstützung. Alles funktioniert nun wunderbar! Uwe Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.