Pages:
Author

Topic: USB ASIC ERUPTER - Setup & Config. BCG Miner, cgminer & Hubs "Oh Pi"! - page 15. (Read 156864 times)

member
Activity: 83
Merit: 10
Hi,

I have problem with usb erupter,
when I write command in raspberry : sudo modprobe cp210x vendor=0x10c4 product=0xea60
I get error :  ERROR: could not insert 'cp210x': Invalid argument


what the problem is ?


thanks for feedback
br
malin
newbie
Activity: 27
Merit: 0
Oh yes, it's easy to take the lid off, pull off a jumper and plug your USB cable in where the Avalon's own FPGA controller plugs into it. I've run one off a PC for a while.
Heh, interesting (obviously I never had an Avalon in my hands or did a lot of research about 'em), very good to know. Thanks for sharing ckolivas. Smiley
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Oh yes, it's easy to take the lid off, pull off a jumper and plug your USB cable in where the Avalon's own FPGA controller plugs into it. I've run one off a PC for a while.
newbie
Activity: 27
Merit: 0
You can also add --enable-avalon Smiley
If you plug the avalon into the USB port of whatever you are mining with
Would be interesting to see if an RPi could handle mining on an avalon Cheesy
LOL well the avalon itself is only a tplink 703 router and it averages ~20% CPU running an avalon, so the rpi should certainly be up to the task.
LUL... yeah, I saw the option but is it even possible to "circumvent" the hacked up tplink board they use (are the Avalon blades connected via USB)? But I too think a RPi should be more than sufficient, although Avalon added more RAM and stuff to the tplink board. I believe I even read that Bitmine.ch is planning to replace the tplink board with a RPi in their clones at a later time.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
You can also add --enable-avalon Smiley
If you plug the avalon into the USB port of whatever you are mining with
Would be interesting to see if an RPi could handle mining on an avalon Cheesy
LOL well the avalon itself is only a tplink 703 router and it averages ~20% CPU running an avalon, so the rpi should certainly be up to the task.
legendary
Activity: 4466
Merit: 1798
Linux since 1997 RedHat 4
Well hopefully the new version of cgminer (3.2.1) that has a significant bugfix for these devices will allow people to move to it instead of sticking to the old version.
Compiled it on my Pi and it looks like as if it does perform much better with lesser HW errors still on diff 1 (check my previous post). Also, no need for additional options just like with 3.2.0. Thanks ckolivas for the fast cgminer updates. Here's an addition to my previous post to get my test build to 3.2.1. Stop cgminer and do this:

Code:
cd ~/src/cgminer
make clean
git pull
./autogen.sh
CFLAGS="-O2 -Wall -march=native" ./configure --enable-bflsc --enable-icarus --enable-bitforce --enable-modminer --enable-ztex
make

You can also add --enable-avalon Smiley
If you plug the avalon into the USB port of whatever you are mining with
Would be interesting to see if an RPi could handle mining on an avalon Cheesy
newbie
Activity: 27
Merit: 0
Well hopefully the new version of cgminer (3.2.1) that has a significant bugfix for these devices will allow people to move to it instead of sticking to the old version.
Compiled it on my Pi and it looks like as if it does perform much better with lesser HW errors still on diff 1 (check my previous post). Also, no need for additional options just like with 3.2.0. Thanks ckolivas and kano for the fast cgminer updates. Here's an addition to my previous post to get my test build to 3.2.1. Stop cgminer and do this:

Code:
cd ~/src/cgminer
make clean
git pull
./autogen.sh
CFLAGS="-O2 -Wall -march=native" ./configure --enable-bflsc --enable-icarus --enable-bitforce --enable-modminer --enable-ztex
make

full member
Activity: 140
Merit: 100
Well hopefully the new version of cgminer (3.2.1) that has a significant bugfix for these devices will allow people to move to it instead of sticking to the old version.

Ah - good to hear, will go check it out.  Thnx, ckolivas!
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Well hopefully the new version of cgminer (3.2.1) that has a significant bugfix for these devices will allow people to move to it instead of sticking to the old version.
full member
Activity: 164
Merit: 100

Is it stable with that hub??

i am thinking of getting one....

Do you think it will handle all 10 connected? I also saw a 12 port version. Would it work?

Thanks
newbie
Activity: 36
Merit: 0
This guy has some good intructions.

http://rdmsnippets.com/2013/05/29/setting-up-asicminer-block-erupters-on-windows-7/

I got mine up and running on a Windows 7 and a Windows XP machine.

Download the correct drivers from http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx

I had problems letting Windows search for the driver on the XP machine. It found the wrong one. Under Devices in the Ports section it should say Silicon Labs CP210x USB to UART Bridge (COM3) 

Yours may have a different COM number. Mine was 3. It is important for the command line later on.

I was initially unsuccessful with CGminer 3.2.0 but it may have been my problem.

I backed down to cgminer 3.1.1. Created a short cut to cgminer-nogpu.exe.

The I edited the properties of the short cut so the Target  looks like this on the Windows 7 machine

C:\cgminer\cgminer-3.1.1-windows\cgminer-nogpu.exe -o  stratum.btcguild.com:3333 -u yourusername_2 -p 123 --icarus-options 115200:1:1 --icarus-timing 3.0=100 -S //./COM3

And this on the Windows XP machine

"C:\cgminer\cgminer-3.1.1-windows\cgminer-nogpu.exe" -o  stratum.btcguild.com:3333 -u yourusername_3 -p 123 --icarus-options 115200:1:1 --icarus-timing 3.0=100 -S //./COM3

Note the parenthesis on the XP command. I do not know if it is critcal but it defaults that way.

The name after -u is really the worker name for btcguild. Which in btcguild is yourusername_suffix. So I have two workers called yourusername_2 and yourusername_3. Some of the examples have periods instead of underscores and I don't think that works with btcguild. I have played with any other options. Both units are hashing around 334M. And btcguild does not care about passwords for the stratum servers so use "123"
sr. member
Activity: 258
Merit: 250
Zoinks! Its the Miner Miner Forty-Niner!
This page has a good overview of how to build cgminer:
http://techblog.sethleedy.name/?p=24276

1. Install the dependencies using apt-get
2. Download cgminer v3.1.1 from here: https://github.com/ckolivas/cgminer/tags
3. Unzip or untar it somewhere in your home directory.
4. cd into the cgminer directory
5. Run "./autogen.sh" since you downloaded the zip/tar from github
6. Run "./configure --enable-icarus" (icarus support is required for the erupter)
7. Run "make" to build cgminer
8. Run cgminer with the icarus options listed earlier in this thread and one -S /dev/ttyUSBX for each of your erupters, where X is the number of the unit starting from zero.

If you get errors in any of the autogen/configure/make steps, it's likely there is a missing dependency that needs to be installed with apt-get.

HTH
SUCCESS! Thank you so much!
 Cheesy

I have been running my Raspberry Pi with cgminer 3.1.1 and just one block erupter. Does the pi give the erupters high hardware failures for everyone?
https://www.dropbox.com/s/fpxc6q94gqix9zl/RPi-CGMiner-1Erupter-1Hour.png

I can't run plain cgminer.  My computer gives a system error, "The program can't start because OpenCL.dll is missing from your computer.  Try reinstalling the program to fix the problem."

How do I reinstall that?  Reformat?

COM3 is what my devices menu call it.

Thanks!

Install the OpenCL SDK included w AMD's Catalyst drivers.
(It's an open source platform for GPU hardware)
Yes. This. I got mine from here.

http://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/
full member
Activity: 140
Merit: 100
I can't run plain cgminer.  My computer gives a system error, "The program can't start because OpenCL.dll is missing from your computer.  Try reinstalling the program to fix the problem."

How do I reinstall that?  Reformat?

COM3 is what my devices menu call it.

Thanks!

Install the OpenCL SDK included w AMD's Catalyst drivers.
(It's an open source platform for GPU hardware)
hero member
Activity: 752
Merit: 500
Rounder, Thank you so much! Ill have to try this out tonight after work.
Cheesy

joae1975, Try running cgminer.exe instead of the cgminer-nogpu.exe with a .bat that just has this one line.
Quote
cgminer.exe --disable-gpu --icarus-options 115200:1:1 --icarus-timing 3.0=100 -S COM3

In my experience with cgminer 3.1.1, it asked me for the pool information the first time i started it up and continues to use it whenever i close and re-open cgminer. If it doesnt ask, you can go into the [p]ool settings and add your pool yourself. You can check out my post on page two of this thread and see if what i did could help you at all. Im using windows 7 32 bit and cgminer as well.
Wink

Also, im sure you did this correctly but i gotta ask anyway, COM3 is the correct COM# for your erupter right?
I can't run plain cgminer.  My computer gives a system error, "The program can't start because OpenCL.dll is missing from your computer.  Try reinstalling the program to fix the problem."

How do I reinstall that?  Reformat?

COM3 is what my devices menu call it.

Thanks!
newbie
Activity: 27
Merit: 0
Well for what it's worth, here are my results of building and testing cgminer 3.2.0 on a Raspberry Pi running MinePeon-2013-05-25 (all in all pretty straightforward). Please consider, as a test, I did all this as root which might not be the best choice if you want to "update" your Minepeon system with it later on.

Imagine I'm logged in through ssh, I did a system upgrade beforehand.
Code:
pacman -Syu

Then I got the sources from the repo and built cgminer (btw, you need at least "--enable-icarus" for the USB Block Erupter to be supported). It suggests a little different compile flags in the README, you might consider using those.
Code:
cd ~ ; mkdir src ; cd src
git clone https://github.com/ckolivas/cgminer.git
cd cgminer
CFLAGS="-g -W -Wall" ./autogen.sh --enable-bflsc --enable-icarus --enable-bitforce --enable-modminer --enable-ztex
make

This should compile cgminer without errors obviously. Don't forget to stop any mining tool that might be running.
Code:
systemctl stop cgminer
systemctl stop bfgminer

Optional but lets start cgminer in a screen window, always nice.
Code:
screen

Then I just ran cgminer without any special options.
Code:
cd ~/src/cgminer
./cgminer -o http://: -u -p (or to set difficulty if supported by pool i.e. "d=2")

It threw some "comms error" msgs but after a sec all miners showed up and started hashing.  Cool

Here are my stats with a diff of 1 at start and 2 hours later (2 Lancelots and 5 USB Erupter). I still have to investigate the exceptionally high HW errors on 2 of the USB Erupters (But I got them too using the "build-in" versions of cgminer and bfgminer when I started hashing with these babys).

http://i.imgur.com/1e4HylS.png

http://i.imgur.com/R95uwGC.png

(seems cgminer sometimes reports wrong speeds like on BLT 1 in the 2nd pic, but that is sporadic and it is correct again after a short while, well here at least)

So all in all cgminer performs pretty nicely on my Pi. Thanks to the devs for all the effort they put into it!

Here's my setup: https://bitcointalksearch.org/topic/m.2388932
USB Hub I'm using (5V/3.5A): http://www.amazon.de/DeLock-Externer-USB-A-Buchse-Netzteil/dp/B002YCIPD6/ref=sr_1_1?ie=UTF8
sr. member
Activity: 258
Merit: 250
Zoinks! Its the Miner Miner Forty-Niner!
Rounder, Thank you so much! Ill have to try this out tonight after work.
Cheesy

joae1975, Try running cgminer.exe instead of the cgminer-nogpu.exe with a .bat that just has this one line.
Quote
cgminer.exe --disable-gpu --icarus-options 115200:1:1 --icarus-timing 3.0=100 -S COM3

In my experience with cgminer 3.1.1, it asked me for the pool information the first time i started it up and continues to use it whenever i close and re-open cgminer. If it doesnt ask, you can go into the [p]ool settings and add your pool yourself. You can check out my post on page two of this thread and see if what i did could help you at all. Im using windows 7 32 bit and cgminer as well.
Wink

Also, im sure you did this correctly but i gotta ask anyway, COM3 is the correct COM# for your erupter right?
hero member
Activity: 752
Merit: 500
Using cgminer on windows 7

Drivers installed with zadig as described and can view in device manager

I set up a .bat file and I when I try to run it, it flashes on the screen and automatically closes. Says "-S unrecognized option" Any ideas why?  I unchecked "hide extensions for all file types" as instructed when creating a .bat file.

My text in the bat file reads as follows: (replacing user/pass with xxx/yyy)

C:\cgminer\cgminer-nogpu.exe -o http://rr.btcmp.com:8332 -u xxx -p yyy d --icarus-options 115200:1:1 --icarus-timing 3.0=100 -S //./COM3

The pathway is correct.  Can anyone see any problems?  Only 1 miner plugged into usb port. Thanks!

Try COM3 instead of //./COM3

Are you sure you are using capital S?

And set the directory.

So you should have this in your bat:
Quote
cd \cgminer
cgminer-nogpu.exe --icarus-options 115200:1:1 --icarus-timing 3.0=100 -S COM3 -o http://rr.btcmp.com:8332 -u xxx -p yyy
pause
(pause optional)
This is what I get.  Without the pause, the window closes.


newbie
Activity: 24
Merit: 0

I plan to get cgminer compiled on my Raspberry Pi Model B. Can anyone help a Linux noob compile cgminer 3.1.1 on a Raspberry Pi?
 Embarrassed

Which linux distribution are you running on your raspberry pi?
2013-05-25-wheezy-raspbian
http://www.raspberrypi.org/downloads

Its debian but made for the pi.

This page has a good overview of how to build cgminer:
http://techblog.sethleedy.name/?p=24276

1. Install the dependencies using apt-get
2. Download cgminer v3.1.1 from here: https://github.com/ckolivas/cgminer/tags
3. Unzip or untar it somewhere in your home directory.
4. cd into the cgminer directory
5. Run "./autogen.sh" since you downloaded the zip/tar from github
6. Run "./configure --enable-icarus" (icarus support is required for the erupter)
7. Run "make" to build cgminer
8. Run cgminer with the icarus options listed earlier in this thread and one -S /dev/ttyUSBX for each of your erupters, where X is the number of the unit starting from zero.

If you get errors in any of the autogen/configure/make steps, it's likely there is a missing dependency that needs to be installed with apt-get.

HTH
newbie
Activity: 18
Merit: 0
Mine just started working Smiley Problem is I can't see what i did any different this time. It does mention here that you have to replug it in between trying different versions. I left it plugged in while i was trying different versions etc... Will post if I find out any more info that might be of use to others in the same situation.
legendary
Activity: 1092
Merit: 1001
Touchdown
Using cgminer on windows 7

Drivers installed with zadig as described and can view in device manager

I set up a .bat file and I when I try to run it, it flashes on the screen and automatically closes. Says "-S unrecognized option" Any ideas why?  I unchecked "hide extensions for all file types" as instructed when creating a .bat file.

My text in the bat file reads as follows: (replacing user/pass with xxx/yyy)

C:\cgminer\cgminer-nogpu.exe -o http://rr.btcmp.com:8332 -u xxx -p yyy d --icarus-options 115200:1:1 --icarus-timing 3.0=100 -S //./COM3

The pathway is correct.  Can anyone see any problems?  Only 1 miner plugged into usb port. Thanks!

Try COM3 instead of //./COM3

Are you sure you are using capital S?

And set the directory.

So you should have this in your bat:
Quote
cd \cgminer
cgminer-nogpu.exe --icarus-options 115200:1:1 --icarus-timing 3.0=100 -S COM3 -o http://rr.btcmp.com:8332 -u xxx -p yyy
pause
(pause optional)
Pages:
Jump to: