Author

Topic: GekkoScience 2Pac/Compac BM1384 Stickminer Official Support Thread - page 114. (Read 177093 times)

legendary
Activity: 4116
Merit: 7849
'The right to privacy matters'
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


vh
hero member
Activity: 699
Merit: 666
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.
legendary
Activity: 3318
Merit: 1848
Curmudgeonly hardware guy
I built it on an older Debian fresh install, needed libncurses5-dev and libusb-1.0-0-dev to compile and work properly.
hero member
Activity: 777
Merit: 1003
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.
legendary
Activity: 4116
Merit: 7849
'The right to privacy matters'
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

thank you.  I have ck's 4.10 build working with the compac.

I should be able to get yours going with the TwoPac  thanks again.
vh
hero member
Activity: 699
Merit: 666
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
legendary
Activity: 4116
Merit: 7849
'The right to privacy matters'
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.
vh
hero member
Activity: 699
Merit: 666
legendary
Activity: 3318
Merit: 1848
Curmudgeonly hardware guy
On your stick I think I used different resistors that'll go to a bit lower voltage than the release model, probably 600mV flat instead of 630. I had trouble getting sticks to initialize stably in that low range so I decided to nix it.

I'll run my test stick at those underclock numbers tomorrow and add to the efficiency chart.
vh
hero member
Activity: 699
Merit: 666
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
legendary
Activity: 3318
Merit: 1848
Curmudgeonly hardware guy
I don't know if it's in there yet, but yesterday I talked to VH about adding frequency support below 100MHz. I tested my stick at 3.8W at 100MHz, so about 75MHz and below should run on a 2.5W port. It is still definitely recommended to use a good powered hub, especially if you want to push higher frequencies.
legendary
Activity: 1848
Merit: 1165
My AR-15 ID's itself as a toaster. Want breakfast?
Excellent!

Might I suggest adding a note for Raspberry Pi users that is is EXTREMELY HIGHLY suggested to use a powered hub and not the Pi's USB ports directly....  They have trouble even supplying enough current to a portable USB self-powered HDD... let alone a stickminer =)   I don't want to see people with unnecessary troubles related to this =)
hero member
Activity: 777
Merit: 1003
I will be getting this built and running tonight when I get home from work.  Smiley
newbie
Activity: 42
Merit: 0
Just to clarify. The new cgminer incorporates the compac like the novak "gekko" version used too but there isn't support yet for the 2pac until vh has finished?

That's correct.
vh's clarification on Official cgminer 4.10.0 release: https://bitcointalksearch.org/topic/m.17596575

cgminer 4.10.0 from vh's github does support 2pac.

Quote
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
hero member
Activity: 2492
Merit: 621
Just to clarify. The new cgminer incorporates the compac like the novak "gekko" version used too but there isn't support yet for the 2pac until vh has finished?

newbie
Activity: 42
Merit: 0
Love the fact that this build reports HW for each individual stick.  Smiley
legendary
Activity: 966
Merit: 1003
It's not often that ck releases version bumps like he did this week. Even though he adds commits regularly.
vh
hero member
Activity: 699
Merit: 666
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.


legendary
Activity: 966
Merit: 1003
 ck has released a new version of cgminer this week, does this build include the latest code or the version prior?
vh
hero member
Activity: 699
Merit: 666
======================
= 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 \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\\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

Jump to: