How to run BU on a raspberry pi

Forum rules
Welcome to The Scottish Boinc Team boards. See forum rules in pinned post. If you can't be bothered then try not to be too naughty as I have a delete button to press and a ban hammer to swing.
User avatar
scole of TSBT
Boinc Major General
Boinc Major General
Posts: 5980
Joined: Mon Feb 03, 2014 2:38 pm
Location: Goldsboro, (Eastern) North Carolina, USA

#1 How to run BU on a raspberry pi

Post by scole of TSBT »

(Borrowed from the BU forum)

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

*NOTE* As of Nov-2014, this will install BOINC client version 7.0.27, which will run BU fine as long as you only have 1 ASIC. If you have more than 1 ASIC, see the next post as well.

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) To restart the BOINC client, from the command prompt /etc/init.d/boinc-client restart

*** Important Note ***
raspbian does not handle USB hubs with more than 4 ports very well. Something about hubs with more than 4 ports are really daisy chained hubs which raspbian doesn't deal with for some reason.
Image
User avatar
scole of TSBT
Boinc Major General
Boinc Major General
Posts: 5980
Joined: Mon Feb 03, 2014 2:38 pm
Location: Goldsboro, (Eastern) North Carolina, USA

#2 Re: How to run BU on a raspberry pi

Post by scole of TSBT »

If you have multiple ASICs, you will need a fairly new version of BOINC, 7.4.x I believe. The Raspbian repository only has 7.0.27. Here's how I got 7.4.22 installed and running on rpi after I already had 7.0.27 installed.

1) Download the current version here http://www.rechenaugust.de/boinc/boinc_ ... raspian.sh. If the link doesn't work, try typing a more recent version number. Here's a link to 7.4.22 also...https://drive.google.com/file/d/0B7Q1OY ... sp=sharing

2) boinc-manager requires an additional package (libwebkit-1.0), ... to install use:
sudo apt-get install libwebkitgtk-1.0

3) move to the folder where you have downloaded the file boinc_7.4.26_armv6l-raspian.sh and unpack the downloaded software:
sh boinc_7.4.26_armv6l-raspian.sh
now you have a BOINC folder with all the files needed for the update version of BOINC

4) When BOINC was installed from the repository, the folder /var/lib/boinc-client was created and BOINC was installed there. You now need to copy the files in the new BOINC folder from step 3 to /var/lib/boinc-client.

5) Copy the new versions of boinc, boinccmd and boincmgr to /usr/bin

6) Add this option to the cc_config.xml...
<alt_platform>arm-unknown-linux-gnueabihf</alt_platform>

7) You’re done and ready to restart the BOINC client using /etc/init.d/boinc-client start


This was written up well after the I was finished, so it may need some tweaking, but it’s close. If you have any problems, post a question.
Image
Post Reply Previous topicNext topic

Return to “Bitcoin Utopia”