Skip to content

Instantly share code, notes, and snippets.

@DavidWittman
Created March 14, 2014 04:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidWittman/9542274 to your computer and use it in GitHub Desktop.
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>
@Markarend
Copy link

Sooo, the comment at the top says "Mining Dogecoin/Litecoin with cgminer and the Antminer U1 USB." Is it true this will allow you to mine SCRYPT coins with the Antminer U1 USB? That would be a dream come true; any idea what kind of hashrates? Thanks,

@Klaj
Copy link

Klaj commented Jun 11, 2014

Hi, can you please tell me, if this way I will really mine Dogecoin/Litecoin on Antminer usb?

@okyanu
Copy link

okyanu commented Jun 13, 2014

how can I do this in mac

@ringohasadd
Copy link

wtf is this? RTFM n00b.

@starmandate
Copy link

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