Pages:
Author

Topic: How to mine with gridseeds and a raspberry pi. (Read 25610 times)

newbie
Activity: 58
Merit: 0
December 30, 2014, 01:10:13 PM
#40
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 :/
legendary
Activity: 1022
Merit: 1000
Freelance videographer
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

member
Activity: 84
Merit: 10
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 Wink
newbie
Activity: 36
Merit: 0
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

newbie
Activity: 36
Merit: 0
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

hero member
Activity: 574
Merit: 500
Mining for the hell of it.
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!
hero member
Activity: 687
Merit: 500
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!
newbie
Activity: 5
Merit: 0
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?
legendary
Activity: 1150
Merit: 1004
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.
legendary
Activity: 1150
Merit: 1004
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?
hero member
Activity: 574
Merit: 500
Mining for the hell of it.
Sudo nano bfgminer.conf
newbie
Activity: 17
Merit: 0
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
hero member
Activity: 574
Merit: 500
Mining for the hell of it.
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.
hero member
Activity: 616
Merit: 500
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.
legendary
Activity: 1428
Merit: 1000
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 Smiley
hero member
Activity: 574
Merit: 500
Mining for the hell of it.
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.
hero member
Activity: 687
Merit: 500
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.
legendary
Activity: 1428
Merit: 1000
If you get kicked out of the session how do i view the stats again on the pi?
legendary
Activity: 1428
Merit: 1000
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.
hero member
Activity: 574
Merit: 500
Mining for the hell of it.
Becuase you need to make the file bfgminer.conf that has all your pool info in it
Pages:
Jump to: