Bitcoin Forum
April 29, 2017, 09:48:06 AM *
News: If the forum does not load normally for you, please send me a traceroute.
 
   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 559847 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.
.anto.
Full Member
***
Offline Offline

Activity: 152


View Profile
October 17, 2015, 10:01:41 AM
 #521

I saw that you have commited some changes on your github, especially commit 8488cf0 on the device name for compact device. I will try if that would fix the issue I am seeing.

I can confirm that your new commits fix the issue that I had as you can see on below link (I am not sure why I cannot insert image to this forum any more)

1493459286
Hero Member
*
Offline Offline

Posts: 1493459286

View Profile Personal Message (Offline)

Ignore
1493459286
Reply with quote  #2

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

Posts: 1493459286

View Profile Personal Message (Offline)

Ignore
1493459286
Reply with quote  #2

1493459286
Report to moderator
Luke-Jr
Legendary
*
Offline Offline

Activity: 2142



View Profile
October 17, 2015, 10:05:37 AM
 #522

I saw that you have commited some changes on your github, especially commit 8488cf0 on the device name for compact device. I will try if that would fix the issue I am seeing.

I can confirm that your new commits fix the issue that I had as you can see on below link (I am not sure why I cannot insert image to this forum any more)


Strange, it shouldn't have...

Can you run the broken version with -D -d? and paste the output?

.anto.
Full Member
***
Offline Offline

Activity: 152


View Profile
October 17, 2015, 10:13:05 AM
 #523

Can you run the broken version with -D -d? and paste the output?

Ooppsss... I have already cleaned up everything related to the previous HEAD version, including the compiled package. I need to figure out how to tell OpenWRT build package to roll back to previous commit.

Is this quite important Luke? For instance, do you suspect something might broke other parts? I prefer to move on with your latest commits, but if that would be important I will try to roll back and re-compile.
Luke-Jr
Legendary
*
Offline Offline

Activity: 2142



View Profile
October 17, 2015, 10:26:37 AM
 #524

Can you run the broken version with -D -d? and paste the output?

Ooppsss... I have already cleaned up everything related to the previous HEAD version, including the compiled package. I need to figure out how to tell OpenWRT build package to roll back to previous commit.

Is this quite important Luke? For instance, do you suspect something might broke other parts? I prefer to move on with your latest commits, but if that would be important I will try to roll back and re-compile.
Maybe not so important since it's just a matter of displayed device name.

.anto.
Full Member
***
Offline Offline

Activity: 152


View Profile
October 17, 2015, 04:43:18 PM
 #525

Maybe not so important since it's just a matter of displayed device name.

I believe you are looking for confirmation from debug output. I took a debug log after I upgraded my BFGMiner from 5.2.0 to the broken version of 5.3.0 on the 5th of September. I think it confirms that the device name of my Antminer U3's were recognised as CBM device. Below are some of the lines on that debug log. I can send you the whole log (only about 1 minute worth of messages though) if you are interested on that.
Code:
.
.
 [2015-09-05 20:32:08] CBM 0d nonce = 0xd26d8507 = 0x49b61420 hashes (0.034306s; 0.027740ns/hash)
 [2015-09-05 20:32:08] CBM 0a: Popping work from get queue to get work
 [2015-09-05 20:32:08] CBM 1c nonce = 0x508863f4 = 0x42218fd4 hashes (0.031638s; 0.028515ns/hash)
 [2015-09-05 20:32:08] CBM 1a: Popping work from get queue to get work
 [2015-09-05 20:32:08] CBM 0a: Got work 3252 from get queue to get work for thread 0
 [2015-09-05 20:32:08] CBM 1a: Got work 3256 from get queue to get work for thread 4
 [2015-09-05 20:32:08] Selecting pool 0 for work
 [2015-09-05 20:32:08] Generated stratum header 000000031f1b418f32e1029d0ba699fb6c6d69fa2b4505f910a6ac6a00000000000000001316c7f355e434897ef09f8d8721ec6ac457b46185081a8c5b9521989568c0b955eb351e18134dc100000000
 [2015-09-05 20:32:08] Work job_id 1441477890 107367 nonce2 0000039d
 [2015-09-05 20:32:08] Generated stratum work
 [2015-09-05 20:32:08] Pushing work 3292 from pool 0 to hash queue
 [2015-09-05 20:32:08] Selecting pool 0 for work
 [2015-09-05 20:32:08] Generated stratum header 000000031f1b418f32e1029d0ba699fb6c6d69fa2b4505f910a6ac6a00000000000000004d2c4d682acf97793bc560e527dd3f2cb2eead8cb51c3b79b23c7b5b1dd3718055eb351e18134dc100000000
 [2015-09-05 20:32:08] Work job_id 1441477890 107367 nonce2 0000039e
 [2015-09-05 20:32:08] Generated stratum work
 [2015-09-05 20:32:08] Pushing work 3294 from pool 0 to hash queue
 [2015-09-05 20:32:08] CBM 0: No data in 0.075 seconds
 [2015-09-05 20:32:08] CBM 1: No data in 0.075 seconds
 [2015-09-05 20:32:08] CBM 0 no nonce = 0xffffffff hashes (0.078335s)
 [2015-09-05 20:32:08] CBM 0a: Popping work from get queue to get work
 [2015-09-05 20:32:08] CBM 0a: Got work 3260 from get queue to get work for thread 0
 [2015-09-05 20:32:08] Selecting pool 0 for work
 [2015-09-05 20:32:08] Generated stratum header 000000031f1b418f32e1029d0ba699fb6c6d69fa2b4505f910a6ac6a0000000000000000335850b265322e3909d4501e6c911f47c655ca5b115b19bc9b542a5b9266912755eb351e18134dc100000000
 [2015-09-05 20:32:08] Work job_id 1441477890 107367 nonce2 0000039f
 [2015-09-05 20:32:08] Generated stratum work
 [2015-09-05 20:32:08] Pushing work 3297 from pool 0 to hash queue
 [2015-09-05 20:32:08] CBM 1 no nonce = 0xffffffff hashes (0.077746s)
 [2015-09-05 20:32:08] CBM 1a: Popping work from get queue to get work
 [2015-09-05 20:32:08] Selecting pool 0 for work
 [2015-09-05 20:32:08] Generated stratum header 000000031f1b418f32e1029d0ba699fb6c6d69fa2b4505f910a6ac6a0000000000000000ed92f07d4de37dc46ceaeb3ebe8f5206ffdcd29f446484f36d6323b0e0a9b12f55eb351e18134dc100000000
 [2015-09-05 20:32:08] CBM 1a: Got work 3264 from get queue to get work for thread 4
 [2015-09-05 20:32:08] Work job_id 1441477890 107367 nonce2 000003a0
 [2015-09-05 20:32:08] Generated stratum work
 [2015-09-05 20:32:08] Pushing work 3300 from pool 0 to hash queue
 [2015-09-05 20:32:08] PROOF OF WORK RESULT: true (yay!!!)
 [2015-09-05 20:32:08]  Proof: 0000000057e1afcb8faa3fcd24aca544e542a1bf3eda5347d80d989d18de1cfa
