1. bee bee
  2. BAMT



Build sgminer

First, you need the ADL SDK headers:

# Download the ADL_SDK_6.0.zip from http://developer.amd.com/tools-and-sdks/graphics-development/display-library-adl-sdk/
unzip ADL_SDK_6.0.zip include/{adl_defines.h,adl_sdk.h,adl_structures.h}
cp include/* <path to your BAMT clone>/opt/miners/sgminer/ADL_SDK

Then, from inside your BAMT clone:

sudo aptitude install libcurl4-openssl-dev pkg-config libtool libncurses5-dev autoconf automake
cd opt/miners/sgminer
autoreconf -i
CFLAGS="-O2 -Wall -march=native" ./configure
cp kernel/*.cl .

NOTE: this won't actually work, since the source of BAMT hasn't been updated yet to point to sgminer from cgminer

For a temporary fix, you can do the following from within opt/miners/sgminer:

ln -s sgminer cgminer
cd ..
ln -s sgminer cgminer

Install BAMT Build Depends

Run these two commands to install ruby and the fpm package:

sudo aptitude install ruby1.9.1 ruby1.9.1-dev
sudo gem1.9.1 install fpm

Build the Package

Run these commands from within a clone of BAMT to produce a Debian package:

export PATH="$PATH:/var/lib/gems/1.9.1/bin"
CONFFILES=$(for i in etc/bamt/*; do echo "--config-files /$i"; done)
fpm -s dir -t deb --version $(cat VERSION) --name bamt $CONFFILES --exclude  opt/miners/sgminer/.git etc usr opt

Install the Package

Finally, run this command to install/upgrade the BAMT package:

sudo dpkg -i bamt_$(cat VERSION)_i386.deb

This will upgrade the existing files, without overwriting any config files you've tweaked.


  • Provide instuctions on installing/upgrading the ATI/AMD drivers
  • Instead of adding the entire build of sgminer to the package, build with prefix $PWD/../.. so it will install into /usr/bin. This will require updating any scripts that call it or depend on it to be in /opt/miners/sgminer