Bitcoin Forum
June 28, 2024, 12:04:16 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Antminer on RaspberryPi Autostart?  (Read 1063 times)
Buchi-88 (OP)
Legendary
*
Offline Offline

Activity: 3850
Merit: 2583



View Profile
January 30, 2014, 07:12:23 PM
 #1

Hallo Leute,

leider habe ich ein Problem beim Autostart vom Raspberry, und auch nicht wirklich viel Ahnung Roll Eyes kann mir wer helfen die Datei richtig zu konfigurieren??

Auf dem Raspberry laufen zwei Programme:

- Sunwatch (Überwachung meiner PV Anlage)
- CGMiner (Leider ist der noch nicht sehr stabil mit den Antminern)


Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# But locally (for BCM 2835 ARM Linux) we...

_firstboot=false

# assume there is no /etc/hostip until we have run at least once
if [ ! -f /etc/hostip ]; then

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# But locally (for BCM 2835 ARM Linux) we...

_firstboot=false

# assume there is no /etc/hostip until we have run at least once
if [ ! -f /etc/hostip ]; then
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# But locally (for BCM 2835 ARM Linux) we...

_firstboot=false

# assume there is no /etc/hostip until we have run at least once
if [ ! -f /etc/hostip ]; then
    # once-off initialization
    echo "Welcome to Raspberry Pi - one-off initialization"
    [ -x /sbin/ldconfig ] && /sbin/ldconfig
    [ -x /sbin/insserv ] && /sbin/insserv networking 2>/dev/null
    _firstboot=true
fi

if [ -x /boot/boot.rc ]; then
    # note the user could easily try to make or edit this file in Windows
    # this will give it the wrong line endings and may result in errors
    # we try to discourage this my not making it a .txt file
    . /boot/boot.rc
fi

    . /boot/boot.rc
fi

# show the main IP address late enough in the start-up sequence for people
# to read it e.g. to be able to ssh to the system
if hostname -I > /etc/hostip; then
    _IP=`cat /etc/hostip`
    [ -z "$_IP" ] || echo "My network IP address is $_IP"

if ${_firstboot}; then
    # Experience suggests that we are in a mess on the first boot
    # (Something (ifplugd?) prevents the loopback network interface comming up)
    echo "Raspberry Pi rebooting... "
    echo "-- If we stop waiting for portmap feel free to turn the power off"
    echo "   and on again"
    echo "-- (only on this reboot occasion - it is normally better to wait)"
    echo "see you later."
    reboot
ft

screen -S mine
cd /usr/src/cgminer
cgminer -c /home/pi/cgminer.conf --quiet  --usb :10

exit 0

Danke für eure Hife Wink

mfg









█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
MansenP
Member
**
Offline Offline

Activity: 74
Merit: 10


View Profile
January 30, 2014, 08:52:32 PM
 #2

wenn Du mit dem cgminer nicht zufrieden bist warum nimmst du dann nicht den neusten BFGMiner?

versuche es mal hiermit:
Code:
screen -S mine
cd /usr/src/cgminer
./cgminer -c /home/pi/cgminer.conf --quiet  --usb :10

nightstalk3r
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile
January 30, 2014, 08:54:22 PM
 #3

Also der neuste bfgminer läuft problemlos.
Buchi-88 (OP)
Legendary
*
Offline Offline

Activity: 3850
Merit: 2583



View Profile
January 30, 2014, 09:13:16 PM
 #4

wenn Du mit dem cgminer nicht zufrieden bist warum nimmst du dann nicht den neusten BFGMiner?

versuche es mal hiermit:
Code:
screen -S mine
cd /usr/src/cgminer
./cgminer -c /home/pi/cgminer.conf --quiet  --usb :10

Danke startet aber auch nicht bei einem Reboot!?

mfg

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Buchi-88 (OP)
Legendary
*
Offline Offline

Activity: 3850
Merit: 2583



View Profile
January 31, 2014, 09:57:22 AM
 #5

Könnte ich nach diesen Anleitungen auch den Bgfminer installieren?? Statt cg halt immer die bgf dateien?