.
.
 [2015-09-05 20:32:43] Summary of per device statistics:

 [2015-09-05 20:32:43] CBM0        | 30s:28.72 avg:46.69 u:45.24 Gh/s | A:1 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] CBM0a        | 30s: 7.18 avg:11.67 u:11.96 Gh/s | A:1 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] CBM0b        | 30s: 7.18 avg:11.77 u:10.40 Gh/s | A:0 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] CBM0c        | 30s: 7.18 avg:11.77 u:11.65 Gh/s | A:0 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] CBM0d        | 30s: 7.18 avg:11.77 u:11.51 Gh/s | A:0 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] CBM1        | 30s:29.06 avg:47.24 u:41.67 Gh/s | A:0 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] CBM1a        | 30s: 7.26 avg:11.80 u:10.45 Gh/s | A:0 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] CBM1b        | 30s: 7.26 avg:11.90 u:10.47 Gh/s | A:0 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] CBM1c        | 30s: 7.27 avg:11.91 u:10.95 Gh/s | A:0 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] CBM1d        | 30s: 7.27 avg:11.91 u:10.05 Gh/s | A:0 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] 
Luke-Jr
Legendary
*
Offline Offline

Activity: 2142



View Profile
October 17, 2015, 07:58:31 PM
 #526

Maybe not so important since it's just a matter of displayed device name.

I believe you are looking for confirmation from debug output. I took a debug log after I upgraded my BFGMiner from 5.2.0 to the broken version of 5.3.0 on the 5th of September. I think it confirms that the device name of my Antminer U3's were recognised as CBM device. Below are some of the lines on that debug log. I can send you the whole log (only about 1 minute worth of messages though) if you are interested on that.
Code:
.
.
 [2015-09-05 20:32:08] CBM 0d nonce = 0xd26d8507 = 0x49b61420 hashes (0.034306s; 0.027740ns/hash)
 [2015-09-05 20:32:08] CBM 0a: Popping work from get queue to get work
 [2015-09-05 20:32:08] CBM 1c nonce = 0x508863f4 = 0x42218fd4 hashes (0.031638s; 0.028515ns/hash)
 [2015-09-05 20:32:08] CBM 1a: Popping work from get queue to get work
 [2015-09-05 20:32:08] CBM 0a: Got work 3252 from get queue to get work for thread 0
 [2015-09-05 20:32:08] CBM 1a: Got work 3256 from get queue to get work for thread 4
 [2015-09-05 20:32:08] Selecting pool 0 for work
 [2015-09-05 20:32:08] Generated stratum header 000000031f1b418f32e1029d0ba699fb6c6d69fa2b4505f910a6ac6a00000000000000001316c7f355e434897ef09f8d8721ec6ac457b46185081a8c5b9521989568c0b955eb351e18134dc100000000
 [2015-09-05 20:32:08] Work job_id 1441477890 107367 nonce2 0000039d
 [2015-09-05 20:32:08] Generated stratum work
 [2015-09-05 20:32:08] Pushing work 3292 from pool 0 to hash queue
 [2015-09-05 20:32:08] Selecting pool 0 for work
 [2015-09-05 20:32:08] Generated stratum header 000000031f1b418f32e1029d0ba699fb6c6d69fa2b4505f910a6ac6a00000000000000004d2c4d682acf97793bc560e527dd3f2cb2eead8cb51c3b79b23c7b5b1dd3718055eb351e18134dc100000000
 [2015-09-05 20:32:08] Work job_id 1441477890 107367 nonce2 0000039e
 [2015-09-05 20:32:08] Generated stratum work
 [2015-09-05 20:32:08] Pushing work 3294 from pool 0 to hash queue
 [2015-09-05 20:32:08] CBM 0: No data in 0.075 seconds
 [2015-09-05 20:32:08] CBM 1: No data in 0.075 seconds
 [2015-09-05 20:32:08] CBM 0 no nonce = 0xffffffff hashes (0.078335s)
 [2015-09-05 20:32:08] CBM 0a: Popping work from get queue to get work
 [2015-09-05 20:32:08] CBM 0a: Got work 3260 from get queue to get work for thread 0
 [2015-09-05 20:32:08] Selecting pool 0 for work
 [2015-09-05 20:32:08] Generated stratum header 000000031f1b418f32e1029d0ba699fb6c6d69fa2b4505f910a6ac6a0000000000000000335850b265322e3909d4501e6c911f47c655ca5b115b19bc9b542a5b9266912755eb351e18134dc100000000
 [2015-09-05 20:32:08] Work job_id 1441477890 107367 nonce2 0000039f
 [2015-09-05 20:32:08] Generated stratum work
 [2015-09-05 20:32:08] Pushing work 3297 from pool 0 to hash queue
 [2015-09-05 20:32:08] CBM 1 no nonce = 0xffffffff hashes (0.077746s)
 [2015-09-05 20:32:08] CBM 1a: Popping work from get queue to get work
 [2015-09-05 20:32:08] Selecting pool 0 for work
 [2015-09-05 20:32:08] Generated stratum header 000000031f1b418f32e1029d0ba699fb6c6d69fa2b4505f910a6ac6a0000000000000000ed92f07d4de37dc46ceaeb3ebe8f5206ffdcd29f446484f36d6323b0e0a9b12f55eb351e18134dc100000000
 [2015-09-05 20:32:08] CBM 1a: Got work 3264 from get queue to get work for thread 4
 [2015-09-05 20:32:08] Work job_id 1441477890 107367 nonce2 000003a0
 [2015-09-05 20:32:08] Generated stratum work
 [2015-09-05 20:32:08] Pushing work 3300 from pool 0 to hash queue
 [2015-09-05 20:32:08] PROOF OF WORK RESULT: true (yay!!!)
 [2015-09-05 20:32:08]  Proof: 0000000057e1afcb8faa3fcd24aca544e542a1bf3eda5347d80d989d18de1cfa
