Bitcoin Forum
March 27, 2017, 06:38:09 PM *
News: Latest stable version of Bitcoin Core: 0.14.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 [22] 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 »
  Print  
Author Topic: BFGMiner 5.4.2: GBT+Stratum, RPC, Mac/Linux/Win64, Antminer S1-S5, solo stratum  (Read 541206 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
toptek
Hero Member
*****
Offline Offline

Activity: 854


View Profile
September 07, 2015, 11:26:06 AM
 #421

Once again ty  


LUKE


 i have it complied and working inside minera as my main miner for my G black and Zeus miners and seems even more stable now.


but yea how about that S5 support, ofc, when you get time  Smiley .
1490639889
Hero Member
*
Offline Offline

Posts: 1490639889

View Profile Personal Message (Offline)

Ignore
1490639889
Reply with quote  #2

1490639889
Report to moderator
1490639889
Hero Member
*
Offline Offline

Posts: 1490639889

View Profile Personal Message (Offline)

Ignore
1490639889
Reply with quote  #2

1490639889
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
toptek
Hero Member
*****
Offline Offline

Activity: 854


View Profile
September 07, 2015, 11:34:04 AM
 #422

Hi Luke,

I am interested in mining on raspberry PI 2 with latest version of bfgminer.

I read readme and I unsure to the dependencies that I need to built miner as shown on bellow to enable scrypt and gridseed asic 80 chip!

I left some other commands out in below code to build miner as I am not sure what need entered after dependencies installed.

Code:
git clone https://github.com/luke-jr/bfgminer.git
cd bfgminer
...

Can you help by providing complete codes?
I assume everything is completed, bfgminer will disable CPU and radeon GPU?

Well, I know enough how log in PI 2 at least!

when you compile it with --enable-scrypt it should give you all the driver and packages you need . there was a bug a while back that didn't down load all the right packages you had do some of them manually but that seems to be fixed or was .

here is a kind of detailed post i made on the minera thread some one wanted to know how to compile BFG , I'm sure there is a few things you can leave out etc, but it may help .

https://bitcointalk.org/index.php?topic=596620.msg12033743#msg12033743


I'm using it inside minera right now at bfg 5.3 Smiley . with my gblack which has 5 blades with two boards per blade/heat sink and the above command line some one gave should work.
korminer
Newbie
*
Offline Offline

Activity: 13


View Profile
September 07, 2015, 04:01:48 PM
 #423

Firstly thanks Luke for the great software.

@splat44, I first tried this on my Rpi B, which I don't think it can handle it kept messing up the queue, but Rpi2 maybe man enough. Also with the dependencies if you look on the github page he lists the following:

Code:
build-essential autoconf automake libtool pkg-config libcurl4-gnutls-dev libjansson-dev uthash-dev libncursesw5-dev libudev-dev libusb-1.0-0-dev libevent-dev libmicrohttpd-dev hidapi

All of which should be OK from the repository (so "sudo aptitude install ..."). Except I had to remove the last dependencies (hiapi).

@Luke, what is this dependency I couldn't get (hiapi). By the name I'm guesing this is the API which I would be interested in maybe using. Is there something wrong with this or can I just grab it from somewhere else?

Thanks
.anto.
Full Member
***
Offline Offline

Activity: 152


View Profile
September 07, 2015, 04:04:44 PM
 #424

You're right I am not familiar with cross-compiling process and for using dpkg-buildpackage and the all dependencies require is still unclear even read that!

The method using dpkg-buildpackage is the prefer method to build the package (duh!) in Debian and its derivatives. If you are not familiar with that as well and you still want to try it, you can natively compile BFGminer source from github on Raspberry Pi using the provided build scripts. Someone has actually already done that for gridseed device and explained what he/she had done on this topic. Good luck!
pekatete
Hero Member
*****
Offline Offline

Activity: 518



View Profile WWW
September 07, 2015, 04:14:37 PM
 #425


..... what is this dependency I couldn't get (hiapi). By the name I'm guesing this is the API which I would be interested in maybe using. Is there something wrong with this or can I just grab it from somewhere else?


I thnk that will be hidapi

splat44
Sr. Member
****
Offline Offline

Activity: 246


View Profile
September 07, 2015, 06:16:30 PM
 #426

Ok, now it makes sense!

I just need few classifications, I repost those code just preventing you going back and forth!

code 1:
Quote
// update and install requires
sudo apt-get update
sudo apt-get install build-essential autoconf automake libtool pkg-config libcurl4-gnutls-dev
sudo apt-get install libjansson-dev uthash-dev libncurses5-dev libudev-dev libusb-1.0-0-dev libevent-dev

code 2:
Code:
// build miner
git clone -b feature/gridseed-support https://github.com/nwoolls/bfgminer
cd bfgminer
./autogen.sh
./configure CFLAGS="-O3" --enable-scrypt --enable-gridseed
make
sudo make install
sudo ldconfig
sudo nano bfgminer.conf

code 3 and code 4 is undertood, few questions needed being answered to 2nd code though!
1) git from code can be replaced with https://github.com/luke-jr/bfgminer ?
2) is CFLAGS="-O3 is needed why or why not?
3) --enable-gridseed that include those of 40 chips blade correct?
If not then what?
4) If I don't want gpu support then no action is needed in code right?

