Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: Yinero on September 23, 2013, 10:08:42 AM



Title: How do you run BFGminer as a blade proxy??
Post by: Yinero on September 23, 2013, 10:08:42 AM
So with how faulty the stratum proxy has become over at Slush's pool I've been looking for a new one. Everything points at BFGminer how ever I can't find any documentation to run it as a stratum proxy for my BE Blade. I've tried the web proxy and for some reason my blades only run at 50% efficiency when doing so. When the original stratum proxy was working just fine my miners were going at 110%. Any help is appreciated, as I've done a lot of searching and can't find an answer...


Title: Re: How do you run BFGminer as a blade proxy??
Post by: frankenmint on September 23, 2013, 10:10:53 AM
correct me if I'm wrong but I thought stratum was already built in, you simply need to set your options as -S All  on the command line arguments and you're all set.


Title: Re: How do you run BFGminer as a blade proxy??
Post by: Yinero on September 23, 2013, 10:25:02 AM
correct me if I'm wrong but I thought stratum was already built in, you simply need to set your options as -S All  on the command line arguments and you're all set.

I honestly don't know. All that I do know is that BFGminer recently started to get Blades to work on it. I can't find any documentation on getting it running since the blade isn't connected to my PC and it is it's own device and all.


Title: Re: How do you run BFGminer as a blade proxy??
Post by: HellDiverUK on September 23, 2013, 10:30:28 AM
You need to read README.ASIC.  Info is there. :)

Basically you need to add --http-port 8330 to the end of your command line, then point your Blade to the IP of the machine running BFG.  Each Blade needs to have a unique username (it doesn't matter what, anything will do as long as it's unique).

Note this option is only available on Win32 version, and under Linux.  OpenWRT and Win64 don't have it.

Here's the section in README.ASIC if you couldn't be bothered reading it yourself:

Code:
BLOCK ERUPTER BLADE
-------------------

Blades communicate over Ethernet using the old but simple getwork mining
protocol. If you build BFGMiner with libmicrohttpd, you can have it work with
one or more blades. First, start BFGMiner with the --http-port option. For
example:
    bfgminer --http-port 8330
Then configure your blade to connect to your BFGMiner instance on the same port,
with a unique username per blade. It will then show up as a SGW device and
should work more or less like any other miner.


Title: Re: How do you run BFGminer as a blade proxy??
Post by: Yinero on September 23, 2013, 10:42:14 AM
You need to read README.ASIC.  Info is there. :)

Basically you need to add --http-port 8330 to the end of your command line, then point your Blade to the IP of the machine running BFG.  Each Blade needs to have a unique username (it doesn't matter what, anything will do as long as it's unique).

Note this option is only available on Win32 version, and under Linux.  OpenWRT and Win64 don't have it.

Here's the section in README.ASIC if you couldn't be bothered reading it yourself:

Code:
BLOCK ERUPTER BLADE
-------------------

Blades communicate over Ethernet using the old but simple getwork mining
protocol. If you build BFGMiner with libmicrohttpd, you can have it work with
one or more blades. First, start BFGMiner with the --http-port option. For
example:
    bfgminer --http-port 8330
Then configure your blade to connect to your BFGMiner instance on the same port,
with a unique username per blade. It will then show up as a SGW device and
should work more or less like any other miner.

The readme that I have says nothing about blades, jsut thats they have been added to the support of BFGminer. Anyhow I don't run win32... so I don't know what I'm going to do to fix this bullshit...


Title: Re: How do you run BFGminer as a blade proxy??
Post by: HellDiverUK on September 23, 2013, 12:33:45 PM

The readme that I have says nothing about blades, jsut thats they have been added to the support of BFGminer. Anyhow I don't run win32... so I don't know what I'm going to do to fix this bullshit...

Well, I copied that straight out of the README.ASIC - it's not my fault you can't download some files properly.  You asked for help, I told you how to get it working.  

If you'd spent 5 minutes reading the BFGMiner thread, you'd see why it's only Win32 and Linux, but apparently you prefer posting a new thread then complaining bitterly when the solution doesn't suit you.

Next time, you can stick it up your ass.   ::)


Title: Re: How do you run BFGminer as a blade proxy??
Post by: Yinero on September 23, 2013, 01:00:59 PM

The readme that I have says nothing about blades, jsut thats they have been added to the support of BFGminer. Anyhow I don't run win32... so I don't know what I'm going to do to fix this bullshit...

Well, I copied that straight out of the README.ASIC - it's not my fault you can't download some files properly.  You asked for help, I told you how to get it working.  

