Your Name il y a 5 ans
commit
858b4f70fc
9 fichiers modifiés avec 211 ajouts et 0 suppressions
  1. 63 0
      01-cgminer.rules
  2. 0 0
      README.md
  3. 87 0
      build.sh
  4. 8 0
      clean.sh
  5. 24 0
      x11/ChangeList
  6. 25 0
      x11/README
  7. 1 0
      x11/Sha1
  8. BIN
      x11/cgminer
  9. 3 0
      x11/go.sh

+ 63 - 0
01-cgminer.rules

@@ -0,0 +1,63 @@
+# Butterfly Labs FPGA and ASIC devices
+ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+
+# ModMinerQuad
+ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="0003", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+
+# Lancelot and Avalon
+ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+
+# Icarus
+ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="0083", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+
+# AsicminerUSB and Antminer U1
+ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+
+# Cairnsmore1
+ATTRS{idVendor}=="067b", ATTRS{idProduct}=="0230", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+
+# Cairnsmore1-2
+ATTRS{idVendor}=="0403", ATTRS{idProduct}=="8350", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+
+# Ztex
+ATTRS{idVendor}=="221a", ATTRS{idProduct}=="0100", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+
+# BF1
+ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="204b", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+
+# Klondike
+ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="f60a", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+
+# HashFast
+ATTRS{idVendor}=="297c", ATTRS{idProduct}=="0001", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+ATTRS{idVendor}=="297c", ATTRS{idProduct}=="8001", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+
+# BXF
+ATTRS{idVendor}=="198c", ATTRS{idProduct}=="b1f1", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+
+# NF1
+ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="00de", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+
+# ANT_S1
+ATTRS{idVendor}=="4254", ATTRS{idProduct}=="4153", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+
+# Cointerra
+ATTRS{idVendor}=="1cbe", ATTRS{idProduct}=="0003", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+
+# Drillbit Thumb
+ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2404", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+
+# Avalon4
+ATTRS{idVendor}=="29f1", ATTRS{idProduct}=="33f2", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+
+# Gridseed
+ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+
+# Zeus
+# (already covered by Antminer and Avalon, just for documentation)
+#ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+#ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+
+# Lketc
+ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"

+ 0 - 0
README.md


+ 87 - 0
build.sh

@@ -0,0 +1,87 @@
+#!/bin/bash
+sudo apt-get update -y
+sudo apt-get upgrade -y
+sudo apt-get install git build-essential autoconf automake libtool pkg-config libcurl4-openssl-dev libudev-dev libjansson-dev libncurses5-dev -y
+sudo apt-get install screen htop build-essential autoconf automake libtool pkg-config libcurl4-gnutls-dev libjansson-dev uthash-dev libncursesw5-dev libudev-dev libusb-1.0-0-dev libevent-dev libmicrohttpd-dev libhidapi-dev libgcrypt20-dev libssl-dev -y
+git clone https://github.com/wareck/cgminer-gekko.git
+git clone https://github.com/wareck/cgminer-lketc.git
+git clone https://github.com/wareck/bfgminer.git bfgminer-ftb
+git clone https://github.com/wareck/bfgminer.git
+git clone https://github.com/wareck/dualminer-cgminer.git
+git clone https://github.com/csa402/cgminer-ants3.git
+git clone https://github.com/tpruvot/cpuminer-multi.git
+sudo usermod -a -G dialout,plugdev $USER
+sudo cp 01-cgminer.rules /etc/udev/rules.d/
+
+echo ""
+cd cgminer-gekko
+./autogen.sh
+./configure --enable-gekko
+make
+cat <<'EOF'>> go.sh
+#!/bin/bash
+./cgminer -o stratum+tcp://b3v.f2pool.com:1328 -u 1EjmJRoZ5UL7Bd7ujpRFRLK7g1oQt78nSR.Stick -p x --gekko-compac-freq 200 --gekko-2pac-freq 150
+EOF
+chmod +x go.sh
+cd ..
+
+echo ""
+cd cgminer-lketc
+./autogen.sh
+./configure --enable-scrypt --enable-zeus --enable-lketc
+make
+cat <<'EOF'>> go.sh
+#!/bin/bash
+./cgminer --scrypt -o stratum+tcp://hub.miningpoolhub.com:20523 -u wareck.1 -p x --lketc-clock 280 --zeus-chips 6 --zeus-clock 328
+EOF
+chmod +x go.sh
+cd ..
+
+echo ""
+cd dualminer-cgminer
+./autogen.sh
+./configure --enable-dualminer --enable-scrypt
+make
+cat <<'EOF'>> go.sh
+#!/bin/bash
+./cgminer --scrypt -o stratum+tcp://b3v.f2pool.com:1328 -u 1EjmJRoZ5UL7Bd7ujpRFRLK7g1oQt78nSR.Stick -p x
+EOF
+chmod +x go.sh
+cd ..
+
+echo ""
+cd bfgminer-ftb
+./autogen.sh
+./configure --enable-futurebit  --enable-scrypt --disable-gridseed  --disable-zeus --disable-dualminer
+make
+cat <<'EOF'>> go.sh
+#!/bin/bash
+./bfgminer --scrypt -o stratum+tcp://hub.miningpoolhub.com:20523 -u wareck.1 -p x -S ALL --set MLD:clock=600
+EOF
+chmod +x go.sh
+cd ..
+
+echo ""
+cd bfgminer
+./autogen.sh
+./configure --enable-futurebit  --enable-scrypt
+make
+cat <<'EOF'>> go.sh
+#!/bin/bash
+./bfgminer --scrypt -o stratum+tcp://hub.miningpoolhub.com:20523 -u wareck.1 -p x -S ALL --set MLD:clock=600
+EOF
+chmod +x go.sh
+cd ..
+
+echo ""
+cd cgminer-ants3
+./autogen.sh
+./configure --enable-ants3
+make
+cd ..
+
+echo ""
+cd cpuminer-multi
+./autogen.sh
+./build.sh
+cd ..

