This is tutorial for BBR
AMD GPU miner setup on USB flash drive. No sensitive data (e.g. wallet files) will end up on the USB thus no encryption of the file system is necessary. If you decide to use a wallet on this comp you can store the wallet files on different (encrypted) USB drive, and that is covered by this tutorial
https://bitcointalksearch.org/topic/m.8822382.
Ingredients:
- GPU mining rig. The rig doesn't need to have HDD but has to have 4GB of RAM
- 8GB USB thumb drive. Even cheap USB 3.0 drive will significantly improve the experience. If you for some reason use USB 2.0 drive arm yourself with a lot of patience, but in the end the miner will work just fine
Recipe:
1. Setting up Ubuntu with Persistance on USB flash driveDownload amd64 Ubuntu 14.04.1 from
http://www.ubuntu.com/download/desktopDownload Universal USB Installer
http://www.pendrivelinux.com/downloads/Universal-USB-Installer/Universal-USB-Installer-1.9.5.5.exeFollow instructions from
http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows to create bootable USB with Ubuntu. Make sure you put 4GB persistence file on it. If you wish to have persistence file larger than 4GB, i have no clue how to do it from Win, 4GB will be enough.
From GNU/Linux you can create larger Persistence like this:
- Make bootable USB with persistence of any size
- Mount USB and delete casper-rw file and resize partition with gparted
- Create second partition labeled "casper-rw" on USB, and format it as ext3 or ext4
Regardless of your current OS, and before first reboot, open "/boot/grub/grub.cfg" file on the first partition of your newly created bootable USB to make sure following menuentry has "persistent" option:
menuentry "Try Ubuntu without installing" {
set gfxpayload=keep
linux /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash persistent --
initrd /casper/initrd.lz
}
If it doesn't, add "persistent" keyword and save file.
Now restart comp and boot it from USB,
select "
Try Ubuntu without installing" (or "
Try Ubuntu") when such a menu pops up. You'll have to make the same selection at every reboot. If you use GNU/Linux for the first time you can make sure that you'll not mess up anything on your HDD by e.g. pulling out power cable from HD before booting from USB.
At this point you wish to have only one GPU card plugged in! Once Ubuntu boots test if persistence is working by opening terminal (press Ctrl+Alt+t) and issue following two commands (without $ char):
$ touch fileOnPersistance
$ sudo reboot
After reboot open terminal and:
$ ls
If you see that "fileOnPersistance" is there you are good to go.
2. Installing dependencies and few toolsNow type:
$ rm fileOnPersistance
$ gedit initialUpdate.sh &
When gedit opens copy the following in it:
#!/bin/bash
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe multiverse"
sudo apt-get update
sudo apt-get -y install indicator-multiload gufw
indicator-multiload &
sudo gufw &
sudo apt-get -y upgrade
Save and exit. Then:
$ chmod +x initialUpdate.sh
$ ./initialUpdate.sh
At one point firewall (ufw) GUI will appear, just press ON and close it. Then you may notice indicator-multiload appeared in tray, you may wish to check preferences of it.
Also, you can use this time to download Download AMD-APP-SDK-v2.9-lnx64.tgz from
http://developer.amd.com/tools-and-sdks/opencl-zone/amd-accelerated-parallel-processing-app-sdk/When initialUpdate.sh script finishes, as well as the SDK download, issue command:
$ sudo reboot
When it comes back to life type:
$ sudo apt-get -y install git-core build-essential cmake libboost1.55-all-dev g++ htop vim automake autoconf
3. Installing AMD stuffType:
$ sudo apt-get -y install fglrx-updates
to install AMD drivers. If you wish to install newest drivers see
http://wiki.cchtml.com/index.php/Ubuntu_Trusty_Installation_Guidebut it will work fine with "fglrx-updates" drivers. Either way, you'll find more info in the Ubuntu_Trusty_Installation_Guide.
When the driver is installed, type:
$ sudo halt
and
plug in all your AMD GPUs. Now power on comp again and find out in which GPU your monitor should be plugged in to display something. When it boots you may see disturbing message on the screen. Have no fear, just press Ctrl+Alt+F1 and type in following:
$ sudo amdconfig --initial -f --adapter=all
$ sudo reboot
When it boots this time you will have nice and shiny display that uses the AMD drivers. Now, in terminal:
$ cd && mkdir SDK && mv ~/Downloads/AMD-APP-SDK-v2.9-lnx64.tgz SDK && cd SDK
$ tar xvzf AMD-APP-SDK-v2.9-lnx64.tgz
$ sudo ./Install-AMD-APP.sh && cd .. && rm -rf SDK && sudo apt-get clean
$ sudo reboot
to reboot for final time.
When it comes back, the command:
$ env | grep AMDAPPSDKROOT
should return
AMDAPPSDKROOT=/opt/AMDAPP
If not than:
$ export AMDAPPSDKROOT=/opt/AMDAPP
$ cd && echo "\nexport AMDAPPSDKROOT=/opt/AMDAPP" >> .bashrc
4. Installing and setting up GPU solo minerNow, and at last:
$ git clone https://github.com/mbkuperman/boolberry-opencl && cd boolberry-opencl
$ mkdir -p build/release && cd build/release && cmake -D CMAKE_BUILD_TYPE=Release ../..
$ make -j 4 daemon && cd src
You are now in the directory where boolbd is, if everything went well. Now:
$ cp ../../../src/cl/*.cl .
$ ./boolbd --start-mining=
--mining-threads=N
where
is your BBR address and N is number of GPUs. This will download blockchain, but it will probably not mine with all your cards. When the blockchain is downloaded, type "exit" and hit Enter in the daemon window.
Now, in terminal:
$ cd ~/.boolb
$ gedit miner_conf.json && cd -
When the editor opens change "thread_delay" to 2000, save and exit the editor. Now (you can get command from history by pressing up arrow on the keyboard):
$ ./boolbd --start-mining=
--mining-threads=N
should mine with all your N GPUs.
5. Cloning the USB for multiple AMD mining rigs
(This i have not tested but i'm pretty sure it will work as long as destination USB is not smaller than source USB)
If you are rigging multiple miners you can clone just created (source) USB to another (destination USB).
Boot a Linux box and before plugging in the source or the destination USB issue:
$ cd && mkdir localTmp && cd localTmp
$ ls -l /dev | grep sd > sdsWithoutUSBs
Now plug in the destination USB and:
$ ls -l /dev | grep sd > sdsWithDestinationUSB
$ diff sdsWithoutUSBs sdsWithDestinationUSB
may result in
> SOMETHING sdd
Now plug in also the source USB and:
$ ls -l /dev | grep sd > sdsWithBothUSBs
$ diff sdsWithDestinationUSB sdsWithBothUSBs
will then return
> SOMETHING sde
> SOMETHING sde1
> SOMETHING sde2
In this case sdd is the destination and sde is the source USB. If your letters defer just correct the next command accordingly. Now just clone whole source USB to the destination one:
$ sudo dd if=/dev/sde of=/dev/sdd bs=1M conv=notrunc
When it is finished, plug in destination USB in to one of the rigs and when it boots up press Ctrl+Alt+F1 and type:
$ sudo amdconfig --initial -f --adapter=all
$ sudo reboot
After the reboot it should be ready for mining!
6. AMD GPU tweaking
For tweaking of your rig GPUs this is a good starting point
For AMD GPUs on Linux, you can tune the frequencies with aticonfig, which comes with the drivers.
For voltages there are at least two ways. There's the ADL library, which is used by some cgminer versions and others -- it generally needs to be built into applications. I prefer to use AMDOverdriveCtrl manually on the command line, though it has a GUI by default.
Good luck