If you'd spent 5 minutes reading the BFGMiner thread, you'd see why it's only Win32 and Linux, but apparently you prefer posting a new thread then complaining bitterly when the solution doesn't suit you.

Next time, you can stick it up your ass.   ::)

My bad, wasn't even angry at you. And all I read was the README not the .asic version. I'm mad because these blades have been nothing but up's and down's and its only been on the networking end. I figured the electrical work would be the hard part but that wasn't the case at all. I just want to get these things up and running.

As I have no experience running BFG miner outside of minepeon on my Raspberry pi... Could someone show me what I would type in for the command to run a blade on BFGminer?


Title: Re: How do you run BFGminer as a blade proxy??
Post by: HellDiverUK on September 23, 2013, 01:07:52 PM

The readme that I have says nothing about blades, jsut thats they have been added to the support of BFGminer. Anyhow I don't run win32... so I don't know what I'm going to do to fix this bullshit...

Well, I copied that straight out of the README.ASIC - it's not my fault you can't download some files properly.  You asked for help, I told you how to get it working.  

If you'd spent 5 minutes reading the BFGMiner thread, you'd see why it's only Win32 and Linux, but apparently you prefer posting a new thread then complaining bitterly when the solution doesn't suit you.

Next time, you can stick it up your ass.   ::)

My bad, wasn't even angry at you. And all I read was the README not the .asic version. I'm mad because these blades have been nothing but up's and down's and its only been on the networking end. I figured the electrical work would be the hard part but that wasn't the case at all. I just want to get these things up and running.

As I have no experience running BFG miner outside of minepeon on my Raspberry pi... Could someone show me what I would type in for the command to run a blade on BFGminer?

Yeah, I have two of them, one has been running perfectly, the other is up and down like a cheap whore's knickers.  ::) 

You need to:

bfgminer.exe -G --http-port 8330

BFG should start and ask you for pool details etc.  Set those up and save the config as usual.  Once BFG is running, point the Blade to the IP address of the PC and port as 8330.  Eac Blade must have a unique and non-important username and password.

I've found BFG crashes first time the Blade connects, just running BFG again allows the Blade to connect OK.  Luke-Jr is aware of the crashing issue.  Once it's running it works OK.


Title: Re: How do you run BFGminer as a blade proxy??
Post by: hendo420 on October 19, 2013, 05:11:39 AM
Any idea what I'm doing wrong?

http://i67.photobucket.com/albums/h320/hendo420/idkwhatimdoingwrong_zps9e6d7f06.png (http://s67.photobucket.com/user/hendo420/media/idkwhatimdoingwrong_zps9e6d7f06.png.html)


Title: Re: How do you run BFGminer as a blade proxy??
Post by: HellDiverUK on October 20, 2013, 10:13:21 AM
Any idea what I'm doing wrong?

http://i67.photobucket.com/albums/h320/hendo420/idkwhatimdoingwrong_zps9e6d7f06.png (http://s67.photobucket.com/user/hendo420/media/idkwhatimdoingwrong_zps9e6d7f06.png.html)

Looks fine to me, the only thing I'd suggest is trying a different pool.  Your config on your Blade and BFGMiner looks perfect.



Title: Re: How do you run BFGminer as a blade proxy??
Post by: caminilegroup on November 25, 2013, 04:47:33 AM
Mabey someone can shed a little light on this.

Fresh install ubuntu 12.04 server 32bit. ppa install bfgminer

michael@bfgminer-proxy:~$ uname -a
Linux bfgminer-proxy 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 i686 i686 i386 GNU/Linux
michael@bfgminer-proxy:~$ bfgminer -V
bfgminer 3.6.0
michael@bfgminer-proxy:~$ bfgminer --http-port
[2013-11-24 22:26:24] bfgminer: --http-port: unrecognized option                   
michael@bfgminer-proxy:~$

Ok, so I purge bfgminer from the system, git, compile, same thing.

Readme says it is enabled by default for compile. I'm at a lost here.

I tried running it on my xp machine and just got dll errors, I would prefer to have it on my ubuntu server.

Michael


Title: Re: How do you run BFGminer as a blade proxy??
Post by: HellDiverUK on November 25, 2013, 11:22:53 AM
You need to specify which port you want, for example --http-port 8330

Just adding --http-port won't work.


Title: Re: How do you run BFGminer as a blade proxy??
Post by: caminilegroup on November 25, 2013, 01:29:40 PM
You need to specify which port you want, for example --http-port 8330

Just adding --http-port won't work.

michael@bfgminer-proxy:~/bfgminer$ ./bfgminer --http-port 8330
 [2013-11-25 07:29:19] ./bfgminer: --http-port: unrecognized option                    
