Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: demonmaestro on March 16, 2014, 01:11:59 AM



Title: How to mine with gridseeds and a raspberry pi.
Post by: demonmaestro on March 16, 2014, 01:11:59 AM
I want to know how and alot of people want to know how.
a nice and easy guide.


I will just stick this here for quick reference for people to get there gridseed miners up and going quick.
Ok, so first things first, disclaimer, I'm not a Linux guy, so please forgive me if I'm making a dumb mistake here.  I've also never used bgfminer so I've got that working against me as well.  

Thanks to everyone who helped me figure this out...here's a revised version of how to compile bfgminer for a RasPi...

------------------------------------------------
Steps I took to build BFGMiner from source:
------------------------------------------------

//update my RasPi first
Code:
sudo apt-get update

//saw this on the linux build instructions, so I presume I need these as pre-requisites to compiling bfgminer
Code:
sudo apt-get install build-essential autoconf automake libtool pkg-config libcurl4-gnutls-dev 

sudo apt-get install libjansson-dev uthash-dev libncurses5-dev libudev-dev libusb-1.0-0-dev libevent-dev

//cloned nwoolls version of bfgminer which has beta support for the miners in question
Code:
git clone -b feature/gridseed-support https://github.com/nwoolls/bfgminer

//build it
Code:
cd bfgminer

./autogen.sh

./configure CFLAGS="-O3" --enable-scrypt --enable-gridseed

make

sudo make install

sudo ldconfig

sudo nano bfgminer.conf

//make the bfgminer.conf file.
Code:
{
"pools" : [
        {
                "name" : "MyPool1",
                "url" : "stratum+tcp://mypool.url.com:3333",
                "user" : "myworker",
                "pass" : "x",
                "pool-priority" : "0"
        }
],
"api-allow" : "W:127.0.0.1,192.168.1/24",
"api-listen" : true
}

//trying to run it
Code:
sudo ./bfgminer -S gridseed:all --set-device gridseed:clock=850 --failover-only --scrypt -c bfgminer.conf




Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: richmke on March 16, 2014, 12:01:23 PM
Part 5: Throwing it all away and using A:Linux (and PI) B:Windows
https://bitcointalk.org/index.php?topic=494625.0


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: demonmaestro on March 17, 2014, 03:55:46 AM
I got pointed to this.

Look at main OP.


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: richmke on March 17, 2014, 06:39:55 PM
For the new Rasp Pi newbies, you may want to add the step one of loading the OS onto the Pi, and ssh into the Pi.


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: demonmaestro on March 17, 2014, 06:47:20 PM
You dont have to use SSH but if you want to you can.

and also you can use screen


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: richmke on March 17, 2014, 07:19:41 PM
My point is: are you using Scripta, Raspbian, Pidora, RaspBMC, OpenELEC, RSIC OS, Arch, or something else.


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: demonmaestro on March 17, 2014, 07:20:25 PM
raspbian..


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: surgexvb on March 18, 2014, 09:01:24 AM
is bfgminer stable with the 5 chip gridseeds yet?  I have yet to find something as stable as running individual cpuminer threads.



Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: demonmaestro on March 18, 2014, 09:34:50 AM
well i have been mining on mine since sunday with no issues so far.


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: alex_bronco on March 19, 2014, 09:50:19 AM
 
My point is: are you using Scripta, Raspbian, Pidora, RaspBMC, OpenELEC, RSIC OS, Arch, or something else.

What's the best from your point of view to use to mine?


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: demonmaestro on March 19, 2014, 09:58:06 AM
i like raspbian


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: sudoku on March 20, 2014, 01:39:01 PM
Thanks for the tips. Will try the instructions when my gridseed arrive.


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: Monkeyseemonkeydo on March 20, 2014, 06:30:20 PM
What does make Raspian the best forum? What's the plus?


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: dymale on March 21, 2014, 10:38:01 AM
I want to mine scrypt and sha-256 at pool https://www.megamultipool.com/pools.php by using Gridseed:
stratum+tcp://east-us.megamultipool.com:3354
stratum+tcp://east-us.megamultipool.com:5000

So, how I configure Raspberry Pi? Any help please...!  ???


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: demonmaestro on March 24, 2014, 12:13:50 AM
I want to mine scrypt and sha-256 at pool https://www.megamultipool.com/pools.php by using Gridseed:
stratum+tcp://east-us.megamultipool.com:3354
stratum+tcp://east-us.megamultipool.com:5000

So, how I configure Raspberry Pi? Any help please...!  ???

well follow whats up top and put in your pool into the bfgminer.conf


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: forevernoob on April 04, 2014, 08:15:14 PM
Ok just installed BFGminer it runs pretty good but it only detects one device?


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: demonmaestro on April 04, 2014, 08:16:05 PM
have you rebooted the pi?

