Your Name il y a 5 ans
Parent
commit
38eb595772
2 fichiers modifiés avec 76 ajouts et 1 suppressions
  1. 65 0
      70-bfgminer.rules
  2. 11 1
      build.sh

+ 65 - 0
70-bfgminer.rules

@@ -0,0 +1,65 @@
+# do not edit this file, it will be overwritten on update
+
+ACTION=="add", SUBSYSTEMS=="usb", GOTO="bfgminer_start"
+GOTO="bfgminer_end"
+LABEL="bfgminer_start"
+
+ENV{ID_MODEL}=="*bi•fury*", GOTO="bfgminer_add"
+ENV{ID_MODEL}=="*Bitfury*BF1*", GOTO="bfgminer_add"
+ENV{ID_MODEL}=="*BitFORCE*SHA256*", GOTO="bfgminer_add"
+ENV{ID_MODEL}=="*GoldStrike*", GOTO="bfgminer_add"
+ENV{manufacturer}=="*Drillbit*", GOTO="bfgminer_add"
+ENV{ID_MODEL}=="*Antminer*", GOTO="bfgminer_add"
+ENV{ID_MODEL}=="*Cairnsmore1*", GOTO="bfgminer_add"
+ENV{ID_MODEL}=="*Compac*Bitcoin*", GOTO="bfgminer_add"
+ENV{ID_MODEL}=="*Block*Erupter*", GOTO="bfgminer_add"
+ENV{ID_MODEL}=="*HashBuster*", GOTO="bfgminer_add"
+ENV{ID_MODEL}=="*HashBuster*", GOTO="bfgminer_add"
+ENV{idVendor}=="297c", ENV{manufacturer}=="*HashFast*", GOTO="bfgminer_add"
+ENV{ID_MODEL}=="*GoldenNonce*", GOTO="bfgminer_add"
+ENV{idVendor}=="04d8", ENV{idProduct}=="f60a", ENV{manufacturer}=="*Klondike*", GOTO="bfgminer_add"
+ENV{idVendor}=="fa05", ENV{idProduct}=="0001", ENV{manufacturer}=="*HashBuster*", GOTO="bfgminer_add"
+ENV{ID_MODEL}=="*LittleFury*", GOTO="bfgminer_add"
+ENV{ID_MODEL}=="*ModMiner*", GOTO="bfgminer_add"
+ENV{idVendor}=="04d8", ENV{idProduct}=="00de", ENV{ID_MODEL}=="*NanoFury*", GOTO="bfgminer_add"
+ENV{ID_MODEL}=="*R-BOX miner*", GOTO="bfgminer_add"
+ENV{ID_MODEL}=="*RX-BOX miner*", GOTO="bfgminer_add"
+ENV{ID_MODEL}=="*Twinfury*", GOTO="bfgminer_add"
+ENV{idVendor}=="0403", ENV{idProduct}=="6001", ENV{ID_MODEL}=="*X6500 FPGA Miner*", GOTO="bfgminer_add"
+ENV{ID_MODEL}=="*btcminer for ZTEX*", GOTO="bfgminer_add"
+
+# The below are broad udev rules that may match devices other than the miners expected.
+# You can uncomment them with the --enable-broad-udevrules configure option.
+
+# Avalon1
+#ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", GOTO="bfgminer_add"
+# AvalonMM
+#ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", GOTO="bfgminer_add"
+# DualMiner
+#ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", GOTO="bfgminer_add"
+# GridSeed
+#ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", GOTO="bfgminer_add"
+# Icarus
+#ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", GOTO="bfgminer_add"
+# Cairnsmore1
+#ATTRS{idVendor}=="067b", ATTRS{idProduct}=="0230", GOTO="bfgminer_add"
+#ATTRS{idVendor}=="0403", ATTRS{idProduct}=="8350", GOTO="bfgminer_add"
+# Block Erupter and Antminer U*
+#ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", GOTO="bfgminer_add"
+# ZeusMiner
+#ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", GOTO="bfgminer_add"
+# Possibly unprogrammed ZTEX
+#ATTRS{idVendor}=="221a", ATTRS{idProduct}=="0100", GOTO="bfgminer_add"
+# BFx2
+#ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", GOTO="bfgminer_add"
+# RockMiner
+#ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", GOTO="bfgminer_add"
+
+GOTO="bfgminer_end"
+
+LABEL="bfgminer_add"
+
+GROUP="video"
+ENV{ID_MM_DEVICE_IGNORE}="1"
+
+LABEL="bfgminer_end"

+ 11 - 1
build.sh

@@ -20,6 +20,8 @@ git clone https://github.com/tpruvot/cpuminer-multi.git
 echo ""
 sudo usermod -a -G dialout,plugdev $USER
 sudo cp 01-cgminer.rules /etc/udev/rules.d/
+sudo cp 70-bfgminer.rules /etc/udev/rules.d/
+
 
 echo ""
 cd cgminer-gekko
@@ -67,7 +69,6 @@ cat <<'EOF'>> go.sh
 ./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
-sudo cp 70-bfgminer.rules /etc/udev/rules.d/
 cd ..
 
 echo ""
@@ -93,4 +94,13 @@ echo ""
 cd cpuminer-multi
 ./autogen.sh
 ./build.sh
+cat <<'EOF'>> go.sh
+#!/bin/bash
+#./cpuminer -a x16rv2 -o stratum+tcp://x16rv2.eu.nicehash.com:3379 -u 3Fn2uyxTZ8Zu9ksVyakH6tT2XYzq1fyXf3.pi -px
+./cpuminer -a lyra2v3 -o stratum+tcp://lyra2rev3.eu.nicehash.com:3373 -u 3Fn2uyxTZ8Zu9ksVyakH6tT2XYzq1fyXf3.pi -p x
+EOF
+chmod ,x go.sh
 cd ..
+
+echo ""
+