Author Topic: Bamt Litecoin Guide (5000 and 6000 ATI)  (Read 6347 times)

Offline Sy

  • Global Moderator
  • Hardcore Member
  • *****
  • Posts: 4036
Bamt Litecoin Guide (5000 and 6000 ATI)
« on: April 04, 2013, 12:12:05 PM »
This will work with the BAMT supported Cards, so no 7xxx and newer (none yet ^^)

First you have to download some stuff:
BAMT (use direct link)
https://bitcointalk.org/index.php?topic=65915.0

Windows tool to create the USB Stick:
http://sourceforge.net/projects/win32diskimager/files/latest/download

AMD ADL
http://developer.amd.com/tools/graphics-development/display-library-adl-sdk/

I won't cover how to get BAMT on an USB Stick, just get the machine running, get the IP and connect to it via ssh (putty) or work on the machine itself (root terminal)

If you did login via ssh (user / live) do
Code: [Select]
sudo su
set the important vars (thx @debianlinux), edit /etc/init.d/mine and add after DAEMON=
Code: [Select]
export DISPLAY=:0
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100

otherwise start with
Code: [Select]
ln -sf /opt/AMD-APP-SDK-v2.4-lnx32/include/CL /usr/include
ln -sf /opt/AMD-APP-SDK-v2.4-lnx32/lib/x86/* /usr/lib/
ldconfig
this will create symbolic links to the already present APP SDK to compile cgminer

Next install an ftp server
Code: [Select]
apt-get install ftpd
Connect via ftp to your machine once it is done with the user user and passwort live, navigate to the folder /tmp/ and upload the include folder from INSIDE the ADL zip

Get back to your terminal and enter
Code: [Select]
cd /opt/miners
rm -rf cgminer
git clone https://github.com/ckolivas/cgminer.git
cp /tmp/include/* cgminer/ADL_SDK/
cd cgminer
./autogen.sh

CFLAGS="-O2 -Wall -march=native -I/usr/include/CL" LDFLAGS="-L/usr/lib" ./configure --enable-scrypt
make

next edit /etc/bamt/bamt.cfg
after
Quote
miner_id: bamt-miner
add
Code: [Select]
cgminer: 1
cgminer_opts: --api-listen --config /etc/bamt/cgminer.conf

In every GPU you want to use change disabled
Code: [Select]
disabled: 0
cgminer: 1
and change hash_monitor_lo to something like 0.2

Everything else after that will be ignored since you use a different miner, create a valid cgminer.cfg at the given location (easiest way is to start it once and press s w enter), run
Code: [Select]
restartand thats it.


IF it doesnt work at that point you usually got an error in your cgminer.conf - start it yourself by running
Code: [Select]
/opt/miners/cgminer/cgminer --api-listen --config /etc/bamt/cgminer.cfgso you can read the error messages and correct them.

I'll try to create an ISO soon from my working system, i changed the configs a bit so i can easily switch between ltc, ppc and btc - as soon as someone tells me how to create an iso from an usb stick without getting a file as big as the stick itself :D

Working cgminer.conf that will mine into a donation pool ^^

Quote
{
"pools" : [
    {
            "url" : "http://coinotron.com:3334",
            "user" : "ltcbamt.ltc",
            "pass" : "ltc"
    }
],
"gpu-fan" : "auto",
"intensity" : "18",
"vectors" : "4",
"kernel" : "scrypt",
"lookup-gap" : "2",
"temp-cutoff" : "95",
"temp-overheat" : "85",
"temp-target" : "75",
"api-port" : "4028",
"expiry" : "120",
"gpu-threads" : "1",
"queue" : "1",
"scan-time" : "60",
"scrypt" : true,
"temp-hysteresis" : "3",
"shares" : "0",
"kernel-path" : "/usr/local/bin"
}
« Last Edit: April 19, 2013, 08:26:24 PM by Sy »

Offline debianlinux

  • Full Member
  • ***
  • Posts: 294
  • Freow
Re: Bamt Litecoin Guide
« Reply #1 on: April 04, 2013, 01:18:36 PM »
Here's my method of configuring a rig to serve dual duty LTC/BTC: http://forum.litecoin.net/index.php/topic,1392.msg8421.html#msg8421

Note the linked thread within my link gets you to a wroking BAMT BTC rig and then my instructions make it dual purpose.

Notably absent from OP is the environment variables export.

Offline Sy

  • Global Moderator
  • Hardcore Member
  • *****
  • Posts: 4036
Re: Bamt Litecoin Guide
« Reply #2 on: April 04, 2013, 01:29:45 PM »
I've read your guide too before i got my machine working but after all, i had to take pieces from everywhere over the net to get it done with munin, mother and co, the webinterface is working too.



Basicly once you got it running you create another bamt.cfg that points to a different cgminer conf file, i named mine cgminer.ltc cgminer.ppc etc and you are set.

I indeed did forget
Code: [Select]
export DISPLAY=:0
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
though, added them to /root/.bashrc

Offline Nem

  • Newbie
  • *
  • Posts: 8
Re: Bamt Litecoin Guide (5000 and 6000 ATI)
« Reply #3 on: May 10, 2013, 07:56:07 PM »
Since you have basically the same cards as i do, i wonder if you can help me: https://forum.litecoin.net/index.php/topic,1392.msg23111.html#msg23111

I didnt follow your guide but the other member successfully got his cards mining with his way.

Couple things: My cgminer is 2.11.3 (which i believe works fine with Stratum and scrypt). I dont know what my AMD SDK or Driver version is. I think i did upgrade the SDK when i upgraded my cgminer to 2.11.3.

I'm hesitated to follow your guide mainly because i dont have extra USB key, currently i'm still mining BTC. Once i got a new USB i will try to start fresh.


Offline Sy

  • Global Moderator
  • Hardcore Member
  • *****
  • Posts: 4036
Re: Bamt Litecoin Guide (5000 and 6000 ATI)
« Reply #4 on: May 13, 2013, 08:52:49 AM »
Since you have basically the same cards as i do, i wonder if you can help me: https://forum.litecoin.net/index.php/topic,1392.msg23111.html#msg23111

I didnt follow your guide but the other member successfully got his cards mining with his way.

Couple things: My cgminer is 2.11.3 (which i believe works fine with Stratum and scrypt). I dont know what my AMD SDK or Driver version is. I think i did upgrade the SDK when i upgraded my cgminer to 2.11.3.

I'm hesitated to follow your guide mainly because i dont have extra USB key, currently i'm still mining BTC. Once i got a new USB i will try to start fresh.

It's pretty failsave on old cards, gets a bit more complicated if you want to use 7000+