Pages:
Author

Topic: HOW TO UPDATE CGMINER on BAMT 0.5.c - page 4. (Read 29086 times)

hero member
Activity: 988
Merit: 1000
November 24, 2012, 09:26:29 PM
#3
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
hero member
Activity: 988
Merit: 1000
November 24, 2012, 09:26:06 PM
#2
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://bitcointalksearch.org/topic/official-cgminer-mining-software-thread-for-linuxwinosxmipsarmr-pi-4110-28402

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
hero member
Activity: 988
Merit: 1000
November 24, 2012, 09:25:17 PM
#1
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://bitcointalksearch.org/topic/m.1355667

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!

Pages:
Jump to: