You might be thinking Crypto Mining on SBC like the raspberry pi or the tinker board is completely pointless and waste of time, but what if i told you it was not and there is still away to be profitable. Now this wont make you rich but it does get you started, at least now you wont have idle boards sitting around.

 

Equipment List

Raspberry Pi 3 ► Amazon | Ebay

Asus TinkerBoard ► Amazon

Khadas Vim 2 ► Gearbest

Software List

Raspbian Pixel llite ► https://www.raspberrypi.org/downloads/

Etcher  ► https://etcher.io/

Magicoin Wallet ► http://m-core.org/

Magi Forum ► https://bitcointalk.org/index.php?topic=735170

CoinMarketCap Magi Info ► https://coinmarketcap.com/currencies/magi/#markets

magi coin pool list ► https://poolinfo.systms.org/

git cpuminer ► https://github.com/novaspirit/wolf-m7m-cpuminer

 

Crypto Mining on SBC

Step 1: Install Raspbian Pixel

First you will need to download Raspbian Pixel, this method does work with other Desktop release but I would recommend the Lite.

download pixel

Now we will need a piece of software called etcher to write the image onto our SD card and USB Storage device.

etcher

Step 2: Check for updates

It is always a good idea to check for updates even if it is a freshly installed OS.

$ sudo apt-get update
$ sudo apt-get upgrade

Step 3: Compiling

Don’t be nervous about having to compiling on raspberry pi. although the procedure is slightly different then of other sbc boards, its still essentially running a few commands to get you going. we are going to first start with grabbing all the dependence needed to compiled the software we need with this apt-get command below

$ sudo apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++ git libgmp-dev

Now it’s time to clone the source codes for the miner from my git which i have forked from the original creator. This mean any changes or updates the created adds will not effect us and you should check with his code regularly.

$ git clone https://github.com/novaspirit/wolf-m7m-cpuminer

With the dependencies and source code in place, now it’s time to get into it and start generating the files we need to compile the miner.

$ cd wolf-m7m-cpuminer 
$ ./autogen.sh

Compiler flags are needed to improve software, depending on hardware and what the gcc can do, you only have limited options. This compiler flag you will be inputting applies to raspberry pi and tinkerboard but not the VIM2… do you see what I mean? essentially you can not use the CFLAG options at all just to test if the software will compile.

$ CFLAG="-O2 mfpu=neon-vfpv4" ./configure

(raspberry pi only instructions)

at this point we need to modify two “Makefiles” and change the “-march=native” to “-mcpu=cortex-a53” for cpu detection

$ nano Makefile

to search in nano you can use the key combo “ctrl+w”

there are two Makefile needed to be edited

$ nano m7/Makefile

We are almost there!! now it’s time to actually compile the software with the make command. Using the “-j#” options allows you to utilize the amount of cores you have on the device.

$ make -j4

Compiling is complete. all we need to do now is point the software into a pool

$ ./minerd -a m7mhash -o urlofpool:8080 -u worker.1 -p password

MAGI Wallet POS Config

The wallet itself is pretty self explanatory, as far as sending and receiving coins. what hidden deep within it’s instructions is the ability to POS mine. POS(Proof of stake) is in easier terms a interest system on your wallet, the longer you leave your coins in the wallet the potential of generating more coins is higher. To read more about pos for magi coin you can refer to this link https://bitcointalk.org/index.php?topic=735170.msg9991269#msg9991269

Assuming you have downloaded the wallet already from there website and at least ran it once, it should have generated “magi” folder in your “appdata” folder. We will need to go into that folder and generated a file called “magi.conf”

Edit the file using notepad and add the line “posii=1”, with this option enabled in your wallet config, this will allow the wallet to stake coins.

restart the wallet and enable the wallet to stake through the menu “mint” -> “enable mPoS minting”

That’s it folks!! If you have any question please leave a comment below!!