code 3:
Code:
// make the bfgminer.conf file
{
"pools" : [
        {
                "name" : "MyPool1",
                "url" : "stratum+tcp://mypool.url.com:3333",
                "user" : "myworker",
                "pass" : "x",
                "pool-priority" : "0"
        }
],
"api-allow" : "W:127.0.0.1,192.168.1/24",
"api-listen" : true
}

code 3:
Code:
// make the bfgminer.conf file
{
"pools" : [
        {
                "name" : "MyPool1",
                "url" : "stratum+tcp://mypool.url.com:3333",
                "user" : "myworker",
                "pass" : "x",
                "pool-priority" : "0"
        }
],
"api-allow" : "W:127.0.0.1,192.168.1/24",
"api-listen" : true
}

Does "api-allows" is my router IP or my rpi device ip?

code 4
Code:
// make the bfgminer.conf file.
sudo ./bfgminer -S gridseed:all --set-device gridseed:clock=850 --failover-only --scrypt -c bfgminer.conf

If 3 question is yes then we execute last code as it is!

Thanks for pointing out in the right it sure saves lots of time! LOL!
You're right I am not familiar with cross-compiling process and for using dpkg-buildpackage and the all dependencies require is still unclear even read that!

The method using dpkg-buildpackage is the prefer method to build the package (duh!) in Debian and its derivatives. If you are not familiar with that as well and you still want to try it, you can natively compile BFGminer source from github on Raspberry Pi using the provided build scripts. Someone has actually already done that for gridseed device and explained what he/she had done on this topic. Good luck!

17YatRuTzSpq7eRz2c5EZeFy5B5U82Xt9R (BTC)
Earn btc for view video, logging and solving captcha
pekatete
Hero Member
*****
Offline Offline

Activity: 518



View Profile WWW
September 07, 2015, 08:13:09 PM
 #427

Quote
Does "api-allows" is my router IP or my rpi device ip?
Nope, those are the IP's of the machines that can access the API; the first (127.0.0.1) is for the machine that bfgminer is running on, i.e if an rPi, then you can query the bfgminer API in an SSH window on the rPi and the second (i.e  the 192.168.1/24) is for, e.g your computer, more pertinently the network, where you'd want to access the bfgminer API from.

splat44
Sr. Member
****
Offline Offline

Activity: 246


View Profile
September 07, 2015, 08:46:28 PM
 #428

Ah, so the first should change with rpi ip correct?



Quote
Does "api-allows" is my router IP or my rpi device ip?
Nope, those are the IP's of the machines that can access the API; the first (127.0.0.1) is for the machine that bfgminer is running on, i.e if an rPi, then you can query the bfgminer API in an SSH window on the rPi and the second (i.e  the 192.168.1/24) is for, e.g your computer, more pertinently the network, where you'd want to access the bfgminer API from.