.
.
 [2015-09-05 20:32:43] Summary of per device statistics:

 [2015-09-05 20:32:43] CBM0        | 30s:28.72 avg:46.69 u:45.24 Gh/s | A:1 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] CBM0a        | 30s: 7.18 avg:11.67 u:11.96 Gh/s | A:1 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] CBM0b        | 30s: 7.18 avg:11.77 u:10.40 Gh/s | A:0 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] CBM0c        | 30s: 7.18 avg:11.77 u:11.65 Gh/s | A:0 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] CBM0d        | 30s: 7.18 avg:11.77 u:11.51 Gh/s | A:0 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] CBM1        | 30s:29.06 avg:47.24 u:41.67 Gh/s | A:0 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] CBM1a        | 30s: 7.26 avg:11.80 u:10.45 Gh/s | A:0 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] CBM1b        | 30s: 7.26 avg:11.90 u:10.47 Gh/s | A:0 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] CBM1c        | 30s: 7.27 avg:11.91 u:10.95 Gh/s | A:0 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] CBM1d        | 30s: 7.27 avg:11.91 u:10.05 Gh/s | A:0 R:0+0(none) HW:0/none
 [2015-09-05 20:32:43] 
Nah, I was looking for some hint as to what went wrong during detection. Smiley

daveolake
Sr. Member
****
Offline Offline

Activity: 404



View Profile
October 17, 2015, 09:45:48 PM
 #527

Do you think this might work for my a2 farmboys... If not, is it possible to tweak it to work, or what would you need to be able to make it work. Thanks

Join Now FutureAdPro - https://goo.gl/6dbRry  MyPayingCryptoAds -- https://goo.gl/KmfyAl
.anto.
Full Member
***
Offline Offline

Activity: 152


View Profile
October 18, 2015, 12:55:58 AM
 #528

Nah, I was looking for some hint as to what went wrong during detection. Smiley

I don't see significant differences (a part from the device name CBM vs AMU) when I compared the old debug log with the new one during the detection phase, but perhaps you can see that.

Old log taken from bfgminer 5.3.0 up to commit (possibly) 484db74
Code:

 [2015-09-05 20:31:38] Timers: Using clock_gettime(CLOCK_MONOTONIC)
 [2015-09-05 20:31:38] Global quota greatest common denominator set to 1
 [2015-09-05 20:31:38] Global quota greatest common denominator set to 1
 [2015-09-05 20:31:38] setrlimit: Soft fd limit not being changed from 1024 (FD_SETSIZE=1024; hard limit=4096)
 [2015-09-05 20:31:38] Started bfgminer 5.3.0-unknown
 [2015-09-05 20:31:38] Loaded configuration file /etc/bfgminer/bfgminer.conf
 [2015-09-05 20:31:38] lowlevel_scan: Found vcom device at dev_t:000000000000bc01 (path=/dev/ttyUSB1, vid=0000, pid=0000, manuf=Silicon Labs, prod=CP2102 USB to UART Bridge Controller, serial=0001)
 [2015-09-05 20:31:38] lowlevel_scan: Found vcom device at dev_t:000000000000bc00 (path=/dev/ttyUSB0, vid=0000, pid=0000, manuf=Silicon Labs, prod=CP2102 USB to UART Bridge Controller, serial=0001)
 [2015-09-05 20:31:38] CBM: cgpu_set_defaults: Matched with set default: antminer:voltage=x750
 [2015-09-05 20:31:38] CBM: cgpu_set_defaults: Matched with set default: antminer:voltage=x750
 [2015-09-05 20:31:38] CBM: Applying rule antminer:voltage=x750: Unknown option: voltage
 [2015-09-05 20:31:38] CBM: Applying rule antminer:voltage=x750: Unknown option: voltage
 [2015-09-05 20:31:38] CBM: cgpu_set_defaults: Matched with set default: antminer:clock=x0D83
 [2015-09-05 20:31:38] CBM: Applying rule antminer:clock=x0D83: Unknown option: clock
 [2015-09-05 20:31:38] CBM: cgpu_set_defaults: Matched with set default: antminer:timing=0.0178
 [2015-09-05 20:31:38] (null): Init: mode=value read_timeout_ms=75 limit=0ms Hs=1.780000e-11
 [2015-09-05 20:31:38] CBM: Applied rule antminer:timing=0.0178
 [2015-09-05 20:31:38] antminer: Attempting to open /dev/ttyUSB0
 [2015-09-05 20:31:38] CBM: cgpu_set_defaults: Matched with set default: antminer:clock=x0D83
 [2015-09-05 20:31:38] CBM: Applying rule antminer:clock=x0D83: Unknown option: clock
 [2015-09-05 20:31:38] CBM: cgpu_set_defaults: Matched with set default: antminer:timing=0.0178
 [2015-09-05 20:31:38] (null): Init: mode=value read_timeout_ms=75 limit=0ms Hs=1.780000e-11
 [2015-09-05 20:31:38] Acquired exclusive advisory lock on /dev/ttyUSB0
 [2015-09-05 20:31:38] CBM: Applied rule antminer:timing=0.0178
 [2015-09-05 20:31:38] antminer: Attempting to open /dev/ttyUSB1
 [2015-09-05 20:31:38] Acquired exclusive advisory lock on /dev/ttyUSB1
 [2015-09-05 20:31:38] antminer: Test succeeded at /dev/ttyUSB0: got 000187a2
 [2015-09-05 20:31:38] /dev/ttyUSB0: Init: mode=value read_timeout_ms=75 limit=0ms Hs=1.780000e-11
 [2015-09-05 20:31:38] Acquired exclusive advisory lock on /dev/ttyUSB0
 [2015-09-05 20:31:38] antminer: Work division not specified - autodetecting
 [2015-09-05 20:31:38] antminer: Test succeeded at /dev/ttyUSB1: got 000187a2
 [2015-09-05 20:31:38] /dev/ttyUSB1: Init: mode=value read_timeout_ms=75 limit=0ms Hs=1.780000e-11
 [2015-09-05 20:31:38] Acquired exclusive advisory lock on /dev/ttyUSB1
 [2015-09-05 20:31:38] antminer: Work division not specified - autodetecting
 [2015-09-05 20:31:38] antminer: Work division autodetection got 417c0f36 (=4)
 [2015-09-05 20:31:38] Found CBM 0 at /dev/ttyUSB0
 [2015-09-05 20:31:38] CBM 0: Init: baud=115200 work_division=0 fpga_count=0
 [2015-09-05 20:31:38] antminer: Work division autodetection got 417c0f36 (=4)
 [2015-09-05 20:31:38] Found CBM 1 at /dev/ttyUSB1
 [2015-09-05 20:31:38] CBM 1: Init: baud=115200 work_division=0 fpga_count=0
 [2015-09-05 20:31:38] Probing for an alive pool
.
.


New log taken from bfgminer 5.3.0 up to commit 517af40
Code:

 [2015-10-18 02:35:53] Timers: Using clock_gettime(CLOCK_MONOTONIC)
 [2015-10-18 02:35:53] Global quota greatest common denominator set to 1
 [2015-10-18 02:35:53] Global quota greatest common denominator set to 1
 [2015-10-18 02:35:53] Global quota greatest common denominator set to 1
 [2015-10-18 02:35:53] setrlimit: Soft fd limit not being changed from 1024 (FD_SETSIZE=1024; hard limit=4096)
 [2015-10-18 02:35:53] Started bfgminer 5.3.0-unknown
 [2015-10-18 02:35:53] Loaded configuration file /etc/bfgminer/bfgminer.conf
 [2015-10-18 02:35:53] lowlevel_scan: Found vcom device at dev_t:000000000000bc01 (path=/dev/ttyUSB1, vid=0000, pid=0000, manuf=Silicon Labs, prod=CP2102 USB to UART Bridge Controller, serial=0001)
 [2015-10-18 02:35:53] lowlevel_scan: Found vcom device at dev_t:000000000000bc00 (path=/dev/ttyUSB0, vid=0000, pid=0000, manuf=Silicon Labs, prod=CP2102 USB to UART Bridge Controller, serial=0001)
 [2015-10-18 02:35:53] AMU: cgpu_set_defaults: Matched with set default: antminer:voltage=x750
 [2015-10-18 02:35:53] AMU: cgpu_set_defaults: Matched with set default: antminer:voltage=x750
 [2015-10-18 02:35:53] AMU: Applying rule antminer:voltage=x750: Unknown option: voltage
 [2015-10-18 02:35:53] AMU: Applying rule antminer:voltage=x750: Unknown option: voltage
 [2015-10-18 02:35:53] AMU: cgpu_set_defaults: Matched with set default: antminer:clock=xD83
 [2015-10-18 02:35:53] AMU: cgpu_set_defaults: Matched with set default: antminer:clock=xD83
 [2015-10-18 02:35:53] AMU: Applying rule antminer:clock=xD83: Unknown option: clock
 [2015-10-18 02:35:53] AMU: Applying rule antminer:clock=xD83: Unknown option: clock
 [2015-10-18 02:35:53] AMU: cgpu_set_defaults: Matched with set default: antminer:timing=0.0178
 [2015-10-18 02:35:53] AMU: cgpu_set_defaults: Matched with set default: antminer:timing=0.0178
 [2015-10-18 02:35:53] (null): Init: mode=value read_timeout_ms=75 limit=0ms Hs=1.780000e-11
 [2015-10-18 02:35:53] (null): Init: mode=value read_timeout_ms=75 limit=0ms Hs=1.780000e-11
 [2015-10-18 02:35:53] AMU: Applied rule antminer:timing=0.0178
 [2015-10-18 02:35:53] AMU: Applied rule antminer:timing=0.0178
 [2015-10-18 02:35:53] antminer: Attempting to open /dev/ttyUSB0
 [2015-10-18 02:35:53] antminer: Attempting to open /dev/ttyUSB1
 [2015-10-18 02:35:53] Acquired exclusive advisory lock on /dev/ttyUSB0
 [2015-10-18 02:35:53] Acquired exclusive advisory lock on /dev/ttyUSB1
 [2015-10-18 02:35:53] antminer: Test succeeded at /dev/ttyUSB0: got 000187a2
 [2015-10-18 02:35:53] antminer: Test succeeded at /dev/ttyUSB1: got 000187a2
 [2015-10-18 02:35:53] /dev/ttyUSB0: Init: mode=value read_timeout_ms=75 limit=0ms Hs=1.780000e-11
 [2015-10-18 02:35:53] /dev/ttyUSB1: Init: mode=value read_timeout_ms=75 limit=0ms Hs=1.780000e-11
 [2015-10-18 02:35:53] Acquired exclusive advisory lock on /dev/ttyUSB1
 [2015-10-18 02:35:53] Acquired exclusive advisory lock on /dev/ttyUSB0
 [2015-10-18 02:35:53] antminer: Work division not specified - autodetecting
 [2015-10-18 02:35:53] antminer: Work division not specified - autodetecting
 [2015-10-18 02:35:53] antminer: Work division autodetection got 417c0f36 (=4)
 [2015-10-18 02:35:53] antminer: Work division autodetection got 417c0f36 (=4)
 [2015-10-18 02:35:53] Found AMU 0 at /dev/ttyUSB0
 [2015-10-18 02:35:53] Found AMU 1 at /dev/ttyUSB1
 [2015-10-18 02:35:53] AMU 0: Init: baud=115200 work_division=0 fpga_count=0
 [2015-10-18 02:35:53] AMU 1: Init: baud=115200 work_division=0 fpga_count=0
 [2015-10-18 02:35:53] Probing for an alive pool
