OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.9.2


SUBMITTED BY: hanlam1983

DATE: Aug. 23, 2016, 7:27 a.m.

UPDATED: Aug. 24, 2016, 7:09 a.m.

FORMAT: Text only

SIZE: 34.5 kB

HITS: 3360

  1. This is the official thread for support and development of cgminer, the ASIC bitcoin miner written in c, cross platform for windows, linux, OSX and other, with monitoring, fanspeed control and remote interface capabilities, completely overhauled based on the original code cpuminer.
  2. This code is provided entirely free of charge by the programmer in his spare
  3. time so donations would be greatly appreciated.
  4. Help can also be obtained on IRC: irc.freenode.net #cgminer
  5. READ THE README INCLUDED IN THE ARCHIVE BEFORE ASKING QUESTIONS WHICH CAN ALSO BE FOUND HERE:
  6. http://ck.kolivas.org/apps/cgminer/README
  7. Note that I can NOT provide personalised support via email or personal messages under normal circumstances so they will usually be ignored.
  8. Apologies, but the demand is just far too great and I must prioritise my time.
  9. All files available for DOWNLOAD from here:
  10. http://ck.kolivas.org/apps/cgminer
  11. As a backup they can be downloaded here:
  12. https://bitbucket.org/TheKano/cgminer-binaries/src
  13. Debug builds are in http://ck.kolivas.org/apps/cgminer/debug/
  14. .lrz files are compressed with lrzip http://lrzip.kolivas.org for much better compression and supports extreme encryption technology which is ideal for securing wallets.
  15. LATEST RELEASE: 4.9.2 see:
  16. https://bitcointalk.org/index.php?topic=28402.msg11597292#msg11597292
  17. Note that x86_64 binary is a 64 bit binary for UBUNTU 14.04.
  18. Git tree:
  19. https://github.com/ckolivas/cgminer
  20. Latest git source tarball:
  21. https://github.com/ckolivas/cgminer/tarball/master
  22. Unofficial OSX binaries:
  23. http://spaceman.ca/cgminer/
  24. NOTE: This code is licensed under the GPLv3. This means that the source to any
  25. modifications you make to this code MUST be provided by law if you distribute
  26. modified binaries. See COPYING for details.
  27. Features:
  28. - Very low overhead free c code for Linux and windows with very low non-mining CPU and ram usage
  29. - Stratum and GBT pooled mining protocol support, including ultra low overhead solo mining
  30. - Scaleable networking scheduler designed to scale to any size hashrate without networking delays yet minimise connection overhead
  31. - long poll support - will use longpoll from any pool if primary pool does not support it
  32. - Self detection of new blocks with a mini-database for slow/failing longpoll scenarios, maximum work efficiency and minimum rejects.
  33. - Heavily threaded code hands out work retrieval and work submission to separate threads to not hinder devices working
  34. - Caching of submissions during transient network outages
  35. - Preemptive fetching of work prior to completion of current work
  36. - Local generation of valid work (via stratum, GBT or ntime rollover) whenever possible, as supported on a per-work item basis
  37. - Prevention of stale work submission on new block
  38. - Summarised and discrete device data statistics of requests, accepts, rejects, hw errors and work utility
  39. - Summary displayed when quitting
  40. - Supports multiple pools with multiple intelligent failover mechanisms
  41. - Temporary disabling of misbehaving pools rejecting all shares
  42. - On the fly menu based management of most settings
  43. - Trickling of extra work to backup pools if primary pool is responding but slow
  44. - RPC +/- JSON interface for remote control
  45. - Bitforce support - singles and minirig
  46. - Icarus support
  47. - Modminer support
  48. - Ability to cope with slow routers
  49. - Submit-old support
  50. - X-Reject-Reason support
  51. - Variable difficulty support
  52. - Share difficulty reporting
  53. - Target and block difficulty displays
  54. - Block solve detection
  55. - ASIC Avalon support
  56. - Bitburner support
  57. - Redfury/Bluefury USB stick support
  58. - Bi*fury USB support
  59. - Hexfury USB support
  60. - Onestring miner support
  61. - BlackArrow Bitfury support
  62. - BFL SC asic support
  63. - Drillbit support
  64. - Klondike support
  65. - KnCminer Saturn support
  66. - KnCminer Jupiter support
  67. - KnCminer Neptune support
  68. - Hashfast support
  69. - Nanofury support
  70. - Minion support
  71. - Antminer U1/2+ support
  72. - Bitmine A1 support
  73. - Avalon2/3 support
  74. - Bitmain S1 support
  75. - Cointerra support
  76. - BFx2 support
  77. - Spondoolies SP10 support
  78. - Spondoolies SP30 support
  79. - Rockminer R-Box support
  80. - Hashratio support
  81. - Avalon4 support
  82. - Direct USB communications
  83. - Device hotplug
  84. - Heavily featured RPC API
  85. - Multicast support
  86. - Proxy support
  87. - Lots of other stuff I can't remember. See options.
  88. Sample output:
  89. Code:
  90. cgminer version 4.2.1 - Started: [2014-03-29 10:06:52]
  91. --------------------------------------------------------------------------------
  92. (5s):4.300T (1m):4.324T (5m):4.240T (15m):4.219T (avg):4.242Th/s
  93. A:9885432 R:64389 HW:1749 WU:59420.7/m
  94. Connected to au.ozco.in diff 6.45K with stratum as user ckolivas.0
  95. Block: a1e68974... Diff:5.01G Started: [12:48:48] Best share: 3.41M
  96. --------------------------------------------------------------------------------
  97. [U]SB management [P]ool management [S]ettings [D]isplay options [Q]uit
  98. 0: ANU 0 : | 1.989G / 1.980Gh/s
  99. 1: NF1 0 : | 2.417G / 2.404Gh/s
  100. 2: BXM 0 : | 3.798G / 3.781Gh/s
  101. 3: BXM 1 : | 3.879G / 3.867Gh/s
  102. 4: BXF 0 : 45.9C | 4.959G / 4.908Gh/s
  103. 5: CTA 013219f9: 850MHz 75.4C 0.68V | 1.056T / 803.3Gh/s
  104. 6: CTA 013219fa: 850MHz 116.1C 0.68V | 643.6G / 805.5Gh/s
  105. 7: HFS Random : 645MHz 86C 37% 0.79V | 1.314T / 1.369Th/s
  106. 8: BF1 0d110c15: | 2.275G / 2.288Gh/s
  107. 9: HFS IceDrill: 604MHz 86C 23% 0.80V | 1.214T / 1.250Th/s
  108. ---
  109. USB menu:
  110. Code:
  111. Hotplug interval:5
  112. 8 USB devices, 7 enabled, 0 disabled, 1 zombie
  113. [S]ummary of device information
  114. [E]nable device
  115. [D]isable device
  116. [U]nplug to allow hotplug restart
  117. [R]eset device USB
  118. [L]ist all known devices
  119. [B]lacklist current device from current instance of cgminer
  120. [W]hitelist previously blacklisted device
  121. [H]otplug interval (0 to disable)
  122. Select an option or any other key to return
  123. Pool menu:
  124. Code:
  125. 0: Enabled Alive Quota 1 Prio 0: stratum+tcp://au.ozco.in:3333 User:ckolivas.0
  126. 1: Enabled Alive Quota 1 Prio 1: stratum+tcp://hash.mineb.tc:3333 User:ckolivas.0
  127. 2: Enabled Alive Quota 1 Prio 2: stratum+tcp://stratum.ozco.in:3333 User:ckolivas.0
  128. 3: Enabled Dead Quota 1 Prio 3: stratum+tcp://us1.eclipsemc.com:3333 User:ckolivas_0
  129. 4: Enabled Alive Quota 1 Prio 4: stratum+tcp://api-stratum.bitcoin.cz:3333 User:ckolivas.0
  130. 5: Enabled Alive Quota 1 Prio 5: stratum+tcp://stratum.btcguild.com:3333 User:ckolivas_0
  131. Current pool management strategy: Failover
  132. Pool [A]dd [R]emove [D]isable [E]nable [Q]uota change
  133. [C]hange management strategy [S]witch pool [I]nformation
  134. Or press any other key to continue
  135. Change settings menu:
  136. Code:
  137. [W]rite config file
  138. [C]gminer restart
  139. Select an option or any other key to return
  140. Display menu:
  141. Code:
  142. [N]ormal [C]lear [S]ilent mode (disable all output)
  143. [D]ebug:off
  144. [P]er-device:off
  145. [Q]uiet:off
  146. [V]erbose:off
  147. [R]PC debug:off
  148. [W]orkTime details:off
  149. co[M]pact: off
  150. [T]oggle status switching:enabled
  151. w[I]descreen:disabled
  152. [Z]ero statistics
  153. [L]og interval:5
  154. On exiting:
  155. Code:
  156. Summary of runtime statistics:
  157. Started at [2011-07-19 14:40:09]
  158. Runtime: 2 hrs : 31 mins : 18 secs
  159. Average hashrate: 1680.1 Megahash/s
  160. Queued work requests: 3317
  161. Share submissions: 3489
  162. Accepted shares: 3489
  163. Rejected shares: 0
  164. Reject ratio: 0.0
  165. Hardware errors: 0
  166. Efficiency (accepted / queued): 105%
  167. Utility (accepted shares / min): 23.06/min
  168. Discarded work due to new blocks: 0
  169. Stale submissions discarded due to new blocks: 9
  170. Unable to get work from server occasions: 16
  171. Work items generated locally: 330
  172. Submitting work remotely delay occasions: 33
  173. New blocks detected on network: 10
  174. Pool: http://ozco.in:8332
  175. Queued work requests: 3253
  176. Share submissions: 3426
  177. Accepted shares: 3426
  178. Rejected shares: 0
  179. Reject ratio: 0.0
  180. Efficiency (accepted / queued): 105%
  181. Discarded work due to new blocks: 0
  182. Stale submissions discarded due to new blocks: 9
  183. Unable to get work from server occasions: 15
  184. Submitting work remotely delay occasions: 33
  185. ---
  186. Usage instructions: Run "cgminer --help" to see options:
  187. Usage: cgminer [-DdElmpPQqUsTouOchnV]
  188. Options for both config file and command line:
  189. --api-allow Allow API access (if enabled) only to the given list of [W:]IP[/Prefix] address[/subnets]
  190. This overrides --api-network and you must specify 127.0.0.1 if it is required
  191. W: in front of the IP address gives that address privileged access to all api commands
  192. --api-description Description placed in the API status header (default: cgminer version)
  193. --api-groups API one letter groups G:cmd:cmd[,P:cmd:*...]
  194. See API-README for usage
  195. --api-listen Listen for API requests (default: disabled)
  196. By default any command that does not just display data returns access denied
  197. See --api-allow to overcome this
  198. --api-network Allow API (if enabled) to listen on/for any address (default: only 127.0.0.1)
  199. --api-mcast Enable API Multicast listener, (default: disabled)
  200. The listener will only run if the API is also enabled
  201. --api-mcast-addr <arg> API Multicast listen address, (default: 224.0.0.75)
  202. --api-mcast-code <arg> Code expected in the API Multicast message, don't use '-' (default: "FTW")
  203. --api-mcast-port <arg> API Multicast listen port, (default: 4028)
  204. --api-port Port number of miner API (default: 4028)
  205. --balance Change multipool strategy from failover to even share balance
  206. --benchmark Run cgminer in benchmark mode - produces no shares
  207. --btc-address <arg> Set bitcoin target address when solo mining to bitcoind (mandatory)
  208. --btc-sig <arg> Set signature to add to coinbase when solo mining (optional)
  209. --compact Use compact display without per device statistics
  210. --debug|-D Enable debug output
  211. --disable-rejecting Automatically disable pools that continually reject shares
  212. --fix-protocol Do not redirect to a different getwork protocol (eg. stratum)
  213. --hotplug <arg> Set hotplug check time to <arg> seconds (0=never default: 5) - only with libusb
  214. --kernel-path|-K <arg> Specify a path to where bitstream files are (default: "/usr/local/bin")
  215. --load-balance Change multipool strategy from failover to quota based balance
  216. --log|-l <arg> Interval in seconds between log output (default: 5)
  217. --lowmem Minimise caching of shares for low memory applications
  218. --monitor|-m <arg> Use custom pipe cmd for output messages
  219. --net-delay Impose small delays in networking to not overload slow routers
  220. --no-submit-stale Don't submit shares if they are detected as stale
  221. --pass|-p <arg> Password for bitcoin JSON-RPC server
  222. --per-device-stats Force verbose mode and output per-device statistics
  223. --protocol-dump|-P Verbose dump of protocol-level activities
  224. --quiet|-q Disable logging output, display status and errors
  225. --real-quiet Disable all output
  226. --rotate <arg> Change multipool strategy from failover to regularly rotate at N minutes (default: 0)
  227. --round-robin Change multipool strategy from failover to round robin on failure
  228. --sched-start <arg> Set a time of day in HH:MM to start mining (a once off without a stop time)
  229. --sched-stop <arg> Set a time of day in HH:MM to stop mining (will quit without a start time)
  230. --sharelog <arg> Append share log to file
  231. --shares <arg> Quit after mining N shares (default: unlimited)
  232. --socks-proxy <arg> Set socks4 proxy (host:port) for all pools without a proxy specified
  233. --syslog Use system log for output messages (default: standard error)
  234. --temp-cutoff <arg> Temperature where a device will be automatically disabled, one value or comma separated list (default: 95)
  235. --text-only|-T Disable ncurses formatted screen output
  236. --url|-o <arg> URL for bitcoin JSON-RPC server
  237. --user|-u <arg> Username for bitcoin JSON-RPC server
  238. --userpass|-O <arg> Username:Password pair for bitcoin JSON-RPC server
  239. --verbose Log verbose output to stderr as well as status output
  240. --widescreen Use extra wide display without toggling
  241. Options for command line only:
  242. --config|-c <arg> Load a JSON-format configuration file
  243. See example.conf for an example configuration.
  244. --default-config <arg> Specify the filename of the default config file
  245. Loaded at start and used when saving without a name.
  246. --help|-h Print this message
  247. --version|-V Display version and exit
  248. USB device (ASIC and FPGA) options:
  249. --icarus-options <arg> Set specific FPGA board configurations - one set of values for all or comma separated
  250. --icarus-timing <arg> Set how the Icarus timing is calculated - one setting/value for all or comma separated
  251. --usb <arg> USB device selection (See below)
  252. --usb-dump (See FPGA-README)
  253. See FGPA-README or ASIC-README for more information regarding these.
  254. ASIC only options:
  255. --anu-freq <arg> Set AntminerU1 frequency in hex, range 150-500 (default: 200)
  256. --avalon-auto Adjust avalon overclock frequency dynamically for best hashrate
  257. --avalon-fan <arg> Set fanspeed percentage for avalon, single value or range (default: 20-100)
  258. --avalon-freq <arg> Set frequency range for avalon-auto, single value or range
  259. --avalon-cutoff <arg> Set avalon overheat cut off temperature (default: 60)
  260. --avalon-options <arg> Set avalon options baud:miners:asic:timeout:freq
  261. --avalon-temp <arg> Set avalon target temperature (default: 50)
  262. --avalon2-freq Set frequency range for Avalon2, single value or range
  263. --avalon2-voltage Set Avalon2 core voltage, in millivolts
  264. --avalon2-fan Set Avalon2 target fan speed
  265. --avalon2-cutoff <arg> Set Avalon2 overheat cut off temperature (default: 88)
  266. --avalon2-fixed-speed Set Avalon2 fan to fixed speed
  267. --avalon4-automatic-voltage Automatic adjust voltage base on module DH
  268. --avalon4-voltage Set Avalon4 core voltage, in millivolts, step: 125
  269. --avalon4-freq Set frequency for Avalon4, 1 to 3 values, example: 445:385:370
  270. --avalon4-fan Set Avalon4 target fan speed range
  271. --avalon4-temp <arg> Set Avalon4 target temperature (default: 42)
  272. --avalon4-cutoff <arg> Set Avalon4 overheat cut off temperature (default: 65)
  273. --avalon4-polling-delay <arg> Set Avalon4 polling delay value (ms) (default: 20)
  274. --avalon4-ntime-offset <arg> Set Avalon4 MM ntime rolling max offset (default: 4)
  275. --avalon4-aucspeed <arg> Set Avalon4 AUC IIC bus speed (default: 400000)
  276. --avalon4-aucxdelay <arg> Set Avalon4 AUC IIC xfer read delay, 4800 ~= 1ms (default: 9600)
  277. --bflsc-overheat <arg> Set overheat temperature where BFLSC devices throttle, 0 to disable (default: 90)
  278. --bitburner-fury-options <arg> Override avalon-options for BitBurner Fury boards baud:miners:asic:timeout:freq
  279. --bitburner-fury-voltage <arg> Set BitBurner Fury core voltage, in millivolts
  280. --bitburner-voltage <arg> Set BitBurner (Avalon) core voltage, in millivolts
  281. --bitmain-auto Adjust bitmain overclock frequency dynamically for best hashrate
  282. --bitmain-cutoff Set bitmain overheat cut off temperature
  283. --bitmain-fan Set fanspeed percentage for bitmain, single value or range (default: 20-100)
  284. --bitmain-freq Set frequency range for bitmain-auto, single value or range
  285. --bitmain-hwerror Set bitmain device detect hardware error
  286. --bitmain-options Set bitmain options baud:miners:asic:timeout:freq
  287. --bitmain-temp Set bitmain target temperature
  288. --bxf-bits <arg> Set max BXF/HXF bits for overclocking (default: 54)
  289. --bxf-temp-target <arg> Set target temperature for BXF/HXF devices (default: 82)
  290. --bxm-bits <arg> Set BXM bits for overclocking (default: 50)
  291. --hfa-hash-clock <arg> Set hashfast clock speed (default: 550)
  292. --hfa-fail-drop <arg> Set how many MHz to drop clockspeed each failure on an overlocked hashfast device (default: 10)
  293. --hfa-fan <arg> Set fanspeed percentage for hashfast, single value or range (default: 10-85)
  294. --hfa-name <arg> Set a unique name for a single hashfast device specified with --usb or the first device found
  295. --hfa-noshed Disable hashfast dynamic core disabling feature
  296. --hfa-options <arg> Set hashfast options name:clock (comma separated)
  297. --hfa-temp-overheat <arg> Set the hashfast overheat throttling temperature (default: 95)
  298. --hfa-temp-target <arg> Set the hashfast target temperature (0 to disable) (default: 88)
  299. --hfa-hash-clock <arg> Set hashfast clock speed (default: 550)
  300. --hfa-fan <arg> Set fanspeed percentage for hashfast, single value or range (default: 10-85)
  301. --hfa-temp-overheat <arg> Set the hashfast overheat throttling temperature (default: 95)
  302. --hfa-temp-target <arg> Set the hashfast target temperature (0 to disable) (default: 88)
  303. --hro-freq Set the hashratio clock frequency (default: 280)
  304. --klondike-options <arg> Set klondike options clock:temptarget
  305. --nfu-bits <arg> Set nanofury bits for overclocking, range 32-63 (default: 50)
  306. --rock-freq <arg> Set RockMiner frequency in MHz, range 125-500 (default: 270.0)
  307. See ASIC-README for more information regarding these.
  308. FPGA only options:
  309. --bfl-range Use nonce range on bitforce devices if supported
  310. See FGPA-README for more information regarding this.
  311. Cgminer should automatically find all of your Avalon ASIC, BFL ASIC, BitForce
  312. FPGAs, Icarus bitstream FPGAs, Klondike ASIC, ASICMINER usb block erupters,
  313. KnC ASICs, BaB ASICs, Hashfast ASICs and ModMiner FPGAs.
  314. ---
  315. EXECUTIVE SUMMARY ON USAGE:
  316. Single pool:
  317. cgminer -o http://pool:port -u username -p password
  318. Multiple pools:
  319. cgminer -o http://pool1:port -u pool1username -p pool1password -o http://pool2:port -u pool2usernmae -p pool2password
  320. Single pool with a standard http proxy:
  321. cgminer -o "http:proxy:port|http://pool:port" -u username -p password
  322. Single pool with a socks5 proxy:
  323. cgminer -o "socks5:proxy:port|http://pool:port" -u username -p password
  324. Single pool with stratum protocol support:
  325. cgminer -o stratum+tcp://pool:port -u username -p password
  326. Solo mining to local bitcoind:
  327. cgminer -o http://localhost:8332 -u username -p password --btc-address 15qSxP1SQcUX3o4nhkfdbgyoWEFMomJ4rZ
  328. The list of proxy types are:
  329. http: standard http 1.1 proxy
  330. http0: http 1.0 proxy
  331. socks4: socks4 proxy
  332. socks5: socks5 proxy
  333. socks4a: socks4a proxy
  334. socks5h: socks5 proxy using a hostname
  335. If you compile cgminer with a version of CURL before 7.19.4 then some of the above will
  336. not be available. All are available since CURL version 7.19.4
  337. If you specify the --socks-proxy option to cgminer, it will only be applied to all pools
  338. that don't specify their own proxy setting like above
  339. After saving configuration from the menu, you do not need to give cgminer any
  340. arguments and it will load your configuration.
  341. Any configuration file may also contain a single
  342. "include" : "filename"
  343. to recursively include another configuration file.
  344. Writing the configuration will save all settings from all files in the output.
  345. ---
  346. Also many issues and FAQs are covered in the forum thread
  347. dedicated to this program,
  348. http://forum.bitcoin.org/index.php?topic=28402.0
  349. The output line shows the following:
  350. (5s):223.5G (avg):219.6Gh/s | A:330090 R:0 HW:6904 WU:3027.6/m
  351. Each column is as follows:
  352. 5s: A 5 second exponentially decaying average hash rate
  353. avg: An all time average hash rate
  354. A: The number of Accepted shares
  355. R: The number of Rejected shares
  356. HW: The number of HardWare errors
  357. WU: The Work Utility defined as the number of diff1 equivalent shares / minute
  358. AVA 0: 23C/ 47C 2280R | 77.10G/83.20Gh/s | A:120029 R:0 HW:2295 WU:1162.5/m
  359. Each column is as follows:
  360. Temperature (if supported)
  361. Fanspeed (if supported)
  362. A 5 second exponentially decaying average hash rate
  363. An all time average hash rate
  364. The number of accepted shares
  365. The number of rejected shares
  366. The number of hardware erorrs
  367. The Work Utility defined as the number of diff1 equivalent shares / minute
  368. The cgminer status line shows:
  369. TQ: 1 ST: 1 SS: 0 DW: 0 NB: 1 LW: 8 GF: 1 RF: 1
  370. TQ is Total Queued work items.
  371. ST is STaged work items (ready to use).
  372. SS is Stale Shares discarded (detected and not submitted so don't count as rejects)
  373. DW is Discarded Work items (work from block no longer valid to work on)
  374. NB is New Blocks detected on the network
  375. LW is Locally generated Work items
  376. GF is Getwork Fail Occasions (server slow to provide work)
  377. RF is Remote Fail occasions (server slow to accept work)
  378. ---
  379. MULTIPOOL
  380. FAILOVER STRATEGIES WITH MULTIPOOL:
  381. A number of different strategies for dealing with multipool setups are
  382. available. Each has their advantages and disadvantages so multiple strategies
  383. are available by user choice, as per the following list:
  384. FAILOVER:
  385. The default strategy is failover. This means that if you input a number of
  386. pools, it will try to use them as a priority list, moving away from the 1st
  387. to the 2nd, 2nd to 3rd and so on. If any of the earlier pools recover, it will
  388. move back to the higher priority ones.
  389. ROUND ROBIN:
  390. This strategy only moves from one pool to the next when the current one falls
  391. idle and makes no attempt to move otherwise.
  392. ROTATE:
  393. This strategy moves at user-defined intervals from one active pool to the next,
  394. skipping pools that are idle.
  395. LOAD BALANCE:
  396. This strategy sends work to all the pools to maintain optimum load. The most
  397. efficient pools will tend to get a lot more shares. If any pool falls idle, the
  398. rest will tend to take up the slack keeping the miner busy.
  399. BALANCE:
  400. This strategy monitors the amount of difficulty 1 shares solved for each pool
  401. and uses it to try to end up doing the same amount of work for all pools.
  402. ---
  403. SOLO MINING
  404. Solo mining can be done efficiently as a single pool entry or a backup to
  405. any other pooled mining and it is recommended everyone have solo mining set up
  406. as their final backup in case all their other pools are DDoSed/down for the
  407. security of the network. To enable solo mining, one must be running a local
  408. bitcoind/bitcoin-qt or have one they have rpc access to. To do this, edit your
  409. bitcoind configuration file (bitcoin.conf) with the following extra lines,
  410. using your choice of username and password:
  411. rpcuser=username
  412. rpcpassword=password
  413. Restart bitcoind, then start cgminer, pointing to the bitcoind and choose a
  414. btc address with the following options, altering to suit their setup:
  415. cgminer -o http://localhost:8332 -u username -p password --btc-address 15qSxP1SQcUX3o4nhkfdbgyoWEFMomJ4rZ
  416. ---
  417. LOGGING
  418. cgminer will log to stderr if it detects stderr is being redirected to a file.
  419. To enable logging simply add 2>logfile.txt to your command line and logfile.txt
  420. will contain the logged output at the log level you specify (normal, verbose,
  421. debug etc.)
  422. In other words if you would normally use:
  423. ./cgminer -o xxx -u yyy -p zzz
  424. if you use
  425. ./cgminer -o xxx -u yyy -p zzz 2>logfile.txt
  426. it will log to a file called logfile.txt and otherwise work the same.
  427. There is also the -m option on linux which will spawn a command of your choice
  428. and pipe the output directly to that command.
  429. If you start cgminer with the --sharelog option, you can get detailed
  430. information for each share found. The argument to the option may be "-" for
  431. standard output (not advisable with the ncurses UI), any valid positive number
  432. for that file descriptor, or a filename.
  433. To log share data to a file named "share.log", you can use either:
  434. ./cgminer --sharelog 50 -o xxx -u yyy -p zzz 50>share.log
  435. ./cgminer --sharelog share.log -o xxx -u yyy -p zzz
  436. For every share found, data will be logged in a CSV (Comma Separated Value)
  437. format:
  438. timestamp,disposition,target,pool,dev,thr,sharehash,sharedata
  439. For example (this is wrapped, but it's all on one line for real):
  440. 1335313090,reject,
  441. ffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000,
  442. http://localhost:8337,GPU0,0,
  443. 6f983c918f3299b58febf95ec4d0c7094ed634bc13754553ec34fc3800000000,
  444. 00000001a0980aff4ce4a96d53f4b89a2d5f0e765c978640fe24372a000001c5
  445. 000000004a4366808f81d44f26df3d69d7dc4b3473385930462d9ab707b50498
  446. f681634a4f1f63d01a0cd43fb338000000000080000000000000000000000000
  447. 0000000000000000000000000000000000000000000000000000000080020000
  448. ---
  449. RPC API
  450. For RPC API details see the API-README file
  451. ---
  452. FAQ
  453. Q: Can I mine on servers from different networks (eg xxxcoin and bitcoin) at
  454. the same time?
  455. A: No, cgminer keeps a database of the block it's working on to ensure it does
  456. not work on stale blocks, and having different blocks from two networks would
  457. make it invalidate the work from each other.
  458. Q: Can I configure cgminer to mine with different login credentials or pools
  459. for each separate device?
  460. A: No.
  461. Q: Can I put multiple pools in the config file?
  462. A: Yes, check the example.conf file. Alternatively, set up everything either on
  463. the command line or via the menu after startup and choose settings->write
  464. config file and the file will be loaded one each startup.
  465. Q: The build fails with gcc is unable to build a binary.
  466. A: Remove the "-march=native" component of your CFLAGS as your version of gcc
  467. does not support it.
  468. Q: Can you implement feature X?
  469. A: I can, but time is limited, and people who donate are more likely to get
  470. their feature requests implemented.
  471. Q: Work keeps going to my backup pool even though my primary pool hasn't
  472. failed?
  473. A: Cgminer checks for conditions where the primary pool is lagging and will
  474. pass some work to the backup servers under those conditions. The reason for
  475. doing this is to try its absolute best to keep the GPUs working on something
  476. useful and not risk idle periods. You can disable this behaviour with the
  477. option --failover-only.
  478. Q: Is this a virus?
  479. A: Cgminer is being packaged with other trojan scripts and some antivirus
  480. software is falsely accusing cgminer.exe as being the actual virus, rather
  481. than whatever it is being packaged with. If you installed cgminer yourself,
  482. then you do not have a virus on your computer. Complain to your antivirus
  483. software company. They seem to be flagging even source code now from cgminer
  484. as viruses, even though text source files can't do anything by themself.
  485. Q: Can you modify the display to include more of one thing in the output and
  486. less of another, or can you change the quiet mode or can you add yet another
  487. output mode?
  488. A: Everyone will always have their own view of what's important to monitor.
  489. The defaults are very sane and I have very little interest in changing this
  490. any further.
  491. Q: What are the best parameters to pass for X pool/hardware/device.
  492. A: Virtually always, the DEFAULT parameters give the best results. Most user
  493. defined settings lead to worse performance. The ONLY thing most users should
  494. need to set is the Intensity for GPUs.
  495. Q: What happened to CPU and GPU mining?
  496. A: Their efficiency makes them irrelevant in the bitcoin mining world today
  497. and the author has no interest in supporting alternative coins that are better
  498. mined by these devices.
  499. Q: GUI version?
  500. A: No. The RPC interface makes it possible for someone else to write one
  501. though.
  502. Q: I'm having an issue. What debugging information should I provide?
  503. A: Start cgminer with your regular commands and add -D -T --verbose and provide
  504. the full startup output and a summary of your hardware and operating system.
  505. Q: Why don't you provide win64 builds?
  506. A: Win32 builds work everywhere and there is precisely zero advantage to a
  507. 64 bit build on windows.
  508. Q: Is it faster to mine on windows or linux?
  509. A: It makes no difference. It comes down to choice of operating system for
  510. their various features. Linux offers much better long term stability and
  511. remote monitoring and security, while windows offers you overclocking tools
  512. that can achieve much more than cgminer can do on linux.
  513. Q: My network gets slower and slower and then dies for a minute?
  514. A; Try the --net-delay option.
  515. Q: How do I tune for p2pool?
  516. A: It is also recommended to use --failover-only since the work is effectively
  517. like a different block chain, and not enabling --no-submit-stale. If mining with
  518. a BFL (fpga) minirig, it is worth adding the --bfl-range option.
  519. Q: I run PHP on windows to access the API with the example miner.php. Why does
  520. it fail when php is installed properly but I only get errors about Sockets not
  521. working in the logs?
  522. A: http://us.php.net/manual/en/sockets.installation.php
  523. Q: What is a PGA?
  524. A: At the moment, cgminer supports 3 FPGAs: BitForce, Icarus and ModMiner.
  525. They are Field-Programmable Gate Arrays that have been programmed to do Bitcoin
  526. mining. Since the acronym needs to be only 3 characters, the "Field-" part has
  527. been skipped.
  528. Q: What is an ASIC?
  529. A: They are Application Specify Integrated Circuit devices and provide the
  530. highest performance per unit power due to being dedicated to only one purpose.
  531. Q: Can I mine scrypt with FPGAs or ASICs?
  532. A: No.
  533. Q: What is stratum and how do I use it?
  534. A: Stratum is a protocol designed for pooled mining in such a way as to
  535. minimise the amount of network communications, yet scale to hardware of any
  536. speed. With versions of cgminer 2.8.0+, if a pool has stratum support, cgminer
  537. will automatically detect it and switch to the support as advertised if it can.
  538. If you input the stratum port directly into your configuration, or use the
  539. special prefix "stratum+tcp://" instead of "http://", cgminer will ONLY try to
  540. use stratum protocol mining. The advantages of stratum to the miner are no
  541. delays in getting more work for the miner, less rejects across block changes,
  542. and far less network communications for the same amount of mining hashrate. If
  543. you do NOT wish cgminer to automatically switch to stratum protocol even if it
  544. is detected, add the --fix-protocol option.
  545. Q: Why don't the statistics add up: Accepted, Rejected, Stale, Hardware Errors,
  546. Diff1 Work, etc. when mining greater than 1 difficulty shares?
  547. A: As an example, if you look at 'Difficulty Accepted' in the RPC API, the number
  548. of difficulty shares accepted does not usually exactly equal the amount of work
  549. done to find them. If you are mining at 8 difficulty, then you would expect on
  550. average to find one 8 difficulty share, per 8 single difficulty shares found.
  551. However, the number is actually random and converges over time, it is an average,
  552. not an exact value, thus you may find more or less than the expected average.
  553. Q: My keyboard input momentarily pauses or repeats keys every so often on
  554. windows while mining?
  555. A: The USB implementation on windows can be very flaky on some hardware and
  556. every time cgminer looks for new hardware to hotplug it it can cause these
  557. sorts of problems. You can disable hotplug with:
  558. --hotplug 0
  559. Q: What should my Work Utility (WU) be?
  560. A: Work utility is the product of hashrate * luck and only stabilises over a
  561. very long period of time. Assuming all your work is valid work, bitcoin mining
  562. should produce a work utility of approximately 1 per 71.6MH. This means at
  563. 5GH you should have a WU of 5000 / 71.6 or ~ 69. You cannot make your machine
  564. do "better WU" than this - it is luck related. However you can make it much
  565. worse if your machine produces a lot of hardware errors producing invalid work.
  566. Q: What should I build in for a generic distribution binary?
  567. A: There are a number of drivers that expect to be used on dedicated standalone
  568. hardware. That said, the drivers that are designed to work generically with
  569. USB on any hardware are the following:
  570. Code:
  571. --enable-avalon
  572. --enable-avalon2
  573. --enable-avalon4
  574. --enable-bflsc
  575. --enable-bitfury
  576. --enable-cointerra
  577. --enable-drillbit
  578. --enable-hashfast
  579. --enable-hashratio
  580. --enable-icarus
  581. --enable-klondike
  582. ---
  583. This code is provided entirely free of charge by the programmer in his spare
  584. time so donations would be greatly appreciated. Please consider donating to the
  585. address below.
  586. Con Kolivas <kernel@kolivas.org>
  587. 15qSxP1SQcUX3o4nhkfdbgyoWEFMomJ4rZ

comments powered by Disqus