17YatRuTzSpq7eRz2c5EZeFy5B5U82Xt9R (BTC)
Earn btc for view video, logging and solving captcha
pekatete
Hero Member
*****
Offline Offline

Activity: 518



View Profile WWW
September 07, 2015, 08:51:00 PM
 #429

Ah, so the first should change with rpi ip correct?
Quote
Does "api-allows" is my router IP or my rpi device ip?
Nope, those are the IP's of the machines that can access the API; the first (127.0.0.1) is for the machine that bfgminer is running on, i.e if an rPi, then you can query the bfgminer API in an SSH window on the rPi and the second (i.e  the 192.168.1/24) is for, e.g your computer, more pertinently the network, where you'd want to access the bfgminer API from.

Nope. 127.0.0.1 is the loopback IP for the rPi (and the rPi is also on the network). Leave it alone, just change the network IP to reflect your local network if you want to be able to access the bfgminer API from any computer connected locally to your network, ie in the network IP range. NOTE: the network IP has 3 places followed by /24 as opposed to the usual four.

toptek
Hero Member
*****
Offline Offline

Activity: 854


View Profile
September 07, 2015, 09:03:38 PM
 #430

--enable-gridseed that include those of 40 chips blade correct?


by default using ./configure CFLAGS="-O3" --enable-scrypt when you compile it  should add support for all Grindseeds, at least it did for me for my G back and my 80 chip 5.2 MH speed GS when i had it. I even tested adding in --enable-gridseed either way it worked , i think adding that makes sure it enables support for all grindseeds, but it's not needed from what Ive done .but

 --enable-scrypt is no matter what if you want any kind of Scrypt support in BFG enabled.

I think CFLAGS is used for GCC optimization or any kind of optimization and  there is diff levels of speed you can set it at O2 O3 etc but I'm still learning how it all works and  can very well be wrong and first to admit it.
splat44
Sr. Member
****
Offline Offline

Activity: 246


View Profile
September 07, 2015, 10:05:18 PM
 #431

Thanks pekatete

Ok toptek,

I think I understand  CFLAGS!

I took a double at that and I seems to suspect that some string shouldn't be in:
Code:
// build miner
git clone -b feature/gridseed-support https://github.com/nwoolls/bfgminer
...

If I am using Git from above code, I can replace with: https://github.com/luke-jr/bfgminer ?
However, setting on that same line I wondering:

-b feature/gridseed-support
Should the complete above string be included


--enable-gridseed that include those of 40 chips blade correct?


by default using ./configure CFLAGS="-O3" --enable-scrypt when you compile it  should add support for all Grindseeds, at least it did for me for my G back and my 80 chip 5.2 MH speed GS when i had it. I even tested adding in --enable-gridseed either way it worked , i think adding that makes sure it enables support for all grindseeds, but it's not needed from what Ive done .but

 --enable-scrypt is no matter what if you want any kind of Scrypt support in BFG enabled.

I think CFLAGS is used for GCC optimization or any kind of optimization and  there is diff levels of speed you can set it at O2 O3 etc but I'm still learning how it all works and  can very well be wrong and first to admit it.

17YatRuTzSpq7eRz2c5EZeFy5B5U82Xt9R (BTC)
Earn btc for view video, logging and solving captcha
toptek
Hero Member
*****
Offline Offline

Activity: 854


View Profile
September 08, 2015, 01:24:24 AM
 #432

something like this ,

sudo git clone https://github.com/luke-jr/bfgminer.git
cd /bfgminer
sudo ./autogen.sh
sudo chmod +x ./configure  
sudo ./configure CFLAGS="-O3" --enable-scrypt --enable-broad-udevrules
sudo make
sudo make install
sudo ldconfig
lsusb

bfgminer --scrypt -S all -o your pool -u user -p PW

for my Gblade this is all i use

bfgminer --scrypt -o your pool -u user -p PW -S gsd:all --set gsd:clock=800


it stys at a steady stable 27 MH with low HW errors.

which i use every time there is a new BFG so far it works and adds supports for all my miners , if you watch at the end it tells you what is disabled and enabled and how to do it if it's not .

I do it inside a PI,  haven't tried in  windows yet but plan to. or know how to in windows with other software

cross compiling, I believe it's called Smiley .

I'm guessing at why you want those I know why just don't know the detailed way of explaining it were it makes sense .

this is not needed any more

build-essential autoconf automake libtool pkg-config libcurl4-gnutls-dev libjansson-dev uthash-dev libncursesw5-dev libudev-dev libusb-1.0-0-dev libevent-dev libmicrohttpd-dev hidapi

 if you  do this

sudo apt-get update
sudo apt-get upgrade


BFG does the rest unless you use a custom made bfg or fork of BFG then you may need to add some stuff inside the BFG folder for it to compile right which I know how to. but see no need right now for a custom fork , it seems really stable for any thing you throw at it + there has been no real hard ware that has needed a BFG fork or they dislike BFG.
I added --enable-broad-udevrules

 just encase after looking at the read me

Include udev rules for ambiguous devices which may not be miners

toptek
Hero Member
*****
Offline Offline

Activity: 854


View Profile
September 08, 2015, 02:11:03 AM
 #433


I took a double at that and I seems to suspect that some string shouldn't be in:
Code:
// build miner
git clone -b feature/gridseed-support https://github.com/nwoolls/bfgminer
...

If I am using Git from above code, I can replace with: https://github.com/luke-jr/bfgminer ?
However, setting on that same line I wondering:

-b feature/gridseed-support
Should the complete above string be included



Im not being a smart ass  i would ask

 nwoolls hes pretty cool to. if your using his miner, i think hes only dropping support for the remote software part of his miner not the miner it self .

but you can try . it can't hurt any thing . expect the time you waste doing it .

The way I do it works every time with minera or without it . I haven't used multi miner that much so can't say.

if you look at the BFG read me is says gridseed is enabled by default Smiley .

--disable-gridseed      Compile support for GridSeed (default enabled)




PS  you may need this, this  time around : it seems 5.3 didn't pick it up nor did  sudo apt-get update
sudo apt-get upgrade, just did a new SD install had to do that as well .

sudo apt-get -y install git-core build-essential autoconf automake libtool pkg-config libcurl4-gnutls-dev libjansson-dev uthash-dev libncursesw5-dev libudev-dev libusb-1.0-0-dev libevent-dev libmicrohttpd-dev libc-bin
toptek
Hero Member
*****
Offline Offline

Activity: 854


View Profile
September 08, 2015, 05:13:15 AM
 #434

again sorry you want it for a mac , yea id ask  nwoolls i have no idea how mac works sorry never owned one even thu my first PC was a apple that's about as far as I went with apple/Mac etc .
bmoscato
Sr. Member
****
Offline Offline

Activity: 258


View Profile
September 08, 2015, 02:36:33 PM
 #435

Were U1 and U2's supposed to change from AMU to CBM in 5.3.0?

This is what I was running 5.0.0 on a PC that I use for lottery:

Code:
bfgminer.exe -o stratum+tcp://solo.ckpool.org:3333 -u 14LxDWtRRdQAbnJdd4Ew5jwag8Bx9UfNRd -p x -S rockminer:all --set rockminer:clock=270 -S antminer:all --set-device antminer:clock=x0881 --api-listen --api-allow W:10.0.0/24
splat44
Sr. Member
****
Offline Offline

Activity: 246


View Profile
September 09, 2015, 02:39:38 AM
 #436

Just point out few things:
I am planning accessing the root by selecting password via remote aka putty.

You mention about you think that nwoolls dropping support for remote software in post #433
I'm sure you understand my reservation using his forked miner.

Yes, I agree on CFLAGS is GCC optimization and level of speed aka O2 O3.
Below link provides something on this and I hope it help:

http://www.linuxquestions.org/questions/linux-software-2/cflags-o2-o3-does-it-realy-matter-213039/#post1086566

