HOW TO UPGRADE KOPIEMTU MOD with cuda 6.5.19 to CUDA 7.5 and driver 352
NOTE1: I assume that you have my modded version of kopiemtu with cuda 3.5.19 on a 16GB flash drive.
NOTE2: i assume you do EVERYTHING as ROOT
, so before any
command, DO sudo su
NOTE3: before we begin, i will recommend that you backup your flash drive.
I use win32diskimager
plug the flash drive, load win32diskimager
type the full path and name of the image to create
and press read.
or you can do it with dd too in another linux machine.
when it finishes plug the flash drive to the miner and we continue:
Connect monitor keyboard and mouse to the miner.make sure you have enough room, delete any miner software you are not using, it is very likely that the cuda 6.5.19 installer is still in the /root directory (i left it there just in case, delete it) CUDA 7.5 needs at least! 6.2 GB FREE during the install process or it will abort.we download CUDA:
open firefox and paste this:http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda_7.5.18_linux.run
(this is the .run version for ubuntu 14.04 x64 version)
it is 1.1M in size so, it may take a while if you have shitty
internet connection like me.
now open console.sudo su
(password is usually live)
it is time to stop the miner if you are still mining:mine stopthen we install some libraries:
apt-get install libglu1-mesa libxi-dev libxmu-dev libglu1-mesa-dev
once you have that one installed and downloaded CUDACheck remote access to the miner (ESSENTIAL!):
it is absolutely necessary to be able to access the miner via SSH for reasons you will understand below as you read.
so check this now, using ssh on another linux or putty on a windows machine.
if you don't know the IP address to this:
ifconfig | grep "inet addr"
the first one is the right one.
now check if you can connect to the miner via ssh.
if you, for whatever reason cannot connect via ssh STOP, don't keep going with this process as you will loose local access to the machine at some point and it is necessary to have remote ssh running, i did in on three machines and works every time so it should work on yours!.
OK, so you can access remotely via SSH to the miner
we can now go back to the physical machine.Install CUDA:
get out of X server.
login there in text mode.
service lightdm stop
chmod +x cuda_7.5.18_linux.run
say yes to all, default paths are ok.
you will see every now and then that the screen flickers, it's normal don't worry.
if you have a sandisk or other slower flash drive, it will take about an hour to do this.
when it finish
at this point it won't work, I see a flashing cursor at the top left of the screen.
the machine looks hanged up, but it works remotely, so:
we login remotely via ssh (that's why it was so important!)and uninstall the drivers:
sudo dpkg --list | grep nvidia
gives you a list of what it is installed, uninstall everything, in my case was:
sudo apt-get remove nvidia-346 nvidia-opencl-icd-346 nvidia-prime nvidia-settings
DON'T REBOOT!Install newest driver
sudo add-apt-repository ppa:xorg-edgers/ppa -y
sudo apt-get update
sudo apt-get install nvidia-352
at this point miner loads but does not start mining, that's ok, check versions of cuda and driver:Check CUDA versionnvcc --versionCheck driver versioncat /proc/driver/nvidia/version
and check that you can see all your cards with:nvidia-smi
if everything is ok we download latest version of sp_ and compile
if you want to use an older version compiled for cuda 6.5 modify the LD_LIBRARY_PATH in /opt/kopiemtu/miner.sh (near the bottom)
to point it to the old library (usually) /usr/local/cuda-6.5/lib64 since the symlink now points to the new cuda 7.5
I am pretty sure that there is a better (cleaner) way to do this, but this method worked every time, so I prefer to go with the very well tested method