Bitcoin Forum
May 27, 2024, 11:44:56 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Problem with Antminer u2  (Read 945 times)
IngloriousNuke (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
October 28, 2015, 09:56:17 PM
 #1

Trying to get an Antminer u2 working in cgminer on a raspberry pi with cgminer version 4.9.2. I'm pretty sure cgminer detects the device but it wont run.

Code:

pi@raspberrypi /usr/src/cgminer $ sudo ./cgminer --ndevs
 [2015-10-28 21:52:38.756] USB all: found 5 devices - listing known devices
.USB dev 0: Bus 1 Device 5 ID: 10c4:ea60
  Manufacturer: 'Silicon Labs'
  Product: 'CP2102 USB to UART Bridge Controller'
 [2015-10-28 21:52:38.757] 1 known USB devices

While running cgminer if I disconnect and reconnect the Antminer u2 I get:

Code:
[2015-10-28 21:43:59.032] AMU 0 GetResults usb read err:(-9) LIBUSB_ERROR_PIPE
 [2015-10-28 21:43:59.045] AMU 0 attempted reset got err:(-5) LIBUSB_ERROR_NOT_F
OUND
 [2015-10-28 21:43:59.046] AMU 0: Comms error (rerr=-5 amt=0)
 [2015-10-28 21:43:59.547] Write voltage Comms error (werr=-4 amount=0)
 [2015-10-28 21:43:59.547] AMU 0: Write freq Comms error (werr=-4 amount=0)
 [2015-10-28 21:43:59.547] AMU 0: Failed to set frequency, too much overclock?
 [2015-10-28 21:44:00.048] Write voltage Comms error (werr=-4 amount=0)
 [2015-10-28 21:44:00.048] AMU 0: Write freq Comms error (werr=-4 amount=0)
 [2015-10-28 21:44:00.048] AMU 0: Failed to set frequency, too much overclock?
 [2015-10-28 21:44:00.049] FAIL: USB get_lock not found (1:5)
 [2015-10-28 21:44:13.182] AU3 0 GetResults usb read err:(-9) LIBUSB_ERROR_PIPE

Any suggestions? Using the code

Code:
sudo ./cgminer --icarus-options 115200:2:2 -o stratum+tcp://stratum.bitcoin.cz:3333 -u 'myusrname' -p 'mypsswd'

With the appropriate arg in the -u and -p obviously.
JamieOnUbuntu
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile WWW
October 28, 2015, 11:41:50 PM
 #2

Hi,

I'm also in the process of setting up an Antminer U2 with a Raspberry Pi.

Where did you acquire your version of CGMiner?
I used the one from http://github.com/bitmaintech/cgminer

Try using this command to launch it:
Code:
sudo cgminer/cgminer --bmsc-options 115200:20 -o stratum+tcp://eu.stratum.bitcoin.cz:3333 -u MY-USERNAME-HERE -p anything

I have got my miner working, but it doesn't stay working for long. I've just had it mining at 1.6 Ghash/s for about 50 minutes, before the hashrate plummeted and it went offline.

Every time I start CGMiner there seems to be about a 1 in 10 chance of it working fine, and a 9 in 10 chance of it throwing up some error.

Let me know how it goes!

Thanks!
IngloriousNuke (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
October 28, 2015, 11:50:52 PM
 #3

I believe I got mine github.com/ckolivas or something.

are you sure you meant

Code:
sudo cgminer/cgminer --bmsc-options 115200:20 -o stratum+tcp://eu.stratum.bitcoin.cz:3333 -u MY-USERNAME-HERE -p anything

With cgminer twice?

--bmsc doesnt do anything for me, can't enable it after enabling icarus.

JamieOnUbuntu
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile WWW
October 28, 2015, 11:54:53 PM
 #4

Aha, the reason I wrote cgminer twice is so that I don't have to CD into the cgminer directory.

It's simply referring to the directory where CGMiner is installed.

"cgminer/cgminer" is the same as doing "cd cgminer" first.

Also, what is Icarus?
IngloriousNuke (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
October 29, 2015, 12:02:59 AM
Last edit: October 29, 2015, 12:58:43 AM by IngloriousNuke
 #5

From the ASIC-README in Cgminer.

Code:
ANTMINER U1/U2+/U3 devices

Antminer devices need the --enable-icarus option when compiling cgminer.

Currently the U1/2/3 USB sticks are supported and come up as the following
devices:

ANU: Antminer U1/U2/U2+
AU3: Antminer U3


Another thing worth noting, my u2 work perfectly on Windows using the same version of Cgminer(4.9.2), after running Zadig and reinstalling drivers all I had to do was plug n play. This might be an issue with power.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!