### Bitcoin mining config Ubuntu 10.04 AMD64 / Single Saphire ATI Radeon 5770 ## ## lots copied from the below guide, but updated Sept. 01 2011 ## to include new json-rpclib source and information on current ## git sourced poclbm command line examples. ## ## http://foreverrising.wordpress.com/2011/04/16/bitcoin-mining-and-ubuntu-10-10-ati-radeon-5xxx/ # I used the System->Administration->Hardware Drivers, proprietary driver for ATI. # I did not install my video driver manually. ## Setup the ATI SDK # download http://developer.amd.com/Downloads/ati-stream-sdk-v2.1-lnx64.tgz to /opt # it cannot be wget'd, use a browser to click through the EULA, save to /opt cd /opt sudo tar xfzv ati-stream-sdk-v2.1-lnx64.tgz ## Setup the ... whatever this is? Registration? # download http://developer.amd.com/Downloads/icd-registration.tgz to / # it cannot be wget'd, use a browser to click through the EULA, save to / sudo tar xfzv icd-registration.tgz # It'll make /etc/OpenCL/vendors/ ## Add the appropriate env variables to the shell. Test. export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:$LD_LIBRARY_PATH cd /opt/ati-stream-sdk-v2.1-lnx64/samples/opencl/bin/x86_64 ./CLInfo |grep CL_DEVICE_TYPE_GPU ## Setup and install pyOpenCl cd /some/tmp/dir wget http://pypi.python.org/packages/source/p/pyopencl/pyopencl-0.92.tar.gz tar zxfv pyopencl-0.92.tar.gz cd pyopencl-0.92 ./configure.py --cl-inc-dir=/opt/ati-stream-sdk-v2.1-lnx64/include/ --cl-lib-dir=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64 make # if you don't have checkinstall to make .debs, then # sudo apt-get install checkinstall sudo checkinstall -D --install=no sudo dpkg -i pyopencl_0.92-1_amd64.deb ## Setup and install json-rpclib sudo apt-get install g++ libboost-all-dev subversion git-core python-numpy # not really needed, but it's what I did because I thought I was going to # compile the svn, but the svn server disapeared mid-July 2011, so I took # an alternative route. # the replacement for the svn version # https://github.com/joshmarshall/jsonrpclib sudo apt-get install python-setuptools sudo easy_install jsonrpclib ## Setup and install bitcoin itself ## http://bitcointalk.org/?topic=2623.0 # https://launchpad.net/~stretch/+archive/bitcoin sudo apt-add-repository ppa:stretch/bitcoin sudo apt-get update sudo apt-get install bitcoin # please note that bitcoin client cpu usage will be high until you've # downloaded the full block chain for that date. It'll take a couple # hours at max. ## recommended bitcoin pools: # don't use deepbit. btcguild has 0% fees and deepbit 3% (depending) # btcguild offers merged mining (reuse of nonces) for namecoin at the same time. A plus. # Eligius requires no accounts, can't be redirected, and is attributed as direct mining. # https://www.btcguild.com/ # http://eligius.st/ ./poclbm.py -d 1 -v -f60 -w128 1FzjMd4H7QXzCBC3C7KeypERKY7R8PrYbr:w00t@mining.eligius.st:8337 ## install poclbm bitcoin miner # poclbm is faster and uses less cpu than phoenix miner for me. git clone https://github.com/m0mchil/poclbm.git # examples of options to run with a bitcoin pool, I never ran it in single mode, but # I imagine you'd just use localhost instead. # export the opencl library paths before starting the client export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:$LD_LIBRARY_PATH # f60, width 128, no desktop lag, 200 MH/s, Fan Speed: 44%, Temp: 73C (idle is 45C) ./poclbm.py -d 1 -v -f60 -w128 user:password@btcguild.com:8332 ./poclbm.py -d 1 -v -f60 -w128 1JRGrUdT6wFn1A5r6sW21dJQwtvC742cQv:x@mining.eligius.st:8337 # f60, width 256, no desktop lag, 200 MH/s, etc, etc ./poclbm.py -d 1 -f60 -v -w 256 user:password@btcguild.com:8332 # f10, some desktop lag, fastest, ~ 220 MH/s ./poclbm.py -d 1 -v -f10 -w128 user:password@pit.deepbit.net:8332 # show core temp aticonfig --od-gettemperature # shows fan speed aticonfig --pplib-cmd "get fanspeed 0" # sets fan speed to 100% aticonfig --pplib-cmd "set fanspeed 0 100" # show current clockspeeds aticonfig --odgc # overclock core to 900Mhz, memory at 1200Mhz aticonfig --odsc=900,1200 # example phoenix miner command line, desktop lag, high CPU usage, ~170 MH/s ./phoenix.py -u http://user:password@btcguild.com:8332/ -v -k phatk VECTORS BFI_INT FASTLOOP=false WORKSIZE=128 AGGRESSION=5 PLATFORM=0 DEVICE=1 # extreme desktop lag, very high CPU usage, 190 MH/s ./phoenix.py -u http://user:password@btcguild.com:8332/ -v -k phatk VECTORS BFI_INT FASTLOOP=false WORKSIZE=128 AGGRESSION=10 PLATFORM=0 DEVICE=1