Pages:
Author

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

sr. member
Activity: 280
Merit: 250
Sometimes man, just sometimes.....
August 16, 2013, 03:10:30 PM
#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
member
Activity: 112
Merit: 10
May 05, 2013, 08:01:40 PM
#62
./configure --enable-scrypt
full member
Activity: 128
Merit: 100
May 05, 2013, 02: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.
sr. member
Activity: 280
Merit: 250
Sometimes man, just sometimes.....
April 30, 2013, 11:12:15 AM
#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.
member
Activity: 112
Merit: 10
April 30, 2013, 11:07:44 AM
#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
sr. member
Activity: 280
Merit: 250
Sometimes man, just sometimes.....
April 30, 2013, 10:19:59 AM
#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.
member
Activity: 112
Merit: 10
April 29, 2013, 05: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
sr. member
Activity: 280
Merit: 250
Sometimes man, just sometimes.....
April 29, 2013, 03: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?
sr. member
Activity: 280
Merit: 250
Sometimes man, just sometimes.....
April 22, 2013, 08:56:39 PM
#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
hero member
Activity: 956
Merit: 1001
April 22, 2013, 05: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?
sr. member
Activity: 280
Merit: 250
Sometimes man, just sometimes.....
April 22, 2013, 01: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.
sr. member
Activity: 260
Merit: 250
April 20, 2013, 06: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
sr. member
Activity: 280
Merit: 250
Sometimes man, just sometimes.....
April 20, 2013, 01: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.
hero member
Activity: 956
Merit: 1001
April 20, 2013, 09:53:48 AM
#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
sr. member
Activity: 260
Merit: 250
April 20, 2013, 09:50:44 AM
#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!
sr. member
Activity: 260
Merit: 250
April 20, 2013, 09:49:36 AM
#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?

newbie
Activity: 27
Merit: 0
April 20, 2013, 08:36:35 AM
#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.
hero member
Activity: 956
Merit: 1001
April 20, 2013, 06: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")


sr. member
Activity: 260
Merit: 250
April 19, 2013, 07:00:18 PM
#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


hero member
Activity: 956
Merit: 1001
April 19, 2013, 08:28:06 AM
#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.
Pages:
Jump to: