Bitcoin Forum

Bitcoin => Hardware => Topic started by: str4wm4n on June 02, 2013, 02:39:53 PM



Title: Block Erupter and Raspberry Pi
Post by: str4wm4n on June 02, 2013, 02:39:53 PM
With MinePeon, does anyone know of the USB Block Erupter ASICs will work 'out of the box'?

Thanks for the help  :)


Title: Re: Block Erupter and Raspberry Pi
Post by: yantis on June 02, 2013, 03:13:53 PM
They won't work out of the box on the version that is released as of today. I was able to get the current version of bfgminer to run on it but not cgminer.

I posted more on it here: https://bitcointalk.org/index.php?topic=137934.msg2345214#msg2345214 (https://bitcointalk.org/index.php?topic=137934.msg2345214#msg2345214)


Title: Re: Block Erupter and Raspberry Pi
Post by: kosmokramer on June 03, 2013, 08:12:05 AM
I didn't have any luck with cgminer either. I had a little raspberry pie and the Anker 3.0 USB hub, and I heard the Anker could have been the problem though. Waiting for a new version of cgminer and a new hub to arrive - keeping my fingers crossed!


Title: Re: Block Erupter and Raspberry Pi
Post by: yantis on June 03, 2013, 08:27:40 AM
The Anker hubs definitely do not work with the PIs. I picked up 5 of them which I have to return because I want to go pure PI based. They partially work and look sexy. On a USB 3.0 machine they work great though.


Title: Re: Block Erupter and Raspberry Pi
Post by: yantis on June 03, 2013, 08:28:43 AM
This is the hub I would recommend.

http://www.amazon.com/Plugable-Port-Speed-Power-Adapter/dp/B003Z4G3I6


Title: Re: Block Erupter and Raspberry Pi
Post by: fpgaminer on June 03, 2013, 08:30:52 AM
Quote
This is the hub I would recommend.
The ports look too close together for Erupter sticks.



Title: Re: Block Erupter and Raspberry Pi
Post by: kosmokramer on June 03, 2013, 08:55:52 AM
The ports look too close together for Erupter sticks.
Most definitely.


Title: Re: Block Erupter and Raspberry Pi
Post by: yantis on June 03, 2013, 08:56:58 AM
Oh yes. I definitely need to mention that =) These can only power 5 sticks. I burned two of them out trying 6 and 7 sticks.

Also, block erupters USB run way to hot for not external cooling so don't stress the closeness to much. Its mandatory you cool these or they hardware error through the roof.


Title: Re: Block Erupter and Raspberry Pi
Post by: redcomet on June 03, 2013, 09:35:54 AM
I have bfgminer working on minepeon - had to compile from git, the one installed by default does NOT work.

I posted some instructions and such here https://bitcointalk.org/index.php?topic=220905.msg2326740#msg2326740


Title: Re: Block Erupter and Raspberry Pi
Post by: yantis on June 03, 2013, 09:45:48 AM
Was anyone able to get the latest cgminer to work? I was also able to get bfgminer but no luck with cgminer.


Title: Re: Block Erupter and Raspberry Pi
Post by: Bogart on June 03, 2013, 10:34:33 AM
Was anyone able to get the latest cgminer to work? I was also able to get bfgminer but no luck with cgminer.

I have it working on a Pi running cgminer 3.1.1 (on Raspbian).  I had to specify -S /dev/ttyUSB0 etc.

I did not have any luck with cgminer 3.2.0 (yet), or with 3.1.0.

I did not try MinePeon.

I'm using Rosewill 10-port powered hubs.  They seem to have no problem powering 6 or 7 sticks (7 on 2 of them, 6 + the Pi on another).


Title: Re: Block Erupter and Raspberry Pi
Post by: nubbins on June 03, 2013, 12:53:57 PM
I'm using Rosewill 10-port powered hubs.  They seem to have no problem powering 6 or 7 sticks (7 on 2 of them, 6 + the Pi on another).

i've got this Rosewill hub on the way... good to know you've got yours to work!

http://www.amazon.com/Rosewill-10-Port-High-Speed-RHB-520/dp/B007ZSKJV0 (http://www.amazon.com/Rosewill-10-Port-High-Speed-RHB-520/dp/B007ZSKJV0)

it's a 3.5A, so i think 7 erupters would be a hard limit :)


Title: Re: Block Erupter and Raspberry Pi
Post by: LogicalUnit on June 03, 2013, 01:08:24 PM
The Anker hubs definitely do not work with the PIs. I picked up 5 of them which I have to return because I want to go pure PI based. They partially work and look sexy. On a USB 3.0 machine they work great though.

Thank you for this important piece of information. I have ordered one of these through an American user of this forum. Looks like I'll have to try something different.


Title: Re: Block Erupter and Raspberry Pi
Post by: yantis on June 03, 2013, 01:26:00 PM
Worth noting I have 80 units running 5 per hub on the hubs I mentioned above.. several days now with no problems after I downgraded from 7 to 6 to 5.


Title: Re: Block Erupter and Raspberry Pi
Post by: LazyOtto on June 03, 2013, 07:55:25 PM
Worth noting I have 80 units running 5 per hub on the hubs I mentioned above.. several days now with no problems after I downgraded from 7 to 6 to 5.
What is the range of hw errors as a percent of accepted shares that you're getting, please?

On my working one it is running at about 0.9%. (IIRC, several other folks have reported getting about a 1% hw error rate.)

One which is now dead and in the process of getting replaced ran at about 10% hw errors for roughly eight hours. Then it died.

NOTE: I had a fan blowing over them. They were both 'warm to the touch'. Not the 'freaking hot' you encounter without active cooling.


Title: Re: Block Erupter and Raspberry Pi
Post by: LazyOtto on June 03, 2013, 08:16:13 PM
Anybody running BE USB devices *and* Cairnsmore CM1s on Raspbian and MPBM.

That combination crashes the machine when I tried it.


Title: Re: Block Erupter and Raspberry Pi
Post by: conv3rsion on June 03, 2013, 08:25:53 PM
Was anyone able to get the latest cgminer to work? I was also able to get bfgminer but no luck with cgminer.

