ASIC-README 7.5 KB

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