Tuesday, March 31, 2015

Setting up a litecoin miner on an Ubuntu laptop with a Radeon GPU

These are just rough notes for myself. Perhaps you'll get something useful out of them too.

Download cgminer from http://downloadandroidrom.com/file/zedomax/linux/cgminer/cgminer-3.7.2-x86_64-built.tar.bz2 but this could be bad. Most links are now dead. We need 3.7.2 because it's the last cgminer build with scrypt support and GPU mining support.

wget http://www2.ati.com/drivers/beta/amd-catalyst-14.1-betav1.3-linux-x86.x86_64.zip --referer="http://support.amd.com/en-us/download/desktop?os=Linux+x86"
unzip amd-catalyst-14.1-betav1.3-linux-x86.x86_64.zip
sudo sh *.run --buildpkg Ubuntu/raring
sudo dpkg -i fglrx*.deb

So let's build it from git.

$ mkdir litecoin
$ cd litecoin
$ git clone https://github.com/ckolivas/cgminer.git
$ cd cgminer
$ git checkout tags/v3.7.2

$ sudo apt-get install build-essential autoconf automake libtool pkg-config libcurl3-dev libudev-dev
$ sudo apt-get install libcurl4-openssl-dev
$ sudo ./autogen.sh m4_pattern_allow

$ autoconf
$ automake

$ sudo apt-get install libcurl4-openssl-dev libncurses5-dev pkg-config libtool yasm autogen automake

AMD Radeon Catalyst http://www2.ati.com/drivers/linux/amd-catalyst-14-9-linux-x86-x86-64.zip
ADL SDK http://developer.amd.com/tools-and-sdks/graphics-development/display-library-adl-sdk/#

$ unzip amd-catalyst-14-9-linux-x86-x86-64.zip
$ cd fglrx-14.301.1001
$ sudo chmod +x amd-driver-installer*.run
$ sudo apt-get install dh-modaliases execstack debhelper dkms lib32gcc1 
$ sudo ./amd-driver-installer*.run

$ sudo aticonfig --initial -f --adapter=all



No comments:

Post a Comment