michael@bfgminer-proxy:~/bfgminer$

The point of me showing it without the port was to show the output. With the output stating unrecognized option shows it was not compiled with it.

My question is how to get it compiled with it. The readme states it is enabled by default.


Title: Re: How do you run BFGminer as a blade proxy??
Post by: nwoolls on November 25, 2013, 01:39:25 PM
The point of me showing it without the port was to show the output. With the output stating unrecognized option shows it was not compiled with it.

My question is how to get it compiled with it. The readme states it is enabled by default.

Compile it on a system with libmicrohttpd (http://www.gnu.org/software/libmicrohttpd/) installed.


Title: Re: How do you run BFGminer as a blade proxy??
Post by: HellDiverUK on November 25, 2013, 01:42:29 PM
You need to specify which port you want, for example --http-port 8330

Just adding --http-port won't work.

michael@bfgminer-proxy:~/bfgminer$ ./bfgminer --http-port 8330
 [2013-11-25 07:29:19] ./bfgminer: --http-port: unrecognized option                    
michael@bfgminer-proxy:~/bfgminer$

The point of me showing it without the port was to show the output. With the output stating unrecognized option shows it was not compiled with it.

My question is how to get it compiled with it. The readme states it is enabled by default.

Oh, excuse me for not spotting that you'd intentionally butchered the syntax for effect.  ::)

As nwoolls says, you need to have libmicrohttpd installed too - I'm pretty sure it's listed in the dependencies (was the last time I looked, because I remember having to install it).


Title: Re: How do you run BFGminer as a blade proxy??
Post by: caminilegroup on November 25, 2013, 01:43:12 PM
The point of me showing it without the port was to show the output. With the output stating unrecognized option shows it was not compiled with it.

My question is how to get it compiled with it. The readme states it is enabled by default.

Compile it on a system with libmicrohttpd (http://www.gnu.org/software/libmicrohttpd/) installed.

Did that.

------------------------------------------------------------------------
bfgminer 3.6.0 configuration options summary
------------------------------------------------------------------------

  CFLAGS...............: -I/usr/include/ncursesw -pthread -g -O2 -I/usr/include/libusb-1.0 -pthread -Ilibblkmaker
  LDFLAGS..............: -pthread -Llibblkmaker/.libs -Wl,-rpath,\$$ORIGIN/libblkmaker/.libs,-zorigin -lpthread -lcurl -ljansson -lncursesw -ltinfo -lm -ludev -lusb-1.0 -lrt -lblkmaker_jansson-0.1 -lblkmaker-0.1
  Installation.prefix..: /usr/local

  Enabled..Drivers.....: avalon bigpic bitforce bitfury_gpio cairnsmore erupter icarus klondike littlefury modminer proxy proxy:stratum x6500 ztex
  Disabled.Drivers.....: bfsb cpu hashbuster knc metabank nanofury opencl proxy:getwork
    To enable proxy:getwork, install libmicrohttpd 0.9.5+
    To enable nanofury, install hidapi
    To enable hashbuster, install hidapi
  Enabled..Algorithms..: SHA256d
  Disabled.Algorithms..: scrypt
  Enabled..Options.....: ncursesw5
  Disabled.Options.....:

michael@bfgminer-proxy:~/bfgminer$

michael@bfgminer-proxy:~$ sudo apt-get install libmicrohttpd*
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Note, selecting 'libmicrohttpd5' for regex 'libmicrohttpd*'
Note, selecting 'libmicrohttpd-dbg' for regex 'libmicrohttpd*'
Note, selecting 'libmicrohttpd-dev' for regex 'libmicrohttpd*'
libmicrohttpd-dev is already the newest version.
libmicrohttpd5 is already the newest version.

libmicrohttpd5 set to manually installed.
The following NEW packages will be installed:
  libmicrohttpd-dbg
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 46.8 kB of archives.
After this operation, 147 kB of additional disk space will be used.
Do you want to continue [Y/n]?


Title: Re: How do you run BFGminer as a blade proxy??
Post by: caminilegroup on November 25, 2013, 05:01:58 PM
Ok, I figured out the issue.

Downloaded lastest ubuntu, 13.10 32bit server. Installed updated, and volia, works like a charm.

12.04 didn't have the correct microhttpd.

Michael


Title: Re: How do you run BFGminer as a blade proxy??
Post by: colemab on December 06, 2013, 03:06:33 AM
Ok, I figured out the issue.

Downloaded lastest ubuntu, 13.10 32bit server. Installed updated, and volia, works like a charm.

12.04 didn't have the correct microhttpd.

Michael

For those of us still on 12.04 and not wanting to upgrade, what was the correct version/package that worked for you?


Title: Re: How do you run BFGminer as a blade proxy??
Post by: colemab on December 06, 2013, 03:24:39 AM
Ok, I figured out the issue.

Downloaded lastest ubuntu, 13.10 32bit server. Installed updated, and volia, works like a charm.

12.04 didn't have the correct microhttpd.

Michael

For those of us still on 12.04 and not wanting to upgrade, what was the correct version/package that worked for you?

It looks like downloading version 0.9.32 (http://www.gnu.org/software/libmicrohttpd/), configuring it, building it, and installing it is what was required to get it going on 12.04.

EDIT: Be sure to run 'sudo ldconfig' after the install or you might get this error:
error while loading shared libraries libmicrohttpd.so.10


Title: Re: How do you run BFGminer as a blade proxy??
Post by: ldm314 on December 09, 2013, 10:20:44 PM
Ok, I figured out the issue.

Downloaded lastest ubuntu, 13.10 32bit server. Installed updated, and volia, works like a charm.

12.04 didn't have the correct microhttpd.

Michael

For those of us still on 12.04 and not wanting to upgrade, what was the correct version/package that worked for you?

I installed the debian packages here and it works without issue: https://launchpad.net/~rbose-debianizer/+archive/gnunet/+build/4588989


Title: Re: How do you run BFGminer as a blade proxy??
Post by: PatMan on December 13, 2013, 08:30:14 PM
Ok, I figured out the issue.

Downloaded lastest ubuntu, 13.10 32bit server. Installed updated, and volia, works like a charm.

12.04 didn't have the correct microhttpd.

Michael

For those of us still on 12.04 and not wanting to upgrade, what was the correct version/package that worked for you?

It looks like downloading version 0.9.32 (http://www.gnu.org/software/libmicrohttpd/), configuring it, building it, and installing it is what was required to get it going on 12.04.

EDIT: Be sure to run 'sudo ldconfig' after the install or you might get this error:
error while loading shared libraries libmicrohttpd.so.10

Thankyou-Thankyou-Thankyou-Thankyou!!!!!!!!!!

You, my good sir, have just ended hours of frustration & hair pulling here. I'm a semi noob to Xubuntu, so thought it was me doing something wrong - I've been searching & reading so many different guides on this without success - until I stumbled upon this thread. It worked a treat - I'm forever in your debt my good man.

Praise the Cyber Gods!!  ;D ;D


Title: Re: How do you run BFGminer as a blade proxy??
Post by: colemab on December 13, 2013, 11:44:09 PM
For those of us still on 12.04 and not wanting to upgrade, what was the correct version/package that worked for you?

It looks like downloading version 0.9.32 (http://www.gnu.org/software/libmicrohttpd/), configuring it, building it, and installing it is what was required to get it going on 12.04.

EDIT: Be sure to run 'sudo ldconfig' after the install or you might get this error:
error while loading shared libraries libmicrohttpd.so.10

Thankyou-Thankyou-Thankyou-Thankyou!!!!!!!!!!

You, my good sir, have just ended hours of frustration & hair pulling here. I'm a semi noob to Xubuntu, so thought it was me doing something wrong - I've been searching & reading so many different guides on this without success - until I stumbled upon this thread. It worked a treat - I'm forever in your debt my good man.

Praise the Cyber Gods!!  ;D ;D

If you are talking to me about getting it working on 12.04 - you are welcome.  It took some hair pulling on my end to get it working so I thought I would share what I learned  8)


Title: Re: How do you run BFGminer as a blade proxy??
Post by: PatMan on December 13, 2013, 11:58:35 PM
Yup, I am. I'm surprised Luke didn't put the info in the readme - would have saved us both some time & trouble eh?

Peace  ;D


Title: Re: How do you run BFGminer as a blade proxy??
Post by: aznatama on December 14, 2013, 12:11:20 PM
Can anyone provide me a STEP BY STEP on installing this httpd thing?

I cannot download newer versions of debian since I'm trying to get GMAT working, but I can't seem to find any respoitories w/ the correct file.  I have installed httpd5 from the 3 repositories in the list, but that's all I could find.

I found libmicrohttpd 9.20, but that requires httpf10, which requires about 10 other deb packages....  This is so painful and frustrating.  I just want a simply proxy to run on my linux box... in fact, I NEED it on my linux box in order to run my entire blade farm...


please help!!!!


Title: Re: How do you run BFGminer as a blade proxy??
Post by: aznatama on December 14, 2013, 12:25:39 PM
Ok, I figured out the issue.

Downloaded lastest ubuntu, 13.10 32bit server. Installed updated, and volia, works like a charm.

12.04 didn't have the correct microhttpd.

Michael

For those of us still on 12.04 and not wanting to upgrade, what was the correct version/package that worked for you?

I installed the debian packages here and it works without issue: https://launchpad.net/~rbose-debianizer/+archive/gnunet/+build/4588989

I looked at the 3 deb files, but each depends on each other, so how did you install them? I get errors for all of them when trying to install...


Title: Re: How do you run BFGminer as a blade proxy??
Post by: ldm314 on December 20, 2013, 05:35:16 AM
Ok, I figured out the issue.

Downloaded lastest ubuntu, 13.10 32bit server. Installed updated, and volia, works like a charm.

12.04 didn't have the correct microhttpd.

Michael

For those of us still on 12.04 and not wanting to upgrade, what was the correct version/package that worked for you?

I installed the debian packages here and it works without issue: https://launchpad.net/~rbose-debianizer/+archive/gnunet/+build/4588989

I looked at the 3 deb files, but each depends on each other, so how did you install them? I get errors for all of them when trying to install...

Installed them with dpkg -i. You only need two of them, these are the exact commands I did:

  sudo dpkg -i libmicrohttpd10_0.9.27-0gnu1~12.04_i386.deb
  sudo dpkg -i libmicrohttpd-dev_0.9.27-0gnu1~12.04_i386.deb

Running Ubuntu 12.04.1 LTS


Title: Re: How do you run BFGminer as a blade proxy??
Post by: Lander12 on December 21, 2013, 10:30:57 PM
Help. will give .04BTC for a complete step by step guild on have to configure bfgminer 3.8.0 on Ubuntu 13.10 64bit.
I have read this post up and down and still can't figure it out. I am a little newb so if there is a off site information please include it in your post.
My setup right now
mike@mike-Qosmio-X775:~$ uname -a
Linux mike-Qosmio-X775 3.11.0-14-generic #21-Ubuntu SMP Tue Nov 12 17:04:55 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
mike@mike-Qosmio-X775:~$ bfgminer -V
bfgminer 3.8.0


Title: Re: How do you run BFGminer as a blade proxy??
Post by: Lander12 on December 21, 2013, 11:53:29 PM
Woot figured it out. All I need to do was download the 3.8.0 win 32. Not run it on a 32bit system.
Use the --http-port #### on you command line and then run, really simple.


Title: Re: How do you run BFGminer as a blade proxy??
Post by: Anonymailer on December 24, 2013, 11:29:51 PM
Has anyone else compared the speed running through bfgminer to the speed running through Slush's proxy? Also, does the Proxy miner show up in the bfgminer API Output?


Title: Re: How do you run BFGminer as a blade proxy??
Post by: uberdag on February 07, 2014, 09:14:39 PM
post so i can find it again


Title: Re: How do you run BFGminer as a blade proxy??
Post by: lin0sspice on February 24, 2014, 11:51:25 PM
Can you run 5 cubes as same proxy ?
ANd same user ? U:P,U:P ?
on same 5 cubes ?


Title: Re: How do you run BFGminer as a blade proxy??
Post by: Anonymailer on February 25, 2014, 12:01:34 AM
Can you run 5 cubes as same proxy ?
ANd same user ? U:P,U:P ?
on same 5 cubes ?
yeah but just shows the total hash rate for the whole proxy in bfgminer


Title: Re: How do you run BFGminer as a blade proxy??
Post by: nwoolls on February 25, 2014, 05:20:22 PM
Can you run 5 cubes as same proxy ?
ANd same user ? U:P,U:P ?
on same 5 cubes ?
yeah but just shows the total hash rate for the whole proxy in bfgminer

If you use separate worker names for each device they show up as separate devices in bfgminer.


Title: Re: How do you run BFGminer as a blade proxy??
Post by: sunjar2013 on March 14, 2014, 12:44:37 AM
Has anyone else compared the speed running through bfgminer to the speed running through Slush's proxy? Also, does the Proxy miner show up in the bfgminer API Output?

I don't know how to set my blade via Slush's proxy,  I was trying use this command:

mining_proxy.exe -o localhost -p 3333 -cu bitcoinrpc -cp password (I already add rpcport=3333 in bitcoin.conf, and my blade point to localhost:8332)

or
mining_proxy.exe -o localhost -p 3333 -cu bitcoinrpc -cp password -sh localhost -sp 3333 -oh localhost -gp 8332

All of them doesn't work.

Would you please tell me how to setuo it. Thank you.