Bitcoin Forum
June 23, 2024, 10:02:47 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Hardware / Re: Antminer U3: Decentralization continued. Order now, Ship on Nov. 5th on: November 19, 2014, 06:13:15 AM
Since ckolivas told me to post here... RE: https://bitcointalk.org/index.php?topic=863373.0

And reading the responses from the Bitmain folks about only using windows. I almost lost hope for getting this up and running on Ubuntu. Hopefully those who are also trying to use the U3 on a non-windows system will find what I've done helpful. I made a small change to the Bitmain bmsc driver that allowed me to compile on Ubuntu 14.04. The line I changed can be found here: https://github.com/ajaswa/cgminer/blob/master/driver-bmsc.c#L1484

Steps:

Code:
// install all the needed libs for CGMiner, see CGMiner docs
git clone https://github.com/ajaswa/cgminer.git
cd cgminer
./autogen.sh
./configure --enable-bmsc
make
I also went through the process of unpluging the U3 and rebooting my Ubuntu system.

My current command line is:
Code:
sudo ./cgminer --bmsc-options 115200:0.57 --bmsc-voltage 0755 --bmsc-freq 0782

It's currently chugging along at ~46Gh/s (I'm just happy to have the thing running right now).

I do also seem to have an issue with zombiing after about 30 minutes but it seems to disable and then reenable the U3 by itself.

Hopefully this will help those trying to use linux or a RPI get up and running.
2  Bitcoin / Mining support / Antminer U3 - Linux (Ubuntu) issue on: November 18, 2014, 06:39:33 AM
Hello!

I got a Antminer U3 last week and I've been having issues trying to get it up and running on Ubuntu 14.04. It seems that the Bitmain driver for CGMiner has a buffer overflow which causes CGMiner to crash once it has detected the U3.

Per; https://github.com/bitmaintech/cgminer/blob/master/bitmain-readme.txt#L24
Steps to reproduce:

Code:
// install all the CGMiner dependences (even the optional ones)
git clone https://github.com/bitmaintech/cgminer.git
./autogen.sh // since pulling from git?
autoreconf -fvi
CFLAGS="-O2 -msse2" ./configure --enable-bmsc
make

produces a buffer overflow on line #1484 of driver-bmsc.c (https://github.com/bitmaintech/cgminer/blob/master/driver-bmsc.c#L1484):

Code:
In file included from /usr/include/string.h:640:0,
                 from ./lib/string.h:28,
                 from uthash.h:27,
                 from miner.h:25,
                 from driver-bmsc.c:45:
In function ‘memcpy’,
    inlined from ‘bmsc_scanwork’ at driver-bmsc.c:1484:2:
/usr/include/i386-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));

While I'm not a C programmer I can usually sort out issues, but I can't seem to this time. As far as I can tell this is the line that is causing the Bitmain version of CGMiner to crash. From reading the forums I know I'm not the only person with issues trying to get the U3 up and running on Ubuntu.

If it matters I'm using
Code:
 gcc (Ubuntu 4.9.2-0ubuntu1~14.04) 4.9.2

I know this isn't apart of the offical CGMiner code but I'm hoping someone can point me in the right direction to fixing my issue.

Thanks!
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!