I have it working on a Pi running cgminer 3.1.1 (on Raspbian).  I had to specify -S /dev/ttyUSB0 etc.

I did not have any luck with cgminer 3.2.0 (yet), or with 3.1.0.

I did not try MinePeon.

I'm using Rosewill 10-port powered hubs.  They seem to have no problem powering 6 or 7 sticks (7 on 2 of them, 6 + the Pi on another).

How many Erupters can Pi handle?

Without a hub? probably none.


Title: Re: Block Erupter and Raspberry Pi
Post by: yantis on June 04, 2013, 08:35:17 AM
A single PI can handle 45 block erupters decently well. If you view my profile and click on view posts I posted about this with screenshots in a couple times.


Title: Re: Block Erupter and Raspberry Pi
Post by: LogicalUnit on June 04, 2013, 10:39:23 AM
Oh yes. I definitely need to mention that =) These can only power 5 sticks. I burned two of them out trying 6 and 7 sticks.

Also, block erupters USB run way to hot for not external cooling so don't stress the closeness to much. Its mandatory you cool these or they hardware error through the roof.

You burned out the block erupter or the hub??


Title: Re: Block Erupter and Raspberry Pi
Post by: yantis on June 04, 2013, 10:43:43 AM
Burned out the hubs. No problem at all with 5 sticks though. Been running 5 per hub for several days now with no problem at all (external cooling - 80 total).


Title: Re: Block Erupter and Raspberry Pi
Post by: hotwired007 on June 04, 2013, 04:07:56 PM
i have a pi and 2 USB miners on thier way - whats the best way to configure this? my pi has been used once or twice since i got it last year :P


Title: Re: Block Erupter and Raspberry Pi
Post by: nubbins on June 04, 2013, 04:15:23 PM
i have a pi and 2 USB miners on thier way - whats the best way to configure this?

some info here: https://bitcointalk.org/index.php?topic=220905.msg2326740#msg2326740 (https://bitcointalk.org/index.php?topic=220905.msg2326740#msg2326740)


Title: Re: Block Erupter and Raspberry Pi
Post by: conv3rsion on June 04, 2013, 04:20:33 PM
Has anyone done a test to see if hardware errors go up (and average mh/s down) when using a Pi vs a desktop?


Title: Re: Block Erupter and Raspberry Pi
Post by: mr_john on June 05, 2013, 07:01:25 AM
Just for the record:

Raspberry working fine with 3 eruptors using cgminer 3.1.1 and this hub:
http://www.digitus.info/en/products/accessories/usb-hubs/usb-20-7-port-hub-da-70222/

This hub is a 7-port hub, but only 5 eruptors will fit in (I actually tested the hub on my laptop with 5 eruptors for about 2 hours). Now it's running stable with 3 Eruptors on my raspberry (as only 3 of the 5 eruptors were my own).

To compile cgminer 3.1.1 on a current raspbian system I just did the following:
Code:
sudo apt-get update
sudo apt-get install libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev
wget http://ck.kolivas.org/apps/cgminer/3.1/cgminer-3.1.1.tar.bz2
tar xvf cgminer-3.1.1.tar.bz2
cd cgminer-3.1.1
./configure --enable-icarus
make
# and do a short check if the binary is running:
./cgminer --verbose --text-only

Check that user pi is part of the group "dialout" so it can access the device files /dev/ttyUSBx:
Code:
pi@raspi1 ~ $ groups
pi adm dialout cdrom sudo audio www-data video plugdev games users netdev input

For starting cgminer 3.1.1 with 3 eruptors I use this commandline on the raspberry:
Code:
./cgminer  --icarus-options 115200:1:1 --icarus-timing 3.0=100 -S /dev/ttyUSB0 -S /dev/ttyUSB1 -S /dev/ttyUSB2 --config /home/pi/cgminer.conf

And the config file cgminer.conf looks like this:

Code:
{
"pools" :
        [
                {
                "url" : "http://stratum.bitcoin.cz:3333",
                "user" : "<my user>",
                "pass" : "<my pass>"
                }
        ],
        "expiry" : "120",
        "failover-only" : true,
        "hotplug" : "5",
        "log" : "5",
        "no-pool-disable" : true,
        "queue" : "2",
        "scan-time" : "60",
        "temp-hysteresis" : "3",
        "worktime" : true,
        "shares" : "0",
        "kernel-path" : "/usr/local/bin"
}

hashing away just fine now! :)

[edit]
corrected wget command to correct link for cgminer 3.1.1
[/edit]


Title: Re: Block Erupter and Raspberry Pi
Post by: farproc on June 07, 2013, 10:50:29 AM
Just for the record:

Raspberry working fine with 3 eruptors using cgminer 3.1.1 and this hub:
http://www.digitus.info/en/products/accessories/usb-hubs/usb-20-7-port-hub-da-70222/

This hub is a 7-port hub, but only 5 eruptors will fit in (I actually tested the hub on my laptop with 5 eruptors for about 2 hours). Now it's running stable with 3 Eruptors on my raspberry (as only 3 of the 5 eruptors were my own).

To compile cgminer 3.1.1 on a current raspbian system I just did the following:
Code:
sudo apt-get update
sudo apt-get install libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev
wget http://ck.kolivas.org/apps/cgminer/cgminer-3.1.1.tar.bz2
tar xvf cgminer-3.1.1.tar.bz2
cd cgminer-3.1.1
./configure --enable-icarus
make
# and do a short check if the binary is running:
./cgminer --verbose --text-only

Check that user pi is part of the group "dialout" so it can access the device files /dev/ttyUSBx:
Code:
pi@raspi1 ~ $ groups
pi adm dialout cdrom sudo audio www-data video plugdev games users netdev input

For starting cgminer 3.1.1 with 3 eruptors I use this commandline on the raspberry:
Code:
./cgminer  --icarus-options 115200:1:1 --icarus-timing 3.0=100 -S /dev/ttyUSB0 -S /dev/ttyUSB1 -S /dev/ttyUSB2 --config /home/pi/cgminer.conf

And the config file cgminer.conf looks like this:

Code:
{
"pools" :
        [
                {
                "url" : "http://stratum.bitcoin.cz:3333",
                "user" : "<my user>",
                "pass" : "<my pass>"
                }
        ],
        "expiry" : "120",
        "failover-only" : true,
        "hotplug" : "5",
        "log" : "5",
        "no-pool-disable" : true,
        "queue" : "2",
        "scan-time" : "60",
        "temp-hysteresis" : "3",
        "worktime" : true,
        "shares" : "0",
        "kernel-path" : "/usr/local/bin"
}

hashing away just fine now! :)

Thanks a lot!!!


Title: Re: Block Erupter and Raspberry Pi
Post by: mr_john on June 07, 2013, 10:55:09 AM
You are welcome! :)


Title: Re: Block Erupter and Raspberry Pi
Post by: CommanderVenus on June 11, 2013, 08:08:10 AM
Has anyone got cgminer 3.2.1 working with four or more block erupters on the raspberry pi yet?


Title: Re: Block Erupter and Raspberry Pi
Post by: platti on June 11, 2013, 08:55:58 AM
Has anyone got cgminer 3.2.1 working with four or more block erupters on the raspberry pi yet?

my raspberry don't work well with cgminer 3.2.1. I have three Block erupter. there are to many errors


Title: Re: Block Erupter and Raspberry Pi
Post by: farproc on June 11, 2013, 12:23:12 PM
My RPI works fine with 3 Block Erupter USBs through a 2A powered USB hub.

Just for the record:

Raspberry working fine with 3 eruptors using cgminer 3.1.1 and this hub:
http://www.digitus.info/en/products/accessories/usb-hubs/usb-20-7-port-hub-da-70222/

This hub is a 7-port hub, but only 5 eruptors will fit in (I actually tested the hub on my laptop with 5 eruptors for about 2 hours). Now it's running stable with 3 Eruptors on my raspberry (as only 3 of the 5 eruptors were my own).

To compile cgminer 3.1.1 on a current raspbian system I just did the following:
Code:
sudo apt-get update
sudo apt-get install libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev
wget http://ck.kolivas.org/apps/cgminer/3.1/cgminer-3.1.1.tar.bz2
tar xvf cgminer-3.1.1.tar.bz2
cd cgminer-3.1.1
./configure --enable-icarus
make
# and do a short check if the binary is running:
./cgminer --verbose --text-only

Check that user pi is part of the group "dialout" so it can access the device files /dev/ttyUSBx:
Code:
pi@raspi1 ~ $ groups
pi adm dialout cdrom sudo audio www-data video plugdev games users netdev input

For starting cgminer 3.1.1 with 3 eruptors I use this commandline on the raspberry:
Code:
./cgminer  --icarus-options 115200:1:1 --icarus-timing 3.0=100 -S /dev/ttyUSB0 -S /dev/ttyUSB1 -S /dev/ttyUSB2 --config /home/pi/cgminer.conf

And the config file cgminer.conf looks like this:

Code:
{
"pools" :
        [
                {
                "url" : "http://stratum.bitcoin.cz:3333",
                "user" : "<my user>",
                "pass" : "<my pass>"
                }
        ],
        "expiry" : "120",
        "failover-only" : true,
        "hotplug" : "5",
        "log" : "5",
        "no-pool-disable" : true,
        "queue" : "2",
        "scan-time" : "60",
        "temp-hysteresis" : "3",
        "worktime" : true,
        "shares" : "0",
        "kernel-path" : "/usr/local/bin"
}

hashing away just fine now! :)

[edit]
corrected wget command to correct link for cgminer 3.1.1
[/edit]


Title: Re: Block Erupter and Raspberry Pi
Post by: TheOrri on June 12, 2013, 10:14:57 AM
Has anyone got cgminer 3.2.1 working with four or more block erupters on the raspberry pi yet?

my raspberry don't work well with cgminer 3.2.1. I have three Block erupter. there are to many errors

My raspberry detects the USB sticks and start mining on 3.2.1, but with a lot of errors and declaring SICKS. I am on powered hub though.


Title: Re: Block Erupter and Raspberry Pi
Post by: Aajo on June 12, 2013, 05:31:26 PM
Has anyone got cgminer 3.2.1 working with four or more block erupters on the raspberry pi yet?

my raspberry don't work well with cgminer 3.2.1. I have three Block erupter. there are to many errors

My raspberry detects the USB sticks and start mining on 3.2.1, but with a lot of errors and declaring SICKS. I am on powered hub though.

having the same problem with my 3 sticks here
cgminer 3.2.1
pi and digitus 7port hub (confirmed working with cgminer 3.1.1 in this thread)

Code:
cgminer version 3.2.1 - Started: [2013-06-12 17:26:06]
--------------------------------------------------------------------------------
 (5s):468.4M (avg):279.4Mh/s | A:21  R:0  HW:0  U:4.5/m  WU:4.5/m
 ST: 2  SS: 0  NB: 3  LW: 61  GF: 0  RF: 0
 Connected to eu-stratum.btcguild.com diff 1 with stratum as user xx
 Block: 000f95171e59a23a...  Diff:15.6M  Started: [17:28:51]  Best share: 26
--------------------------------------------------------------------------------
 [P]ool management [S]ettings [D]isplay options [Q]uit
 AMU 0:                | 241.9M/78.77Mh/s | A:5 R:0 HW:0 U: 1.06/m
 AMU 1:                | 25.36M/91.86Mh/s | A:7 R:0 HW:0 U: 1.49/m
 AMU 2:                | 25.51M/108.8Mh/s | A:9 R:0 HW:0 U: 1.91/m
