Pages:
Author

Topic: [GUIDE] BitFury Miner Support/Tuning - page 42. (Read 148018 times)

sr. member
Activity: 408
Merit: 250
September 04, 2013, 12:45:43 PM
#13
ALERT!! ACHTUNG!! HUOMIO!!
We've spotted a minor (potentially major) security issue with the image that was distributed with the shipped units. The user pi and root both have some ssh credentials set. You should remove these so that no one can access your unit. (This should not be such big issue if you're behind NAT).

How to correct this:
- SSH into your Raspberry Pi with user pi (default password = raspberry)
- Type commands
Code:
sudo rm -rf .ssh
sudo rm -rf /root/.ssh
sudo reboot

- SSH into your Raspberry Pi with user pi (default password = raspberry)
And you should also change your default password, otherwise the unit can still be accessed.

Thanks a lot for putting together this thread!  

So just so that I understand, if I SSH into my rPi using those credentials, reset my password and then remove SSH using the first set of commands, won't that lock me out? How am I supposed to re-login into my rPi in the future if not via SSH and will the new login/password still remain?
member
Activity: 89
Merit: 10
September 04, 2013, 11:59:10 AM
#12
Starter kit with two H-boards. Both H-boards produce over 20 GH/s in bus B or C, but bus A produces only about 12 GH/s regardless of which h-board is in the A1 slot. I heard another on irc having similar situation. Is this a hardware problem on the M-board?
legendary
Activity: 1330
Merit: 1026
Mining since 2010 & Hosting since 2012
September 04, 2013, 11:53:39 AM
#11
Thank you for this guide.  I have a couple arriving very soon and can't wait to get them online.  I'll post any feedback or questions I come up with.
sr. member
Activity: 466
Merit: 250
September 04, 2013, 11:46:04 AM
#10


That is a sample picture of the file /run/shm/.stat.log

Autotune ON = AIfDSo
Autotune OFF = aIfDSo

Number after the AIfDSo is the speed of the chip (52-57). Chip is off if it says 0.
sr. member
Activity: 434
Merit: 265
September 04, 2013, 11:28:51 AM
#9
- BitMinter

I've been mining on this pool with a 46 GH/s Bitfury ASIC miner for a few days now. I noticed that my hashrate reported by Bitminter dropped occasionally, all the way down to 900 MH/s. These drops coincided with my share target dynamically dropping to a very low number. Then I noticed that the stratum proxy on the Bitfury ASIC wasn't submitting shares any faster with the lower target. The share submission rate stayed the same as the difficulty target slowly climbed back up to maximum level, and my reported hashrate rose back up to normal levels with exactly the same pace.

After removing the -rt (or --real-target) flag from my stratum proxy, this hasn't happened again. This change results in a slightly higher load on the Raspberry Pi that's controlling the ASIC (because the miner now tries to send every diff1 share to the proxy), so I'm not recommending anyone to do this unless you are actually experiencing the above problem.
I'd like to add that I did not have this issue with bitminter and that my board came with the software fully installed unlike the op's board.

I can report the same .... my 2 H-boards are working fine with BitMinter. I had an issue the first few hours, but .... it fixed itself somehow running now for 24h + without problem ...
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
September 04, 2013, 11:08:52 AM
#8
For now I can't see there being cgminer support.
I even tried to buy one and was told no.
Over irc I've seen the cgminer development gradually progressing over the past few days, I suppose punin (and others?) are "going at it" allready.
A fork, not cgminer.
hero member
Activity: 910
Merit: 1000
Items flashing here available at btctrinkets.com
September 04, 2013, 11:05:44 AM
#7
For now I can't see there being cgminer support.
I even tried to buy one and was told no.
Over irc I've seen the cgminer development gradually progressing over the past few days, I suppose punin (and others?) are "going at it" allready.
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
September 04, 2013, 11:00:25 AM
#6
For now I can't see there being cgminer support.
I even tried to buy one and was told no.
hero member
Activity: 910
Merit: 1000
Items flashing here available at btctrinkets.com
September 04, 2013, 10:50:59 AM
#5
- BitMinter

