Bitcoin Forum

Bitcoin => Hardware => Topic started by: xDGDZEx on August 20, 2012, 05:16:51 PM



Title: Problems using RPi with cgminer
Post by: xDGDZEx on August 20, 2012, 05:16:51 PM
So I have finally switched over to using my Raspberry Pi to manage my BFL Singles so that I can have my laptop back, but I'm running into some problems. I was using the Windows 7 version on my laptop, and while I did have a few problems (was still using 2.3.6 because it worked best), everything was pretty good. However, after switching to linux which I am not as familiar with, more problems are coming up. The biggest one is that all my singles sometimes refuse to run at stock speeds, which they have been for months using the windows version of cgminer. Also, more importantly about 1/3rd of them throw "Comms Error" and go down to 0MH/s. I've seen it on different units at different times, so it doesn't appear to be necessarily related to individual units.

I'm not really sure what causes these to happen, so I'm not really sure how to start troubleshooting it. Anyone have any idea? This is really driving me crazy...


Title: Re: Problems using RPi with cgminer
Post by: cablepair on August 20, 2012, 06:34:33 PM
how many singles are you trying to run with the RPI?

Try it with just one and see if its more stable. I have never tried it with Bitcoin force singles, but the ModMiner Quad and was only able to get one modminer to mine with any kind of stability with the RPI


Title: Re: Problems using RPi with cgminer
Post by: xDGDZEx on August 20, 2012, 07:02:25 PM
I have 9 hooked up to it. The ones that are working run rock solid more or less, at least as well as they did on W7, but three just give nothing but Comms Errors. It is vaguely similar to a problem I had with cgminer versions after 2.3.6 where I could not run all nine in the same instance, and had to split it into 6 & 3. I may try that later today.


Title: Re: Problems using RPi with cgminer
Post by: cablepair on August 20, 2012, 07:05:03 PM
yeah dude theres no way it will run 9 singles

I would be surprised if you get 2 to work.



Title: Re: Problems using RPi with cgminer
Post by: xDGDZEx on August 20, 2012, 07:22:46 PM
Perhaps my understanding is lacking, but why exactly?


Title: Re: Problems using RPi with cgminer
Post by: AmDD on August 20, 2012, 07:48:12 PM
Perhaps my understanding is lacking, but why exactly?

Im also curious. I had planned on running my ModMiners from a single Pi.


Title: Re: Problems using RPi with cgminer
Post by: BR0KK on August 20, 2012, 08:06:42 PM
Tried it with Ztex boards. one single 1.15x is ok..... two will mine a at least a day and then the Rpi freezes. I tied to run 18 Boards (the pi doesn't like quads!) but that didn't work.

The Pi is a real bitch when it comes to USB connections...... Doesnt like any of my hubs, cables or just devices. I think that this has something to do with feedback power from USB.





Title: Re: Problems using RPi with cgminer
Post by: cablepair on August 20, 2012, 08:13:39 PM
Even though Cgminer/BFGminer does not use a lot of cpu resources, it appears that the arm chip on the RPI is not enough to mine with more than one fpga device; At least not with the software we have now, I am able to get 1 single ModMiner Quad to run very very stable on a RPI but with more than 1 unit things get a little flaky.

As far as I know I have not heard of anyone getting more than one FPGA based mining unit to run on the RPI but I could be wrong. I am sure it would be much more efficient if someone wrote a specific mining program for the RPI instead of just taking what we currently have - that is traditionally run on Intel/AMD based cpu and compiling it for the RPI.

btw: if anyone wants a copy of bfgminer for the RPI - pre-compiled you can download it here:

http://btcfpga.com/files/linux_binaries/bfgminer-2.5.0-pi.tar.gz




Title: Re: Problems using RPi with cgminer
Post by: Doff on August 20, 2012, 08:22:41 PM
Just a couple tips for you guys, I had 2 Icarus, and two CM1 boards running on my PI. One thing that is crucial is a good powered USB hub, the next is a good Power Adapter. The power adapter solves the random crashes with cgminer and losing usb ports.  I don’t know about the BFL's or modminer but my problem was mostly the Power Adapter.

You can get the best power adapter from Adafruit.com

I guess I should add I currently have 2 Icarus, and 1 CM! running at 1.3mhsh or 16.5 U for over 4 days with the new Power Adapter on my PI.


Title: Re: Problems using RPi with cgminer
Post by: Plazzman on August 20, 2012, 08:25:25 PM
I have been looking into this situation with the Pi. I do not have any units to test this with yet but thought this trick for the usb power feedback may work.

http://www.raspberrypi.org/phpBB3/viewtopic.php?p=100459#p100459 (http://www.raspberrypi.org/phpBB3/viewtopic.php?p=100459#p100459)



Title: Re: Problems using RPi with cgminer
Post by: cablepair on August 20, 2012, 09:31:34 PM
Just a couple tips for you guys, I had 2 Icarus, and two CM1 boards running on my PI. One thing that is crucial is a good powered USB hub, the next is a good Power Adapter. The power adapter solves the random crashes with cgminer and losing usb ports.  I don’t know about the BFL's or modminer but my problem was mostly the Power Adapter.

You can get the best power adapter from Adafruit.com

I guess I should add I currently have 2 Icarus, and 1 CM! running at 1.3mhsh or 16.5 U over for 4 days with the new Power Adapter on my PI.

Thanks for this information!

This weekend I will be putting together a large amount of ModMiners to ship on monday so I will test the limits of the PI and let you know.


Title: Re: Problems using RPi with cgminer
Post by: xDGDZEx on August 21, 2012, 12:53:02 AM
Interesting. Well that puts me pretty well in a jam, because I need my laptop for school, and I cant have them on my desktop because of BSOD issues and the heat.

Guess I'll just have to limp along until support is better.


Title: Re: Problems using RPi with cgminer
Post by: BR0KK on August 21, 2012, 08:29:18 AM
Im planning of buying a little Via/ intel/ AMD driven Thin Client for my mining operation..... They don't consume much and they are (used) really cheap :)


Title: Re: Problems using RPi with cgminer
Post by: cablepair on August 21, 2012, 05:52:52 PM
Interesting. Well that puts me pretty well in a jam, because I need my laptop for school, and I cant have them on my desktop because of BSOD issues and the heat.

Guess I'll just have to limp along until support is better.

After talking to some other people about this, I think you will be alright with a powered USB hub, and a better power adapter.


Title: Re: Problems using RPi with cgminer
Post by: xDGDZEx on August 21, 2012, 08:02:13 PM
I have both a powered hub and a power adapter rated at the correct voltage per the RPi suggestions...so not sure quite what to do. I just went ahead and got a used mini pc, which I can always use for other things if the Rpi ends up working in the future.


Title: Re: Problems using RPi with cgminer
Post by: cablepair on August 21, 2012, 08:43:15 PM
yeah I use a netbook to host my fpga miners at it only adds 10 watts to the rig, not bad at all.


But you are supposed to use something a little more powerful then whats recommended if your going to be mining through usb

try 5.25 volts instead of 5 and increase the ma a bit


Title: Re: Problems using RPi with cgminer
Post by: xDGDZEx on August 21, 2012, 11:46:23 PM
yeah I use a netbook to host my fpga miners at it only adds 10 watts to the rig, not bad at all.


But you are supposed to use something a little more powerful then whats recommended if your going to be mining through usb

try 5.25 volts instead of 5 and increase the ma a bit

You are talking about the power adapter to the RPi itself right?


Title: Re: Problems using RPi with cgminer
Post by: cablepair on August 22, 2012, 01:37:11 AM
yes


Title: Re: Problems using RPi with cgminer
Post by: Doff on August 22, 2012, 01:51:17 AM
I have both a powered hub and a power adapter rated at the correct voltage per the RPi suggestions...so not sure quite what to do. I just went ahead and got a used mini pc, which I can always use for other things if the Rpi ends up working in the future.

Use this one to be specific, its 5.25v and it wont lose that v when you put a load on it. Best one out there for a PI. Im now at at 6 days without a crash on my Pi with 4 miners running cgminer. Power Adapter really makes a difference.

http://adafruit.com/products/501


Title: Re: Problems using RPi with cgminer
Post by: zefir on August 22, 2012, 06:44:23 AM
Even though Cgminer/BFGminer does not use a lot of cpu resources, it appears that the arm chip on the RPI is not enough to mine with more than one fpga device

[...]

I am not using a RPi, but from my experience processing power is a non-issue for cgminer on embedded devices.

I have 40 CM1 Quad boards attached to a TP-Link TL-MR3020 (http://www.tp-link.com/en/products/details/?categoryid=218&model=TL-MR3020), mining with cgminer as flawlessly as they do on a standard PC. That guy uses less than 1.5W (with WiFi disabled), energy efficiency wise you can't get much better than that. It is driven by a 400MHz MIPS µC with 32MB of RAM. Don't know the RPi specs in detail, but it should be more powerful than that, so don't expect processing power limitations.


Title: Re: Problems using RPi with cgminer
Post by: BR0KK on August 22, 2012, 03:20:36 PM
Its Not the processing power that disqualifies the pi....

The pi is a dev platform and kind of buggy (beta state)

Would love to get my to link to work but with my skills that seems impossible.
I'm stuck with ssh access, and no GUI or the website:(


Title: Re: Problems using RPi with cgminer
Post by: freeAgent on August 22, 2012, 03:37:35 PM
Has anyone tried the Amazon Basics adapter?  It's much more powerful than the Adafruit one at 5v and 2.1A.  I wouldn't think it would have any problems with the Pi: http://www.amazon.com/gp/product/B005CG2ATQ/ref=oh_details_o00_s00_i01


Title: Re: Problems using RPi with cgminer
Post by: punin on August 25, 2012, 11:12:17 AM
I'm running CGMiner 2.6.4 on RPi with 13 Ztex 1.15x. I've taped RPi's USB ports 5V+ line, so power from USB hubs doesn't leak into Pi. Only problem I'm having is one random board dying out after a while. Disconnecting this dead board will cause another random board to fail after a while.