Skip to content

Instantly share code, notes, and snippets.

@DavidWittman
Created March 14, 2014 04:46
Show Gist options
  • Select an option

  • Save DavidWittman/9542274 to your computer and use it in GitHub Desktop.

Select an option

Save DavidWittman/9542274 to your computer and use it in GitHub Desktop.
Mining Dogecoin/Litecoin with cgminer and the Antminer U1 USB.

Using cgminer with the Bitmain Antminer U1 USB

Download

Download the latest version of cgminer. At the time of writing, this is version 4.1.0.

$ wget http://ck.kolivas.org/apps/cgminer/cgminer-4.1.0.tar.bz2
$ tar xf cgminer-4.1.0.tar.bz2
$ cd cgminer-4.1.0

Compile

Compile cgminer with support for Icarus. If you don't do this, cgminer won't recognize the Antminer U1 and will fail with a "No known USB devices".

$ ./configure --enable-icarus
$ make -j5

Optional:

Confirm that cgminer recognizes your Antminer U1 by running sudo ./cgminer -n. If it does, you will see something like the following output:

$ sudo ./cgminer -n
 [2014-03-13 23:40:18] USB all: found 12 devices - listing known devices
.USB dev 0: Bus 4 Device 4 ID: 10c4:ea60
  Manufacturer: 'Silicon Labs'
  Product: 'CP2102 USB to UART Bridge Controller'                    
 [2014-03-13 23:40:18] 1 known USB devices       

Run

Run cgminer. I'm running it as root, which is probably a terrible idea, but I didn't feel like setting up the USB hotplug permissions and udev rules.

$ sudo ./cgminer -o stratum+tcp://<pool>:<port> --userpass <user>:<pass>
@starmandate
Copy link
Copy Markdown

What hash rate can you achieve with this method? I was thinking of selling my asic on as it is too slow for btc (I don't want to damage it)..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment