Bitcoin Forum
February 02, 2023, 04:03:11 PM *
News: Latest Bitcoin Core release: 24.0.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: 1 2 3 4 [All]
  Print  
Author Topic: HOW TO UPDATE CGMINER on BAMT 0.5.c  (Read 29006 times)
Mobius (OP)
Hero Member
*****
Offline Offline

Activity: 988
Merit: 1000



View Profile
November 25, 2012, 02:25:17 AM
Last edit: March 21, 2013, 07:56:08 PM by Mobius
 #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://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!

1675353792
Hero Member
*
Offline Offline

Posts: 1675353792

View Profile Personal Message (Offline)

Ignore
1675353792
Reply with quote  #2

1675353792
Report to moderator
1675353792
Hero Member
*
Offline Offline

Posts: 1675353792

View Profile Personal Message (Offline)

Ignore
1675353792
Reply with quote  #2

1675353792
Report to moderator
1675353792
Hero Member
*
Offline Offline

Posts: 1675353792

View Profile Personal Message (Offline)

Ignore
1675353792
Reply with quote  #2

1675353792
Report to moderator
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1675353792
Hero Member
*
Offline Offline

Posts: 1675353792

View Profile Personal Message (Offline)

Ignore
1675353792
Reply with quote  #2

1675353792
Report to moderator
1675353792
Hero Member
*
Offline Offline

Posts: 1675353792

View Profile Personal Message (Offline)

Ignore
1675353792
Reply with quote  #2

1675353792
Report to moderator
Mobius (OP)
Hero Member
*****
Offline Offline

Activity: 988
Merit: 1000



View Profile
November 25, 2012, 02:26:06 AM
Last edit: November 25, 2012, 02:49:39 AM by Mobius
 #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://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
Mobius (OP)
Hero Member
*****
Offline Offline

Activity: 988
Merit: 1000



View Profile
November 25, 2012, 02:26:29 AM
Last edit: November 25, 2012, 03:05:44 AM by Mobius
 #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
Mobius (OP)
Hero Member
*****
Offline Offline

Activity: 988
Merit: 1000



View Profile
November 27, 2012, 05:04:02 AM
Last edit: March 21, 2013, 07:56:28 PM by Mobius
 #4

Reserved for ASIC Update instructions:
AmDD
Legendary
*
Offline Offline

Activity: 1027
Merit: 1005



View Profile
December 08, 2012, 03:14:30 PM
 #5

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?

BTC tip jar: 18EKpbrcXxbpzAZv3T58ccGcVis7W7JR9w
LTC tip jar: Lgp8ERykAgx6Q8NdMqpi5vnVoUMD2hYn2a
AndrewBUD
Hero Member
*****
Offline Offline

Activity: 1078
Merit: 502



View Profile WWW
December 08, 2012, 03:16:20 PM
 #6

Thanks for posting bud Smiley


▄▄▄███████▄▄▄
▄▄█████▀▀''`▀▀█████▄▄
▄███P'            `YY██▄
▄██P'                  `Y██▄
███'                      `███
███'                         ███
▄██'   ▄█████▄▄  ,▄▄▄▄▄▄▄▄▄▄p   ███
▄██▀  ,████▀P▀███.`██████████P   ▀██▄
███[ ,████ __. ███.   ,▄████▀    ███
███[ ]████████████[  ▄████▀       ███
███[ `████   ,oo2 ▄████▀'       ,███
▀██▄  `████▄▄█████d███████████   ▄██▀
▀██.   `▀▀▀▀▀▀"  Y▀▀▀▀▀▀▀▀▀▀▀  ,██▀
███.                        ,███
▀██▄                      ▄██▀
▀███▄_                 ,███▀
▀███▄▄_          _▄▄███▀
▀▀████▄▄ooo▄▄█████▀
▀▀███████▀▀'

365

TM

EZ365 is a digital ecosystem that combines
the best aspects of online gaming, cryptocurrency
trading
and blockchain education. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

..WHITEPAPER..    ..INVESTOR PITCH..

