Bitcoin Forum
May 25, 2024, 10:09:48 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 [27] 28 29 30 31 32 33 34 35 »
521  Bitcoin / Hardware / Re: GekkoScience 2Pac BM1384 Stickminer Official Support Thread on: February 01, 2017, 03:54:13 AM
Hmm, I have some old RasPi's courtesy of the now defunct AMT dating from early 2014, prolly version-1's. Will the software run on them?

A solid maybe? Try it out and leave feedback here.
I believe that all versions of raspbian works on all version of raspberry.   
522  Bitcoin / Hardware / Re: GekkoScience 2Pac BM1384 Stickminer Official Support Thread on: February 01, 2017, 12:45:12 AM
Try without the flags.
Code:
./autogen.sh --enable-gekko

Yes, that totally worked. Thanks! I don't have my BM1384 yet - waiting on a delivery from Sidehack.

There is a gcc bug in the Raspian image you have.   
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=139091

You might want to start a new SD card to get a clean image as -ck pointed out and avoid potential issues later.
523  Bitcoin / Hardware / Re: GekkoScience 2Pac BM1384 Stickminer Official Support Thread on: February 01, 2017, 12:03:54 AM
Hi! Sorry, but I'm a bit of a Linux noob. I'm following the instructions on how to install on Raspberry Pi and upon reaching this step:

Code:
CFLAGS="-O2 -march=native" ./autogen.sh --enable-gekko

I'm getting the following errors:

