How To: Run BU on Raspberry Pi with USB ASIC's
log in

Advanced search

Message boards : Number crunching : How To: Run BU on Raspberry Pi with USB ASIC's

1 · 2 · 3 · 4 . . . 7 · Next
Author Message
Thorvin
Volunteer tester
Send message
Joined: 19 Jul 14
Posts: 11
Credit: 12,023,430,000
RAC: 0
Germany
Message 4006 - Posted: 1 Sep 2014, 19:43:40 UTC
Last modified: 1 Sep 2014, 19:46:18 UTC

Hi everybody,

here is a little how-to that explains how to run BU on a RPi and USB ASIC's...

I used the latest source code from the boinc git to build the wrapper and cgminer version 4.5.0 sources. All was done with raspbian running on the RPi.

1) As always it is good to have the RPi up to date, the following commands will help

sudo apt-get update sudo apt-get upgrade sudo rpi-update


2) install boinc on the RPi, we will use the version from the raspbian repository
sudo apt-get install boinc

And answer the question with y(es)

3) So far the user 'boinc' is not allowed to access the USB devices, we will change that now. To do so we need to change the udev rules (or better add one)
As root (sudo....) create a file in the directory /etc/udev/rules.d/ the filename is 50-group.rules, with the following content
# /etc/udev/rules.d/50-group.rules SUBSYSTEM!="usb", GOTO="skip_rule" ACTION=="add", GROUP="plugdev" LABEL="skip_rule"

This will add a rule that whenever a usb device is added the group for the device-file is set to 'plugdev'. This group already exists on the RPi and the user 'pi' is already a member of that group.
To activate the rule the 'udev' service needs to be restarted
sudo service udev restart

Now unplug the miner devices, wait a little bit and replug them into the RPi.

Now we need to add the user 'boinc' to the group 'plugdev'
sudo usermod -a -G plugdev boinc


4) to make boinc accessible from your main computer, add your main computers IP adress to the file /etc/boinc-client/remote-hosts.cfg

5) change the host in your boinc client (main computer) Menu 'Extra'-->'Choose computer' and enter the IP adress of your RPi, connect to BU project

Should work now.... hopefully, please report when you've tried it.

Markus
Team: Crunchers@Freiburg

Bitcoin donations welcome, thanks in advance
Adress : 15H5fqKVhJFEsCU1P8ZiMHKxaudorgV6GF

Thorvin
Volunteer tester
Send message
Joined: 19 Jul 14
Posts: 11
Credit: 12,023,430,000
RAC: 0
Germany
Message 4007 - Posted: 1 Sep 2014, 19:46:05 UTC - in response to Message 4006.
Last modified: 1 Sep 2014, 19:46:33 UTC

Support for the following ASIC's was build into cgminer

Antminer.S1.Bitmain..: Disabled
Antminer.S2.Bitmain..: Disabled
Avalon.ASICs.........: Enabled
Avalon2.ASICs........: Enabled
BlackArrowMinion.ASIC: Disabled
BlackArrow.ASICs.....: Disabled
BFL.ASICs............: Enabled
BitForce.FPGAs.......: Enabled
BitFury.ASICs........: Enabled
Cointerra.ASICs......: Enabled
Spond-sp10.ASICs.....: Disabled
Spond-sp30.ASICs.....: Disabled
Bitmine-A1.ASICs.....: Disabled
Drillbit.BitFury.....: Enabled
Hashfast.ASICs.......: Enabled
Hashratio.ASICs......: Enabled
Icarus.ASICs/FPGAs...: Enabled
Klondike.ASICs.......: Enabled
KnC.ASICs............: Disabled
ModMiner.FPGAs.......: Enabled

All that are disabled rty to access the device during start-up of cgminer and stop with an error message if the device is not present.
____________
Markus
Team: Crunchers@Freiburg

Bitcoin donations welcome, thanks in advance
Adress : 15H5fqKVhJFEsCU1P8ZiMHKxaudorgV6GF

Profile Landjunge
Send message
Joined: 18 Jun 13
Posts: 9
Credit: 8,053,733,350
RAC: 9,751,822
Germany
Message 4040 - Posted: 2 Sep 2014, 16:54:44 UTC

Hi,

i am running a Butterflylabs Jalapeno 5Gh/s (slightly modificated ;-) with my raspberry pi typ B.
This How To works for me. Thank you very much.

Mining @ 9,3Gh/s http://www.bitcoinutopia.net/bitcoinutopia/results.php?hostid=4981

Thorvin
Volunteer tester
Send message
Joined: 19 Jul 14
Posts: 11
Credit: 12,023,430,000
RAC: 0
Germany
Message 4041 - Posted: 2 Sep 2014, 20:22:56 UTC - in response to Message 4040.

Hi,

i am running a Butterflylabs Jalapeno 5Gh/s (slightly modificated ;-) with my raspberry pi typ B.
This How To works for me. Thank you very much.

Mining @ 9,3Gh/s http://www.bitcoinutopia.net/bitcoinutopia/results.php?hostid=4981


Thanks for the feedback.... anybody else?
____________
Markus
Team: Crunchers@Freiburg

Bitcoin donations welcome, thanks in advance
Adress : 15H5fqKVhJFEsCU1P8ZiMHKxaudorgV6GF

Profile Steve Hawker*
Send message
Joined: 9 Jun 13
Posts: 128
Credit: 71,341,576,845
RAC: 73,451,688
United States
Message 4110 - Posted: 5 Sep 2014, 1:07:39 UTC - in response to Message 4041.
Last modified: 5 Sep 2014, 1:21:36 UTC

I followed the instructions and using lsusb, my pi can see the device:

Bus 001 Device 016: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light

Added BU to BOINC (already running) and created a new set of preferences for my pi, enabling Campaigns 3 and 4. Got some WUs