.
.

Luke-Jr
Legendary
*
Offline Offline

Activity: 2142



View Profile
October 18, 2015, 01:57:45 AM
 #529

Nah, I was looking for some hint as to what went wrong during detection. Smiley

I don't see significant differences (a part from the device name CBM vs AMU) when I compared the old debug log with the new one during the detection phase, but perhaps you can see that.
I found one bug. Can you confirm what command-line you are using?

.anto.
Full Member
***
Offline Offline

Activity: 152


View Profile
October 18, 2015, 02:07:49 AM
 #530

I found one bug. Can you confirm what command-line you are using?

I have already confirmed that on my previous post as below. The only different between the information on that post and the one containing the comparison are the voltage, clock and timing parameters.

I don't set the parameters on the command line and I have BFGMiner running on my router so I am using the command line as below.
Code:
root:~# screen -dmS bfgminer bfgminer --config /etc/bfgminer/bfgminer.conf

And the content of my bfgminer.conf is below (with usernames hidden)
Code:
root:~# cat /etc/bfgminer/bfgminer.conf
{
"pools" : [
{
"url" : "stratum+tcp://stratum.mining.eligius.st:3334",
"user" : "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"pass" : "x",
"pool-priority" : "0"
},
{
"url" : "stratum+tcp://stratum.antpool.com:3333",
"user" : "XXXXXXXX",
"pass" : "x",
"pool-priority" : "1"
}
]
,
"api-mcast-port" : "4028",
"api-port" : "4028",
"debuglog" : true,
"expiry" : "120",
"expiry-lp" : "3600",
"failover-switch-delay" : "300",
"log" : "30",
"no-local-bitcoin" : true,
"no-pool-disable" : true,
"no-client-reconnect" : true,
"queue" : "1",
"quiet" : true,
"quiet-work-updates" : true,
"quiet-work-update" : true,
"scan-time" : "60",
"show-processors" : true,
"show-procs" : true,
"skip-security-checks" : "0",
"submit-stale" : true,
"temp-hysteresis" : "3",
"shares" : 0,
"kernel-path" : "/usr/share/bfgminer",
"scan" : [
"antminer:/dev/ttyUSB0",
"antminer:/dev/ttyUSB1"
],
"set-device" : [
"antminer:voltage=x800",
"antminer:clock=x882",
"antminer:timing=0.0166"
]
}
Luke-Jr
Legendary
*
Offline Offline

Activity: 2142



View Profile
October 18, 2015, 02:58:14 AM
 #531

OK, I think that's related to the bug I found then.
Not a very simple fix, but it could cause other problems in the future, so I'll try to get it fixed.

.anto.
Full Member
***
Offline Offline

Activity: 152


View Profile
October 18, 2015, 03:06:40 AM
 #532

OK, I think that's related to the bug I found then.
Not a very simple fix, but it could cause other problems in the future, so I'll try to get it fixed.

Could you please briefly explain the bug?

Is that related to the issue that I raised on your github 2 months ago?

If you would like to make sure that what your suspected to be the bug is related to the way I executed bfgminer, could you please just tell me the command line that I should execute to confirm whether it is really a bug or not?
Luke-Jr
Legendary
*
Offline Offline

Activity: 2142



View Profile
October 18, 2015, 03:11:47 AM
 #533

OK, I think that's related to the bug I found then.
Not a very simple fix, but it could cause other problems in the future, so I'll try to get it fixed.

Could you please briefly explain the bug?
Drivers are registered in a hash table by their name, and when you specify -S dname:anything, when <anything> is seen, it always probes <dname> first. But the hash table does not support multiple entries with the same string, so since compac was called "antminer", it was getting probed for anything specifying "antminer".

Is that related to the issue that I raised on your github 2 months ago?
No.

