ASIC-README 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. SUPPORTED DEVICES
  2. Currently supported devices include the Avalon (including BitBurner and
  3. Klondike), the Butterfly Labs SC range of devices, the ASICMINER block
  4. erupters and the BPMC BF1 (bitfury) USB devices. No COM ports on windows or
  5. TTY devices will be used by cgminer as it communicates directly with them
  6. via USB so it is normal for them to not exist or be disconnected when
  7. cgminer is running.
  8. The BFL devices should come up as one of the following:
  9. BAJ: BFL ASIC Jalapeño
  10. BAL: BFL ASIC Little Single
  11. BAS: BFL ASIC Single
  12. BAM: BFL ASIC Minirig
  13. BFL devices need the --enable-bflsc option when compiling cgminer yourself.
  14. Avalon will come up as AVA.
  15. Avalon devices need the --enable-avalon option when compiling cgminer.
  16. Klondike will come up as KLN.
  17. Klondike devices need the --enable-klondike option when compiling cgminer.
  18. ASICMINER block erupters will come up as AMU.
  19. ASICMINER devices need the --enable-icarus option when compiling cgminer.
  20. Also note that the AMU is managed by the Icarus driver which is detailed
  21. in the FPGA-README. Configuring them uses the same mechanism as outlined
  22. below for getting started with butterfly labs ASICs.
  23. BITFURY devices
  24. Bitfury devices need the --enable-bitfury option when compiling cgminer.
  25. Currently only the BPMC BF1 devices AKA redfury/bluefury are supported and
  26. come up as BF1. There are no options available for them. Bitfury device are
  27. also set up as per the butterfly labs ASICs below.
  28. GETTING STARTED WITH BUTTERFLY LABS ASICS
  29. Unlike other software, cgminer uses direct USB communication instead of the
  30. ancient serial USB communication to be much faster, more reliable and use a
  31. lot less CPU. For this reason, setting up for mining with cgminer on these
  32. devices requires different drivers.
  33. WINDOWS:
  34. On windows, the direct USB support requires the installation of a WinUSB
  35. driver (NOT the ftdi_sio driver), and attach it to the Butterfly labs device.
  36. The easiest way to do this is to use the zadig utility which will install the
  37. drivers for you and then once you plug in your device you can choose the
  38. "list all devices" from the "option" menu and you should be able to see the
  39. device as something like: "BitFORCE SHA256 SC". Choose the install or replace
  40. driver option and select WinUSB. You can either google for zadig or download
  41. it from the cgminer directory in the DOWNLOADS link above.
  42. When you first switch a device over to WinUSB with zadig and it shows that
  43. correctly on the left of the zadig window, but it still gives permission
  44. errors, you may need to unplug the USB miner and then plug it back in. Some
  45. users may need to reboot at this point.
  46. LINUX:
  47. On linux, the direct USB support requires no drivers at all. However due to
  48. permissions issues, you may not be able to mine directly on the devices as a
  49. regular user without giving the user access to the device or by mining as
  50. root (administrator). In order to give your regular user access, you can make
  51. him a member of the plugdev group with the following commands:
  52. sudo usermod -G plugdev -a `whoami`
  53. If your distribution does not have the plugdev group you can create it with:
  54. sudo groupadd plugdev
  55. In order for the BFL devices to instantly be owned by the plugdev group and
  56. accessible by anyone from the plugdev group you can copy the file
  57. "01-cgminer.rules" from the cgminer archive into the /etc/udev/rules.d
  58. directory with the following command:
  59. sudo cp 01-cgminer.rules /etc/udev/rules.d/
  60. After this you can either manually restart udev and re-login, or more easily
  61. just reboot.
  62. ASIC SPECIFIC COMMANDS
  63. --avalon-auto Adjust avalon overclock frequency dynamically for best hashrate
  64. --avalon-cutoff <arg> Set avalon overheat cut off temperature (default: 60)
  65. --avalon-fan <arg> Set fanspeed percentage for avalon, single value or range (default: 20-100)
  66. --avalon-freq <arg> Set frequency range for avalon-auto, single value or range
  67. --avalon-options <arg> Set avalon options baud:miners:asic:timeout:freq
  68. --avalon-temp <arg> Set avalon target temperature (default: 50)
  69. --bflsc-overheat <arg> Set overheat temperature where BFLSC devices throttle, 0 to disable (default: 90)
  70. --bitburner-fury-options <arg> Override avalon-options for BitBurner Fury boards baud:miners:asic:timeout:freq
  71. --bitburner-fury-voltage <arg> Set BitBurner Fury core voltage, in millivolts
  72. --bitburner-voltage <arg> Set BitBurner (Avalon) core voltage, in millivolts
  73. --klondike-options <arg> Set klondike options clock:temp1:temp2:fan
  74. AVALON DEVICES
  75. Currently all known Avalon devices come with their own operating system and
  76. a preinstalled version of cgminer as part of the flash firmware, based on the
  77. most current cgminer version so no configuration should be necessary. It is
  78. possible to plug a USB cable from a PC into the Avalon device and mine using
  79. cgminer as per any other device. It will autodetect and hotplug using default
  80. options. You can customise the avalon behaviour by using the avalon-options
  81. command, and adjust its fan control-temperature relationship with avalon-temp.
  82. By default the avalon will also cut off when its temperature reaches 60
  83. degrees.
  84. Avalon commands:
  85. --avalon-auto Adjust avalon overclock frequency dynamically for best hashrate
  86. --avalon-cutoff <arg> Set avalon overheat cut off temperature (default: 60)
  87. --avalon-fan <arg> Set fanspeed percentage for avalon, single value or range (default: 20-100)
  88. --avalon-freq <arg> Set frequency range for avalon-auto, single value or range
  89. --avalon-options <arg> Set avalon options baud:miners:asic:timeout:freq
  90. --avalon-temp <arg> Set avalon target temperature (default: 50)
  91. --bitburner-fury-options <arg> Override avalon-options for BitBurner Fury boards baud:miners:asic:timeout:freq
  92. --bitburner-fury-voltage <arg> Set BitBurner Fury core voltage, in millivolts
  93. --bitburner-voltage <arg> Set BitBurner (Avalon) core voltage, in millivolts
  94. Avalon auto will enable dynamic overclocking gradually increasing and
  95. decreasing the frequency till the highest hashrate that keeps hardware errors
  96. under 2% is achieved. This WILL run your avalon beyond its normal specification
  97. so the usual warnings apply. When avalon-auto is enabled, the avalon-options
  98. for frequency and timeout are used as the starting point only.
  99. eg:
  100. --avalon-fan 50
  101. --avalon-fan 40-80
  102. By default the avalon fans will be adjusted to maintain a target temperature
  103. over a range from 20 to 100% fanspeed. avalon-fan allows you to limit the
  104. range of fanspeeds to a single value or a range of values.
  105. eg:
  106. --avalon-freq 300-350
  107. In combination with the avalon-auto command, the avalon-freq command allows you
  108. to limit the range of frequencies which auto will adjust to.
  109. eg:
  110. --avalon-temp 55
  111. This will adjust fanspeed to keep the temperature at or slightly below 55.
  112. If you wish the fans to run at maximum speed, setting the target temperature
  113. very low such as 0 will achieve this. This option can be added to the "More
  114. options" entry in the web interface if you do not have a direct way of setting
  115. it.
  116. eg:
  117. --avalon-cutoff 65
  118. This will cut off the avalon should it get up to 65 degrees and will then
  119. re-enable it when it gets to the target temperature as specified by avalon-temp.
  120. eg:
  121. --avalon-options 115200:24:10:45:282
  122. The values are baud : miners : asic count : timeout : frequency.
  123. Baud:
  124. The device is pretty much hard coded to emulate 115200 baud so you shouldn't
  125. change this.
  126. Miners:
  127. Most Avalons are 3 module devices, which come to 24 miners. 4 module devices
  128. would use 32 here.
  129. Asic count:
  130. Virtually all have 10, so don't change this.
  131. Timeout:
  132. This is how long the device will work on a work item before accepting new work
  133. to replace it. It should be changed according to the frequency (last setting).
  134. It is possible to set this a little lower if you are trying to tune for short
  135. block mining (eg p2pool) but much lower and the device will start creating
  136. duplicate shares.
  137. A value of 'd' means cgminer will calculate it for you based on the frequency
  138. Sample settings for valid different frequencies (last 2 values):
  139. 34:375 *
  140. 36:350 *
  141. 39:325 *
  142. 43:300
  143. 45:282 (default)
  144. 47:270
  145. 50:256
  146. Frequency:
  147. This is the clock speed of the devices. Only specific values work, 256, 270,
  148. 282 (default), 300, 325, 350 and 375.
  149. Note that setting a value with an asterisk next to it will be using your
  150. avalon outside its spec and you do so at your own risk.
  151. eg:
  152. --bitburner-voltage <arg> Set BitBurner core voltage, in millivolts
  153. Self evident.
  154. If you use the full curses based interface with Avalons you will get this
  155. information:
  156. AVA 0: 22/ 46C 2400R
  157. The values are:
  158. ambient temp / highest device temp lowest detected ASIC cooling fan RPM.
  159. Use the API for more detailed information than this.
  160. BFLSC Devices
  161. --bflsc-overheat <arg> Set overheat temperature where BFLSC devices throttle, 0 to disable (default: 90)
  162. This will allow you to change or disable the default temperature where cgminer
  163. throttles BFLSC devices by allowing them to temporarily go idle.
  164. ---
  165. This code is provided entirely free of charge by the programmer in his spare
  166. time so donations would be greatly appreciated. Please consider donating to the
  167. address below.
  168. Con Kolivas <kernel@kolivas.org>
  169. 15qSxP1SQcUX3o4nhkfdbgyoWEFMomJ4rZ