But no blue light :(

I have an RBOX 35GH/s which runs fine on an ancient XP laptop.
Is my BOINC version too old?

Thorvin
Volunteer tester
Send message
Joined: 19 Jul 14
Posts: 11
Credit: 12,023,430,000
RAC: 0
Germany
Message 4114 - Posted: 5 Sep 2014, 5:57:36 UTC - in response to Message 4110.

@Steve Hawker*

I have RBoxes here too, so that should work in that version of cgminer.
As you get some WU's BOINC is working and the one from the repository is 7.0.27 so that is not the problem.

Can you run cgminer alone to see what happens?

Thanks

Markus
____________
Markus
Team: Crunchers@Freiburg

Bitcoin donations welcome, thanks in advance
Adress : 15H5fqKVhJFEsCU1P8ZiMHKxaudorgV6GF

Profile Steve Hawker*
Send message
Joined: 9 Jun 13
Posts: 128
Credit: 71,341,576,845
RAC: 73,451,688
United States
Message 4121 - Posted: 5 Sep 2014, 14:06:38 UTC - in response to Message 4114.

@Steve Hawker*

I have RBoxes here too, so that should work in that version of cgminer.
As you get some WU's BOINC is working and the one from the repository is 7.0.27 so that is not the problem.

Can you run cgminer alone to see what happens?

Thanks

Markus


Good to know, thanks.

How do I run cgminer alone? I didn't install it separately as I was assuming it was now folded into the app.

Profile Landjunge
Send message
Joined: 18 Jun 13
Posts: 9
Credit: 8,053,733,350
RAC: 9,751,822
Germany
Message 4241 - Posted: 7 Sep 2014, 8:48:33 UTC

can someone edit this windows app_info.xml to work under ARM linux?
i like to use it with my raspberry pi to overclock the antminer u2. thanks

<app_info>
<app>
<name>C-cgminer</name>
</app>

<file_info>
<name>wrapper_26011_windows_intelx86.exe</name>
<executable/>
</file_info>
<file_info>
<name>C-cgminer_win32_00003.zip</name>
</file_info>
<file_info>
<name>job_C-cgminer_win32_00003.xml</name>
</file_info>

<app_version>
<app_name>C-cgminer</app_name>
<version_num>3</version_num>
<platform>windows_intelx86</platform>
<file_ref>
<file_name>wrapper_26011_windows_intelx86.exe</file_name>
<main_program/>
</file_ref>
<file_ref>
<file_name>C-cgminer_win32_00003.zip</file_name>
<open_name>C-cgminer_win32_00003.zip</open_name>
</file_ref>
<file_ref>
<file_name>job_C-cgminer_win32_00003.xml</file_name>
<open_name>job.xml</open_name>
</file_ref>

<!-- anu-freq 250 = overclock Antminer U2 from 1.7 to 2.0 GH --->
<cmdline>--anu-freq 350</cmdline>

</app_version>
</app_info>

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Avatar
Send message
Joined: 23 May 13
Posts: 1433
Credit: 6,822,476,830
RAC: 5,368,329
Germany
Message 4242 - Posted: 7 Sep 2014, 9:13:30 UTC - in response to Message 4121.

You could use the app_config.xml only.

Profile Landjunge
Send message
Joined: 18 Jun 13
Posts: 9
Credit: 8,053,733,350
RAC: 9,751,822
Germany
Message 4248 - Posted: 7 Sep 2014, 12:59:13 UTC

to use app_config.xml i need boinc version 7.0.40 or above. but only 7.0.24 is installed. i dont know how to update because there is only this version for download.

mikey
Avatar
Send message
Joined: 9 Jul 14
Posts: 792
Credit: 1,069,599,942,293
RAC: 3,947,985,543
United States
Message 4250 - Posted: 7 Sep 2014, 13:55:43 UTC - in response to Message 4248.

to use app_config.xml i need boinc version 7.0.40 or above. but only 7.0.24 is installed. i dont know how to update because there is only this version for download.


You can always get any version of Boinc here:
http://boinc.berkeley.edu/dl/?C=M;O=D

Profile Landjunge
Send message
Joined: 18 Jun 13
Posts: 9
Credit: 8,053,733,350
RAC: 9,751,822
Germany
Message 4251 - Posted: 7 Sep 2014, 14:21:13 UTC - in response to Message 4250.

You can always get any version of Boinc here:
http://boinc.berkeley.edu/dl/?C=M;O=D


That's right, but i really dont know how to get this to work under linux running on ARM.
Maybe its easier someone can make the app_info file? ;-D

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Avatar
Send message
Joined: 23 May 13
Posts: 1433
Credit: 6,822,476,830
RAC: 5,368,329
Germany
Message 4252 - Posted: 7 Sep 2014, 15:29:52 UTC - in response to Message 4251.

You can always get any version of Boinc here:
http://boinc.berkeley.edu/dl/?C=M;O=D


That's right, but i really dont know how to get this to work under linux running on ARM.
Maybe its easier someone can make the app_info file? ;-D


<app_info>
<app>
<name>C-cgminer</name>
</app>

<file_info>
<name>wrapper_26011_arm-unknown-linux-gnueabihf</name>
<executable/>
</file_info>
<file_info>
<name>job_cgminer_4_arm-unknown-linux-gnueabihf_00003</name>
</file_info>

<app_version>
<app_name>C-cgminer</app_name>
<version_num>3</version_num>
<platform>arm-unknown-linux-gnueabihf</platform>
<file_ref>
<file_name>wrapper_26011_arm-unknown-linux-gnueabihf</file_name>
<main_program/>
</file_ref>
<file_ref>
<file_name>job_cgminer_4_arm-unknown-linux-gnueabihf_00003</file_name>
<open_name>job.xml</open_name>
</file_ref>

<!-- anu-freq 250 = overclock Antminer U2 from 1.7 to 2.0 GH --->
<cmdline>--anu-freq 350</cmdline>

</app_version>
</app_info>


Try this. Check some red lines in message log. I cannot test it but need some tweaks perhaps.

Profile Landjunge
Send message
Joined: 18 Jun 13
Posts: 9
Credit: 8,053,733,350
RAC: 9,751,822
Germany
Message 4263 - Posted: 7 Sep 2014, 18:02:55 UTC

Thanks rebirther. Got it working with this:

<app_info>
<app>
<name>C-cgminer</name>
</app>

<file_info>
<name>wrapper_26011_arm-unknown-linux-gnueabihf</name>
<executable/>
</file_info>
<file_info>
<name>cgminer-v2_arm-unknown-linux-gnueabihf</name>
</file_info>
<file_info>
<name>job_C-cgminer_arm-unknown-linux-gnueabihf_00003.xml</name>
</file_info>

<app_version>
<app_name>C-cgminer</app_name>
<version_num>3</version_num>
<platform>arm-unknown-linux-gnueabihf</platform>
<file_ref>
<file_name>wrapper_26011_arm-unknown-linux-gnueabihf</file_name>
<main_program/>
</file_ref>
<file_ref>
<file_name>cgminer-v2_arm-unknown-linux-gnueabihf</file_name>
<open_name>cgminer-v2_arm-unknown-linux-gnueabihf</open_name>
</file_ref>
<file_ref>
<file_name>job_C-cgminer_arm-unknown-linux-gnueabihf_00003.xml</file_name>
<open_name>job.xml</open_name>
</file_ref>

<!-- anu-freq 250 = overclock Antminer U2 from 1.7 to 2.0 GH --->
<cmdline>--anu-freq 450</cmdline>

</app_version>
</app_info>


some 4GH/s Antminer experience ;-)

