ASIC-README 12 KB

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