ASIC-README 6.0 KB

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