Author

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

legendary
Activity: 1050
Merit: 1000
I am working through the windows install of this
and at this point

Code:
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

All four flag unable to edit or find

Any idea where I missed a step to cause this? I ensured the security was set to everyone..

Moved on from the above
and in the dir
C:\MinGW\msys\1.0\home\\git\vthoang\cgminer
No .exe file at all

I wish there was an easier way to run these without a bunch of copy/paste that user doesn't understand, and luck of a working GUI type program coming which will support these?
hero member
Activity: 2492
Merit: 621
yes you can make an image of the SD card, with for example Win32DiskImager.



read to save the image, write to put it on the SD (self explanatory actually)

Nice one thanks irritant.
sr. member
Activity: 473
Merit: 250
Sodium hypochlorite, acetone, ethanol
yes you can make an image of the SD card, with for example Win32DiskImager.



read to save the image, write to put it on the SD (self explanatory actually)
hero member
Activity: 2492
Merit: 621
Thanks for the replies guys. Vh no i dont have that layout of stats so i assume im running what i already had working.

Ill give what Biodom has said a go when i get home and can download the latest version of cgminer. At least then i can start fresh.

On a side note, can i put the SD card into my laptop and copy all the files over to a new card and create a backup that would work if i were to muck up the new install? Or do you have to start from a fresh install of raspbian?
vh
hero member
Activity: 699
Merit: 666
p.s. I rebooted and it runs the gekkos fine but unsure if it updated ready for when i get my 2pacs.

You are ready for the 2pac if the current compac's statistic line shows something very similar to:
"0: GSC 10000010: COMPAC-1 150.00MHz HW:0 | 9.011G / 8.042Gh/s WU:56.5/m"
legendary
Activity: 3808
Merit: 4078
Please excuse my lack of knowledge. Im not the best with programming and things like the raspi. I currently have a running pi with three gekkos using raspbian(pixel) and running cgminer-gekko (4.9.2).

I ran the first part of this thread:-

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
    


it looks like you did not run the correct code for pi.
Look closer: you need to run the one that says Debian (a longer list of dependencies) and mentions pi few lines down:

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

After this:
Code:
sudo reboot
cd ~/git/vthoang/cgminer/
sudo usermod -G plugdev -a `whoami` #whoami=pi if you did not change it
sudo cp 01-cgminer.rules /etc/udev/rules.d/
sudo reboot

then
cd ~/git/vthoang/cgminer/
./cgminer -o stratum+tcp://solo.ckpool.org:3333 -u 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr.yourworkername -p x --suggest-diff 32
sr. member
Activity: 473
Merit: 250
Sodium hypochlorite, acetone, ethanol
you may have to run it with ./ like you do with the autogen.sh script, ./cgminer
legendary
Activity: 3346
Merit: 1858
Curmudgeonly hardware guy
"gekko" -> Compac?

The part you ran installed a wholly different version of cgminer without touching cgminer-gekko. cgminer-gekko is a driver written by Novak integrated into 4.9.2; what you installed is a greatly improved driver written by VH and integrated into the newest cgminer. It works better even for Compacs. You'll probably have to update the directory your software is looking in to find the right cgminer, point it to the one you just built.
hero member
Activity: 2492
Merit: 621
Please excuse my lack of knowledge. Im not the best with programming and things like the raspi. I currently have a running pi with three gekkos using raspbian(pixel) and running cgminer-gekko (4.9.2).

I ran the first part of this thread:-

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


 then tried to run a test using the example with sidehacks 1burger address but it said cgminer wasnt found. Would the bit i ran update the cgminer-gekko version ive got or not?

p.s. I rebooted and it runs the gekkos fine but unsure if it updated ready for when i get my 2pacs.
legendary
Activity: 3808
Merit: 4078
To answer@valkir question on another thread:

to run rasp pi W, I used 5V power brick with micro USB connector (anything that provides 1.2-2.5A max) with pi itself using just 0.12A.
micro USB to USB adapter
mini HDMI to HDMI adapter+regular HDMI cable
Sabrent nonpowered USB 2 hub (about $6 on Amazon)
8-16 gb micro SD card to which you install latest (3/2/2017) Raspbian (with pixel) from Rasberry pi web page.
#I installed it using Mac, so my procedures would not be exactly the same as for PC, but it is all described on their web page.
USB fan (Amazon)
Superbpag USB 3 powered hub (7 slots) (Amazon)