About code you provided, You'll see areas that have cross-through and update what need to be included. Consider my finding below code and see if they make sense!

code:
sudo git clone https://github.com/luke-jr/bfgminer.git
cd /bfgminer
sudo ./autogen.sh
sudo chmod +x ./configure
sudo ./configure CFLAGS="-O3" --enable-scrypt --enable-broad-udevrules --enable-gridseed
sudo make
sudo make install
sudo ldconfig
lsusb


Chmod (see below)
chmod +x: makes the file executable by everyone.
chmod 777: making the file readable, writable and executable by everyone.
Since I plan having access as root, is there a need adding chmod anywhere?

enable-broad-udevrules: udev rules for ambiguous devices which may not be miners, since all gridseed are miners then there no such things as ambiguous devices to my undrstanding.

lsusb: "is  a  utility for displaying information about USB buses in the system and the devices connected to them." I think it a waste time to display that kind of information

After seeing my modifications, do they make sense?
Of course, I don't pretend knowing as I am in learning stage as well, and be free to give extra feedbacks!

something like this ,

sudo git clone https://github.com/luke-jr/bfgminer.git
cd /bfgminer
sudo ./autogen.sh
sudo chmod +x ./configure  
sudo ./configure CFLAGS="-O3" --enable-scrypt --enable-broad-udevrules
sudo make
sudo make install
sudo ldconfig
lsusb

bfgminer --scrypt -S all -o your pool -u user -p PW

for my Gblade this is all i use

bfgminer --scrypt -o your pool -u user -p PW -S gsd:all --set gsd:clock=800


it stys at a steady stable 27 MH with low HW errors.

which i use every time there is a new BFG so far it works and adds supports for all my miners , if you watch at the end it tells you what is disabled and enabled and how to do it if it's not .

I do it inside a PI,  haven't tried in  windows yet but plan to. or know how to in windows with other software

cross compiling, I believe it's called Smiley .

I'm guessing at why you want those I know why just don't know the detailed way of explaining it were it makes sense .

this is not needed any more

build-essential autoconf automake libtool pkg-config libcurl4-gnutls-dev libjansson-dev uthash-dev libncursesw5-dev libudev-dev libusb-1.0-0-dev libevent-dev libmicrohttpd-dev hidapi

 if you  do this

sudo apt-get update
sudo apt-get upgrade


BFG does the rest unless you use a custom made bfg or fork of BFG then you may need to add some stuff inside the BFG folder for it to compile right which I know how to. but see no need right now for a custom fork , it seems really stable for any thing you throw at it + there has been no real hard ware that has needed a BFG fork or they dislike BFG.
I added --enable-broad-udevrules

 just encase after looking at the read me

Include udev rules for ambiguous devices which may not be miners



17YatRuTzSpq7eRz2c5EZeFy5B5U82Xt9R (BTC)
Earn btc for view video, logging and solving captcha
toptek
Hero Member
*****
Offline Offline

Activity: 854


View Profile
September 09, 2015, 11:01:56 AM
 #437

chmod +x:


you need no matter what that, i know from testing, it won't run or work unless you use that command .


Never tried


chmod 777  so can't say but may try now.



all you need from this line is

sudo ./configure CFLAGS="-O3" --enable-scrypt --enable-broad-udevrules --enable-gridseed

IS

--enable-scrypt


 the read me says this is on
--enable-gridseed by default which is part of this --enable-scrypt  tested that as well .Smiley .

I did it with only --enable-gridseed it stopped at some point and told me i need --enable-scrypt to use --enable-gridseed Smiley .
I have used it with these lines --enable-scrypt --enable-gridseed i think adding --enable-gridseed  makes sure all grindseed are added even thu they are with --enable-scrypt , by Default.

I add this --enable-broad-udevrules

encase, it doesn't have be a miner to stop BFG from working if your PI has software that needs those rules  . i just add it encase it's  also added in minera as well the miners UI, check that out  btw  .. .it is really nice

https://bitcointalk.org/index.php?topic=596620.0


as far as i know you need all these line