Code:
checking for gcc... gcc
checking whether the C compiler works... *** Error in `gcc': double free or corruption (top): 0x01a43588 ***
no
configure: error: in `/home/pi/git/vthoang/cgminer':
configure: error: C compiler cannot create executables
See `config.log' for more details

My Raspbian is fully up to date and I'm running kernel v4.4

Appreciate any help you can offer to get this running. Thanks.

Try without the flags.
Code:
./autogen.sh --enable-gekko
524  Bitcoin / Hardware / Re: GekkoScience 2Pac BM1384 Stickminer Official Support Thread on: January 31, 2017, 05:03:25 AM
I built it on an older Debian fresh install, needed libncurses5-dev and libusb-1.0-0-dev to compile and work properly.

I've updated the instructions as the raspbian example will apply to both raspbian and debian (tested 8.7.1).
525  Bitcoin / Hardware / Re: GekkoScience 2Pac BM1384 Stickminer Official Support Thread on: January 30, 2017, 09:24:09 PM
I have it running in windows 7 with a compac and a twopac.

I wrote multiple start bats.

I have this as a working bat


but it gives stock freq as it should since no attempt was made to change stock of 150 for 1 chip and stock of 100 for 2 chip

...




this bat crashes  I tried to add freq 200 it was first shot but what must be done for correct setting of 200


...

Try:
--gekko-compac-freq 200 --gekko-2pac-freq 150

Instead of:
--compac-freq
526  Bitcoin / Hardware / Re: GekkoScience 2Pac BM1384 Stickminer Official Support Thread on: January 30, 2017, 08:51:41 PM
I have mine setup and running on a fresh install of Ubuntu 16.04.1 LTS.  Grin

Thanks vh!

Just a little thing, but you missed the step about installing git in the instructions, not a big one, but you could easily add it in the line where you are installing everything else.

Thanks again.

Added.   Thanks for spotting that.
527  Bitcoin / Hardware / Re: GekkoScience 2Pac BM1384 Stickminer Official Support Thread on: January 30, 2017, 06:53:47 PM
Why is this so hard to build?

Not complaining but asking.

If I go to ck his just zips open and I can run cgminer.

I will play with it in a bit.


Eyes are still too blurry I will wait a bit.

http://23.108.83.14/images/cgminer-4.10.0-windows-gekko.7z
528  Bitcoin / Hardware / Re: GekkoScience 2Pac BM1384 Stickminer Official Support Thread on: January 29, 2017, 05:52:09 AM
Windows build instructions has been added:

https://bitcointalk.org/index.php?topic=1764803.msg17624477#msg17624477
529  Bitcoin / Hardware / Re: GekkoScience 2Pac BM1384 Stickminer Official Support Thread on: January 27, 2017, 02:41:21 AM
Yes, the lower frequency options is available in the current build via git.
Both the compac and 2Pac appears to be responding to it.   Bleeding edge right  Cheesy


I can't argue that a powered hub is definitely the long term way to go.

The Pi3B might be a good starting device to use with the 2Pac.  
https://www.raspberrypi.org/help/faqs/#powerReqs.

You feed it a 2.5A power source, and it has a 1.2A current limiter out to the usb ports.
That give the stick up to 6W of power to work with.    

In the photo above, I have a 2.1A battery pack hooked up, drawing 3.88W @ 100MHz.

New numbers while connected to the Pi3B:

adjusting the potentiometer knob as low as it can go
(not sure what that translates to on my stick prototype)

Mining, no hwerror @ 75MHz = 2.7W
Mining, no hwerror @ 50Mhz = 1.9W
530  Economy / Computer hardware / Re: [FOR SALE - SIDEHACK STICK] GekkoScience 2PAC - 2x BM1384 USB Stick Miner on: January 26, 2017, 10:29:43 PM

Thanks for the hard work and support for this project.

I have been running your cgminer 4.10.0 build with original Compac sticks for a few hours now.
Sticks are running at the clock speed of 343.75.
At this clock speed, they should reach around 18.9G. However, they average around 17.6G instead.

Just sharing what I've noticed so far.


Thanks for the feedback.    I'll check if I can replicate that this evening.   
531  Bitcoin / Hardware / Re: GekkoScience 2Pac BM1384 Stickminer Official Support Thread on: January 26, 2017, 04:36:24 AM
ck has released a new version of cgminer this week, does this build include the latest code or the version prior?

Yes, it includes all the latest updates from ck's repository.
Including some related to system libusb that has sent my windows build example back to the drawing board.  Sad
   
The entry page to my repository should say "This branch is N commits ahead of ckolivas:master. ".
If it's ever "commits behind" just let me know.


532  Economy / Computer hardware / Re: [FOR SALE - SIDEHACK STICK] GekkoScience 2PAC - 2x BM1384 USB Stick Miner on: January 26, 2017, 04:07:17 AM
A fairly stable version of the gekko driver I've been working on has been released in my repository for early adopters.
git clone https://github.com/vthoang/cgminer.git

The 2Pac(s) are not shipped yet, but feel free to compile it and run it against the original compac(s) if you feel brave  Cool.

For detailed instruction on compiling and running it, visit the new 2Pac thread here:
https://bitcointalk.org/index.php?topic=1764803.0
533  Bitcoin / Hardware / Re: GekkoScience 2Pac BM1384 Stickminer Official Support Thread on: January 26, 2017, 04:01:08 AM
======================
= cgminer on Windows =
======================

(!)... If you have access to linux, use the mxe based cross compile example in the post above.

(!)... If you just want the windows executable, read a little past the cross compile section in the post above for a pre-built cgminer.exe.


Building the cgminer.exe binary for windows on windows can be a bit tricky (not for beginners).

Follow the steps below in exact order.  If a step fails, most steps after it will fail also.

Once you have a successful binary, zip up the whole C:\MinGW folder for safe keeping.  
Chances are these instructions won't work, as is, a few months from now due to normal updates, but you might still be able to git pull and build updates.

Environment Used:
Windows 7, (should work for all WinOS supported by MinGW & Git)
MinGW Installation Manager (0.6.2-beta-20131004-1 - Tested)
Git for Windows (2.11.0 - Tested)



MinGW Installation Manager
http://www.mingw.org/ : Download installer : mingw-get-setup.exe

    Install Options:
    default all - "C:\MinGW\"
    Mark for installation - "mingw-developer-toolkit", "mingw-base"
    Installation -> "Apply Changes"

From Windows Explorer: (or you'll get errors later)
C:\MinGW << Security (Edit)<< Users << Full Control  
    
Paste the following into Windows+R to get a MINGW32 shell and init the home directory: "C:\MinGW\msys\1.0\msys.bat"

From MINGW32 shell:
Code:
echo 'export PATH=$PATH:/opt/git/bin:/opt/git/mingw64/bin:/opt/git/usr/bin/' > ~/.profile
mkdir /opt
exit

Install Git for Windows
https://git-for-windows.github.io/

    Install Options:
    "C:\MinGW\msys\1.0\opt\git"
    "Use Git from Git Bash only"
    default everything else -->>>
    

Return to MINGW32 shell and complete the build.

Code:
#--- From MINGW32 shell: "C:\MinGW\msys\1.0\msys.bat"

mingw-get install mingw32-libpdcurses mingw32-pdcurses

curl -O http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config_0.23-3_win32.zip
curl -O http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config-dev_0.23-3_win32.zip
curl -O http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.28/glib_2.28.1-1_win32.zip
curl -k -O https://curl.haxx.se/gknw.net/rm/7.33.0/dist-w32/curl-7.33.0-devel-mingw32.zip

unzip pkg-config_0.23-3_win32.zip -d pkg-config
unzip pkg-config-dev_0.23-3_win32.zip -d pkg-config
unzip glib_2.28.1-1_win32.zip -d glib
unzip curl-7.33.0-devel-mingw32.zip -d curl

cp pkg-config/bin/pkg-config.exe /mingw/bin/
cp pkg-config/share/aclocal/pkg.m4 /mingw/share/aclocal/
cp glib/bin/libglib-2.0-0.dll /mingw/bin/
cp "C:/MinGW/bin/libintl-8.dll" "C:/MinGW/bin/intl.dll"

cp curl/curl-7.33.0-devel-mingw32/bin/* /mingw/bin/
cp -r curl/curl-7.33.0-devel-mingw32/include/* /mingw/include/
cp -r curl/curl-7.33.0-devel-mingw32/lib/* /mingw/lib/

rm -rf glib*
rm -rf pkg-config*
rm -rf curl*

#--- Going to intrusively tweak Mingw here.  Good time to have a backup of C:\MinGW.

sed -r "s/lcurl$/lcurl \-lcurldll \-lssh2 \-lidn \-lrtmp \-lssl \-lcrypto \-lgdi32 \-lz \-lwldap32/" /mingw/lib/pkgconfig/libcurl.pc -i

sed -r "s/winsock.h/winsock2.h/" /mingw/include/ptw32_errno.h -i
sed -r "s/0x0501\)/0x0001\)\n#include <ptw32_errno.h>\n/" /mingw/include/ws2tcpip.h -i
sed -r "s/__struct_timespec_defined/_TIMESPEC_DEFINED/" /mingw/include/time.h -i
sed -r "s/\_UWIN \*\//\*\/\n\nstatic char* strtok_r(char *s, const char *d, char **n) { char *r; if (s == NULL) s = *n; s += strspn(s, d); if (*s == '\\\0') return NULL; r = s; s += strcspn(s, d); if (*s) *s++ = '\\\0'; *n = s; return r; }\n/" /mingw/include/string.h -i

#--- Install libusb

mkdir /opt/src
cd /opt/src
git clone git://git.libusb.org/libusb.git
cd libusb
./autogen.sh --prefix=/mingw --disable-log
make & make install

#--- Build cgminer

cd ~
mkdir -p git/vthoang; cd git/vthoang
git clone https://github.com/vthoang/cgminer.git
cd cgminer

autoreconf -fvi
CFLAGS="-O2 -msse2" ./configure --enable-gekko

make -j 2

cgminer.exe --help


Install the zadig generic WinUSB drivers

http://zadig.akeo.ie

If all is well, you can list and see the stick from cgminer.
cgminer.exe -n





The cgminer.exe executable build can be located in windows explorer at:
C:\MinGW\msys\1.0\home\<username>\git\vthoang\cgminer

To transfer the executable for another system, you'll need the following dll(s) in the same folder as cgminer.exe

C:\MinGW\bin\libcurl.dll
C:\MinGW\bin\libeay32.dll
C:\MinGW\bin\libgcc_s_dw2-1.dll
C:\MinGW\bin\libidn-11.dll
C:\MinGW\bin\libpdcurses.dll
C:\MinGW\bin\pthreadGC-3.dll
C:\MinGW\bin\ssleay32.dll
C:\MinGW\bin\zlib1.dll
C:\MinGW\bin\libusb-1.0.dll

534  Bitcoin / Hardware / GekkoScience 2Pac/Compac BM1384 Stickminer Official Support Thread on: January 26, 2017, 04:00:52 AM
########################################
#GekkoScience 2Pac BM1384 Stickminer Official Support Thread#
########################################



=================
=Thanks To The Community=
=================
As with the original compac, this project would not have even been possible without the great support from the community.  
A big thanks to everyone who pitched in; whether through signature campaigns, discussion, product ordering, or anything else.


=================
=How to get a 2Pac=
=================
Check the current product discussion thread for the latest news and updates.
https://bitcointalk.org/index.php?topic=1651958.0


=================
=How to Run=
=================
At the moment, you will need to build cgminer with the latest gekko driver to mine with the 2Pac.

The driver is under active development in an fork of ckolivas/cgminer.  
A pull request will be redirected to the ckolivas/cgminer repo once the code approached a stable point.

Run syntax:

*nix [if not root level privileges, see Q&A]
./cgminer -o stratum+tcp://pool.ckpool.org:3333 -u 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr -p x --suggest-diff 32

Windows
cgminer.exe -o stratum+tcp://pool.ckpool.org:3333 -u 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr -p x --suggest-diff 32

OS X
cgminer -o stratum+tcp://pool.ckpool.org:3333 -u 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr -p x --suggest-diff 32


Linux cgminer build steps

    Ubuntu 16.04.1 LTS new install.
    Default Install (+OpenSSH server)

Code:
sudo apt-get update
sudo apt-get upgrade -y

sudo apt-get install -y build-essential git autoconf automake libtool pkg-config libcurl4-openssl-dev libudev-dev
    
mkdir -p git/vthoang; cd git/vthoang
git clone https://github.com/vthoang/cgminer.git
cd cgminer

CFLAGS="-O2 -march=native" ./autogen.sh --enable-gekko
make -j 2



    Debian 8.7.1 new install.
        Default Install (No desktop environment, + SSH Server)
        (*do not specify root password to enable sudo)
   
    or Raspbian - Kernel version: 4.4 (Raspberry Pi)
    or Linux Mint 19 "Tara"

Code:
sudo apt-get update
sudo apt-get upgrade -y

sudo apt-get install -y build-essential git libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev screen libtool automake pkg-config libjansson-dev

mkdir -p git/vthoang; cd git/vthoang
git clone https://github.com/vthoang/cgminer.git
cd cgminer

CFLAGS="-O2" ./autogen.sh --enable-gekko
make -j 2






Window cgminer.exe build steps (grab the finished zip file in the next paragraph if you want to skip this)


Linux cgminer.exe cross-compile steps (for windows use)

    Ubuntu 16.04.1 LTS new install.
    Default Install (+OpenSSH server)

Code:
sudo apt-get update
sudo apt-get upgrade -y

sudo apt-get install -y build-essential git autoconf autopoint bison flex gperf libtool libtool-bin python ruby scons unzip intltool p7zip-full libgtk2.0-dev


cd /opt
sudo git clone https://github.com/mxe/mxe.git

export MXE_DIR=/opt/mxe
export MXE_TARGETS='i686-w64-mingw32.static'
sudo make -j 4 -C $MXE_DIR MXE_TARGETS="$MXE_TARGETS" curl pthreads pdcurses ncurses libusb1


echo 'export PATH=/opt/mxe/usr/bin:$PATH' >> ~/.profile
echo 'export PKG_CONFIG_PATH=/opt/mxe/usr/i686-w64-mingw32.static/lib/pkgconfig/' >> ~/.profile

export PATH=/opt/mxe/usr/bin:$PATH
export PKG_CONFIG_PATH=/opt/mxe/usr/i686-w64-mingw32.static/lib/pkgconfig/

cd ~
mkdir -p git/vthoang
cd git/vthoang

git clone https://github.com/vthoang/cgminer.git
cd cgminer

autoreconf -fi
CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.static --disable-shared --enable-gekko

make -j 2
strip cgminer.exe


    cross-compiled cgminer.exe binaries (use 7zip or WinZip to open the archive)

    Oct 19, 2018 @ a17a0f9 - cgminer-4.11.1-windows-gekko-a17a0f9.7z
    Oct 8, 2018 @ f9d7218 - cgminer-4.11.1-windows-gekko-f9d7218.7z
    Feb 27, 2018 @ 1fccd3d - cgminer-4.10.0-windows-gekko-1fccd3d.7z
    Apr 29, 2017 @ 495461c - cgminer-4.10.0-windows-gekko-495461c.7z
    Apr 20, 2017 @ b682468 - cgminer-4.10.0-windows-gekko-b682468.7z
    Apr 02, 2017 @ 3094f39 - cgminer-4.10.0-windows-gekko-3094f39.7z
    Mar 23, 2017 @ b756f23 - cgminer-4.10.0-windows-gekko-b756f23.7z
    Mar 09, 2017 @ 2a41ffb - cgminer-4.10.0-windows-gekko-2a41ffb.7z

Install the zadig generic WinUSB drivers from:

http://zadig.akeo.ie

If all is well, you can list and see the miner from cgminer.
Code:
cgminer.exe -n


Mac OSX Compiling with Homebrew

    El Capitan (10.11.6)

Code:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew tap vthoang/cgminer
brew install cgminer



=================
=Expected Performance=
=================
The expected performance of the 2Pac is 0.11*MHz=GH.  For example, 150MHz gives 16.5 GH (theoretical expectation).

Rough chart of power draw:


2Pac running with default settings:


=================
=Cooling=
=================
If you run the miners over about 100MHz it is strongly advised to cool them with a fan.  The cooling requirements are fairly low and unless you're trying to run 250MHz or above almost any fan at all will do.

===============
=Basic Q&A / Troubleshooting=
===============

Q. Can I run this cgminer build with the original Compac?

Yes.  The original Compac will register with separate device name from the 2Pac.

Q. Can I run this cgminer build with other USB miners?

It is recommended to use the official cgminer build for better support of other devices.  
It is best to keep the 2Pac separated from other devices until this fork of cgminer can be regression tested.

Q. How can I set a different frequency for the 2Pac vs the Compac?

cgminer will accept one or both parameters for the stick.
--gekko-compac-freq 200 --gekko-2pac-freq 150

Q. How many 2Pac(s) can I run at a time?

One.  Review the power chart in the performance section above.  
You can add more sticks using a 1-2A per port powered hub (recommended).
Hub thread: https://bitcointalk.org/index.php?topic=1779423.0

Q. Something doesn't look correct..  

Here are some of the more common ways to address issue(s):

Any email asking for support will be met with "If you didn't buy from me, talk to the person you bought it from."


Q. How do I get the latest version of the driver and code?

Updates to main cgminer and gekko updates will be checked in regularly.
If you are following along with the instructions, enter the cgminer directory, pull and rebuild:
Code:
cd ~/git/vthoang/cgminer/
git pull
...


Q. I tried the latest code and am certain the old one works better, how do I go back?

Code:
git reset --hard 495461c 
CFLAGS="-O2" ./autogen.sh --enable-gekko
make -j 2


Q. How to get past "USB init, open device failed" ... "you don't have privilege to access" error.
Code:
cd ~/git/vthoang/cgminer/
sudo usermod -G plugdev -a `whoami`
sudo cp 01-cgminer.rules /etc/udev/rules.d/
sudo reboot

535  Bitcoin / Mining software (miners) / Re: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.10.0 on: January 23, 2017, 03:14:26 PM
Is Compac support based on Novak's Icarus rework from 2015 or so, or VH's new code from the last couple months?

This would be the rework based on Novak's code, for proper base compac support in cgminer.   

More recent code will be a complete ground up design / approach for the new products with backward compatibility.   
It has a side effect of nicer performance for the original compac, but is not ready for main cgminer yet.
536  Bitcoin / Pools / Re: CKPool Stats - iPhone App on: January 11, 2017, 10:10:08 AM
So an intermediate certificate in the replacement ssl cert chain was using sha1 instead of sha2.   Huh
Apple apps doesn't like that apparently.   Changed certificate provider, and all is well again.   

Good 'ol 1 year mark.
537  Bitcoin / Pools / Re: CKPool Stats - iPhone App on: January 11, 2017, 08:43:48 AM
Today I noticed under "configuration" - "information" - "problems detected:" - "no internet access", both when using wifi and while on my AT&T LTE.  I love the app. Just noticed it quit working for me today.

Looking into.   A first glance an ssl certificate lapsed today, but righting that doesn't clear up the issue.   
538  Bitcoin / Pools / Re: CKPool Stats - iPhone App on: December 12, 2016, 01:50:25 AM
Watchdog scripts needs a little tuning; kick-started.   Let me know it's not back online in a few minutes.

edit:
Tuned.  I should be auto alerted the next time this specific event occurs (though it should auto correct).   
539  Bitcoin / Pools / Re: CKPool Stats - iPhone App on: November 15, 2016, 02:22:37 PM
just loaded the app.  i mistyped a direct address.  can't seem to edit/remove it.  what am i missing?

thanks

Swipe the added item to the left to get the option to delete typos.
Review the original post for other usage notes.
540  Bitcoin / Pools / Re: CKPool Stats - iPhone App on: November 15, 2016, 01:54:54 AM
I poked something and might have woken it up now.   
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 [27] 28 29 30 31 32 33 34 35 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!