fortunately for me, I already had all this stuff from previously playing with pi zero.

EDIT: bumped the freq to 150mhz (from shipped 100mhz) using code delineated in the first post.
65.31Gh 64.5Gh from four sticks now (overnight average at 150mhz)...nice.
Will let them go a few hours longer, then start bumping again.
vh
hero member
Activity: 699
Merit: 666
Nice.   Thank for the photo sharing.
I'll look into adding some notes for using screen to my opening post so you can tap into the running linux shell remotely.
Useful when running headless.

Roughly:
Code:
sudo apt-get install screen
screen -dmS gekko

#From any other (remote) same user's shell:
screen -x gekko
legendary
Activity: 3808
Merit: 4078
Here we go:

Four 2pacs, two US-style (green) and two EU style (black) mining on raspberry pi W ($10, wireless, OS recent raspbian with Pixel), NO wired connection to the router, so you can put the setup anywhere. Other hardware: Superbpag hub, USB2 unpowered hub (sabrent) to run mouse, keyboard and fan.
rasp Pi is indicated with red arrow. You could run it headless as well, of course.


legendary
Activity: 3808
Merit: 4078
@vh

cannot run ./cgminer EXACTLY as you wrote on rasp pi, but it works if i use sudo

is this OK, or better to apply what you have in Q&A section?

4 2pacs, two green and two blacks run nice (so far). one green was zombie initially, but upon hot replug become a nice stickie  Grin

Will post pictures of my setup shortly...

It's your device, sudo is fine.   
Just know you are giving that code full access to everything on your pi; hardware, software, personal, public, network, etc...

Ah, thanks.
vh
hero member
Activity: 699
Merit: 666
@vh

cannot run ./cgminer EXACTLY as you wrote on rasp pi, but it works if i use sudo

is this OK, or better to apply what you have in Q&A section?

4 2pacs, two green and two blacks run nice (so far). one green was zombie initially, but upon hot replug become a nice stickie  Grin

Will post pictures of my setup shortly...

It's your device, sudo is fine.   
Just know you are giving that code full access to everything on your pi; hardware, software, personal, public, network, etc...
legendary
Activity: 3808
Merit: 4078
@vh

cannot run ./cgminer EXACTLY as you wrote on rasp pi, but it works if i use sudo

is this OK, or better to apply what you have in Q&A section?

4 2pacs, two green and two blacks run nice (so far). one green was zombie initially, but upon hot replug become a nice stickie  Grin

Will post pictures of my setup shortly...
newbie
Activity: 42
Merit: 0

- Apply ticket mask to balance flashing at higher frequencies.


This is a very nice touch and first thing I noticed after building your latest release.
Thanks vh.
vh
hero member
Activity: 699
Merit: 666
Minor new build available (2a41ffb).   git pull and build as needed.

- Hybrid two stage ramping.
- Apply ticket mask to balance flashing at higher frequencies.
- Adjusted idle stick time-out detection.

http://23.108.83.14/images/cgminer-4.10.0-windows-gekko-2a41ffb.7z

vh
hero member
Activity: 699
Merit: 666
When I start cgminer, my rejected shares is at 2048 before I connect to pool.

Benign event, okay to ignore if it's not continuous.  Rejected shares will occur from time to time.   Usually during startup and new block events. 
newbie
Activity: 15
Merit: 0
When I start cgminer, my rejected shares is at 2048 before I connect to pool.
newbie
Activity: 5
Merit: 0
Totally check out Minera for the raspberry pi-

https://github.com/michelem09/minera/wiki/Getting-started

dude hooks it up- here is the script to get a custom miner off of VTHoang



cd /var/www/minera/minera-bin/src

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

cp cgminer /var/www/minera/minera-bin/custom/cgminer-vthoang

cd /var/www/minera/minera-bin/custom


AWESOME



I've got it working with Minera, but the miner does not show up in the list of local miners in Minera like the Compaq used to.   I have built it manually (similar to what you described above) and by modifiying the default cgminer build in build_miner.sh to include the --enable-gecko flag in the build.   Do they show up for you or is this a side issue of using a custom compiled miner?


Jump to: