Hey guys,
I am trying to make bfgminer from git working with my Cairnsmore1 boards with HashVoodoo bitstream.
Some details:
AMD A10 APU + ASRock FM2A75 Pro4
# uname -a
Linux amd-a10 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 x86_64 GNU/Linux
n# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.0 (wheezy)
Release: 7.0
Codename: wheezy
# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 006: ID 0403:8350 Future Technology Devices International, Ltd
Bus 007 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 010 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 011 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 1ea7:0002
# ls /dev/ttyUSB*
/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2 /dev/ttyUSB3
I tried to use latest bfgminer from git dated as below:
commit 7454181fcffdea59bb2cf6f32809df6c78bc47a5
Merge: f374013 d41b6b2
Author: Luke Dashjr
Date: Thu Apr 4 00:42:38 2013 +0000
I successfully compiled it with default settings. When I am running bfgminer from command line, that's what I have:
./bfgminer -D -T
[2013-04-05 14:30:05] ft232r_scan: Found 1d6b:0002 - not a ft232r
[2013-04-05 14:30:05] ft232r_scan: Found 1d6b:0003 - not a ft232r
[2013-04-05 14:30:05] ft232r_scan: Found 1d6b:0002 - not a ft232r
[2013-04-05 14:30:05] ft232r_scan: Found 1d6b:0003 - not a ft232r
[2013-04-05 14:30:05] ft232r_scan: Found 1d6b:0002 - not a ft232r
[2013-04-05 14:30:05] ft232r_scan: Found 1d6b:0003 - not a ft232r
[2013-04-05 14:30:05] ft232r_scan: Found 1d6b:0002 - not a ft232r
[2013-04-05 14:30:05] ft232r_scan: Found 1d6b:0002 - not a ft232r
[2013-04-05 14:30:05] ft232r_scan: Found 1d6b:0001 - not a ft232r
[2013-04-05 14:30:05] ft232r_scan: Found 1d6b:0001 - not a ft232r
[2013-04-05 14:30:05] ft232r_scan: Found 1d6b:0001 - not a ft232r
[2013-04-05 14:30:05] ft232r_scan: Found 1ea7:0002 - not a ft232r
[2013-04-05 14:30:05] ft232r_scan: Found 0403:8350 - not a ft232r
[2013-04-05 14:30:05] Started bfgminer 2.99.1
[2013-04-05 14:30:05] Loaded configuration file /root/.bfgminer/bfgminer.conf
[2013-04-05 14:30:05] DISPLAY not set, setting :0 just in case
[2013-04-05 14:30:05] Failed to load OpenCL library, no GPUs usable
[2013-04-05 14:30:05] Icarus Detect: Attempting to open /dev/ttyUSB0
[2013-04-05 14:30:05] Icarus Detect: Test succeeded at /dev/ttyUSB0: got 000187a2
[2013-04-05 14:30:05] Found ECM 0 at /dev/ttyUSB0
[2013-04-05 14:30:05] ECM 0: Init: baud=115200 work_division=2 fpga_count=2
[2013-04-05 14:30:05] ECM 0: Init: mode=long read_count=50 Hs=2.448400e-09
[2013-04-05 14:30:05] Not a ZTEX device 1d6b:0002
[2013-04-05 14:30:05] Not a ZTEX device 1d6b:0003
[2013-04-05 14:30:05] Not a ZTEX device 1d6b:0002
[2013-04-05 14:30:05] Not a ZTEX device 1d6b:0003
[2013-04-05 14:30:05] Not a ZTEX device 1d6b:0002
[2013-04-05 14:30:05] Not a ZTEX device 1d6b:0003
[2013-04-05 14:30:05] Not a ZTEX device 1d6b:0002
[2013-04-05 14:30:05] Not a ZTEX device 1d6b:0002
[2013-04-05 14:30:05] Not a ZTEX device 1d6b:0001
[2013-04-05 14:30:05] Not a ZTEX device 1d6b:0001
[2013-04-05 14:30:05] Not a ZTEX device 1d6b:0001
[2013-04-05 14:30:05] Not a ZTEX device 1ea7:0002
[2013-04-05 14:30:05] Not a ZTEX device 0403:8350
[2013-04-05 14:30:05] ECM 0 : Set temperature config: target=89 cutoff=95
[2013-04-05 14:30:05] Probing for an alive pool
[2013-04-05 14:30:05] Testing pool http://localhost:9332
[2013-04-05 14:30:05] Popping work to stage thread
[2013-04-05 14:30:05] JSON-RPC call failed: {
"data": null,
"code": -32601,
"message": "Method not found"
}
[2013-04-05 14:30:05] Failed to connect in json_rpc_call
[2013-04-05 14:30:05] X-Roll-Ntime expiry set to 100
[2013-04-05 14:30:05] Testing pool 0 stratum stratum+tcp://localhost:9332
[2013-04-05 14:30:05] initiate_stratum with sockbuf=(nil)
[2013-04-05 14:30:05] Failed to get sessionid in initiate_stratum
[2013-04-05 14:30:05] Switching pool 0 http://localhost:9332 to stratum+tcp://localhost:9332
[2013-04-05 14:30:05] Pool 0 stratum bdifficulty set to 9.042282
Only one FPGA chip is detected (200MH/s) instead of 4 chips 4x200MH/s.
When I manually add devices to bfgminer like this:
r# bfgminer -D -T -S /dev/ttyUSB0 -S /dev/ttyUSB1 -S /dev/ttyUSB2 -S /dev/ttyUSB3
[2013-04-05 14:37:52] ft232r_scan: Found 1d6b:0002 - not a ft232r
[2013-04-05 14:37:52] ft232r_scan: Found 1d6b:0003 - not a ft232r
[2013-04-05 14:37:52] ft232r_scan: Found 1d6b:0002 - not a ft232r
[2013-04-05 14:37:52] ft232r_scan: Found 1d6b:0003 - not a ft232r
[2013-04-05 14:37:52] ft232r_scan: Found 1d6b:0002 - not a ft232r
[2013-04-05 14:37:52] ft232r_scan: Found 0403:8350 - not a ft232r
[2013-04-05 14:37:52] ft232r_scan: Found 1d6b:0003 - not a ft232r
[2013-04-05 14:37:52] ft232r_scan: Found 1d6b:0002 - not a ft232r
[2013-04-05 14:37:52] ft232r_scan: Found 1d6b:0002 - not a ft232r
[2013-04-05 14:37:52] ft232r_scan: Found 1d6b:0001 - not a ft232r
[2013-04-05 14:37:52] ft232r_scan: Found 1d6b:0001 - not a ft232r
[2013-04-05 14:37:52] ft232r_scan: Found 1d6b:0001 - not a ft232r
[2013-04-05 14:37:52] ft232r_scan: Found 1ea7:0002 - not a ft232r
[2013-04-05 14:37:52] Started bfgminer 2.99.1
[2013-04-05 14:37:52] Loaded configuration file /root/.bfgminer/bfgminer.conf
[2013-04-05 14:37:52] DISPLAY not set, setting :0 just in case
[2013-04-05 14:37:52] Failed to load OpenCL library, no GPUs usable
[2013-04-05 14:37:52] Icarus Detect: Attempting to open /dev/ttyUSB0
[2013-04-05 14:37:52] Icarus Detect: Test succeeded at /dev/ttyUSB0: got 000187a2
[2013-04-05 14:37:52] Found ECM 0 at /dev/ttyUSB0
[2013-04-05 14:37:52] ECM 0: Init: baud=115200 work_division=2 fpga_count=2
[2013-04-05 14:37:52] ECM 0: Init: mode=long read_count=50 Hs=2.448400e-09
[2013-04-05 14:37:52] /dev/ttyUSB0 is already claimed... skipping probes
[2013-04-05 14:37:52] Icarus Detect: Attempting to open /dev/ttyUSB1
[2013-04-05 14:37:52] Icarus Detect: Test succeeded at /dev/ttyUSB1: got 000187a2
[2013-04-05 14:37:52] Found ICA 0 at /dev/ttyUSB1
[2013-04-05 14:37:52] ICA 0: Init: baud=115200 work_division=2 fpga_count=2
[2013-04-05 14:37:52] ICA 0: Init: mode=default read_count=50 Hs=2.640830e-09
[2013-04-05 14:37:52] Icarus Detect: Attempting to open /dev/ttyUSB2
[2013-04-05 14:37:52] Icarus Detect: Test succeeded at /dev/ttyUSB2: got 000187a2
[2013-04-05 14:37:52] Found ICA 1 at /dev/ttyUSB2
[2013-04-05 14:37:52] ICA 1: Init: baud=115200 work_division=2 fpga_count=2
[2013-04-05 14:37:52] ICA 1: Init: mode=default read_count=50 Hs=2.640830e-09
[2013-04-05 14:37:52] Icarus Detect: Attempting to open /dev/ttyUSB3
[2013-04-05 14:37:52] Icarus Detect: Test succeeded at /dev/ttyUSB3: got 000187a2
[2013-04-05 14:37:52] Found ICA 2 at /dev/ttyUSB3
[2013-04-05 14:37:52] ICA 2: Init: baud=115200 work_division=2 fpga_count=2
[2013-04-05 14:37:52] ICA 2: Init: mode=default read_count=50 Hs=2.640830e-09
[2013-04-05 14:37:52] Not a ZTEX device 1d6b:0002
[2013-04-05 14:37:52] Not a ZTEX device 1d6b:0003
[2013-04-05 14:37:52] Not a ZTEX device 1d6b:0002
[2013-04-05 14:37:52] Not a ZTEX device 1d6b:0003
[2013-04-05 14:37:52] Not a ZTEX device 1d6b:0002
[2013-04-05 14:37:52] Not a ZTEX device 0403:8350
[2013-04-05 14:37:52] Not a ZTEX device 1d6b:0003
[2013-04-05 14:37:52] Not a ZTEX device 1d6b:0002
[2013-04-05 14:37:52] Not a ZTEX device 1d6b:0002
[2013-04-05 14:37:52] Not a ZTEX device 1d6b:0001
[2013-04-05 14:37:52] Not a ZTEX device 1d6b:0001
[2013-04-05 14:37:52] Not a ZTEX device 1d6b:0001
[2013-04-05 14:37:52] Not a ZTEX device 1ea7:0002
[2013-04-05 14:37:52] ECM 0 : Set temperature config: target=89 cutoff=95
[2013-04-05 14:37:52] ICA 0 : Set temperature config: target=89 cutoff=95
[2013-04-05 14:37:52] ICA 1 : Set temperature config: target=89 cutoff=95
[2013-04-05 14:37:52] ICA 2 : Set temperature config: target=89 cutoff=95
[2013-04-05 14:37:52] Probing for an alive pool
[2013-04-05 14:37:52] Testing pool http://localhost:9332
[2013-04-05 14:37:52] Popping work to stage thread
[2013-04-05 14:37:52] JSON-RPC call failed: {
"data": null,
"code": -32601,
"message": "Method not found"
}
[2013-04-05 14:37:52] Failed to connect in json_rpc_call
[2013-04-05 14:37:52] X-Roll-Ntime expiry set to 100
[2013-04-05 14:37:52] Testing pool 0 stratum stratum+tcp://localhost:9332
[2013-04-05 14:37:52] initiate_stratum with sockbuf=(nil)
[2013-04-05 14:37:52] Failed to get sessionid in initiate_stratum
[2013-04-05 14:37:52] Switching pool 0 http://localhost:9332 to stratum+tcp://localhost:9332
I have one ECM 0 detected properly with dynamic hashrate and 3x ICA with default 150MH/s speed, no dynamic frequency scaling
However, I was digging further and discovered, that Ubuntu Lucid Lynx AMD64 binary (bfgminer_2.10.5-0lucid1_amd64.deb) is working fine on my system:
# /usr/bin/bfgminer --version
bfgminer 2.10.5
# /usr/bin/bfgminer -D -T
[2013-04-05 14:41:21] ft232r_scan: Found 1d6b:0002 - not a ft232r
[2013-04-05 14:41:21] ft232r_scan: Found 1d6b:0003 - not a ft232r
[2013-04-05 14:41:21] ft232r_scan: Found 1d6b:0002 - not a ft232r
[2013-04-05 14:41:21] ft232r_scan: Found 1d6b:0003 - not a ft232r
[2013-04-05 14:41:21] ft232r_scan: Found 1d6b:0002 - not a ft232r
[2013-04-05 14:41:21] ft232r_scan: Found 0403:8350 - not a ft232r
[2013-04-05 14:41:21] ft232r_scan: Found 1d6b:0003 - not a ft232r
[2013-04-05 14:41:21] ft232r_scan: Found 1d6b:0002 - not a ft232r
[2013-04-05 14:41:21] ft232r_scan: Found 1d6b:0002 - not a ft232r
[2013-04-05 14:41:21] ft232r_scan: Found 1d6b:0001 - not a ft232r
[2013-04-05 14:41:21] ft232r_scan: Found 1d6b:0001 - not a ft232r
[2013-04-05 14:41:21] ft232r_scan: Found 1d6b:0001 - not a ft232r
[2013-04-05 14:41:21] ft232r_scan: Found 1ea7:0002 - not a ft232r
[2013-04-05 14:41:21] Started bfgminer 2.10.5
[2013-04-05 14:41:21] Loaded configuration file /root/.bfgminer/bfgminer.conf
[2013-04-05 14:41:21] DISPLAY not set, setting :0 just in case
[2013-04-05 14:41:21] Failed to load OpenCL library, no GPUs usable
[2013-04-05 14:41:21] Icarus Detect: Attempting to open /dev/ttyUSB0
[2013-04-05 14:41:21] Icarus Detect: Test succeeded at /dev/ttyUSB0: got 000187a2
[2013-04-05 14:41:21] Found ECM 0 at /dev/ttyUSB0
[2013-04-05 14:41:21] ECM 0: Init: baud=115200 work_division=2 fpga_count=2
[2013-04-05 14:41:21] ECM 0: Init: mode=long read_count=50 Hs=2.448400e-09
[2013-04-05 14:41:21] Icarus Detect: Attempting to open /dev/ttyUSB1
[2013-04-05 14:41:21] Icarus Detect: Test succeeded at /dev/ttyUSB1: got 000187a2
[2013-04-05 14:41:21] Found ECM 1 at /dev/ttyUSB1
[2013-04-05 14:41:21] ECM 1: Init: baud=115200 work_division=2 fpga_count=2
[2013-04-05 14:41:21] ECM 1: Init: mode=long read_count=50 Hs=2.448400e-09
[2013-04-05 14:41:21] Icarus Detect: Attempting to open /dev/ttyUSB2
[2013-04-05 14:41:21] Icarus Detect: Test succeeded at /dev/ttyUSB2: got 000187a2
[2013-04-05 14:41:21] Found ECM 2 at /dev/ttyUSB2
[2013-04-05 14:41:21] ECM 2: Init: baud=115200 work_division=2 fpga_count=2
[2013-04-05 14:41:21] ECM 2: Init: mode=long read_count=50 Hs=2.448400e-09
[2013-04-05 14:41:21] Icarus Detect: Attempting to open /dev/ttyUSB3
[2013-04-05 14:41:21] Icarus Detect: Test succeeded at /dev/ttyUSB3: got 000187a2
[2013-04-05 14:41:21] Found ECM 3 at /dev/ttyUSB3
[2013-04-05 14:41:21] ECM 3: Init: baud=115200 work_division=2 fpga_count=2
[2013-04-05 14:41:21] ECM 3: Init: mode=long read_count=50 Hs=2.448400e-09
[2013-04-05 14:41:22] Not a ZTEX device 1d6b:0002
[2013-04-05 14:41:22] Not a ZTEX device 1d6b:0003
[2013-04-05 14:41:22] Not a ZTEX device 1d6b:0002
[2013-04-05 14:41:22] Not a ZTEX device 1d6b:0003
[2013-04-05 14:41:22] Not a ZTEX device 1d6b:0002
[2013-04-05 14:41:22] Not a ZTEX device 0403:8350
[2013-04-05 14:41:22] Not a ZTEX device 1d6b:0003
[2013-04-05 14:41:22] Not a ZTEX device 1d6b:0002
[2013-04-05 14:41:22] Not a ZTEX device 1d6b:0002
[2013-04-05 14:41:22] Not a ZTEX device 1d6b:0001
[2013-04-05 14:41:22] Not a ZTEX device 1d6b:0001
[2013-04-05 14:41:22] Not a ZTEX device 1d6b:0001
[2013-04-05 14:41:22] Not a ZTEX device 1ea7:0002
[2013-04-05 14:41:22] ECM 0: Set temperature config: target=89 cutoff=95
[2013-04-05 14:41:22] ECM 1: Set temperature config: target=89 cutoff=95
[2013-04-05 14:41:22] ECM 2: Set temperature config: target=89 cutoff=95
[2013-04-05 14:41:22] ECM 3: Set temperature config: target=89 cutoff=95
[2013-04-05 14:41:22] Probing for an alive pool
[2013-04-05 14:41:22] Popping work to stage thread
[2013-04-05 14:41:22] Testing pool http://localhost:9332
[2013-04-05 14:41:22] JSON-RPC call failed: {
"data": null,
"code": -32601,
"message": "Method not found"
}
[2013-04-05 14:41:22] Failed to connect in json_rpc_call
[2013-04-05 14:41:22] X-Roll-Ntime expiry set to 100
[2013-04-05 14:41:22] Testing pool 0 stratum stratum+tcp://localhost:9332
[2013-04-05 14:41:22] initiate_stratum with sockbuf=(nil)
[2013-04-05 14:41:22] Switching pool 0 http://localhost:9332 to stratum+tcp://localhost:9332
As you can see, on this binary 4 chips ECM has been detected and they working absolutely fine, mining nicely:
bfgminer version 2.10.5 - Started: [2013-04-05 14:52:17] - [ 0 days 00:00:12]
--------------------------------------------------------------------------------
5s:1.204 avg:1.071 u:0.000 Gh/s | A:0 R:0 S:0 HW:0 U:0.0/m
ST: 1 DW: 1 GW: 2 LW: 24 GF: 0 NB: 1 AS: 0 RF: 0 E: 0.00
Connected to localhost diff 8 with stratum as user AMD-A10-bfgminer-HashVoodoo
Block: ...c4d9b31d #229801 Diff:6.7M Started: [14:52:17] Best share: 1
--------------------------------------------------------------------------------
[P]ool management [S]ettings [D]isplay options [Q]uit
ECM 0: | 258.5/404.6/ 0.0Mh/s | A:0 R:0 HW:0 U:0.00/m
ECM 1: | 258.3/404.7/ 0.0Mh/s | A:0 R:0 HW:0 U:0.00/m
ECM 2: | 163.0/202.3/ 0.0Mh/s | A:0 R:0 HW:0 U:0.00/m
ECM 3: | 132.0/261.8/ 0.0Mh/s | A:0 R:0 HW:0 U:0.00/m
--------------------------------------------------------------------------------
[2013-04-05 14:52:17] Probing for an alive pool
[2013-04-05 14:52:17] Switching pool 0 http://localhost:9332 to stratum+tcp://localhost:9332
[2013-04-05 14:52:17] Stratum from pool 0 detected new block
[2013-04-05 14:52:17] Stratum from pool 0 requested work restart
[2013-04-05 14:52:17] ECM 0: Frequency set to 200 MHz (range: 50-210)
[2013-04-05 14:52:17] ECM 1: Frequency set to 200 MHz (range: 50-210)
[2013-04-05 14:52:17] ECM 2: Frequency set to 200 MHz (range: 50-210)
[2013-04-05 14:52:17] ECM 3: Frequency set to 200 MHz (range: 50-210)
What should I do, to make bfgminer from git working properly on my system? I prefere to use git version instead of Ubuntu Lucid version on Debian system. Please help
Regards
Lenny