Post
Topic
Board Mining software (miners)
Re: Linux mining distro for the Raspberry PI - MinePeon
by
trichome
on 01/10/2013, 20:43:25 UTC
Sorry if this has been brought up before, I tried to search/Google but couldn't find what I was looking for.

How do I recompile BFGMiner and copy the files needed to right directories on minepeon?

Also, how do I update minepeon easiest besides flashing a new image to the SD-card.

Thanks for the help in advance!

I usually just:
Code: (Compile BFGMiner)
sudo bash

#stop bfgminer if it's running
systemctl stop bfgminer

cd /opt/minepeon/bin/
mv bfgminer bfgminer_old

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

If you want to add in libmicrohttpd (proxy) support (not sure if it's packaged with bfgminer now or you still need to download it, but I've been downloading it and including it in the configure):

Code: (Compile BFGMiner w/libmicrohttpd)
sudo bash

#stop bfgminer if it's running
systemctl stop bfgminer

pacman -Syu libmicrohttpd

cd /opt/minepeon/bin/
mv bfgminer bfgminer_old

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


Afterwards I usually change the bfgminer.service to user the executable inside the directory (as for me I have several diff versions of BFGMiner).

Code: (Edit bfgminer.service)
sudo systemctl stop bfgminer
sudo nano /usr/lib/systemd/system/bfgminer.service

#edit the path to /opt/minepeon/bin/bfgminer/bfgminer

sudo systemctl daemon-reload
sudo systemctl start bfgminer

Edit:
 
To update MinePeon (base)
Code:
cd /opt/minepeon/
git pull

To update MinePeon WebUI (use with caution):
Code:
cd /opt/minepeon/http/
git pull

To update the OS system packages:
Code:
sudo pacman -Syu


This is awesome i really needed this but im having a problem.  Same as many my pi isnt seeing or having com issues under cgminer using dhub's.  Problems with 2 in chain...cant get past that but roswell is working fine next to it.  I went through steps on the minepeon site to stop cg and start BG with no success can you you help me out on how to get bfgminer running.