Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: Mobius on November 25, 2012, 02:25:17 AM



Title: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Mobius on November 25, 2012, 02:25:17 AM
Here are the instructions:

This is to update bamt 0.5c to the latest cgminer and allow you to pull update directly from the git repository
bamt 0.5c will only work with AMD/ATI 5xxx and 6xxx cards
bamt 0.5c will not work with AMD/ATI 7xxx cards or nvidia ( seperate instructions for 7xxx cards are available by searching the forums)
burn a new usb with bamt 0.5c
boot into bamt
change password (instructions in bamt forum)
start gpumon
Code:
gpumon

Hit F for fixer to update
update to fix 19 - skip the rest
Hit q to exit gpumon


Here we get the file with a working git profile for BAMT

Code:
cd /opt/miners
wget https://eclipsemc.com/files/cgminer_git.tar.gz
tar xvf cgminer_git.tar.gz
cd cgminer
git pull

You'll need to edit update.sh
Code:
nano update.sh

replace the content of update.sh with:
Code:
export DISPLAY=:0
export GPU_USE_SYNC_OBJECTS=1
rm *.bin
make clean
cd /
tar xf /opt/AMD-APP-SDK-v2.4-lnx32/icd-registration.tgz
ln -s /opt/AMD-APP-SDK-v2.4-lnx32/include/CL /usr/include
ln -s /opt/AMD-APP-SDK-v2.4-lnx32/lib/x86/* /usr/lib/
ldconfig
cd /opt/miners/cgminer
./autogen.sh
ATISTREAMSDKROOT="/opt/AMD-APP-SDK-v2.4-lnx32/"  CFLAGS="-O2 -Wall -march=native" ./configure --enable-bitforce --bindir="/opt/miners/cgminer" --prefix="/opt/miners/cgminer"
make -j3
sync
./cgminer -n

add the following at the end of update.sh
Code:
sync
./cgminer -n

save the file (Ctrl-x,y)

compile cgminer

Code:
./update.sh

replace mother as per https://bitcointalk.org/index.php?topic=28402.msg1092936;topicseen#msg1092936

Code:
cd /opt/bamt
cp mother mother.old
rm mother
wget http://ck.kolivas.org/apps/cgminer/temp/mother
 chmod +x mother
sync
coldreboot

re-login to bamt
switch to the cgminer directory

Code:
cd /opt/miners/cgminer

create a cgminer.conf if you do not already have one - format is explained in the cgminer forum - a working sample is in the next post below. https://bitcointalk.org/index.php?topic=127622.msg1355667#msg1355667 (https://bitcointalk.org/index.php?topic=127622.msg1355667#msg1355667)

start gpumon
Code:
gpumon

enter c to edit the config file
make sure you have the following lines in the configuration file in the section after the line (formatting is important)

Code:
settings:

  cgminer: 1
  cgminer_opts: --config /opt/miners/cgminer/cgminer.conf -k phatk --api-listen --api-network --api-allow W:192.168.1.1,W:192.168.1.31W:127.0.0.1
You'll need to edit --api-allow W:192.168.1.1,W:192.168.1.31,W:127.0.0.1 for your specific ip addresses you want to allow access to the cgminer API

also configure the gpu#: sections according to your needs and include

Code:
gpu0:

  # remove disabled: or set it to 0 to actually use this card..
  cgminer: 1
  disabled: 0


Once you have configured and tested the bamt usb key make another image file of the USBkey and save it to make additional usb keys for your rigs and/or when the actual USBkey wears out (always keep a spare ready to use) and test it!



Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Mobius on November 25, 2012, 02:26:06 AM
sample cgminer.conf

pool 0 is OZCOIN
pool 1 is my local internal stratum pool server
pool 2 is my solo mining

This is sample setup for a single 5870 card. You will need to modify it for your own specific rig setup.

Further modification are discussed in the cgminer forum: https://bitcointalk.org/index.php?topic=28402.0 (https://bitcointalk.org/index.php?topic=28402.0)

Code:
{
"pools" : [
{
"url" : "http://stratum.ozco.in:3333",
"user" : "mobius.31",
"pass" : "x"
},
        {
                "url" : "http://192.168.1.12:3333",
                "user" : "mobius_31",
                "pass" : "x"
        },
        {
                "url" : "http://192.168.1.99:8332",
                "user" : "rpcuser",
                "pass" : "mypassword"
        }

],

"intensity" : "7",
"gpu-engine" : "0-900",
"gpu-fan" : "50-85",
"vectors" : "2",
"worksize" : "256",
"gpu-memclock" : "300",
"gpu-powertune" : 20",
"gpu-vddc" : "0.0000.000",
"temp-cutoff" : "89",
"temp-overheat" : "85",
"temp-target" : "79",

"kernel" : "poclbm",

"api-listen" : true,
"api-network" : true,
"api-allow" : "W:192.168.1.1,W:192.168.1.31,W:127.0.0.1",
"api-port" : "4028",
"submit-stale" : true,
"no-pool-disable" : true,

"auto-fan" : true,
"auto-gpu" : true,
"expiry" : "120",
"gpu-threads" : "2",
"log" : "5",
"queue" : "2",
"retry-pause" : "5",
"scan-time" : "60",
"temp-hysteresis" : "3",

"shares" : "0",
"kernel-path" : "/usr/local/bin"
}

I can be found on IRC at #cgminer


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Mobius on November 25, 2012, 02:26:29 AM
Updating and recompiling cgminer on BAMT after the initial setup above:

login to the BAMT rig via ssh or at the console bring up a ROOT WINDOW

then type:

Code:
cd /opt/miners/cgminer/ ; git checkout master ; git pull ; ./update.sh ; mine restart ; coldreboot


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Mobius on November 27, 2012, 05:04:02 AM
Reserved for ASIC Update instructions:


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: AmDD on December 08, 2012, 03:14:30 PM
Having some issues here.
After i type 'git pull' i get this error
fatal: Not a git repository (or any of the parent directories): .git

What did I do wrong?


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: AndrewBUD on December 08, 2012, 03:16:20 PM
Thanks for posting bud :)


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Mobius on December 08, 2012, 04:01:00 PM
Having some issues here.
After i type 'git pull' i get this error
fatal: Not a git repository (or any of the parent directories): .git

What did I do wrong?
Make sure your in the
/opt/miners/cgminer
directory

check your steps one by one in the OP above.


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: AmDD on December 08, 2012, 06:02:16 PM
Having some issues here.
After i type 'git pull' i get this error
fatal: Not a git repository (or any of the parent directories): .git

What did I do wrong?
Make sure your in the
/opt/miners/cgminer
directory

check your steps one by one in the OP above.

Thank you sir! Im not sure what step I messed up on, but I went through it again and all is well!

The only problem is it will not mine on coinlab now, but it does on bitmiter. Maybe because of stratum?


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Mobius on December 08, 2012, 06:31:32 PM
Having some issues here.
After i type 'git pull' i get this error
fatal: Not a git repository (or any of the parent directories): .git

What did I do wrong?
Make sure your in the
/opt/miners/cgminer
directory

check your steps one by one in the OP above.

Thank you sir! Im not sure what step I messed up on, but I went through it again and all is well!

The only problem is it will not mine on coinlab now, but it does on bitmiter. Maybe because of stratum?

I don't use coinlab, ask Conman in IRC on #cgminer


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: segabtc on December 09, 2012, 05:42:06 AM
or .... this taken from ckolivas

cd /usr/share
    git clone https://github.com/ckolivas/cgminer.git
    cd cgminer/ADL_SDK
    wget http://download2-developer.amd.com/amd/GPU/zip/ADL_SDK_4.0.zip
    unzip ADL_SDK_4.0.zip
    cd include
    mv adl* ..
    cd ..
    cd ..
cd /opt
    tar xf /opt/AMD-APP-SDK-v2.4-lnx32/icd-registration.tgz
    ln -s /opt/AMD-APP-SDK-v2.4-lnx32/include/CL /usr/include
    ln -s /opt/AMD-APP-SDK-v2.4-lnx32/lib/x86/* /usr/lib/
    ldconfig

    cd /usr/share/cgminer
    ./autogen.sh
    CFLAGS="-O2 -Wall -march=native" ./configure
    make

cd /opt/miners
    mkdir cgminer_backup
    cd cgminer
    cp * ../cgminer_backup/

    cd /usr/share/cgminer
    cp * /opt/miners/cgminer


this is from the readme file from kolivas and it works on 0.5c BAMT, upgrades cgminer from 2.3 to 2.9.x stratum ready


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Komonec on February 21, 2013, 08:50:40 PM
It's don't work... :(
https://www.dropbox.com/s/dyk05rkjfkr2u6v/bamt.PNG (https://www.dropbox.com/s/dyk05rkjfkr2u6v/bamt.PNG)


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: abracadabra on February 22, 2013, 03:06:48 PM
It's don't work... :(
https://www.dropbox.com/s/dyk05rkjfkr2u6v/bamt.PNG (https://www.dropbox.com/s/dyk05rkjfkr2u6v/bamt.PNG)

A bit more info would be extreemly helpful in having someone assist you.
Looks like maybe your cgminer.conf file is bad and cgminer is not running.

do a screen -ls

any cgminer screens running?


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Mobius on February 22, 2013, 09:30:28 PM
It's don't work... :(
https://www.dropbox.com/s/dyk05rkjfkr2u6v/bamt.PNG (https://www.dropbox.com/s/dyk05rkjfkr2u6v/bamt.PNG)

Go thru the steps one by one again.


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: superfastkyle on March 16, 2013, 04:17:08 AM
I can't get the mother hack fix for bamt working my cgminer must be updated it will mine on stratum but only for a few seconds. Can someone help. I did the steps on replacing the mother file. but the first set of instructions didnt work for updating cgminer so I did ckolivas and that worked but mother still restarts cgminer every ten seconds

edit huh I dont know what I did but it eventually took lol after the 3rd time


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: abracadabra on March 16, 2013, 05:17:25 PM
on a recent git pull (not sure what version, maybe 2.10.5) the make wasn't finding the headers/lib files correctly.
I needed to change the update.sh file a bit to this:

Quote
#!/bin/bash
export DISPLAY=:0
export GPU_USE_SYNC_OBJECTS=1
rm *.bin
make clean
cd /
tar xf /opt/AMD-APP-SDK-v2.4-lnx32/icd-registration.tgz
ln -s /opt/AMD-APP-SDK-v2.4-lnx32/include/CL /usr/include
ln -s /opt/AMD-APP-SDK-v2.4-lnx32/lib/x86/* /usr/lib/
ldconfig
cd /opt/miners/cgminer
./autogen.sh
ATISTREAMSDKROOT="/opt/AMD-APP-SDK-v2.4-lnx32/"  CFLAGS="-O2 -Wall -march=native" ./configure --enable-bitforce --bindir="/opt/miners/cgminer" --prefix="/opt/miners/cgminer"
make -j3
sync
./cgminer -n


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: lastbit on March 16, 2013, 11:59:17 PM
I successfully upgraded BAMT to cgminer 2.11.2 using segabtc quoted instructions. Thank you.


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Nancarrow on March 21, 2013, 06:23:22 PM
Aargh this isn't quite working for me yet.


When I run autogen.sh I end up with the following messages:

Configuration Options Summary:

  curses.TUI...........: FOUND: -lncurses
  OpenCL...............: NOT FOUND. GPU mining support DISABLED
configure: error: No mining configured in

I presume this also happens if I do update.sh instead, but everything scrolls past too quickly. Why can't it find OpenCL? Where should it look? How can I tell it where? This is on a fresh BAMT stick.


ETA: so after reading segabtc's and abracadabra's posts more carefully, and studying update.sh, I ran the command

Quote
ln -s /opt/AMD-APP-SDK-v2.4-lnx32/include/CL /usr/include

... then update.sh again. This at least gets rid of the above problem... now it found OpenCL, GPU mining is ENabled.

BUT: still no mining.  :'(


ETA2; never mind... herp derp. My cgminer.conf was bollixed but it's okay now. Though it's mildly annoying that I can't see any share submission stats on the web interface or the gpumon main screen, only the cgminer screen. If anyone can help with that it'd be shazam.


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: abracadabra on March 21, 2013, 09:29:17 PM
does gpumon show anything?
did you update mother as described above?
did you do all the BAMT updates minus #20?


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: superfastkyle on March 22, 2013, 07:51:06 AM
whats the best way to switch pools on a bunch of rigs at once? I think the developer of bamt recommended rsync. Can someone explain how to use rsync or anything really to sync a cgminer config file against several rigs?


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Mobius on March 22, 2013, 11:53:27 AM
I use a script to do it:
Code:
#!/bin/bash
rig0="192.168.1.99"
port="4028"
        echo -n "switchpool|$1" | nc "$rig0" "$port" ;echo "$rig0"

add as many rig#="Ip Address of Rig"  and copy and edit the echo line with rig# as needed



Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Nancarrow on March 22, 2013, 05:59:51 PM
Just to clarify... my miners ARE working now, it's just that the hashrate and submitted/rejected shares aren't showing up on the web interface or the main gpumon screen. Lots of other info is... temperatures, fan speeds, volt/mem settings.

does gpumon show anything?
did you update mother as described above?
did you do all the BAMT updates minus #20?


As above, yes, and yes.
Is it possible it has something to do with my API settings? Here are the lines I've got in cgminer.conf:

Quote
"api-listen" : true,
"api-network" : true,
"api-allow" : "W127.0.0.1,W192.168.0.100,W:192.168.0.102,W:192.168.0.103,W:192.168.0.104",

blah.100 is my laptop for everyday use, blah.10{2,3,4} are my rigs.


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: superfastkyle on March 22, 2013, 06:07:55 PM
so thats a call to cgminer itself to go to the next pool? do you have to specify that port in your config


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Marrs on March 22, 2013, 06:22:49 PM
I use a script to do it:
Code:
#!/bin/bash
rig0="192.168.1.99"
port="4028"
        echo -n "switchpool|$1" | nc "$rig0" "$port" ;echo "$rig0"

add as many rig#="Ip Address of Rig"  and copy and edit the echo line with rig# as needed



Instead of hard coding a separate echo line for each rig, you can do something like this:

Code:
#!/bin/bash
#Add rig addresses to the RIGS variable, one per line
RIGS="192.168.1.99
192.168.1.100
192.168.1.101"

# split on newline
IFS="
"

port="4028"
for rig in $RIGS; do
  echo -n "switchpool|$1" | nc "$rig" "$port" ;echo "$rig"
done


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: superfastkyle on March 23, 2013, 04:54:28 AM
I get this message "STATUS=E,When=1364014383,Code=25,Msg=Missing pool id parameter,Description=cgmin                          er 2.11.2|192.168.1.115"


what do i need to do?


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Mobius on March 23, 2013, 01:22:14 PM
I get this message "STATUS=E,When=1364014383,Code=25,Msg=Missing pool id parameter,Description=cgmin                          er 2.11.2|192.168.1.115"


what do i need to do?

Did you pass a parameter to the script file

i.e. ./switchpool.sh 3


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: superfastkyle on March 23, 2013, 06:44:41 PM
haha no one told me that part. Thanks again
bamt, latest cgminer, stratum, pool hopping
don't think I can get much better than that for now

Here's my update script if anyone wants to use it
wget http://dl.dropbox.com/u/65763458/updatecg -O /bin/updatecg;chmod a+x /bin/updatecg;updatecg


I get this message "STATUS=E,When=1364014383,Code=25,Msg=Missing pool id parameter,Description=cgmin                          er 2.11.2|192.168.1.115"


what do i need to do?

Did you pass a parameter to the script file

i.e. ./switchpool.sh 3


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: abracadabra on March 24, 2013, 02:16:06 AM
haha no one told me that part. Thanks again
bamt, latest cgminer, stratum, pool hopping
don't think I can get much better than that for now

Here's my update script if anyone wants to use it
wget http://dl.dropbox.com/u/65763458/updatecg -O /bin/updatecg;chmod a+x /bin/updatecg;updatecg


I get this message "STATUS=E,When=1364014383,Code=25,Msg=Missing pool id parameter,Description=cgmin                          er 2.11.2|192.168.1.115"


what do i need to do?

Did you pass a parameter to the script file

i.e. ./switchpool.sh 3

you don't need to do a git clone, wget of SDK and mother everytime you want to update cgminer.
your script wastes bandwidth.


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: superfastkyle on March 24, 2013, 10:22:30 AM

you don't need to do a git clone, wget of SDK and mother everytime you want to update cgminer.
your script wastes bandwidth.

Hey I never said it was perfect or even that it was ideal. But it is something you can copy and paste and will get the job done. If somebody would make a better script to just copy and paste and go, I'm all for it. But it is alot easier than making your own script for newbs.


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Nemesis on March 27, 2013, 09:01:10 AM
haha no one told me that part. Thanks again
bamt, latest cgminer, stratum, pool hopping
don't think I can get much better than that for now

Here's my update script if anyone wants to use it
wget http://dl.dropbox.com/u/65763458/updatecg -O /bin/updatecg;chmod a+x /bin/updatecg;updatecg


I get this message "STATUS=E,When=1364014383,Code=25,Msg=Missing pool id parameter,Description=cgmin                          er 2.11.2|192.168.1.115"


what do i need to do?

Did you pass a parameter to the script file

i.e. ./switchpool.sh 3

I got exactly like this:

It's don't work... :(
https://www.dropbox.com/s/dyk05rkjfkr2u6v/bamt.PNG (https://www.dropbox.com/s/dyk05rkjfkr2u6v/bamt.PNG)

I ran your script, no errors. But it seems cgminer was failed to run. My bamt.conf is edited accordingly to run cgminer.

Any ideas?


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Mobius on March 27, 2013, 01:11:08 PM
redo the steps in the OP again, print it out and check off each step.


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Zanatos666 on April 01, 2013, 03:55:50 PM
So, I ran through the process in the OP and I keep getting an error when its trying to connect to eclipsemc.com.  Anyone else getting some sort of certificate error?  Or am I just special?

ERROR: certificate common name ‚ssl3131.cloudflare.com‚eclipsemc.com‚
                                                                     To connect to eclipsemc.com insecurely, use ‚--no-check-certificate‚.


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Zanatos666 on April 01, 2013, 10:10:27 PM
So, I ran through the process in the OP and I keep getting an error when its trying to connect to eclipsemc.com.  Anyone else getting some sort of certificate error?  Or am I just special?

ERROR: certificate common name ‚ssl3131.cloudflare.com‚eclipsemc.com‚
                                                                     To connect to eclipsemc.com insecurely, use ‚--no-check-certificate‚.

Okay, so I just downloaded the file in Windows, uploaded it to Dropbox, and then used that address.  Once I did that, everything else went through smoothly.  Now mining on stratum servers.

Thanks.


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: abracadabra on April 01, 2013, 10:37:50 PM
So, I ran through the process in the OP and I keep getting an error when its trying to connect to eclipsemc.com.  Anyone else getting some sort of certificate error?  Or am I just special?

ERROR: certificate common name ‚ssl3131.cloudflare.com‚eclipsemc.com‚
                                                                     To connect to eclipsemc.com insecurely, use ‚--no-check-certificate‚.


use --no-check-certificate

or try using http instead of https


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: logicbomb666 on April 16, 2013, 02:08:23 AM
I need help - everything went smoothly step by step. But my miner is not working.  I am guessing it has something to do with the cgminer.conf file.  The IP address part im unclear about.  Am I suppossed to put my miner's IP address in that field, or is this intended to point the miner to another machine that is running the proxy?


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Mobius on April 16, 2013, 03:21:42 AM
no proxy needed, look at sample .conf file in opening post


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: logicbomb666 on April 16, 2013, 04:30:34 AM
I'm sorry, I misspoke. (I'm pretty noobish when it comes to this stuff)  I was referring to this...
Quote
You'll need to edit --api-allow W:192.168.1.1,W:192.168.1.31,W:127.0.0.1 for your specific ip addresses you want to allow access to the cgminer API

I do not know what the api-allow ips are for. 


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Mobius on April 16, 2013, 06:45:06 AM
It is the IP address of the systems you wish to allow to access the API system in that instance of BAMT. W:127.0.0.1 and the IP Address of the Actual BAMT rig itself (I.E. W:192.168.1.31) are necessary for BAMT to work correctly with cgminer. The W:192.168.1.1 is the address of a remote machine you designate to be able to send API commands (read the API-README for more information)


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Zanatos666 on April 16, 2013, 01:34:21 PM
Isnt configuring the API only really needed if you are running some program that is going to access and collect info for display from BAMT?  I dont use that code.  I guess if you are wanting to track things from outside of your network, then yeah.  But not having a properly configured API wouldnt prevent the system from mining would it?  The API would just fail and not work, but that shouldnt stop the miner from actually connecting to the servers and mining, right?


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: logicbomb666 on April 19, 2013, 12:36:33 AM
Here are the instructions:

This is to update bamt 0.5c to the latest cgminer and allow you to pull update directly from the git repository
bamt 0.5c will only work with AMD/ATI 5xxx and 6xxx cards
bamt 0.5c will not work with AMD/ATI 7xxx cards or nvidia ( seperate instructions for 7xxx cards are available by searching the forums)
burn a new usb with bamt 0.5c
boot into bamt
change password (instructions in bamt forum)
start gpumon
Code:
gpumon

Hit F for fixer to update
update to fix 19 - skip the rest
Hit q to exit gpumon


If it possible my BAMT is not working because I did not start with a fresh copy of bamt 0.5c?  I had already had my machine updated with all updates.  Would this cause an issue?


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: abracadabra on April 19, 2013, 02:25:03 AM
If it possible my BAMT is not working because I did not start with a fresh copy of bamt 0.5c?  I had already had my machine updated with all updates.  Would this cause an issue?

No.

"How" is it not working?


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: -ck on April 19, 2013, 02:30:26 AM
Apparently there is an official BAMT update which curtails the cgminer problem now.


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: logicbomb666 on April 19, 2013, 04:14:31 AM
If it possible my BAMT is not working because I did not start with a fresh copy of bamt 0.5c?  I had already had my machine updated with all updates.  Would this cause an issue?

No.

"How" is it not working?

I am not smart enough to post specific details.  I am fairly confident every step went smoothly, and am guessing the error was my part when updating the BAMT .conf and the cgminer .conf, but I was just copy pasting from this thread.  (I understand this provides absolutely no help to you) Is there possibly a log file or something you could point me towards that I could copy and paste here?


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: logicbomb666 on April 19, 2013, 04:28:32 AM
Apparently there is an official BAMT update which curtails the cgminer problem now.

Do you have a link to this update/version?  I am not able to find anything in a google search.



.... oh god, please don't tell me its BAMT 0.51D only available through the piratebay?


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: abracadabra on April 19, 2013, 01:28:06 PM
If it possible my BAMT is not working because I did not start with a fresh copy of bamt 0.5c?  I had already had my machine updated with all updates.  Would this cause an issue?

No.

"How" is it not working?

I am not smart enough to post specific details.  I am fairly confident every step went smoothly, and am guessing the error was my part when updating the BAMT .conf and the cgminer .conf, but I was just copy pasting from this thread.  (I understand this provides absolutely no help to you) Is there possibly a log file or something you could point me towards that I could copy and paste here?

I guess you misunderstand me.

What do you see that leads you to believe that it is not working?  Describe to me in words what you see/feel/think that makes you think it is not working.


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: logicbomb666 on April 20, 2013, 12:00:18 AM
Here is a screenshot that leads me to believe that cgminer is not working. (should I still be using gpumon if I update to cgminer?)  I think my conf files are what are causing the issue becuase if I revert my bamt.conf to not use cgminer, it mines perfectly.


http://www.seriallogic.com/pictures/notWorking.jpg

Here is my cgminer.conf located in /opt/miners/cgminer
Quote
"pools" : [
        {
                "url" : "http://stratum.bitcoin.cz:3333",
                "user" : "spinal.worker1",
                "pass" : "********"
        }

],

"intensity" : "7",
"gpu-engine" : "0-900",
"gpu-fan" : "50-85",
"vectors" : "1",
"worksize" : "128",
"gpu-memclock" : "300",
"gpu-powertune" : 20",
"gpu-vddc" : "0.0000.000",
"temp-cutoff" : "89",
"temp-overheat" : "85",
"temp-target" : "79",

"kernel" : "poclbm",

"api-listen" : true,
"api-network" : true,
"api-allow" : "W:192.168.1.1,W:192.168.1.6,W:127.0.0.1",
"api-port" : "4028",
"submit-stale" : true,
"no-pool-disable" : true,

"auto-fan" : true,
"auto-gpu" : true,
"expiry" : "120",
"gpu-threads" : "2",
"log" : "5",
"queue" : "2",
"retry-pause" : "5",
"scan-time" : "60",
"temp-hysteresis" : "3",

"shares" : "0",
"kernel-path" : "/usr/local/bin"
}


Here is my bamt.conf

Quote
# Big A Miner Thing configuration
# /etc/bamt/bamt.conf


---
settings:

  miner_id: bamt-miner

  miner_loc: unspecified location

  do_monitor: 0

  cgminer: 1
  cgminer_opts: --config /opt/miners/cgminer/cgminer.conf -k phatk --api-listen -$


# GPU Configurtation


gpu0:

  cgminer: 1
  disabled: 0

  core_speed_0: 300
  core_speed_1: 300
  core_speed_2: 900

  mem_speed_0: 300
  mem_speed_1: 300
  mem_speed_2: 300

  fan_speed: 100

  kernel: phatk2

  kernel_params: BFI_INT VECTORS FASTLOOP=false AGGRESSION=9

  pool_file: /etc/bamt/pools

  pool_timeout: 180

  monitor_temp_lo: 45
  monitor_temp_hi: 80

  # GPU load (in %)
  monitor_load_lo: 80
  # average hashrate (in mh/s)
  monitor_hash_lo: 250

  # fam rpm (in rpm)
  monitor_fan_lo: 2000

  # effective reject rate (in % of total)
  monitor_reject_hi: 10

gpu1:

  # remove disabled: or set it to 0 to actually use this card..

  #cgminer: 1
  disabled: 1




Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: abracadabra on April 20, 2013, 11:21:27 AM
quit gpumon (hit"q")
check to see if cgminer is running.. (type "screen -ls")
if there's a screen with cgminer running, attach to it to see what it's doing.. (type "screen -r")
if cgminer is not running, attempt to start it and see what it's saying..
 - change to cgminer directory (type "cd /opt/miners/cgminer")
 - start cgminer (type "./cgminer -c cgminer.conf")




Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Izael on April 20, 2013, 01:36:35 PM
There is a few mistakes that we must change:

Quote
wget https://eclipsemc.com/files/cgminer_git.tar.gz
wget --no-check-certificate https://eclipsemc.com/files/cgminer_git.tar.gz

Quote
cgminer_opts: --config /opt/miners/cgminer/cgminer.conf -k phatk --api-listen --api-network --api-allow W:192.168.1.1,W:192.168.1.31W:127.0.0.1
cgminer_opts: --config /opt/miners/cgminer/cgminer.conf -k phatk --api-listen --api-network --api-allow W:192.168.1.1,W:192.168.1.31,W:127.0.0.1

@logicbomb666 : you have a mistake with this line. You need write a " before the number 20.

Quote
"gpu-powertune" : 20",
"gpu-powertune" : "20",

And one thing more... we now can do all fix in BAMT, there is a new FIX #21 that do a solution to fix #20, so now not is a problem do the fix in row until end.


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: logicbomb666 on April 20, 2013, 02:49:36 PM
quit gpumon (hit"q")
check to see if cgminer is running.. (type "screen -ls")
if there's a screen with cgminer running, attach to it to see what it's doing.. (type "screen -r")
if cgminer is not running, attempt to start it and see what it's saying..
 - change to cgminer directory (type "cd /opt/miners/cgminer")
 - start cgminer (type "./cgminer -c cgminer.conf")


I think that's all I needed. This is the screen I am getting now.  Appears to have been mining all along?

http://www.seriallogic.com/pictures/working.jpg


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: logicbomb666 on April 20, 2013, 02:50:44 PM

@logicbomb666 : you have a mistake with this line. You need write a " before the number 20.

Quote
"gpu-powertune" : 20",
"gpu-powertune" : "20",


Thank you for pointing that out!


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: abracadabra on April 20, 2013, 02:53:48 PM
quit gpumon (hit"q")
check to see if cgminer is running.. (type "screen -ls")
if there's a screen with cgminer running, attach to it to see what it's doing.. (type "screen -r")
if cgminer is not running, attempt to start it and see what it's saying..
 - change to cgminer directory (type "cd /opt/miners/cgminer")
 - start cgminer (type "./cgminer -c cgminer.conf")


I think that's all I needed. This is the screen I am getting now.  Appears to have been mining all along?

http://www.seriallogic.com/pictures/working.jpg

yes.. looks like gpumon is not getting the info from cgminer via the api.
try testing the api and see if you can get info from it manually


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Zanatos666 on April 20, 2013, 06:03:10 PM
Pardon my ignorance, but in your BAMT conf file, when you declare using cgminer_opts:, do you need the -k phtak --api listen  at the end of that?  I use a similar setup and I dont use those options.  Also, below when you are configuring your GPU, I see that you are enabling it to change your core, clock, and other settings.  Again, I dont do that either.  For my GPU settings I simply enable it, and then enable cgminer for it (cgminer : 1). 

You are redirecting BAMT to the cgminer.conf file and in there is where all of your arguments are and it will get all of its info, nothing else should be needed inside of the BAMT conf.  You dont even need to edit the pools conf file in BAMT, again, cgminer.conf will do all of that for you.


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: logicbomb666 on April 20, 2013, 11:14:48 PM
Pardon my ignorance, but in your BAMT conf file, when you declare using cgminer_opts:, do you need the -k phtak --api listen  at the end of that?  I use a similar setup and I dont use those options.  Also, below when you are configuring your GPU, I see that you are enabling it to change your core, clock, and other settings.  Again, I dont do that either.  For my GPU settings I simply enable it, and then enable cgminer for it (cgminer : 1). 

You are redirecting BAMT to the cgminer.conf file and in there is where all of your arguments are and it will get all of its info, nothing else should be needed inside of the BAMT conf.  You dont even need to edit the pools conf file in BAMT, again, cgminer.conf will do all of that for you.

I am not sure if the the -k phatk --api listen info after declaring the use of cgminer is a requirment, I just copy and pasted from the instructions.

I left my previous BAMT conf setting alone so I could easily flip back and forth between the 2 different miners if needed.  I think you are correct, once cgminer is up and running, you no longer need any of the extra stuff in the bamt.conf and you wont need the pools conf either. 

As far as gpumon being used for mining status, i'm not sure if it pulls the settings (temp hi, temp low, etc.) from cgminer.conf or bamt.conf.

yes.. looks like gpumon is not getting the info from cgminer via the api.
try testing the api and see if you can get info from it manually

I have adjusted the correct IPs in the api settings in both the bamt.conf and the cgimner.conf.  gpumon now shows live statistics for me. 

Thanks for everyone's help.  Maybe one day, after a lot of experience and even more help from the community, I might actually be smart enough to help someone else out for once. :-D


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Zanatos666 on April 22, 2013, 06:30:37 PM
Mobius, will there be instructions on updating to 3.0 now that its out?  I believe this is only to update to 2.7.7.


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: abracadabra on April 22, 2013, 10:04:58 PM
Mobius, will there be instructions on updating to 3.0 now that its out?  I believe this is only to update to 2.7.7.

Did you happen to read the third post in this thread?


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Zanatos666 on April 23, 2013, 01:56:39 AM
Mobius, will there be instructions on updating to 3.0 now that its out?  I believe this is only to update to 2.7.7.

Did you happen to read the third post in this thread?

Actually yes I did, and it does not specifically say "do this every time to download the newest version and keep up to date".  Sorry, some of us actually look for definite statements instead of inferred ones.  But hey, thanks for your help  ;)


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Zanatos666 on April 29, 2013, 08:42:23 PM
Since I like to ask questions that apparently have already been answered, yet I am completely oblivious to, is there a way/how do you check what version of CGMiner you are running?


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Marrs on April 29, 2013, 10:16:12 PM
Since I like to ask questions that apparently have already been answered, yet I am completely oblivious to, is there a way/how do you check what version of CGMiner you are running?

cgminer --version


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Zanatos666 on April 30, 2013, 03:19:59 PM
Since I like to ask questions that apparently have already been answered, yet I am completely oblivious to, is there a way/how do you check what version of CGMiner you are running?

cgminer --version


Proof I dont know squat about Linux/Debian/etc.  Tried this in the root window, no go.  So there is something thats fairly obvious to everyone else that I am completely missing.


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Marrs on April 30, 2013, 04:07:44 PM
Since I like to ask questions that apparently have already been answered, yet I am completely oblivious to, is there a way/how do you check what version of CGMiner you are running?

cgminer --version


Proof I dont know squat about Linux/Debian/etc.  Tried this in the root window, no go.  So there is something thats fairly obvious to everyone else that I am completely missing.

You need to include the explicit path to cgminer, if it's not in your PATH variable.

/opt/miners/cgminer/cgminer --version


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Zanatos666 on April 30, 2013, 04:12:15 PM
Since I like to ask questions that apparently have already been answered, yet I am completely oblivious to, is there a way/how do you check what version of CGMiner you are running?

cgminer --version


Proof I dont know squat about Linux/Debian/etc.  Tried this in the root window, no go.  So there is something thats fairly obvious to everyone else that I am completely missing.

You need to include the explicit path to cgminer, if it's not in your PATH variable.

/opt/miners/cgminer/cgminer --version

Gotcha, thanks for the help.


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Tornate on May 05, 2013, 07:06:29 PM
Using BAMT, cgminer 3.1.0 with config:

Quote
{
"pools" : [
   {
      "url" : "stratum+tcp://eu.wemineltc.com:3333",
      "user" : "xxx",
      "pass" : "xxx"
   }
],

"intensity" : "20",
"worksize" : "256",
"kernel" : "scrypt",
"lookup-gap" : "2",
"thread-concurrency" : "21712",
"gpu-engine" : "1150",
"gpu-fan" : "90",
"gpu-memclock" : "1250",
"gpu-powertune" : "20",
"gpu-threads" : "1",
"scrypt" : true
}

And it fails to run. When I debug it with "-T" key, its output is:
Quote
[2013-05-05 19:03:44] Invalid config option --intensity: Invalid value passed to set intensity
 [2013-05-05 19:03:44] Invalid config option --kernel: Invalid parameter to set_kernel
 [2013-05-05 19:03:44] Started cgminer 3.1.0
 [2013-05-05 19:03:44] Loaded configuration file /root/.cgminer/cgminer.conf    
 [2013-05-05 19:03:44] Error in configuration file, partially loaded.          
 [2013-05-05 19:03:45] Too many values passed to set temp cutoff  


Also when I try to run it with the same options, but from command line:
Quote
cgminer --scrypt --worksize 256 --thread-concurrency 21712 --gpu-powertune 20 --gpu-fan 70 --gpu-engine 1150 --gpu-memclock 1250 --lookup-gap 2 --gpu-threads 1 --intensity 20 -o stratum+tcp://eu.wemineltc.com:3333 -u xxx -p xxx
It's ouput is:
Quote
[2013-05-05 19:04:07] ./cgminer: --scrypt: unrecognized option

Please help me.


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Marrs on May 06, 2013, 01:01:40 AM
./configure --enable-scrypt


Title: Re: HOW TO UPDATE CGMINER on BAMT 0.5.c
Post by: Zanatos666 on August 16, 2013, 08:10:30 PM
So, I took down the post I have and am just going to post what to do here since all of the other steps are here, and only really need one step changed.

During the nano update.sh process, just need to change the ./configure flags.  This will enable scrypt mining, Block Erupters, Avalon and any BFL device.

Code:
export DISPLAY=:0
export GPU_USE_SYNC_OBJECTS=1
rm *.bin
make clean
cd /
tar xf /opt/AMD-APP-SDK-v2.4-lnx32/icd-registration.tgz
ln -s /opt/AMD-APP-SDK-v2.4-lnx32/include/CL /usr/include
ln -s /opt/AMD-APP-SDK-v2.4-lnx32/lib/x86/* /usr/lib/
ldconfig
cd /opt/miners/cgminer
./autogen.sh
ATISTREAMSDKROOT="/opt/AMD-APP-SDK-v2.4-lnx32/"  CFLAGS="-O2 -Wall -march=native" ./configure --enable-bflsc --enable-icarus --enable-scrypt --enable-avalon --bindir="/opt/miners/cgminer" --prefix="/opt/miners/cgminer"
make -j3
sync
./cgminer -n