Thorvin
Volunteer tester
Send message
Joined: 19 Jul 14
Posts: 11
Credit: 12,023,430,000
RAC: 0
Germany
Message 4294 - Posted: 8 Sep 2014, 19:41:02 UTC - in response to Message 4121.

@Steve Hawker*

I have RBoxes here too, so that should work in that version of cgminer.
As you get some WU's BOINC is working and the one from the repository is 7.0.27 so that is not the problem.

Can you run cgminer alone to see what happens?

Thanks

Markus


Good to know, thanks.

How do I run cgminer alone? I didn't install it separately as I was assuming it was now folded into the app.

Hi,

I wrote a PN to you, were you able to follow the instructions in it?

Markus
____________
Markus
Team: Crunchers@Freiburg

Bitcoin donations welcome, thanks in advance
Adress : 15H5fqKVhJFEsCU1P8ZiMHKxaudorgV6GF

Stoffel
Send message
Joined: 9 Apr 14
Posts: 10
Credit: 10,340,789,400
RAC: 0
Germany
Message 4402 - Posted: 14 Sep 2014, 12:01:03 UTC - in response to Message 4250.
Last modified: 14 Sep 2014, 12:02:09 UTC

You can always get any version of Boinc here:
http://boinc.berkeley.edu/dl/?C=M;O=D


The current version of the sources you can get from this URL: http://boinc.berkeley.edu/gitweb/?p=boinc-v2.git;a=summary

for Raspian i have build version boinc_7.4.21_armv6l-raspian.sh
for BU you need only this cc_config.xml (no app_info or app_config is needed):

<cc_config>
<options>
<alt_platform>arm-unknown-linux-gnueabihf</alt_platform>
<report_results_immediately>1</report_results_immediately>
<use_all_gpus>1</use_all_gpus>
<coproc>
<type>miner_asic</type>
<count>1</count>
</coproc>
</options>
</cc_config>

The user that runs BOINC must have the right to access the USB-devices (e.g. see former posts how to manage this)

Profile Landjunge
Send message
Joined: 18 Jun 13
Posts: 9
Credit: 8,053,733,350
RAC: 9,751,822
Germany
Message 4749 - Posted: 29 Sep 2014, 19:03:36 UTC

I'm a Linux newbie, can you please tell me how to install/compile this new boinc version for my raspi?

thanks

Stoffel
Send message
Joined: 9 Apr 14
Posts: 10
Credit: 10,340,789,400
RAC: 0
Germany
Message 4753 - Posted: 30 Sep 2014, 22:08:20 UTC - in response to Message 4749.

I'm a Linux newbie, can you please tell me how to install/compile this new boinc version for my raspi?

thanks


As a newbie to linux you should not try to compile BOINC from the sources. To much pain for a newbie.
So you have 2 possibilities:

1. you can install BOINC (v 7.0.27) with synaptic, or
...
2. you can download the current version from here:
http://www.rechenaugust.de/boinc/boinc_7.4.22_armv6l-raspian.sh
boinc-manager requires an additional package (libwebkit-1.0), ... to install use:
sudo apt-get install libwebkitgtk-1.0

move to the folder where you have downloaded the file boinc_7.4.22_armv6l-raspian.sh
unpack the downloaded software: sh boinc_7.4.22_armv6l-raspian.sh
now you have a BOINC folder
move to the BOINC folder
start the manager with ./run_manager
.
.
.
For my own installation i use a start/stop script located in /etc/init.d ....but this is another thread.

scole of TSBT
Send message
Joined: 13 Jul 14
Posts: 104
Credit: 209,337,014,138
RAC: 12,838
Anguilla
Message 4987 - Posted: 8 Oct 2014, 14:17:49 UTC

I used apt-get install boinc and it installed 7.0.27. If I follow the instructions for installing 7.4.22, will it replace the 7.0.27 installation or be an additional installation?

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Avatar
Send message
Joined: 23 May 13
Posts: 1433
Credit: 6,822,476,830
RAC: 5,368,329
Germany
Message 4988 - Posted: 8 Oct 2014, 14:26:21 UTC - in response to Message 4987.

I used apt-get install boinc and it installed 7.0.27. If I follow the instructions for installing 7.4.22, will it replace the 7.0.27 installation or be an additional installation?


Should be replaced.

1 · 2 · 3 · 4 . . . 7 · Next

Message boards : Number crunching : How To: Run BU on Raspberry Pi with USB ASIC's


Main page · Your account · Message boards


Copyright © 2016 Consultum Finland Oy