Jump to content

Brickd auf Electrum100 installieren


ufechner

Recommended Posts

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

Link zu diesem Kommentar
Share on other sites

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

 

Link zu diesem Kommentar
Share on other sites

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.

Link zu diesem Kommentar
Share on other sites

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

Link zu diesem Kommentar
Share on other sites

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.

Link zu diesem Kommentar
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...