I've been mining on this pool with a 46 GH/s Bitfury ASIC miner for a few days now. I noticed that my hashrate reported by Bitminter dropped occasionally, all the way down to 900 MH/s. These drops coincided with my share target dynamically dropping to a very low number. Then I noticed that the stratum proxy on the Bitfury ASIC wasn't submitting shares any faster with the lower target. The share submission rate stayed the same as the difficulty target slowly climbed back up to maximum level, and my reported hashrate rose back up to normal levels with exactly the same pace.

After removing the -rt (or --real-target) flag from my stratum proxy, this hasn't happened again. This change results in a slightly higher load on the Raspberry Pi that's controlling the ASIC (because the miner now tries to send every diff1 share to the proxy), so I'm not recommending anyone to do this unless you are actually experiencing the above problem.
I'd like to add that I did not have this issue with bitminter and that my board came with the software fully installed unlike the op's board.
sr. member
Activity: 350
Merit: 250
September 04, 2013, 08:37:12 AM
#4
Nice thx..

Also there is a dev version of bfgminer is the works currently at :-
https://github.com/luke-jr/bfgminer/tree/littlefury

worth keeping an eye on Cheesy
sr. member
Activity: 434
Merit: 265
September 04, 2013, 08:19:17 AM
#3
sr. member
Activity: 434
Merit: 265
September 04, 2013, 08:17:20 AM
#2
FAQ Chainminer & Raspberry:

1. How to Connect to the BitFury's Raspberry Pi?
2. How to change default password?
3. How to fix security issues concerning the EU raspberry pi image?
4. How to fix an empty miner File?
5. How to know which chip correspond to the chip in the stats.log?
6. How to start tuning chips manually?
7. Why does my pool GH estimation is far apart of the BitFury hashrate?
8. Bad & Dead Chips
9. Hashrate droping regularly, despite bitfury admin showing steady noncerate?
10. How to update on the most actual chainminer version (gitpull)?
11. More ... stuff


1. How to Connect to the BitFury's Raspberry Pi?

Use PuTTY or an other SSH client.
Open a SSH connection to the IP of your Raspberry Pi.
User = pi
default password = raspberry

2. How to change default password?

Code:
pi@bitfury ~ $ passwd

3. How to fix security issues concerning the EU raspberry pi image?

We've spotted a minor (potentially major) security issue with the image that was distributed with the shipped
units. The user pi and root both have some ssh credentials set. You should remove these so that no one can
access your unit.

Code:
pi@bitfury ~ $ sudo rm -rf .ssh
pi@bitfury ~ $ sudo rm -rf /root/.ssh
pi@bitfury ~ $ sudo reboot

4. How to fix an empty miner File?
NOTE

Due to my personal epic screw-up the SD image does not contain a working binary. And on top of this some orders were shipped without instructions also Tongue We have whipped ourselves vigorously here over the weekend and will try to improve our process so these bloopers don't happen in the future.

Here's how to get your miner working:
1. Check your router for bitfury IP
2. SSH into the raspberry pi (username pi password raspberry)
3. Run following commands:

Code:
cd /opt/bitfury/chainminer
sudo make clean
sudo make
sudo killall screen
sudo /etc/rc.local

You should now be mining. You can check the web interface of the miner with a normal browser and setup your pools there (use the IP that you used for SSH).

5. How to know which chip correspond to the chip in the stats.log?

Sure,

you have [board:chip] on every line and on the board chips are numbered from 40 to 4F beside each chip.

Chips start in the lower left corner, connector facing down, go up, then down, then up, then down again reaching the lower right corner of the board.

spiccioli

6. How to start tuning chips manually?

Code:
pi@bitfury ~ $ nano /run/shm/.stat.log



Code:
1. Chip, Chip number

2. Prog params | CAPS = ON, non-caps = off)
   - A = Autotuning (if off, chip will not be modified by autotuning)
   - I = External clock (must have this on to make the chip work)
   - F = Fast clock
   - D = Clock division by 2 (should be on)
   - S = Slowclock (should be on)
   - O = Send clock to output (OutClk pin)
   NOTE: chip has bug: you have to set I to on and S to on to have slow internal clock

3. Speed, Sets clock speed (52-57) Gets set automatically if Autotuning is on

4. Noncerate, Hashrate based on solutions found

5. Hashrate, Hashrate based on..

6. Nonces/round, Amount of solutions found

7. False nonces, Nonces that were returned as valid answer, but were incorrect

8. SPIerr, SPI communication error. Usually caused by noisy chip on SPI chain. Try moving card with noisy chips to last slot of SPI bus