http://www.raspberrypi.org/forum/viewtopic.php?t=49274&p=383759

und

http://sven-goessling.de/05/01/2014/antminer-auf-dem-raspberry-pi-04-01-14/

mfg

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
MansenP
Member
**
Offline Offline

Activity: 74
Merit: 10


View Profile
January 31, 2014, 10:26:39 AM
Last edit: January 31, 2014, 10:53:58 AM by MansenP
 #6

Ich hatte auch zwei Tage mit dem cgminer rumgespielt... lief aber leider sehr instabil. Wenn der Miner abstürzt, reißt er gleich den ganzen RPi mit sich.

Bin dann auf den bfgminer von nwools umgestiegen, und dieser läuft wunderbar aufm RPi oder auch Ubuntu. Vorallem kann man hier verschiedene Miner gleichzeitig betreiben.

kurze Anleitung:

bfgminer mit antminer Treiber von nwools über GIT-Hub clonen

Code:
git clone -b feature\/antminer-u1-support https://github.com/nwoolls/bfgminer.git bfgminer-npw
cd bfgminer-npw
./autogen.sh
./configure
make

Schauen ob "driver-antminer.c" vorm kompilieren und "driver-antminer.o" danach da sind.

z.B. hier Treiber für den Antminer U1 und Block Erupter:

Code:
bfgminer -S antminer:all -S erupter:all


zum übertakten --set-device:

Code:
bfgminer --set-device antminer:clock=x0981


Windows binaries:

https://www.dropbox.com/s/z29x4n6ng510joi/bfgminer-npw-antminer.7z


Hier habe ich noch eine OpenCalc Tabelle erstellt, einfach die HEX werte(nur diese) ändern und schauen welcher Takt rauskommt.


Habe meine AntMiner zur Zeit ~330MHz@1V laufen



[EDIT] In dem BFGminer 3.10.0 ist der antminer Treiber nun auch enthalten.

Code:
git clone https://github.com/luke-jr/bfgminer bfgminer
cd bfgminer
./autogen.sh
./configure
make

der Rest bleibt gleich


[EDIT]

die MHz Werte stimmen leider nicht, habe da einen Fehler in meinen MHz Rechner...(Tabelle)




[EDIT]

Wenn Du Lust und Laune hast, schau dir mal minepeon an.

Buchi-88 (OP)
Legendary
*
Offline Offline

Activity: 3850
Merit: 2583



View Profile
January 31, 2014, 12:42:00 PM
 #7

kann ich beim bfg miner auch meine configs von hier auslesen?

/home/pi/cgminer.conf

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
MansenP
Member
**
Offline Offline

Activity: 74
Merit: 10


View Profile
January 31, 2014, 01:35:11 PM
 #8

ich denke ja, versuche es doch einfach

Buchi-88 (OP)
Legendary
*
Offline Offline

Activity: 3850
Merit: 2583



View Profile
January 31, 2014, 02:30:28 PM
 #9

Sobald ich fertig installieren will kommt diese meldung:
Code:
configure: error: Could not find HASH_ITER - please install uthash-dev 1.9.4+

und beim Update passt alles ich verstehe es einfach nicht?


Code:
[code]root@sunwatch:/usr/src/bfgminer-3.10.0# cd
root@sunwatch:~# apt-get install uthash-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
uthash-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[/code]

mfg

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Buchi-88 (OP)
Legendary
*
Offline Offline

Activity: 3850
Merit: 2583



View Profile
February 01, 2014, 10:16:11 AM
 #10

So seit ich diese Option gesetzt habe läuft der Antminer mit Cgminer Einwandfrei!!

@Raspberry Pi Nutzer mit Hängern

Habt Ihr die hier unter "Raspberry Pi is locking up when running CGMiner" erwähnte Lösung schon ausprobiert? Der Kernel Bug ist wohl immer noch unter Raspbian und Arch vorhanden... Bei mir hat's damals bei den Block Eruptern alle Probleme behoben, seitdem ist slub_debug=FP immer gesetzt.


Wichtig, wie in der Anleitung erwähnt diese Option an die vorhandenen "anhängen" und keine neue Zeile verwenden.

mfg

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!