Using cgminer with the Bitmain Antminer U1 USB
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 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
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 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>