#1 How to run BU on a raspberry pi
Posted: Fri Nov 28, 2014 7:31 pm
(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.
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.