Also how do you have them connected?


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: forevernoob on April 04, 2014, 09:06:54 PM
I'm not using a pi for this.
cgminer works but the performance isn't fantastic and it's unstable.
So wanted to try BFGminer...

In cgminer I have GSD 0, 1 and 2.
I have them connected to a USB hub and only GSD 0 comes up in BFGminer.

To get them all to run in cgminer I have to manully point it in "the right direction".

Code:
sudo ./cgminer --gridseed-options=baud=115200,freq=1000,chips=5,modules=1,usefifo=0,btc=16 --hotplug=0 -o stratum+tcp://eu.multipool.us:7777 -u  -p  --usb 001:019,001:020,001:021

Is there a similar option in BFGminer perhaps?


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: demonmaestro on April 05, 2014, 08:43:09 AM
I'm not using a pi for this.
cgminer works but the performance isn't fantastic and it's unstable.
So wanted to try BFGminer...

In cgminer I have GSD 0, 1 and 2.
I have them connected to a USB hub and only GSD 0 comes up in BFGminer.

To get them all to run in cgminer I have to manully point it in "the right direction".

Code:
sudo ./cgminer --gridseed-options=baud=115200,freq=1000,chips=5,modules=1,usefifo=0,btc=16 --hotplug=0 -o stratum+tcp://eu.multipool.us:7777 -u  -p  --usb 001:019,001:020,001:021

Is there a similar option in BFGminer perhaps?

bfgminer uses -S gridseed:all

what kind of hub are you using?


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: PondSea on April 09, 2014, 08:40:46 AM
pi@raspberrypi ~/bfgminer $ sudo ./bfgminer -S gridseed:all --set-device gridseed:clock=850 --failover-only --scrypt -c bfgminer.conf
 [2014-04-09 08:40:22] ./bfgminer: -c: JSON decode of file 'bfgminer.conf' failed
 unable to open bfgminer.conf: No such file or directory


Im getting this after doing all the steps?


Maybe add to the steps how to create the file.

pico bfgminer.conf

Then the config


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: demonmaestro on April 09, 2014, 08:43:40 AM
Becuase you need to make the file bfgminer.conf that has all your pool info in it


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: PondSea on April 09, 2014, 08:53:24 AM
Becuase you need to make the file bfgminer.conf that has all your pool info in it

Yep figured that out. Maybe add that to the steps as a linux noob i didnt know if i needed to make it or not.


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: PondSea on April 09, 2014, 10:09:48 AM
If you get kicked out of the session how do i view the stats again on the pi?


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: forevernoob on April 09, 2014, 11:58:32 AM
I'm not using a pi for this.
cgminer works but the performance isn't fantastic and it's unstable.
So wanted to try BFGminer...

In cgminer I have GSD 0, 1 and 2.
I have them connected to a USB hub and only GSD 0 comes up in BFGminer.

To get them all to run in cgminer I have to manully point it in "the right direction".

Code:
sudo ./cgminer --gridseed-options=baud=115200,freq=1000,chips=5,modules=1,usefifo=0,btc=16 --hotplug=0 -o stratum+tcp://eu.multipool.us:7777 -u  -p  --usb 001:019,001:020,001:021

Is there a similar option in BFGminer perhaps?

bfgminer uses -S gridseed:all

what kind of hub are you using?

Yeah but -S gridseed:all doesn't seem to detect all my gridseeds?
The hub is a unpowered "Champion" 4-port.


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: demonmaestro on April 09, 2014, 07:17:05 PM
I'm not using a pi for this.
cgminer works but the performance isn't fantastic and it's unstable.
So wanted to try BFGminer...

In cgminer I have GSD 0, 1 and 2.
I have them connected to a USB hub and only GSD 0 comes up in BFGminer.

To get them all to run in cgminer I have to manully point it in "the right direction".

Code:
sudo ./cgminer --gridseed-options=baud=115200,freq=1000,chips=5,modules=1,usefifo=0,btc=16 --hotplug=0 -o stratum+tcp://eu.multipool.us:7777 -u  -p  --usb 001:019,001:020,001:021

Is there a similar option in BFGminer perhaps?

bfgminer uses -S gridseed:all

what kind of hub are you using?

Yeah but -S gridseed:all doesn't seem to detect all my gridseeds?
The hub is a unpowered "Champion" 4-port.
You need a different hub
The d-link dub-h7 is a very good hub and is compatible with the raspberry pi.


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: PondSea on April 10, 2014, 01:07:12 AM
http://raspi.tv/2012/using-screen-with-raspberry-pi-to-avoid-leaving-ssh-sessions-open

