A recent subscriber on my youtube channel requested to compile a version of cpuminer for Raspberry Pi to mine bitcoin / altcoins. Knowing that it’s not really worth the cpu cycles, I decided to compile a version for anyway. I have also wrote a quick tutorial explaining how to compile your own in case you want to.
Equipment List
Raspberry Pi 3 ► Amazon | Ebay
Source code used:
https://github.com/tpruvot/cpuminer-multi
Download:
Installing Dependencies
first you will need to install all the dependence:
$ sudo apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++ git
Downloading Source Codes
now we need to grab the source codes:
$ git clone https://github.com/tpruvot/cpuminer-multi
navigate to the folder:
$ cd cpuminer-multi
Compiling
To compile the software you will need to enter these commands below
$ ./autogen.sh && build.sh
when done you should have a file called cpuminer
to figure out what you need you should try using the help
$ cpuminer --help
Usage
here is a example connection
$ ./cpuminer -u user -p pass -a algorithm -o stratum+tcp://pool:1234 -t cputhreads
if your mining this with a pi, try lowering the diff factor with the command below.
-f num
Hi, thanks for your tutorial for the RasPi, but the build command should be `./autogen.sh && ./build.sh`, or error shown. Thanks.
This tutorial seemed to work for you, so I’m hoping you can help me out – it has all worked out up until the last point of opening the application – I’ve compiled the software, although that’s where it breaks down. I think the connection that this tutorial has suggested assumes that you are mining with a pool – do you have any idea how I could mine solo?
For those who can’t make this work execute the following commands sepparate:
./autogen.sh
./build.sh
After its done start the miner by:
algorithm parameter should be replaced with cryptonight-light for aeon coin for instance, search for your coin algorithm before you start mining:
Example for AEON Coin (wtih 3 threads out of 4 for RPI 3):
./cpuminer -u AEON_WALLET_ADDRESS_HERE -p pass -a cryptonight-light -o stratum+tcp://pool:1234 -t 3
How do you run the miner when the miner boots up automatically without having to go in the terminal every time
investigate how to add jobs to crontab -e
big hint you can youse the @reboot command 🙂
you would have to make that a start up command on the pi
how do you run the miner on the boot up instead of going through terminal every time
This worked out great for me. Thanks for the tutorial.
Mining with the CPU on a Pi 3 isn’t very profitable ( unless you get free Pi 3’s and electricity ) but it’s great if you want to support the Monero network and contribute to the security of the block chain. If you have a Pi 3 turned on and not doing much, why not help out your favorite block chain?
Greetings,
When i run ./build.sh i get an error message” openSSL crypto library required”. what should i do?
thanks in advance.
root@Khadas:~/cpuminer-multi# ./build.sh
-bash: ./build.sh: No such file or directory
root@Khadas:~/cpuminer-multi# ./autogen.sh
Makefile.am:12: warning: ‘INCLUDES’ is the old name for ‘AM_CPPFLAGS’ (or ‘*_CPPFLAGS’)
root@Khadas:~/cpuminer-multi#
i would love to see wolf cpu miner v2 for the tinkerboard. i have tried everything but i cannot seem to get it compiled
What algorithm should I use for Magi Coin? m7mhash is not available.
I lost my job….
My life is over….
I need 4 BTC to start a new life.
Please donate bitcoin for me!!
My bitcoin address
1MVsYcaQ7TtxzLZFCmV3ZXenmHoFreChty
Did you got?
I do not have the cpuminer file in there. Pls help, im using pi64