+ 8 - 0
clean.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+rm -r -f bfgminer
+rm -r -f bfgminer-ftb
+rm -r -f cgminer-ants3
+rm -r -f cgminer-lketc
+rm -r -f cgminer-gekko
+rm -r -f dualminer-cgminer
+rm -r -f cpuminer-multi

+ 24 - 0
x11/ChangeList

@@ -0,0 +1,24 @@
+2016-04-28
+1. Add chip status show.( [ 111111 111111 111111 110111 111111 111111 111010 011111 111111 111101 ] if show 1 menas chip work )
+
+2016-05-04
+1. Add serial read buffer.
+2. Add option --drl-asic-status.
+
+2016-05-09
+1. Fix: miner slow when diff is very high.
+2. Fix: can not miner one more devices.
+3. Fix: calc local hashrate not correct.
+4. Update --dr1-fan 
+   --dr1-fan          Set fanspeed percentage for DR1, single value or range (default: LV3 )(LV1/LV2/LV3)
+   
+2016-05-15
+1. Remove --drl-asic-status
+
+2016-06-02
+1. Add miniusb --du1 option for usb miner.
+
+2016-06-07 version 1.0.7
+1. Add delay for config miner.
+2. Fix du1 show incorrect in miner console.
+3. Change miner version to 1.0.7

+ 25 - 0
x11/README

@@ -0,0 +1,25 @@
+DR1 miner parameters description:
+
+--dr1-cutoff-temp  Set DR1 overheat cut off temperature (default: 45)  
+--drl-cutoff-fan   Set DR1 too slow cut off fanspeed (default: 0)
+--dr1-fan          Set fanspeed percentage for DR1, single value or range (default: LV3 )(LV1/LV2/LV3)
+--dr1-clk          Set frequency for DR1, (default: 200) 200/250/300/400
+--dr1-asic-x       Set asic x num (default:10) 
+--dr1-asic-y       Set asic y num (default:6)
+--dr1-check-testnonce Set DR1 check nonce before submit to server
+--dr1-scan-serial|-S  [# Direct serial I/O, manual port specification (Linux)--dr1-scan-serial /dev/ttyUSB0 --dr1-scan-serial /dev/ttyUSB1 (Windows) --dr1-scan-serial //./COM5]
+                      [# Direct serial I/O, auto-detect ports (Linux only)--dr1-scan-serial dr1:auto]
+--du1           Just for miniusb mining,if set minidr will auto ignore --dr1-asic-x --dr1-asic-y --dr1-cutoff-temp --drl-cutoff-fan
+					  
+Linux DEPENDENCIES :
+curl dev library 
+(sudo apt-get install libcurl4-openssl-dev)
+
+curses dev library
+(sudo apt-get install libncurses5-dev)
+
+Usage:
+./cgminer --x11 -o "stratum+tcp://url:port" -u xxx -p x --dr1-clk 400 --dr1-fan LV3 -S /dev/ttyUSB0
+USB Usage:
+./cgminer --x11 -o "stratum+tcp://url:port" -u xxx -p x --dr1-clk 400 --dr1-fan LV3 -S /dev/ttyUSB0 --du1 
+

+ 1 - 0
x11/Sha1

@@ -0,0 +1 @@
+a8363d4382bb891e1cd80197a73c705b34b0ce74  cgminer

BIN
x11/cgminer


+ 3 - 0
x11/go.sh

@@ -0,0 +1,3 @@
+#!/bin/bash
+#./cgminer --x11 -o stratum+tcp://x11.eu.nicehash.com:3336 -u 3Fn2uyxTZ8Zu9ksVyakH6tT2XYzq1fyXf3.x11 -p x --dr1-clk 400 --dr1-fan LV3 --du1 -S /dev/ttyACM0 -S /dev/ttyACM1
+./cgminer --x11 -o stratum+tcp://dash.suprnova.cc:9991 -u wareck.1 -p x --dr1-clk 400 --dr1-fan LV3 --du1 -S /dev/ttyACM0 -S /dev/ttyACM1