If you would like to make sure that what your suspected to be the bug is related to the way I executed bfgminer, could you please just tell me the command line that I should execute to confirm whether it is really a bug or not?
The only way I can think to confirm it further, would be to produce a 5.3.0 with only that bug fixed.
Probably won't have this until tomorrow or Monday.

Luke-Jr
Legendary
*
Offline Offline

Activity: 2142



View Profile
October 18, 2015, 07:31:59 PM
 #534

If you would like to make sure that what your suspected to be the bug is related to the way I executed bfgminer, could you please just tell me the command line that I should execute to confirm whether it is really a bug or not?
The only way I can think to confirm it further, would be to produce a 5.3.0 with only that bug fixed.
Probably won't have this until tomorrow or Monday.
This is ready to be tested. Please download and test these binaries (or GitHub branch tmp40389 if you build from source).

.anto.
Full Member
***
Offline Offline

Activity: 152


View Profile
October 19, 2015, 04:19:33 PM
 #535

This is ready to be tested. Please download and test these binaries (or GitHub branch tmp40389 if you build from source).

How do we actually test this build?  Grin

I am using your tmp40389 branch as I need to compile it for my WiFi router. The initialisation phase below looks the same to me.

Code:

 [2015-10-19 18:05:06] Timers: Using clock_gettime(CLOCK_MONOTONIC)
 [2015-10-19 18:05:06] Global quota greatest common denominator set to 1
 [2015-10-19 18:05:06] Global quota greatest common denominator set to 1
 [2015-10-19 18:05:06] Global quota greatest common denominator set to 1
 [2015-10-19 18:05:06] setrlimit: Soft fd limit not being changed from 1024 (FD_SETSIZE=1024; hard limit=4096)
 [2015-10-19 18:05:06] Started bfgminer 5.3.0-unknown
 [2015-10-19 18:05:06] Loaded configuration file /etc/bfgminer/bfgminer.conf
 [2015-10-19 18:05:06] lowlevel_scan: Found vcom device at dev_t:000000000000bc01 (path=/dev/ttyUSB1, vid=0000, pid=0000, manuf=Silicon Labs, prod=CP2102 USB to UART Bridge Controller, serial=0001)
 [2015-10-19 18:05:06] lowlevel_scan: Found vcom device at dev_t:000000000000bc00 (path=/dev/ttyUSB0, vid=0000, pid=0000, manuf=Silicon Labs, prod=CP2102 USB to UART Bridge Controller, serial=0001)
 [2015-10-19 18:05:06] AMU: cgpu_set_defaults: Matched with set default: antminer:voltage=x830
 [2015-10-19 18:05:06] AMU: cgpu_set_defaults: Matched with set default: antminer:voltage=x830
 [2015-10-19 18:05:06] AMU: Applying rule antminer:voltage=x830: Unknown option: voltage
 [2015-10-19 18:05:06] AMU: Applying rule antminer:voltage=x830: Unknown option: voltage
 [2015-10-19 18:05:06] AMU: cgpu_set_defaults: Matched with set default: antminer:clock=x0882
 [2015-10-19 18:05:06] AMU: cgpu_set_defaults: Matched with set default: antminer:clock=x0882
 [2015-10-19 18:05:06] AMU: Applying rule antminer:clock=x0882: Unknown option: clock
 [2015-10-19 18:05:06] AMU: Applying rule antminer:clock=x0882: Unknown option: clock
 [2015-10-19 18:05:06] AMU: cgpu_set_defaults: Matched with set default: antminer:timing=0.0154
 [2015-10-19 18:05:06] AMU: cgpu_set_defaults: Matched with set default: antminer:timing=0.0154
 [2015-10-19 18:05:06] (null): Init: mode=value read_timeout_ms=65 limit=0ms Hs=1.540000e-11
 [2015-10-19 18:05:06] (null): Init: mode=value read_timeout_ms=65 limit=0ms Hs=1.540000e-11
 [2015-10-19 18:05:06] AMU: Applied rule antminer:timing=0.0154
 [2015-10-19 18:05:06] AMU: Applied rule antminer:timing=0.0154
 [2015-10-19 18:05:06] antminer: Attempting to open /dev/ttyUSB0
 [2015-10-19 18:05:06] antminer: Attempting to open /dev/ttyUSB1
 [2015-10-19 18:05:06] Acquired exclusive advisory lock on /dev/ttyUSB1
 [2015-10-19 18:05:06] Acquired exclusive advisory lock on /dev/ttyUSB0
 [2015-10-19 18:05:06] antminer: Test succeeded at /dev/ttyUSB1: got 000187a2
 [2015-10-19 18:05:06] /dev/ttyUSB1: Init: mode=value read_timeout_ms=75 limit=0ms Hs=1.540000e-11
 [2015-10-19 18:05:06] antminer: Test succeeded at /dev/ttyUSB0: got 000187a2
 [2015-10-19 18:05:06] /dev/ttyUSB0: Init: mode=value read_timeout_ms=75 limit=0ms Hs=1.540000e-11
 [2015-10-19 18:05:06] Acquired exclusive advisory lock on /dev/ttyUSB1
 [2015-10-19 18:05:06] antminer: Work division not specified - autodetecting
 [2015-10-19 18:05:06] Acquired exclusive advisory lock on /dev/ttyUSB0
 [2015-10-19 18:05:06] antminer: Work division not specified - autodetecting
 [2015-10-19 18:05:06] antminer: Work division autodetection got 417c0f36 (=4)
 [2015-10-19 18:05:06] antminer: Work division autodetection got 417c0f36 (=4)
 [2015-10-19 18:05:06] Found AMU 0 at /dev/ttyUSB0
 [2015-10-19 18:05:06] Found AMU 1 at /dev/ttyUSB1
 [2015-10-19 18:05:06] AMU 0: Init: baud=115200 work_division=0 fpga_count=0
 [2015-10-19 18:05:06] AMU 1: Init: baud=115200 work_division=0 fpga_count=0
 [2015-10-19 18:05:06] Probing for an alive pool
.
.
.anto.
Full Member
***
Offline Offline

Activity: 152


View Profile
October 19, 2015, 04:54:37 PM
 #536

I have one suggestion Luke, if you don't mind.

I have been trying different branches of your github. At some points (and actually just now), I am confused with the versions as all of them only show "bfgminer 5.3.0-unknown". I can differentiate them from the package versions as I can set them. But there is no way to know the version on the screenshot of the UI or debug log (unless I make sure to identify them from the log file name).

Would it be possible to include an indication of branch/tag/commit/whatever in the UI and debug log to differentiate between each version?
Mikestang
Hero Member
*****
Offline Offline

Activity: 784



View Profile
October 19, 2015, 11:25:53 PM
 #537

Hmm, maybe try changing the single-quotes to double-quotes.

Thank you, that did the trick!

Code:
C:\bfgminer530>bfgminer-rpc "pgaset|cbm0,clock,0x0a02"
Reply was 'STATUS=E,When=1445296756,Code=93,Msg=PGA 0 set failed: invalid clock: '0x0a02' data must be
 prefixed with an x,Description=bfgminer 5.3.0|'
[STATUS] =>
(
   [STATUS] => E
   [When] => 1445296756
   [Code] => 93
   [Msg] => PGA 0 set failed: invalid clock: '0x0a02' data must be prefixed with an x
   [Description] => bfgminer 5.3.0
)

It appears that the leading '0' needs to be dropped from the hex frequency value, however:
Code:
C:\bfgminer530>bfgminer-rpc "pgaset|cbm0,clock,x0a02"
Reply was 'STATUS=S,When=1445296795,Code=92,Msg=PGA 0 set OK,Description=bfgminer 5.3.0|'
[STATUS] =>
(
   [STATUS] => S
   [When] => 1445296795
   [Code] => 92
   [Msg] => PGA 0 set OK
   [Description] => bfgminer 5.3.0
)

I can successfully report an immediate increase in hash speed on the sticks once the command is issued.  Thanks again, looking forward to 5.4.0.  Smiley

I looks like you do not need the trailing quote mark for whatever reason, but it will error if you omit the leading one:
Code:
C:\bfgminer530>bfgminer-rpc "pgaset|cbm0,clock,x0982
Reply was 'STATUS=S,When=1445297249,Code=92,Msg=PGA 0 set OK,Description=bfgminer 5.3.0|'
[STATUS] =>
(
   [STATUS] => S
   [When] => 1445297249
   [Code] => 92
   [Msg] => PGA 0 set OK
   [Description] => bfgminer 5.3.0
)

Edit - for some reason the forum keeps inserting the extra /code breaks at the end.  I didn't put them there, and when I edit to delete them they just show up again when I save...[/code][/code][/code]


I have two gekko compacs running on this particular machine and the rpc command only appears to have increased the frequency on one stick.  I replaced "cbm0" with "cbm1" to see if I could effect the other stick.  The command was accepted successfully, however, the second stick did not increase in hash rate.  Do I need to do something different to get the second stick to see the new frequency?
Luke-Jr
Legendary
*
Offline Offline

Activity: 2142



View Profile
October 20, 2015, 12:46:44 AM
 #538

Hmm, maybe try changing the single-quotes to double-quotes.

Thank you, that did the trick!

Code:
C:\bfgminer530>bfgminer-rpc "pgaset|cbm0,clock,0x0a02"
Reply was 'STATUS=E,When=1445296756,Code=93,Msg=PGA 0 set failed: invalid clock: '0x0a02' data must be
 prefixed with an x,Description=bfgminer 5.3.0|'
[STATUS] =>
(
   [STATUS] => E
   [When] => 1445296756
   [Code ] => 93
   [Msg] => PGA 0 set failed: invalid clock: '0x0a02' data must be prefixed with an x
   [Description] => bfgminer 5.3.0
)

It appears that the leading '0' needs to be dropped from the hex frequency value, however:
Code:
C:\bfgminer530>bfgminer-rpc "pgaset|cbm0,clock,x0a02"
Reply was 'STATUS=S,When=1445296795,Code=92,Msg=PGA 0 set OK,Description=bfgminer 5.3.0|'
[STATUS] =>
(
   [STATUS] => S
   [When] => 1445296795
   [Code ] => 92
   [Msg] => PGA 0 set OK
   [Description] => bfgminer 5.3.0
)

I can successfully report an immediate increase in hash speed on the sticks once the command is issued.  Thanks again, looking forward to 5.4.0.  Smiley
Sounds like the "leading zero" is your problem.
There was never any expectation/support for one.
How can I improve documentation to make that clear?

I have two gekko compacs running on this particular machine and the rpc command only appears to have increased the frequency on one stick.  I replaced "cbm0" with "cbm1" to see if I could effect the other stick.  The command was accepted successfully, however, the second stick did not increase in hash rate.  Do I need to do something different to get the second stick to see the new frequency?

I forgot pgaset doesn't take a device specification like that. Really you need to identify them by number, so 0 and 1 instead of cbm0 and cbm1.

Luke-Jr
Legendary
*
Offline Offline

Activity: 2142



View Profile
October 20, 2015, 01:14:11 AM
 #539

This is ready to be tested. Please download and test these binaries (or GitHub branch tmp40389 if you build from source).

How do we actually test this build?  Grin

I am using your tmp40389 branch as I need to compile it for my WiFi router. The initialisation phase below looks the same to me.

Code:

 [2015-10-19 18:05:06] Timers: Using clock_gettime(CLOCK_MONOTONIC)
 [2015-10-19 18:05:06] Global quota greatest common denominator set to 1
 [2015-10-19 18:05:06] Global quota greatest common denominator set to 1
 [2015-10-19 18:05:06] Global quota greatest common denominator set to 1
 [2015-10-19 18:05:06] setrlimit: Soft fd limit not being changed from 1024 (FD_SETSIZE=1024; hard limit=4096)
 [2015-10-19 18:05:06] Started bfgminer 5.3.0-unknown
 [2015-10-19 18:05:06] Loaded configuration file /etc/bfgminer/bfgminer.conf
 [2015-10-19 18:05:06] lowlevel_scan: Found vcom device at dev_t:000000000000bc01 (path=/dev/ttyUSB1, vid=0000, pid=0000, manuf=Silicon Labs, prod=CP2102 USB to UART Bridge Controller, serial=0001)
 [2015-10-19 18:05:06] lowlevel_scan: Found vcom device at dev_t:000000000000bc00 (path=/dev/ttyUSB0, vid=0000, pid=0000, manuf=Silicon Labs, prod=CP2102 USB to UART Bridge Controller, serial=0001)
 [2015-10-19 18:05:06] AMU: cgpu_set_defaults: Matched with set default: antminer:voltage=x830
 [2015-10-19 18:05:06] AMU: cgpu_set_defaults: Matched with set default: antminer:voltage=x830
 [2015-10-19 18:05:06] AMU: Applying rule antminer:voltage=x830: Unknown option: voltage
 [2015-10-19 18:05:06] AMU: Applying rule antminer:voltage=x830: Unknown option: voltage
 [2015-10-19 18:05:06] AMU: cgpu_set_defaults: Matched with set default: antminer:clock=x0882
 [2015-10-19 18:05:06] AMU: cgpu_set_defaults: Matched with set default: antminer:clock=x0882
 [2015-10-19 18:05:06] AMU: Applying rule antminer:clock=x0882: Unknown option: clock
 [2015-10-19 18:05:06] AMU: Applying rule antminer:clock=x0882: Unknown option: clock
 [2015-10-19 18:05:06] AMU: cgpu_set_defaults: Matched with set default: antminer:timing=0.0154
 [2015-10-19 18:05:06] AMU: cgpu_set_defaults: Matched with set default: antminer:timing=0.0154
 [2015-10-19 18:05:06] (null): Init: mode=value read_timeout_ms=65 limit=0ms Hs=1.540000e-11
 [2015-10-19 18:05:06] (null): Init: mode=value read_timeout_ms=65 limit=0ms Hs=1.540000e-11
 [2015-10-19 18:05:06] AMU: Applied rule antminer:timing=0.0154
 [2015-10-19 18:05:06] AMU: Applied rule antminer:timing=0.0154
 [2015-10-19 18:05:06] antminer: Attempting to open /dev/ttyUSB0
 [2015-10-19 18:05:06] antminer: Attempting to open /dev/ttyUSB1
 [2015-10-19 18:05:06] Acquired exclusive advisory lock on /dev/ttyUSB1
 [2015-10-19 18:05:06] Acquired exclusive advisory lock on /dev/ttyUSB0
 [2015-10-19 18:05:06] antminer: Test succeeded at /dev/ttyUSB1: got 000187a2
 [2015-10-19 18:05:06] /dev/ttyUSB1: Init: mode=value read_timeout_ms=75 limit=0ms Hs=1.540000e-11
 [2015-10-19 18:05:06] antminer: Test succeeded at /dev/ttyUSB0: got 000187a2
 [2015-10-19 18:05:06] /dev/ttyUSB0: Init: mode=value read_timeout_ms=75 limit=0ms Hs=1.540000e-11
 [2015-10-19 18:05:06] Acquired exclusive advisory lock on /dev/ttyUSB1
 [2015-10-19 18:05:06] antminer: Work division not specified - autodetecting
 [2015-10-19 18:05:06] Acquired exclusive advisory lock on /dev/ttyUSB0
 [2015-10-19 18:05:06] antminer: Work division not specified - autodetecting
 [2015-10-19 18:05:06] antminer: Work division autodetection got 417c0f36 (=4)
 [2015-10-19 18:05:06] antminer: Work division autodetection got 417c0f36 (=4)
 [2015-10-19 18:05:06] Found AMU 0 at /dev/ttyUSB0
 [2015-10-19 18:05:06] Found AMU 1 at /dev/ttyUSB1
 [2015-10-19 18:05:06] AMU 0: Init: baud=115200 work_division=0 fpga_count=0
 [2015-10-19 18:05:06] AMU 1: Init: baud=115200 work_division=0 fpga_count=0
 [2015-10-19 18:05:06] Probing for an alive pool
.
.
This looks good, thanks.

Luke-Jr
Legendary
*
Offline Offline

Activity: 2142



View Profile
October 20, 2015, 01:14:17 AM
 #540

I have one suggestion Luke, if you don't mind.

I have been trying different branches of your github. At some points (and actually just now), I am confused with the versions as all of them only show "bfgminer 5.3.0-unknown". I can differentiate them from the package versions as I can set them. But there is no way to know the version on the screenshot of the UI or debug log (unless I make sure to identify them from the log file name).

Would it be possible to include an indication of branch/tag/commit/whatever in the UI and debug log to differentiate between each version?

You must be doing something unusual to build BFGMiner.
That "5.3.0-unknown" usually has the git commit id for custom builds.
Are you perhaps downloading zips/tars from GitHub rather than using git itself to fetch?

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!