This is what i used now i can shut down putty and the mining continues :)


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: sandor111 on April 10, 2014, 12:42:28 PM
Prolly being biased, but you guys should throw away the Rpi and switch to Lightningasic firmware, we now have an auto-overclocking feature that will overclock each individual chip (5 chips per Gridseed miner). Also the reject rate is close to 0, I've been getting 99.91% accepted running over 24 hours at Ghash.io.


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: demonmaestro on April 11, 2014, 05:29:19 AM
Prolly being biased, but you guys should throw away the Rpi and switch to Lightningasic firmware, we now have an auto-overclocking feature that will overclock each individual chip (5 chips per Gridseed miner). Also the reject rate is close to 0, I've been getting 99.91% accepted running over 24 hours at Ghash.io.

oo yea throw away a good piece of equipment just because it wont work to your expectations. So from you are saying is that the RPI does not do other things.. Hmm i guess i must be dreaming because i am using them for a whole lot of things other than mining.

And besides your firmware still requires hardware to run on.


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: bitbucks on April 13, 2014, 12:53:50 AM
Hi

Do you make the .conf file in notepad and place on sd card before building bfg miner? Still not sure how to make .conf file on PI

Thanks


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: demonmaestro on April 13, 2014, 01:01:10 AM
Sudo nano bfgminer.conf


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: edonkey on April 25, 2014, 02:29:47 PM
I've used the girnyau and mox235 versions of cgminer, but have seen stability issues with my GridSeeds. I've mostly worked through the issues, but have had to leave the cron jobs of Scripta off due to what I think is a bug in cgminer that can happen when the API is called simultaneously. I also have seen a case where cgminer completely crashed, as well as a more subtle problem where a Gridseed will just stop submitting shares even though it's still hashing.

I'm interested in this bfgminer branch because some people have indicated that it's more stable. I'd like to give it a try, but I'm concerned about power usage.

The girnyau version disabled the BTC cores, as per this note from the github page:

Quote
This version of cgminer turns off all BTC cores so that power usage is low. On a 5-chip USB miner, power usage is around 10 W. GPUs are also supported.

I've built the Gridseed branch of bfgminer as per the instructions from the OP, with the scrypt option on. However, I noticed that the resulting built version also supports SHA256 based algorithms and hardware. I have no interest in mining BTC. I just want to use bfgminer with my Gridseeds for scrypt mining.

I'm concerned that even if I'm passing the --scrypt option when mining that the Gridseed BTC cores might still be on and drawing power with this version. But honestly I don't know if that's the case or not.

Can anyone tell me if this version of bfgminer will use more power than the girnyau version when mining script?


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: edonkey on April 25, 2014, 02:37:19 PM
Does this version of bfgminer support setting individual frequencies on a per Gridseed device basis? If not, does any variant of bfgminer have device specific frequency support?

I've got my Gridseed rig pretty well dialed in with individual frequencies that maximize utility. I can't go back to a version of miner software that only lets me set one frequency for all devices.


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: falcon4391 on April 25, 2014, 03:16:25 PM
I'm still new to using Raspbian, and am enjoying BFGminer. I have a problem and am wondering if anyone else has the same. Im trying to figure out how to dual mine with the gridseed in BFGminer. Both I have enabled in BFGminer, but can only get scrypt to run. Do I need to put anything special in the command line?


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: forevernoob on April 25, 2014, 03:58:54 PM
You need a different hub
The d-link dub-h7 is a very good hub and is compatible with the raspberry pi.

Hey, just wanted to tell you that you were right all along. I guess I can be a little bit too stubborn sometimes.
I switched to a new hub yesterday and the miners are running like clockwork in bfgminer. Just two miners that keeps dying on me. But they are connected to my other hub.
So I'm gonna get some longer cables (or somehow move my miners closer to the hub) and plug them in to my new hub and it will be running smoother than ever!

Thanks!


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: demonmaestro on April 25, 2014, 04:25:04 PM
I have also found this hub to work very well with the Raspberry Pi.
http://www.amazon.com/gp/product/B00EH44AA6

I can drop ship them at cost if want.

You need a different hub
The d-link dub-h7 is a very good hub and is compatible with the raspberry pi.

Hey, just wanted to tell you that you were right all along. I guess I can be a little bit too stubborn sometimes.
I switched to a new hub yesterday and the miners are running like clockwork in bfgminer. Just two miners that keeps dying on me. But they are connected to my other hub.
So I'm gonna get some longer cables (or somehow move my miners closer to the hub) and plug them in to my new hub and it will be running smoother than ever!

Thanks!


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: GolfCabalist on May 11, 2014, 03:40:09 PM
It seems the gridseed-support feature is gone from nwoolls repository.  So I substituted:

Code:
git clone git://github.com/luke-jr/bfgminer.git

I really appreciate your step-by-step, which inspires me to present YOU with my question:

I have tried the GAWminers img, and the Zoomhash img, and I have built several Raspbian Wheezy systems, including yours .  I have tried installing a python stratum proxy.  I have used cgminer and bfgminer.  I get the same results no matter what I do:

I connect to a pool, I get no Accepts.  (I have tried various pools, including this one, but I mainly use a different pool so I can watch my dashboard on it to see hashrate...)

I restart the miner, sometimes I get one (1) Accept, then no more.

One time, using cgminer, I got quite a few Accepts in a row.  In fact, I got 32 Accepts each time my work was accepted.  When the number of Accepts got to 1072, it stopped.  (I realize 1072 is not a multiple of 32, I'm just telling the truth...)

I am not looking for anybody to help me debug and such, I am just hoping that my situation rings a bell with you.




Code:
git clone -b feature/gridseed-support https://github.com/nwoolls/bfgminer



Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: GolfCabalist on May 12, 2014, 12:51:26 AM
Let me describe the solution to my problem about "No accepted shares" in case it might benefit somebody whose search brings them to this thread.

I have two separate farms of gridseeds, but when I wanted to learn to use Raspberry Pi, I went to a third location.  I wanted just a standalone rig where Pi and I could get acquainted.  No hub, just USB straight from Pi to GS.  For power supply, I used a single-unit, "12v 1A" supply that came with one of my Gridseeds.  And that power supply is what turned out to be the problem.

As soon as the theory hit me that the power supply didnt have enough ass, I wanted to check the voltage under the load of the GS.  It has a molded plug, so no screwing off the plastic cover to get at the terminals.  If it had regular twin lead running to it, I could have stuck a needle in each wire and measured the voltage that way, but no, it's coaxial cable.  So I hooked up another power supply, and bam bam bam one acceptance after another.

It's a blessing, really, I learned lots more about the Pi than I would have...


It seems the gridseed-support feature is gone from nwoolls repository.  So I substituted:

Code:
git clone git://github.com/luke-jr/bfgminer.git

I really appreciate your step-by-step, which inspires me to present YOU with my question:

I have tried the GAWminers img, and the Zoomhash img, and I have built several Raspbian Wheezy systems, including yours .  I have tried installing a python stratum proxy.  I have used cgminer and bfgminer.  I get the same results no matter what I do:

I connect to a pool, I get no Accepts.  (I have tried various pools, including this one, but I mainly use a different pool so I can watch my dashboard on it to see hashrate...)

I restart the miner, sometimes I get one (1) Accept, then no more.

One time, using cgminer, I got quite a few Accepts in a row.  In fact, I got 32 Accepts each time my work was accepted.  When the number of Accepts got to 1072, it stopped.  (I realize 1072 is not a multiple of 32, I'm just telling the truth...)

I am not looking for anybody to help me debug and such, I am just hoping that my situation rings a bell with you.




Code:
git clone -b feature/gridseed-support https://github.com/nwoolls/bfgminer



Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: anglebaby87 on May 12, 2014, 01:20:54 PM
mining is a difficult work. since now  i haven't mined angything.  i want to learn  how to mine.  I bought a new  computer .  I thinking mining is interesting.  But i have to learn more to mine....  GOOD LUCK ;)


Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: film2240 on May 20, 2014, 01:30:45 PM
I'm also having issues setting up a Raspberry Pi as I just got it (waiting for the keyboard to arrive) but all these online guides are hard for me to understand as I'm a pro filmmaker not a programmer.

Here's my thread detailing the issues:https://bitcointalk.org/index.php?topic=614078.msg6813536#msg6813536



Title: Re: How to mine with gridseeds and a raspberry pi.
Post by: g4lt on December 30, 2014, 06:10:13 PM
I'm still new to using Raspbian, and am enjoying BFGminer. I have a problem and am wondering if anyone else has the same. Im trying to figure out how to dual mine with the gridseed in BFGminer. Both I have enabled in BFGminer, but can only get scrypt to run. Do I need to put anything special in the command line?

When you wrote this, NFW, BFGminer didn't support dualmining ANYTHING.  Since then (11/29, to be precise), it's POSSIBLE in software (there's a dualmining option in 5.0.0), but BFGminer's gridseed driver still won't recognize the SHA chips yet.  I think my gridseeds will remain on my desktop until that bit's resolved and I've seen it work a few days.  Reconfiguring via SSH session isn't fun.  Looks like it's scrypt or go home still :/