9. MISOerr, Master In Slave Out error. Error in communication from chip to RasPi.

10. Jobs/5min, Job requests in last 5 minutes (relates to how many nonce spaces were scanned by the chip)

11. ChipID, Letter for SPI bus (A,B,C,D) + number for card (1,2,3,4) | ChipID shown with 2 digits (e.g. 01)

12. CoresOK, Show number of cores on chip that have found a valid answer (max 756)

13. Autoclock
    - shut down = Chip will be shutdown and unavailable (Aifdso)
    - speed->0 = If still more errors than correct nonces -> shut down
    - speed up = If you have 0 errors
    - speed down = If you have >5 errors clock down


- Edit file to fit your needs
- when done, press Ctrl-X
- Save yes
- Write file to: /opt/bitfury/best.cnf

Code:
pi@bitfury ~ $ sudo reboot

7. Why does my pool GH estimation is far apart of the BitFury hashrate?

There is a load balancing included in chainminer, im not really sure how it works. So it is possible that your
hashing power is divided amongst your setup of pools. To verify that you can check the putstats.log which shows
the connections to the pools.

8. Bad & Dead Chips

You might have dead chips (marked as A) on your board that want go anywhere else then 0, ... and autotune ("a") will even be turn of on them and you might have bad chips which autotune will probably tune down to 0 clockspeed, but still autotune ("A") will be turned on (marked as B).



For dead chips there is no solution from software side that I know off. There might be some Hardware possibilities ... I don't know.

For bad chips there is!

First you need to turn of autotune "A" to "a" so that they wont be turned down to 0, because right know as long as they produce to many errors, they will be turned down until 0.

To start of set there clockspeed to 55 on the bad chip and let him run for 10-15 min. Check again. If he is performing better or not ... find a good rate between good and error. You might go down to 54 or 53 ... just check again, where the bad chip is performing at his max. potential ... at the end it might look like this one ...


* a bad one but still more then a stick

It might even be that bad chips get again running fine after running for hours (>24h) ... some users mentioned that bitfury chips have an integrated selfhealing mechanisme ... :-)

9. Hashrate droping regularly, despite bitfury admin showing steady noncerate?

Someone may find this useful... If your pool reports your hashrate dropping regularly DESPITE bitfury admin showing steady noncerate:

1) ssh into your pi
2) run command: crontab -e
3) add this line at the end of file:
Quote
*/10    *       *       *       *       sudo /opt/bitfury/start-stratumproxy.sh
4) save & exit

It will restart your stratum proxy every 10 minutes from now on. If you want to cancel it, just run the command again and delete the line.

10. How to update on the most actual chainminer version (gitpull)?

... first .. if it ain't broke don't fix it ...

do backup of your actual bitfury chainminer version...

Code:
pi@bitfury ~ $ cp -a /opt/bitfury /usr/bitfury.backup
Then move to chainminer get latest version clean make ... restart ...

Code:
pi@bitfury ~ $ cd /opt/bitfury/chainminer
pi@bitfury ~ $ git pull
pi@bitfury ~ $ make clean
pi@bitfury ~ $ make

restart the miner ... and hope it will still hash ... :-)

11. More ... stuff

Some info on setup

Chainminer is compiled with encoded username and password that are hard coded in jobconnect.cpp. Currently miner is set to run three getwork threads to localhost 127.0.0.1:8332-8334.

Code:
hosts_t hosts[]={
{"Basic dHl0dXMucGkyOnB1YmxpY3Bhc3M=","http://127.0.0.1:8332/",{0,0,0,0,0,0,0,0xFFFFFFFF},NULL,NULL,0,0,0} // local stratum client
,{"Basic dHl0dXMucGkyOnB1YmxpY3Bhc3M=","http://127.0.0.1:8333/",{0,0,0,0,0,0,0,0xFFFFFFFF},NULL,NULL,0,0,0} // local stratum client
,{"Basic dHl0dXMucGkyOnB1YmxpY3Bhc3M=","http://127.0.0.1:8334/",{0,0,0,0,0,0,0,0xFFFFFFFF},NULL,NULL,0,0,0} // local stratum client
};

If you want to use the miner without stratum proxy you may do so by setting it in the above place. However, you must first encode your miner credentials to be inserted there:

Code:
pi@bitfury01 /opt/bitfury/chainminer $ echo -n username:password | base64
dXNlcm5hbWU6cGFzc3dvcmQ=
pi@bitfury01 /opt/bitfury/chainminer $

Then you must copy these encoded credentials into jobconnect.cpp and rebuild the miner:

Code:

dXNlcm5hbWU6cGFzc3dvcmQ=

hosts_t hosts[]={
{"Basic dXNlcm5hbWU6cGFzc3dvcmQ=","http://getworkpool:port/",{0,0,0,0,0,0,0,0xFFFFFFFF},NULL,NULL,0,0,0} //
};


Save the file and make. Restart miner.
sr. member
Activity: 434
Merit: 265
September 04, 2013, 08:17:08 AM
#1

Code:
       __________.__  __ ___________                       _____  .__                              
        \______   \__|/  |\_   _____/_ _________ ___.__.   /     \ |__| ____   ___________          
         |    |  _/  \   __\    __)|  |  \_  __ <   |  |  /  \ /  \|  |/    \_/ __ \_  __ \          
         |    |   \  ||  | |     \ |  |  /|  | \/\___  | /    Y    \  |   |  \  ___/|  | \/          
         |______  /__||__| \___  / |____/ |__|   / ____| \____|__  /__|___|  /\___  >__|            
                \/             \/                \/              \/        \/     \/                
  _________                                  __         /\  ___________           .__                
 /   _____/__ ________ ______   ____________/  |_      / /  \__    ___/_ __  ____ |__| ____    ____  
 \_____  \|  |  \____ \\____ \ /  _ \_  __ \   __\    / /     |    | |  |  \/    \|  |/    \  / ___\
 /        \  |  /  |_> >  |_> >  <_> )  | \/|  |     / /      |    | |  |  /   |  \  |   |  \/ /_/  >
/_______  /____/|   __/|   __/ \____/|__|   |__|    / /       |____| |____/|___|  /__|___|  /\___  /
        \/      |__|   |__|                         \/                          \/        \//_____/  

Thread is in construction!!!  Grin

The goal of this thread is to consolidate all informations to operate and fine tune the bitfury miner.

Development:
- BitFury Testers/Devs

Seller:
- BitFury EU/WordWide
- BitFury US

Case:
- Custom Case Design for Bitfury Miners
- All aluminum open air case for BitFury miners

Raspberry Pi SD Image (only v2+ m-boards)
- ver. 1: 2013-Aug-29_BitfuryRasPi_v0.1
- ver. 2: 2013-Sep-27_BFSB_GM2

Information:
- Instructions for BitFury Miner
- eagle .sch format (M-Board v2.3, H-Card v1.2)

Mining Software Repositories: (use with caution, work in progress!)
- Chainminer - Orginal BitFury  Software
- BFGMiner by Luke-Jr
Clarification: BFGMiner's "littlefury" branch (which should really be renamed "bitfury", and probably will be at some point) is currently tested with LittleFury and generic GPIO only, and should also work with Metabank's rigs, but is still strictly a work-in-progress and not considered a stable or even testing release. I haven't confirmed yet that it is compatible with the board design referenced in the OP, but if not I certainly plan to port it ASAP.
- CGMiner by anajavi
Anyone willing to help testing a cgminer fork changes with a full kit or at least one board in each bus (A-D)?

In sync with the latest Legkodymov's miner. For BFSB master boards you should leave BITFURY_MUX_OE undefined in bitfury-config.h and change:
Code:
#define BITFURY_MAXCHIPS 100
#define BITFURY_MAXBANKS 1
#define BITFURY_BANKCHIPS 100
to
Code:
#define BITFURY_MAXCHIPS 256
#define BITFURY_MAXBANKS 4
#define BITFURY_BANKCHIPS 16

IRC:
- BitFury Support (Server: ircnet.eversible.com / Channel: #bfsbsupport)

Instructions:
- EU/Worldwide BitFury Guide: Readme BSFSB v0.1 (using m-board v2)
- US BitFury Guide: **US** BitFury Setup Guide (using m-board v1)

Raspberry Pi:
- RPi Beginners

Know Errors:
- Hardware: Soldering errors!

Installation:
Important:



Also please note that if you are not populating the M-board fully the best results will be achieved by spreading the H-boards evenly between the four channels.
Pages:
Jump to: