install needed library, if aptitude not working then use apt-get
1. sudo aptitude update
2. sudo aptitude install libudev-dev libusb-1.0-0-dev libfox-1.6-dev autotools-dev autoconf automake libtool libncurses-dev yasm curl libcurl4-openssl-dev libjansson-dev pkg-config uthash-dev make pkg-config yasm
download cgminer
Code:
1. mkdir cgminer
2. cd cgminer
3. wget https://github.com/ckolivas/cgminer/archive/v3.8.1.tar.gz
4. tar -xvf v3.8.1.tar.gz
5. cd cgminer-3.8.1
6. wget https://www.dropbox.com/s/5suzudn2t06087u/2e9afa38e39678a5dc5bf8be6d20baf1849b548c.patch
7. patch -p1 < 2e9afa38e39678a5dc5bf8be6d20baf1849b548c.patch
8. ./autogen.sh --enable-avalon --enable-bitfury --enable-hexminera --enable-hexminerb --enable-hexminerc
9. make
cgminer options
--enable-hexminera Compile support for HEX16A
--enable-hexminerb Compile support for HEX16B
--enable-hexminerc Compile support for HEX16A2
--enable-avalon Compile support for Avalon (default disabled)
--enable-bflsc Compile support for BFL ASICs (default disabled)
--enable-bitforce Compile support for BitForce FPGAs (default disabled)
--enable-bitfury Compile support for BitFury ASICs (default disabled)
--enable-hashfast Compile support for Hashfast (default disabled)
--enable-icarus Compile support for Icarus (default disabled)
--enable-knc Compile support for KnC miners (default disabled)
--enable-bab Compile support for BlackArrow Bitfury (default disabled)
--enable-klondike Compile support for Klondike (default disabled)
--enable-modminer Compile support for ModMiner FPGAs(default disabled)
--without-curses Compile support for curses TUI (default enabled)
--with-system-libusb Compile against dynamic system libusb (default use included static libusb)
To run cgminer just go to the directory
1. cd cgminer
2. cd cgminer-3.8.1
3. sudo ./cgminer --hexminerb-voltage 900 --hexminerb-options 16:540
For nanofury
download HIDAPI from git
1. git clone git://github.com/signal11/hidapi.git hidapi
2. cd hidapi
3. ./bootstrap
4. ./configure --prefix=/usr
5. make
6. sudo make install
download bfgminer to some directory(in this example is "bfgminer")
1. mkdir bfgminer
2. cd bfgminer
3. wget http://luke.dashjr.org/programs/bitcoin/files/bfgminer/3.8.1/bfgminer-3.8.1.tbz2
4. tar xvf bfgminer-3.8.1.tbz2
5. cd bfgminer-3.8.1
6. ./configure
7. make
bfgminer options
Example: ./configure --enable-bfsb --disable-bitforce
--disable-avalon Compile support for Avalon (default enabled)
--enable-cpumining Build with cpu mining support(default disabled)
--enable-opencl Compile support for OpenCL (default disabled)
--disable-adl Build without ADL monitoring (default enabled)
--disable-bitfury Compile support for Bitfury (default enabled)
--enable-bfsb Compile support for BFSB (default disabled)
--disable-bigpic Compile support for Big Picture Mining USB (default enabled)
--disable-littlefury Compile support for LittleFury (default enabled)
--disable-nanofury Compile support for NanoFury (default enabled)
--disable-hashbuster Compile support for HashBuster Nano (default enabled)
--disable-hashbuster2 Compile support for HashBuster Micro (default if libusb)
--enable-metabank Compile support for Metabank (default disabled)
--disable-bitforce Compile support for BitForce (default enabled)
--disable-icarus Compile support for Icarus (default enabled)
--disable-klondike Compile support for Klondike (default enabled)
--enable-knc Compile support for KnC (default disabled)
--disable-modminer Compile support for ModMiner (default enabled)
--disable-x6500 Compile support for X6500 (default enabled)
--disable-ztex Compile support for ZTEX (default if libusb)
--enable-scrypt Compile support for scrypt mining (default disabled)
--with-system-libblkmaker Use system libblkmaker rather than bundled one (default disabled)
--without-sensors Build with libsensors monitoring (default enabled)
--without-curses Compile support for curses TUI (default enabled)
--without-libmicrohttpd Compile support for libmicrohttpd getwork server (default enabled)
--without-libevent Compile support for libevent stratum server (default enabled)
--without-libusb Compile using libusb (default enabled)
--without-libudev Autodetect FPGAs using libudev (default enabled)
For rapsberrypi change usb speed to usb 1 with text editor nano for nanofury to work but cgminer will not work with this setting
1. sudo nano /boot/cmdline.txt
then add dwc_otg.speed=1 at the end of line
To run bfgminer just go to the directory
1. cd miner
2. cd bfgminer-3.8.1
3. sudo ./bfgminer