code:
sudo git clone https://github.com/luke-jr/bfgminer.git
cd /bfgminer
sudo ./autogen.sh

sudo chmod +x ./configure

you crossed out and modified it which make sense i think using just +x is so no one else can access it or a rights thing which i don't care much about either. I also Use WinSCP  or  http://winscp.net/eng/index.php?#utm_source=winscp&utm_medium=app&utm_campaign=5.7.5 and looked at the BFG Properties one time to see what chmod does , it adds the excutable code 0775 i think it is so bfg can be used other wise if you don't use chmod in some form it adds another code i forget what and BFG doesn't work . but I'm still learning and next up when i take the time to do it is cross compiling.

sudo ./configure CFLAGS="-O3" --enable-scrypt
sudo make
sudo make install


maybe not this one:

sudo make install

some say they have made it with using only  sudo make, i have yet to get it to work without using  sudo make install , after using sudo make .Smiley .

I tested to see it wouldn't compile other wise or didn't for me .

this line:
sudo apt-get -y install git-core build-essential autoconf automake libtool pkg-config libcurl4-gnutls-dev libjansson-dev uthash-dev libncursesw5-dev libudev-dev libusb-1.0-0-dev libevent-dev libmicrohttpd-dev libc-bin


if sudo ./autogen.sh doesn't work  or it asks for autoconf or any of those packages .


depends if BFG has a line added to one of the files when its updated to a new version, i forget which one off hand .


this line is to test the USB drivers or driver to make sure you see  your miner : Smiley , some times the driver don't enable right and sudo ldconfig may help it do it and all lsusb does  is show you a list of all your drivers.

sudo ldconfig
lsusb

This need i say why  ": ) Jk


bfgminer --scrypt -S all -o your pool -u user -p PW
 


HOPE this helps some . but tested it to see what works . let us know, I'm all ways willing to try less to do more .


PS : I set up three PI's the other day with three Proxy's  wish i had done that sooner .


cya hope all this help
edonkey
Legendary
*
Offline Offline

Activity: 1021



View Profile
September 09, 2015, 02:35:10 PM
 #438

I built bfgminer from source today on a Raspberry Pi and the version returned from the resulting binary is 5.2 instead of 5.3:

Code:
./bfgminer --version
bfgminer 5.2.0-9-g484db74

This was a completely clean checkout and the usual configure, make, make install pattern:

Code:
git clone https://github.com/luke-jr/bfgminer.git
cd bfgminer/
./autogen.sh
./configure --enable-scrypt --enable-broad-udevrules
make
sudo make install
sudo ldconfig

Is this just a cosmetic problem with the version number, or is 5.3 not really on the git trunk?

Was I helpful?   BTC: 18wQtEDmhur2xAd3oE8qgrZbpCDeuMsdQW   LTC: LbqLtkZ6wTSpwHHuv1tG4J7tHajGdH5QFB   DOGE: D9R5ySAP2DARpxuNKd7hN7ANmqFiGwB9G6
toptek
Hero Member
*****
Offline Offline

Activity: 854


View Profile
September 09, 2015, 02:44:02 PM
 #439

I built bfgminer from source today on a Raspberry Pi and the version returned from the resulting binary is 5.2 instead of 5.3:

Code:
./bfgminer --version
bfgminer 5.2.0-9-g484db74

This was a completely clean checkout and the usual configure, make, make install pattern:

Code:
git clone https://github.com/luke-jr/bfgminer.git
cd bfgminer/
./autogen.sh
./configure --enable-scrypt --enable-broad-udevrules
make
sudo make install
sudo ldconfig

Is this just a cosmetic problem with the version number, or is 5.3 not really on the git trunk?


IM gettting  5.2 as the biuld to but then up a few post luke said that's a bug so we wait i guess .


so i need to learn cross comping or use it on my PC as zip file and go that route and compile to my PI that way.
fryarminer
Hero Member
*****
Offline Offline

Activity: 658


View Profile
September 09, 2015, 03:36:31 PM
 #440

Hey the link for 5.3 for Mac os is not working.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 [22] 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!