.Telegram     Twitter   Facebook

                       .'M████▀▀██  ██
                      W█Ws'V██  ██▄▄███▀▀█
                     i█████m.~M████▀▀██  ███
                     d███████Ws'V██  ██████
                     ****M██████m.~███f~~__mW█
          ██▀▀▀████████=  Y██▀▀██W ,gm███████
      g█████▄▄▄██   █A~`_WW Y█  ██!,████████
   g▀▀▀███   ████▀▀`_m████i!████P W███  ██
 _███▄▄▄██▀▀▀███Af`_m███   █W ███A ]███  ██
__ ~~~▀▀▀▀▄▄▄█*f_m██████   ██i!██!i███████
Y█████▄▄▄▄__. i██▀▀▀██████████ █!,██████
 8█  █▀▀█████.!██   ██████████i! █████
 '█  █  █   █W M█▄▄▄██████   ██ !██
  !███▄▄█   ██i'██████████   ██
   Y███████████.]██████████████
   █   ███████b ███   ██████
   Y   █   █▀▀█i!██   ████
    V███   █  █W Y█████
      ~~▀███▄▄▄█['███
            ~~*██

Play

            │
    │      ███
    │      ███
    │      ███
    │   │  ███
   ███  │  ███
   ███ ███ ███
 │  ███ ███ ███
███ ███ ███ ███
███ ███  │   │
███ ███  │   │
 │   │
 │

Trade

           __▄▄████▄▄
     __▄▄███████████████▄▄▄
 _▄▄█████████▀▀~`,▄████████████▄▄▄
 ~▀▀████▀▀~`,_▄▄███████████████▀▀▀
   d█~  =▀███████████████▀▀
   ]█! m▄▄ '~▀▀▀████▀▀~~ ,_▄▄
  ,W█. *████▄▄__ '  __▄▄█████
  !██P  █████████████████████
   W█. - ██████████████████▀
  i██[   ~ ▀▀█████████▀▀▀
 g███!
Y███

Learn
[/tabl
Mobius (OP)
Hero Member
*****
Offline Offline

Activity: 988
Merit: 1000



View Profile
December 08, 2012, 04:01:00 PM
 #7

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.
AmDD
Legendary
*
Offline Offline

Activity: 1027
Merit: 1005



View Profile
December 08, 2012, 06:02:16 PM
 #8

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?

BTC tip jar: 18EKpbrcXxbpzAZv3T58ccGcVis7W7JR9w
LTC tip jar: Lgp8ERykAgx6Q8NdMqpi5vnVoUMD2hYn2a
Mobius (OP)
Hero Member
*****
Offline Offline

Activity: 988
Merit: 1000



View Profile
December 08, 2012, 06:31:32 PM
 #9

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
segabtc
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


View Profile
December 09, 2012, 05:42:06 AM
 #10

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
Komonec
Legendary
*
Offline Offline

Activity: 985
Merit: 1000


25btc.ru


View Profile WWW
February 21, 2013, 08:50:40 PM
 #11

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

abracadabra
Hero Member
*****
Offline Offline

Activity: 956
Merit: 1001



View Profile
February 22, 2013, 03:06:48 PM
 #12


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?
Mobius (OP)
Hero Member
*****
Offline Offline

Activity: 988
Merit: 1000



View Profile
February 22, 2013, 09:30:28 PM
 #13


Go thru the steps one by one again.
superfastkyle
Sr. Member
****
Offline Offline

Activity: 437
Merit: 250


View Profile
March 16, 2013, 04:17:08 AM
Last edit: March 16, 2013, 05:31:46 AM by superfastkyle
 #14

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
abracadabra
Hero Member
*****
Offline Offline

Activity: 956
Merit: 1001



View Profile
March 16, 2013, 05:17:25 PM
Last edit: March 18, 2013, 10:28:19 PM by abracadabra
 #15

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
lastbit
Full Member
***
Offline Offline

Activity: 206
Merit: 100


View Profile
March 16, 2013, 11:59:17 PM
 #16

I successfully upgraded BAMT to cgminer 2.11.2 using segabtc quoted instructions. Thank you.
Nancarrow
Hero Member
*****
Offline Offline

Activity: 492
Merit: 500


View Profile
March 21, 2013, 06:23:22 PM
Last edit: March 21, 2013, 07:13:00 PM by Nancarrow
 #17

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.  Cry


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.

If I've said anything amusing and/or informative and you're feeling generous:
1GNJq39NYtf7cn2QFZZuP5vmC1mTs63rEW
abracadabra
Hero Member
*****
Offline Offline

Activity: 956
Merit: 1001



View Profile
March 21, 2013, 09:29:17 PM
 #18

does gpumon show anything?
did you update mother as described above?
did you do all the BAMT updates minus #20?
superfastkyle
Sr. Member
****
Offline Offline

Activity: 437
Merit: 250


View Profile
March 22, 2013, 07:51:06 AM
 #19

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?
Mobius (OP)
Hero Member
*****
Offline Offline

Activity: 988
Merit: 1000



View Profile
March 22, 2013, 11:53:27 AM
 #20

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

Nancarrow
Hero Member
*****
Offline Offline

Activity: 492
Merit: 500


View Profile
March 22, 2013, 05:59:51 PM
 #21

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.

If I've said anything amusing and/or informative and you're feeling generous:
1GNJq39NYtf7cn2QFZZuP5vmC1mTs63rEW
superfastkyle
Sr. Member
****
Offline Offline

Activity: 437
Merit: 250


View Profile
March 22, 2013, 06:07:55 PM
 #22

so thats a call to cgminer itself to go to the next pool? do you have to specify that port in your config
Marrs
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
March 22, 2013, 06:22:49 PM
 #23

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
superfastkyle
Sr. Member
****
Offline Offline

Activity: 437
Merit: 250


View Profile
March 23, 2013, 04:54:28 AM
 #24

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?
Mobius (OP)
Hero Member
*****
Offline Offline

Activity: 988
Merit: 1000



View Profile
March 23, 2013, 01:22:14 PM
 #25

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
superfastkyle
Sr. Member
****
Offline Offline

Activity: 437
Merit: 250


View Profile
March 23, 2013, 06:44:41 PM
 #26

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
abracadabra
Hero Member
*****
Offline Offline

Activity: 956
Merit: 1001



View Profile
March 24, 2013, 02:16:06 AM
 #27

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.
superfastkyle
Sr. Member
****
Offline Offline

Activity: 437
Merit: 250


View Profile
March 24, 2013, 10:22:30 AM
 #28


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.
Nemesis
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


View Profile
March 27, 2013, 09:01:10 AM
 #29

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:


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?
Mobius (OP)
Hero Member
*****
Offline Offline

Activity: 988
Merit: 1000



View Profile
March 27, 2013, 01:11:08 PM
 #30

redo the steps in the OP again, print it out and check off each step.
Zanatos666
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


Sometimes man, just sometimes.....


View Profile
April 01, 2013, 03:55:50 PM
 #31

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â.

Squiggly letters, written really fast, with a couple of dots for good measure.
Zanatos666
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


Sometimes man, just sometimes.....


View Profile
April 01, 2013, 10:10:27 PM
 #32

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.

Squiggly letters, written really fast, with a couple of dots for good measure.
abracadabra
Hero Member
*****
Offline Offline

Activity: 956
Merit: 1001



View Profile
April 01, 2013, 10:37:50 PM
 #33

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
logicbomb666
Sr. Member
****
Offline Offline

Activity: 260
Merit: 250



View Profile WWW
April 16, 2013, 02:08:23 AM
 #34

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?

I think snare rolls should be used as a currency.
Mobius (OP)
Hero Member
*****
Offline Offline

Activity: 988
Merit: 1000



View Profile
April 16, 2013, 03:21:42 AM
 #35

no proxy needed, look at sample .conf file in opening post
logicbomb666
Sr. Member
****
Offline Offline

Activity: 260
Merit: 250



View Profile WWW
April 16, 2013, 04:30:34 AM
 #36

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. 

I think snare rolls should be used as a currency.
Mobius (OP)
Hero Member
*****
Offline Offline

Activity: 988
Merit: 1000



View Profile
April 16, 2013, 06:45:06 AM
 #37

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)
Zanatos666
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


Sometimes man, just sometimes.....


View Profile
April 16, 2013, 01:34:21 PM
 #38

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?

Squiggly letters, written really fast, with a couple of dots for good measure.
logicbomb666
Sr. Member
****
Offline Offline

Activity: 260
Merit: 250



View Profile WWW
April 19, 2013, 12:36:33 AM
 #39

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?

I think snare rolls should be used as a currency.
abracadabra
Hero Member
*****
Offline Offline

Activity: 956
Merit: 1001



View Profile
April 19, 2013, 02:25:03 AM
 #40

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?
-ck
Legendary
*
Offline Offline

Activity: 3682
Merit: 1441


Ruu \o/


View Profile WWW
April 19, 2013, 02:30:26 AM
 #41

Apparently there is an official BAMT update which curtails the cgminer problem now.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
logicbomb666
Sr. Member
****
Offline Offline

Activity: 260
Merit: 250



View Profile WWW
April 19, 2013, 04:14:31 AM
 #42

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 think snare rolls should be used as a currency.
logicbomb666
Sr. Member
****
Offline Offline

Activity: 260
Merit: 250



View Profile WWW
April 19, 2013, 04:28:32 AM
 #43

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?

I think snare rolls should be used as a currency.
abracadabra
Hero Member
*****
Offline Offline

Activity: 956
Merit: 1001



View Profile
April 19, 2013, 01:28:06 PM
 #44

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.
logicbomb666
Sr. Member
****
Offline Offline

Activity: 260
Merit: 250



View Profile WWW
April 20, 2013, 12:00:18 AM
 #45

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.




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



I think snare rolls should be used as a currency.
abracadabra
Hero Member
*****
Offline Offline

Activity: 956
Merit: 1001



View Profile
April 20, 2013, 11:21:27 AM
 #46

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")


Izael
Newbie
*
Offline Offline

Activity: 27
Merit: 0


View Profile
April 20, 2013, 01:36:35 PM
 #47

There is a few mistakes that we must change:

Quote

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.
logicbomb666
Sr. Member
****
Offline Offline

Activity: 260
Merit: 250



View Profile WWW
April 20, 2013, 02:49:36 PM
 #48

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?


I think snare rolls should be used as a currency.
logicbomb666
Sr. Member
****
Offline Offline

Activity: 260
Merit: 250



View Profile WWW
April 20, 2013, 02:50:44 PM
 #49


@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!

I think snare rolls should be used as a currency.
abracadabra
Hero Member
*****
Offline Offline

Activity: 956
Merit: 1001



View Profile
April 20, 2013, 02:53:48 PM
 #50

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?



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
Zanatos666
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


Sometimes man, just sometimes.....


View Profile
April 20, 2013, 06:03:10 PM
 #51

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.

Squiggly letters, written really fast, with a couple of dots for good measure.
logicbomb666
Sr. Member
****
Offline Offline

Activity: 260
Merit: 250



View Profile WWW
April 20, 2013, 11:14:48 PM
 #52

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

I think snare rolls should be used as a currency.
Zanatos666
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


Sometimes man, just sometimes.....


View Profile
April 22, 2013, 06:30:37 PM
 #53

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.

Squiggly letters, written really fast, with a couple of dots for good measure.
abracadabra
Hero Member
*****
Offline Offline

Activity: 956
Merit: 1001



View Profile
April 22, 2013, 10:04:58 PM
 #54

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?
Zanatos666
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


Sometimes man, just sometimes.....


View Profile
April 23, 2013, 01:56:39 AM
 #55

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  Wink

Squiggly letters, written really fast, with a couple of dots for good measure.
Zanatos666
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


Sometimes man, just sometimes.....


View Profile
April 29, 2013, 08:42:23 PM
 #56

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?

Squiggly letters, written really fast, with a couple of dots for good measure.
Marrs
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
April 29, 2013, 10:16:12 PM
 #57

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
Zanatos666
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


Sometimes man, just sometimes.....


View Profile
April 30, 2013, 03:19:59 PM
 #58

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.

Squiggly letters, written really fast, with a couple of dots for good measure.
Marrs
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
April 30, 2013, 04:07:44 PM
 #59

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
Zanatos666
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


Sometimes man, just sometimes.....


View Profile
April 30, 2013, 04:12:15 PM
 #60

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.

Squiggly letters, written really fast, with a couple of dots for good measure.
Tornate
Full Member
***
Offline Offline

Activity: 128
Merit: 100



View Profile
May 05, 2013, 07:06:29 PM
 #61

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.
Marrs
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
May 06, 2013, 01:01:40 AM
 #62

./configure --enable-scrypt
Zanatos666
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


Sometimes man, just sometimes.....


View Profile
August 16, 2013, 08:10:30 PM
Last edit: October 02, 2013, 01:37:04 AM by Zanatos666
 #63

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

Squiggly letters, written really fast, with a couple of dots for good measure.
Pages: 1 2 3 4 [All]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!