--------------------------------------------------------------------------------

 [2013-06-12 17:27:14] AMU0: Attempting to restart
 [2013-06-12 17:27:14] AMU1: Idle for more than 60 seconds, declaring SICK!
 [2013-06-12 17:27:14] AMU1: Attempting to restart
 [2013-06-12 17:27:32] Stratum from pool 0 detected new block
 [2013-06-12 17:27:54] Accepted dbc08f5e Diff 1/1 AMU 1
 [2013-06-12 17:27:58] Accepted 97dca494 Diff 1/1 AMU 2
 [2013-06-12 17:28:04] Accepted 76939056 Diff 2/1 AMU 1
 [2013-06-12 17:28:13] Accepted 179e6eb3 Diff 10/1 AMU 1
 [2013-06-12 17:28:15] Accepted 60cdcd86 Diff 2/1 AMU 1
 [2013-06-12 17:28:25] Accepted 75fabff8 Diff 2/1 AMU 1
 [2013-06-12 17:28:51] Stratum from pool 0 detected new block
 [2013-06-12 17:28:56] AMU0: Idle for more than 60 seconds, declaring SICK!
 [2013-06-12 17:28:56] AMU0: Attempting to restart
 [2013-06-12 17:29:00] AMU2: Idle for more than 60 seconds, declaring SICK!
 [2013-06-12 17:29:00] AMU2: Attempting to restart
 [2013-06-12 17:29:25] Accepted 0e4d9589 Diff 17/1 AMU 2
 [2013-06-12 17:29:33] Accepted f6882ee4 Diff 1/1 AMU 0
 [2013-06-12 17:30:26] AMU1: Idle for more than 60 seconds, declaring SICK!
 [2013-06-12 17:30:26] AMU1: Attempting to restart
 [2013-06-12 17:30:26] AMU2: Idle for more than 60 seconds, declaring SICK!
 [2013-06-12 17:30:26] AMU2: Attempting to restart
 [2013-06-12 17:30:41] Accepted 09a0fd3a Diff 26/1 AMU 0
 [2013-06-12 17:30:46] Accepted 367769a6 Diff 4/1 AMU 0

the strange thing with this issue is, if I remove all sticks beside one from the hub everything works fine!
any ideas what I could try beside downgrade cgminer?


Title: Re: Block Erupter and Raspberry Pi
Post by: dentldir on June 12, 2013, 06:16:47 PM
Has anyone got cgminer 3.2.1 working with four or more block erupters on the raspberry pi yet?

Yes using a manually compiled cgminer 3.2.1 on MinePeon.  Everything autodetects at startup now with no additional switches beyond url, user, and pass.

I'm using 1 Sabrent 7 port hub for 4 block erupters.  Then another Sabrent 7 port hub to power the RPi, a USB fan, and the wireless adapter.

Averaging just under 1.0% HW errors.  My own experience is that HW errors are a function of the stability of the power getting to the RPi and the Erupters.  Hence the separate hubs for powering the RPi and the sticks.  When I tried everything together in different combinations, the HW rate went up drastically.  Sometimes on just one stick.









Title: Re: Block Erupter and Raspberry Pi
Post by: Aajo on June 12, 2013, 06:43:57 PM
Has anyone got cgminer 3.2.1 working with four or more block erupters on the raspberry pi yet?
Yes using a manually compiled cgminer 3.2.1 on MinePeon.  Everything autodetects at startup now with no additional switches beyond url, user, and pass.

when manually compiling did you do anything different than mr_john a few posts above?


Title: Re: Block Erupter and Raspberry Pi
Post by: dentldir on June 12, 2013, 07:16:11 PM
Has anyone got cgminer 3.2.1 working with four or more block erupters on the raspberry pi yet?
Yes using a manually compiled cgminer 3.2.1 on MinePeon.  Everything autodetects at startup now with no additional switches beyond url, user, and pass.

when manually compiling did you do anything different than mr_john a few posts above?

I didn't use the apt-gets (since minepeon is arch linux and not debian based.  Plus it comes with everything you need to build cgminer)

I downloaded 3.2.1 instead of 3.1.1 of course.

Then I added --prefix=/opt/minepeon in configure so that I could swap out the existing /opt/minepeon/bin/cgminer. 

That's it.  His instructions are essentially correct with a version change.



Title: Re: Block Erupter and Raspberry Pi
Post by: TheOrri on June 12, 2013, 08:15:17 PM
Has anyone got cgminer 3.2.1 working with four or more block erupters on the raspberry pi yet?

my raspberry don't work well with cgminer 3.2.1. I have three Block erupter. there are to many errors

My raspberry detects the USB sticks and start mining on 3.2.1, but with a lot of errors and declaring SICKS. I am on powered hub though.

having the same problem with my 3 sticks here
cgminer 3.2.1
pi and digitus 7port hub (confirmed working with cgminer 3.1.1 in this thread)

Code:
cgminer version 3.2.1 - Started: [2013-06-12 17:26:06]
--------------------------------------------------------------------------------
 (5s):468.4M (avg):279.4Mh/s | A:21  R:0  HW:0  U:4.5/m  WU:4.5/m
 ST: 2  SS: 0  NB: 3  LW: 61  GF: 0  RF: 0
 Connected to eu-stratum.btcguild.com diff 1 with stratum as user xx
 Block: 000f95171e59a23a...  Diff:15.6M  Started: [17:28:51]  Best share: 26
--------------------------------------------------------------------------------
 [P]ool management [S]ettings [D]isplay options [Q]uit
 AMU 0:                | 241.9M/78.77Mh/s | A:5 R:0 HW:0 U: 1.06/m
 AMU 1:                | 25.36M/91.86Mh/s | A:7 R:0 HW:0 U: 1.49/m
 AMU 2:                | 25.51M/108.8Mh/s | A:9 R:0 HW:0 U: 1.91/m
--------------------------------------------------------------------------------

 [2013-06-12 17:27:14] AMU0: Attempting to restart
 [2013-06-12 17:27:14] AMU1: Idle for more than 60 seconds, declaring SICK!
 [2013-06-12 17:27:14] AMU1: Attempting to restart
 [2013-06-12 17:27:32] Stratum from pool 0 detected new block
 [2013-06-12 17:27:54] Accepted dbc08f5e Diff 1/1 AMU 1
 [2013-06-12 17:27:58] Accepted 97dca494 Diff 1/1 AMU 2
 [2013-06-12 17:28:04] Accepted 76939056 Diff 2/1 AMU 1
 [2013-06-12 17:28:13] Accepted 179e6eb3 Diff 10/1 AMU 1
 [2013-06-12 17:28:15] Accepted 60cdcd86 Diff 2/1 AMU 1
 [2013-06-12 17:28:25] Accepted 75fabff8 Diff 2/1 AMU 1
 [2013-06-12 17:28:51] Stratum from pool 0 detected new block
 [2013-06-12 17:28:56] AMU0: Idle for more than 60 seconds, declaring SICK!
 [2013-06-12 17:28:56] AMU0: Attempting to restart
 [2013-06-12 17:29:00] AMU2: Idle for more than 60 seconds, declaring SICK!
 [2013-06-12 17:29:00] AMU2: Attempting to restart
 [2013-06-12 17:29:25] Accepted 0e4d9589 Diff 17/1 AMU 2
 [2013-06-12 17:29:33] Accepted f6882ee4 Diff 1/1 AMU 0
 [2013-06-12 17:30:26] AMU1: Idle for more than 60 seconds, declaring SICK!
 [2013-06-12 17:30:26] AMU1: Attempting to restart
 [2013-06-12 17:30:26] AMU2: Idle for more than 60 seconds, declaring SICK!
 [2013-06-12 17:30:26] AMU2: Attempting to restart
 [2013-06-12 17:30:41] Accepted 09a0fd3a Diff 26/1 AMU 0
 [2013-06-12 17:30:46] Accepted 367769a6 Diff 4/1 AMU 0

the strange thing with this issue is, if I remove all sticks beside one from the hub everything works fine!
any ideas what I could try beside downgrade cgminer?

I confirm that with one stick everything works fine. Seems the same problem.


Title: Re: Block Erupter and Raspberry Pi
Post by: dentldir on June 13, 2013, 06:34:33 AM
Has anyone gotten the Anker 10 port hub working with an RPi?  I see it in a lot of photos but haven't heard or read anything about it.  It wasn't listed on the "Official" RPi USB hub list either.



Title: Re: Block Erupter and Raspberry Pi
Post by: LaserHorse on June 13, 2013, 07:07:31 AM
Has anyone gotten the Anker 10 port hub working with an RPi?  I see it in a lot of photos but haven't heard or read anything about it.  It wasn't listed on the "Official" RPi USB hub list either.

Apparently it's a no go.  Wish it did work though, perhaps it's a USB 3 issue …


Title: Re: Block Erupter and Raspberry Pi
Post by: dentldir on June 13, 2013, 07:55:05 AM
Bummer.


Title: Re: Block Erupter and Raspberry Pi
Post by: LogicalUnit on June 14, 2013, 05:34:48 AM
Has anyone got cgminer 3.2.1 working with four or more block erupters on the raspberry pi yet?

Yes, most definitely, using a D-Link DUB-H7 USB 2.0 powered hub: https://bitcointalk.org/index.php?topic=224015.0


Title: Re: Block Erupter and Raspberry Pi
Post by: hotwired007 on June 14, 2013, 10:52:29 AM
is anyone running thier Pi and USBASICs off the same USB hub? or is it recommended to run the Pi off a seperate PSU?


Title: Re: Block Erupter and Raspberry Pi
Post by: nubbins on June 14, 2013, 01:01:34 PM
is anyone running thier Pi and USBASICs off the same USB hub? or is it recommended to run the Pi off a seperate PSU?

I'm running five erupters and my pi off a Rosewill hub with no problems.


Title: Re: Block Erupter and Raspberry Pi
Post by: hotwired007 on June 14, 2013, 01:07:06 PM
is anyone running thier Pi and USBASICs off the same USB hub? or is it recommended to run the Pi off a seperate PSU?

I'm running five erupters and my pi off a Rosewill hub with no problems.

rosewill hub? i've only heard of ankers and the dlink hub... how many ports do you get on the rosewill?

BTW is there a list of test/working hubs for RPi mining? im using my PC atm but wnat to move to my RPi for obvious power saving reasons :P


Title: Re: Block Erupter and Raspberry Pi
Post by: Melbustus on June 22, 2013, 05:42:50 PM
Just for the record:

Raspberry working fine with 3 eruptors using cgminer 3.1.1 and this hub:
http://www.digitus.info/en/products/accessories/usb-hubs/usb-20-7-port-hub-da-70222/

This hub is a 7-port hub, but only 5 eruptors will fit in (I actually tested the hub on my laptop with 5 eruptors for about 2 hours). Now it's running stable with 3 Eruptors on my raspberry (as only 3 of the 5 eruptors were my own).

To compile cgminer 3.1.1 on a current raspbian system I just did the following:
Code:
sudo apt-get update
sudo apt-get install libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev
wget http://ck.kolivas.org/apps/cgminer/3.1/cgminer-3.1.1.tar.bz2
tar xvf cgminer-3.1.1.tar.bz2
cd cgminer-3.1.1
./configure --enable-icarus
make
# and do a short check if the binary is running:
./cgminer --verbose --text-only

Check that user pi is part of the group "dialout" so it can access the device files /dev/ttyUSBx:
Code:
pi@raspi1 ~ $ groups
pi adm dialout cdrom sudo audio www-data video plugdev games users netdev input

For starting cgminer 3.1.1 with 3 eruptors I use this commandline on the raspberry:
Code:
./cgminer  --icarus-options 115200:1:1 --icarus-timing 3.0=100 -S /dev/ttyUSB0 -S /dev/ttyUSB1 -S /dev/ttyUSB2 --config /home/pi/cgminer.conf

And the config file cgminer.conf looks like this:

Code:
{
"pools" :
        [
                {
                "url" : "http://stratum.bitcoin.cz:3333",
                "user" : "<my user>",
                "pass" : "<my pass>"
                }
        ],
        "expiry" : "120",
        "failover-only" : true,
        "hotplug" : "5",
        "log" : "5",
        "no-pool-disable" : true,
        "queue" : "2",
        "scan-time" : "60",
        "temp-hysteresis" : "3",
        "worktime" : true,
        "shares" : "0",
        "kernel-path" : "/usr/local/bin"
}

hashing away just fine now! :)

[edit]
corrected wget command to correct link for cgminer 3.1.1
[/edit]


Thanks for the step-by-step! Just got my Erupter mining away on my Pi. Only tweak I had to make was eliminating the "http://" from the "url" string in cgminer.conf


Title: Re: Block Erupter and Raspberry Pi
Post by: TechCF on June 22, 2013, 08:17:27 PM
is anyone running thier Pi and USBASICs off the same USB hub? or is it recommended to run the Pi off a seperate PSU?

I ran two USB Block Erupters, and the Raspberry Pi of the same hub (D-Link DUB-H7, power the rPI off on off the charge ports. Hub does not backfeed on the uplink, so works great with the pi).

Only problem is that with the current minepeon, only cgminer runs the Block Erupter, and only bfgminer runs the Jalapeno. So I moved my Block Erupters to my main computer...


Title: Re: Block Erupter and Raspberry Pi
Post by: southerngentuk on June 26, 2013, 07:46:49 AM
The Anker hubs definitely do not work with the PIs. I picked up 5 of them which I have to return because I want to go pure PI based. They partially work and look sexy. On a USB 3.0 machine they work great though.

I have ordered a hub that looks like the Anker :( Just a thought, has anybody tried a usb 2 hub between the Pi and the Anker, Would this work?? Pi-USB2-USB3


Title: Re: Block Erupter and Raspberry Pi
Post by: LaserHorse on June 26, 2013, 08:04:41 AM
I have ordered a hub that looks like the Anker :( Just a thought, has anybody tried a usb 2 hub between the Pi and the Anker, Would this work?? Pi-USB2-USB3

I have tried this - no dice  :/


Title: Re: Block Erupter and Raspberry Pi
Post by: southerngentuk on June 26, 2013, 08:23:39 AM
I have ordered a hub that looks like the Anker :( Just a thought, has anybody tried a usb 2 hub between the Pi and the Anker, Would this work?? Pi-USB2-USB3

I have tried this - no dice  :/

Damn, Thanx for letting us know...I`ll try a few things when my hardware arrives....


Title: Re: Block Erupter and Raspberry Pi
Post by: nubbins on June 26, 2013, 01:19:41 PM
is anyone running thier Pi and USBASICs off the same USB hub? or is it recommended to run the Pi off a seperate PSU?

I'm running five erupters and my pi off a Rosewill hub with no problems.

rosewill hub? i've only heard of ankers and the dlink hub... how many ports do you get on the rosewill?

BTW is there a list of test/working hubs for RPi mining? im using my PC atm but wnat to move to my RPi for obvious power saving reasons :P

Sorry, I'm only seeing this now.

I think Rosewill is newegg's in-house brand. Mine is a 10-port, 3.5A (model RHB-520). There's a switch to enable all 10 ports or just the first 6, but I'm not sure if this causes a drop in the first 6 ports, so I've left it off. 6 was fine for me, anyway, as I only had 5 erupters and the pi.

For the record, that specific Rosewill hub wasn't listed in the RPi compatibility charts, but another Rosewill model was. They probably all work.


Title: Re: Block Erupter and Raspberry Pi
Post by: macromode on June 28, 2013, 04:49:03 PM
I discovered this Rosewill usb hub, RHB-500 http://www.rosewill.com/products/1543/ProductDetail_Overview.htm, that might adequately power at least as many as the RHB-520 due to its power supply giving 4A. And it's not a USB 3.0 hub so I suspect it'll play nice with RPi as well. Anyone have reason to doubt its suitability?


Title: Re: Block Erupter and Raspberry Pi
Post by: mrgool on August 05, 2013, 08:20:36 AM
I'm waiting more Erupters from www.asicminer-shop.de
I hope will lunch 16 Erupters on my Raspberry before WE.
Currently 10 work just fine:

https://www.dropbox.com/s/1vt1wyc9otcfjsk/2013-07-31%2007.14.26.jpg (https://www.dropbox.com/s/1vt1wyc9otcfjsk/2013-07-31%2007.14.26.jpg)
https://www.dropbox.com/s/rues3wvvofc05u2/anker1.png (https://www.dropbox.com/s/rues3wvvofc05u2/anker1.png)

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.6.11+ #474 PREEMPT Thu Jun 13 17:14:42 BST 2013 armv6l GNU/Linux

pi@raspberrypi ~ $ top

top - 08:18:38 up 17:08,  1 user,  load average: 3.54, 3.36, 3.33
Tasks:  68 total,   1 running,  67 sleeping,   0 stopped,   0 zombie
%Cpu(s):  2.8 us,  4.5 sy,  0.0 ni, 92.6 id,  0.0 wa,  0.0 hi,  0.2 si,  0.0 st
KiB Mem:    448776 total,    95104 used,   353672 free,    11760 buffers
KiB Swap:   102396 total,        0 used,   102396 free,    55716 cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM     TIME+ COMMAND                                                                                                                          
 2629 pi        20   0  4892 1312  940 R 11.2  0.3   0:00.06 top                                                                                                                              
 2041 root      20   0  203m 4324 2752 S  5.6  1.0  73:01.65 cgminer                                                                                                                          
    1 root      20   0  2568  840  712 S  0.0  0.2   0:03.57 init                                                                                                                            
    2 root      20   0     0    0    0 S  0.0  0.0   0:00.03 kthreadd                                                                                                                        
    3 root      20   0     0    0    0 S  0.0  0.0   0:37.76 ksoftirqd/0

dmesg ...

[    7.494880] usb 1-1.3.3.4: new full-speed USB device number 16 using dwc_otg
[    7.630846] usb 1-1.3.3.4: New USB device found, idVendor=10c4, idProduct=ea60
[    7.649143] usb 1-1.3.3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.672098] usb 1-1.3.3.4: Product: CP2102 USB to UART Bridge Controller
[    7.693928] usb 1-1.3.3.4: Manufacturer: Silicon Labs
[    7.701106] usb 1-1.3.3.4: SerialNumber: 0001
[    7.814881] usb 1-1.2.4.4.1: new full-speed USB device number 17 using dwc_otg
[    7.950896] usb 1-1.2.4.4.1: New USB device found, idVendor=10c4, idProduct=ea60
[    7.973959] usb 1-1.2.4.4.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.003952] usb 1-1.2.4.4.1: Product: CP2102 USB to UART Bridge Controller
[    8.013077] usb 1-1.2.4.4.1: Manufacturer: Silicon Labs
[    8.033953] usb 1-1.2.4.4.1: SerialNumber: 0001
[    8.134866] usb 1-1.2.4.4.2: new full-speed USB device number 18 using dwc_otg
[    8.270907] usb 1-1.2.4.4.2: New USB device found, idVendor=10c4, idProduct=ea60
[    8.293285] usb 1-1.2.4.4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.319486] usb 1-1.2.4.4.2: Product: CP2102 USB to UART Bridge Controller
[    8.336815] usb 1-1.2.4.4.2: Manufacturer: Silicon Labs
[    8.352984] usb 1-1.2.4.4.2: SerialNumber: 0001
[    8.396740] usbcore: registered new interface driver usbserial
[    8.484919] usb 1-1.2.4.4.3: new full-speed USB device number 19 using dwc_otg
[    8.495727] usbcore: registered new interface driver usbserial_generic
[    8.541838] USB Serial support registered for generic
[    8.583948] usbserial: USB Serial Driver core
[    8.591413] usbcore: registered new interface driver cp210x
[    8.620897] usb 1-1.2.4.4.3: New USB device found, idVendor=10c4, idProduct=ea60
[    8.642279] usb 1-1.2.4.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.659703] USB Serial support registered for cp210x
[    8.667093] usb 1-1.2.4.4.3: Product: CP2102 USB to UART Bridge Controller
[    8.693945] usb 1-1.2.4.4.3: Manufacturer: Silicon Labs
[    8.701474] usb 1-1.2.4.4.3: SerialNumber: 0001
[    8.764128] cp210x 1-1.3.1:1.0: cp210x converter detected
[    8.814966] usb 1-1.2.4.4.4: new full-speed USB device number 20 using dwc_otg
[    8.951023] usb 1-1.2.4.4.4: New USB device found, idVendor=10c4, idProduct=ea60
[    8.974036] usb 1-1.2.4.4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.998045] usb 1-1.2.4.4.4: Product: CP2102 USB to UART Bridge Controller
[    9.019210] usb 1-1.2.4.4.4: Manufacturer: Silicon Labs
[    9.033984] usb 1-1.2.4.4.4: SerialNumber: 0001
[    9.044906] usb 1-1.3.1: reset full-speed USB device number 8 using dwc_otg
[    9.057457] cp210x 1-1.2.4.4.4:1.0: cp210x converter detected
[    9.202823] usb 1-1.3.1: cp210x converter now attached to ttyUSB0
[    9.217517] cp210x 1-1.2.4.3:1.0: cp210x converter detected
[    9.284888] usb 1-1.2.4.4.4: reset full-speed USB device number 20 using dwc_otg
[    9.419027] usb 1-1.2.4.4.4: cp210x converter now attached to ttyUSB1
[    9.514892] usb 1-1.2.4.3: reset full-speed USB device number 11 using dwc_otg
[    9.659128] usb 1-1.2.4.3: cp210x converter now attached to ttyUSB2
[    9.677974] cp210x 1-1.3.3.1:1.0: cp210x converter detected
[    9.784927] usb 1-1.3.3.1: reset full-speed USB device number 13 using dwc_otg
[    9.913785] usb 1-1.3.3.1: cp210x converter now attached to ttyUSB3
[    9.929585] cp210x 1-1.3.3.2:1.0: cp210x converter detected
[   10.034945] usb 1-1.3.3.2: reset full-speed USB device number 14 using dwc_otg
[   10.164339] usb 1-1.3.3.2: cp210x converter now attached to ttyUSB4
[   10.179136] cp210x 1-1.3.3.3:1.0: cp210x converter detected
[   10.294929] usb 1-1.3.3.3: reset full-speed USB device number 15 using dwc_otg
[   10.423739] usb 1-1.3.3.3: cp210x converter now attached to ttyUSB5
[   10.439445] cp210x 1-1.3.3.4:1.0: cp210x converter detected
[   10.544954] usb 1-1.3.3.4: reset full-speed USB device number 16 using dwc_otg
[   10.673214] usb 1-1.3.3.4: cp210x converter now attached to ttyUSB6
[   10.688062] cp210x 1-1.2.4.4.1:1.0: cp210x converter detected
[   10.794906] usb 1-1.2.4.4.1: reset full-speed USB device number 17 using dwc_otg
[   10.919028] usb 1-1.2.4.4.1: cp210x converter now attached to ttyUSB7
[   10.928107] cp210x 1-1.2.4.4.2:1.0: cp210x converter detected
[   11.024948] usb 1-1.2.4.4.2: reset full-speed USB device number 18 using dwc_otg
[   11.153600] usb 1-1.2.4.4.2: cp210x converter now attached to ttyUSB8
[   11.176176] cp210x 1-1.2.4.4.3:1.0: cp210x converter detected
[   11.294955] usb 1-1.2.4.4.3: reset full-speed USB device number 19 using dwc_otg
[   11.424352] usb 1-1.2.4.4.3: cp210x converter now attached to ttyUSB9




BTW I'm selling this ANKER HUB now (working with Raspberry, used ~ week):

https://www.bitmit.net/en/item/48972-anker-usb-3-0-10-port-hub-with-12v-4a-power-adapter-4-raspberry




Title: Re: Block Erupter and Raspberry Pi
Post by: platti on August 05, 2013, 12:29:12 PM
does this hub
http://www.amazon.de/Xystec-Aktiver-13-Port-USB2-0-Hub-Netzteil/dp/B002PQ5I4K/
work with raspberry pi?


Title: Re: Block Erupter and Raspberry Pi
Post by: miter_myles on August 05, 2013, 12:33:00 PM
does this hub
http://www.amazon.de/Xystec-Aktiver-13-Port-USB2-0-Hub-Netzteil/dp/B002PQ5I4K/
work with raspberry pi?

I was looking at that one before.. couple different manufactures have it.. the usb ports themselves look way to close together..


Title: Re: Block Erupter and Raspberry Pi
Post by: platti on August 05, 2013, 12:38:14 PM
you can stick 3 erupters on each side, then you have one  ampere reserve (6 sticks = 3 A)


Title: Re: Block Erupter and Raspberry Pi
Post by: brom on August 07, 2013, 02:12:33 AM
Hey everyone, would the raspberry pi offer sufficient power to run 1 USB Block Erupter?  I will be receiving my first device later this month, and plan to use strictly one unit with the pi for a while.  I currently use a 1.2 A usb power adapter for the raspberry pi.  Thanks.


Title: Re: Block Erupter and Raspberry Pi
Post by: Beastlymac on August 07, 2013, 02:37:38 AM
Hey everyone, would the raspberry pi offer sufficient power to run 1 USB Block Erupter?  I will be receiving my first device later this month, and plan to use strictly one unit with the pi for a while.  I currently use a 1.2 A usb power adapter for the raspberry pi.  Thanks.
No it will not.


Title: Re: Block Erupter and Raspberry Pi
Post by: astutiumRob on August 07, 2013, 02:45:10 AM
Hey everyone, would the raspberry pi offer sufficient power to run 1 USB Block Erupter?  I will be receiving my first device later this month, and plan to use strictly one unit with the pi for a while.  I currently use a 1.2 A usb power adapter for the raspberry pi.  Thanks.

Maybe (depending on the voltage) - I had a rPi+BE running, but using a 2A/5V Power Supply, 1.2 might be high enough ... W=V*A :)

For stability and ease-of-remote-reboot, rPi+PoweredHub+BE(on hub) would be the way to go
http://elinux.org/RPi_VerifiedPeripherals



Title: Re: Block Erupter and Raspberry Pi
Post by: BenTuras on August 07, 2013, 09:04:16 AM
Hey everyone, would the raspberry pi offer sufficient power to run 1 USB Block Erupter?  I will be receiving my first device later this month, and plan to use strictly one unit with the pi for a while.  I currently use a 1.2 A usb power adapter for the raspberry pi.  Thanks.

Maybe (depending on the voltage) - I had a rPi+BE running, but using a 2A/5V Power Supply, 1.2 might be high enough ... W=V*A :)

For stability and ease-of-remote-reboot, rPi+PoweredHub+BE(on hub) would be the way to go
http://elinux.org/RPi_VerifiedPeripherals


No, the maximum power the USB port of a Raspberry Pi can deliver is 100mA.
There is a fuse that blows if you ask more.
You need a powered usb hub.


Title: Re: Block Erupter and Raspberry Pi
Post by: volosator on August 07, 2013, 02:32:59 PM
my pi doesn't work with any hubs I have.

I have old trendnet and some noname usb 2.0 hubs, both have external power. pi detects hubs and 'lsusb -t' shows correct topology. sticks run for 2-3 seconds, then I see hashrate drop and then pi hangs when I kill cgminer. then, hardware watchdog reboots pi and I get to try again. I can run my sticks on PC just fine using any of my hubs. I ordered DLINK DUB-H7 hub - this one works with pi, i've seen many pictures online proving that.

i will post more when I have updates


Title: Re: Block Erupter and Raspberry Pi
Post by: -Redacted- on August 07, 2013, 02:36:57 PM
Switch back to cgminer version 3.1.1a and I think you'll have better luck. 


Title: Re: Block Erupter and Raspberry Pi
Post by: volosator on August 09, 2013, 12:51:12 AM
Dlink DUB-H7 arrived today; plugged it into Pi and seen exactly the same behavior I've seen before.

Downgraded to cgminer 3.1.1 and everything works great, USB sticks seen as ICA0..3

I guess the issue is with cgminer direct access to usb port. 3.3.1 doesn't work, 3.1.1 works.

Code:
 cgminer version 3.1.1 - Started: [2013-08-08 20:21:30]
--------------------------------------------------------------------------------
 (5s):1.434G (avg):1.330Gh/s | A:465  R:6  HW:10  U:19.7/m  WU:20.4/m
 ST: 1  SS: 0  NB: 8  LW: 1138  GF: 0  RF: 0
 Connected to 192.168.XXX.XXX diff 1 with stratum as user rpi
 Block: 002102ae028653e8...  Diff:37.4M  Started: [20:44:36]  Best share: 1.91K
--------------------------------------------------------------------------------
 [P]ool management [S]ettings [D]isplay options [Q]uit
 ICA 0:                | 313.9M/332.6Mh/s | A:120 R:0 HW:3 U:5.09/m
 ICA 1:                | 332.5M/333.9Mh/s | A:127 R:3 HW:1 U:5.39/m
 ICA 2:                | 332.7M/333.8Mh/s | A:117 R:0 HW:5 U:4.97/m
 ICA 3:                | 332.2M/332.7Mh/s | A:101 R:3 HW:1 U:4.29/m
--------------------------------------------------------------------------

topology looks like this:
Code:
root@raspberrypi:~# lsusb -t
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/3p, 480M
        |__ Port 1: Dev 3, If 0, Class=vend., Driver=smsc95xx, 480M
        |__ Port 3: Dev 4, If 0, Class=hub, Driver=hub/4p, 480M
            |__ Port 1: Dev 5, If 0, Class=hub, Driver=hub/4p, 480M
                |__ Port 1: Dev 9, If 0, Class=vend., Driver=cp210x, 12M
                |__ Port 2: Dev 8, If 0, Class=vend., Driver=cp210x, 12M
                |__ Port 3: Dev 7, If 0, Class=vend., Driver=cp210x, 12M
                |__ Port 4: Dev 6, If 0, Class=vend., Driver=cp210x, 12M
root@raspberrypi:~#


Title: Re: Block Erupter and Raspberry Pi
Post by: ninjarobot on August 09, 2013, 04:37:51 AM
My RPi Model B (v2) has been powering a block eruptor directly without problems for over a month now. (Plugged into a 2A USB outlet)




Title: Re: Block Erupter and Raspberry Pi
Post by: SpacemanGalaxy on August 13, 2013, 02:38:00 AM
I'm using Rosewill 10-port powered hubs.  They seem to have no problem powering 6 or 7 sticks (7 on 2 of them, 6 + the Pi on another).

Which Rosewill 10-port powered hubs are you using? (they have 4 different models, more like 3 since two of them are just different colors).


Title: Re: Block Erupter and Raspberry Pi
Post by: tom_o on August 13, 2013, 08:11:14 AM
Just done a couple of mods to my pi to get it ready for a single BE.

Drilled the lid and created a fan mount, and a little breakout board for the GPIO 5v which the fan is plugged into. Fanf floats right above the USB port. Power mods; bypass all polyfuses and add direct power supply to the USB ports. You don't really need a powered hub :P