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.
* Updated 1/23/2018 *
see below
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.
Now we will need a piece of software called etcher to write the image onto our SD card and USB Storage device.
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
Update: 1/23/2018
The miner i have listed below will allow for all algorithm to be mined by sbc
https://github.com/tkinjo1985/cpuminer-multi
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.
Update: 1/23/2018
CFLAG="-O2 mfpu=neon-vfpv4" ./configure --with-curl --with-crypto
$ 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!!
View Comments (188)
does not work, and the wallet interface does not look like
they got Hacked they are down
PSA on Safety:
The windows based wallet found at http://m-core.org/download/ does not seem safe.
Side note: I'm not sure if there is anywhere where it asks you to input information in, but note the lack of https. If it does ask, please be careful.
More Importantly: The windows installer link is broken (so no msi), therefore windows users would be inclined to install the zipped version. This zipped version contains recognized TrojanWare (IRCbot) for backdoor entry. I am going to assume that it is not typical for a wallet to contain this, and I was lucky enough to catch it before running. I'm no computer security guru, so I may be wrong here, but please be careful.
Looks like it has a few backdoors .You should run the wallet by it's self in a vm.
on me the wallet doesnt work i tried to use the zip version but it says there are not enough system resources. And the link to the installer doesnt work. So what should i do?
where is link for wallet?
Got everything working until downloading the m-wallet where my Windows 10 PC's Defender flagged it as virus and delete it right the way.
Windows sees it as a virus because you can mine with it. Every program that can use 100% of the CPU is considered a virus. But do always be careful and only dowload things that have a good website etc.
on me i can´t sync with magi network and my wallet is offline :(
Just been doing some performance testing using a mining pool (minerclaim.net) to see the variation of performance on different platforms. In each case I'm running on a Debian variant, be it Raspbian or Debian AMD64 versions.
I've been running this on a range of my gear, so far (in khashes/sec):
- Core 7-2600k under two VMs (windows 10 host, Debian 8-64 and Debian 9-64 guests), both configured to use four cores, host CPU @ 100% - getting about 20 from one and about 16 from the other
- Xeon E3 1230 running VMWare ESXi 6.5 with one guest running (Debian 9-64) - four cores, getting about 29 (major bug in esxi 6.5 breaks host monitoring for temperature, etc. but CPU is running at 100% or thereabouts)
- Raspberry Pi Zero (original release) - 0.41
- Raspberry Pi v2 (4 core) - 2.1 (some have claimed up to 3.59 but I haven't come close to this)
- Core2Duo e8400 running Debian 9 build - about 15
I'm presuming the Core2Duo to be running at about 100-140w of power at the wall - so compare this to the power of a Vim2 at USB power outputs (with its rated speed of 16) - that makes me really want one of those things...
Curious - booted the core i7-2600k with a knoppix 8.1 boot key (running OS from memory) and had trouble compiling the program again but brought it over form another 64 bit environment. Running just on the raw OS with nearly 100% CPU devoted to it - it's only pulling 28's, a fair bit lower than on the same gear under windows running in a virtualised subsystem (combined showing 36-40). Not sure if it's an inherent inefficiency in Knoppix, might try re-compiling it locally if I can overcome the root problem.
I am now running the m-wallet Linux on a VM because the Windows version of m-wallet is flagged by Microsoft defender as virus. I am using https://pom.m-hash.com as mining pool and my script on the Raspberry PI is:
./minerd -a m7mhash -o stratum+tcp://mining.m-hash.com:3334 -u wlan04 -p password
I am getting error msg of:
[2017-10-21 20:47:24] Failed to get Stratum session id
[2017-10-21 20:47:24] Stratum difficulty set to 1
[2017-10-21 20:47:24] Stratum authentication failed
I've read this elsewhere- another av product picked it up but some said it was responding to the inclusion of a miner app and that it was a false positive. I've not had PandaAV pick up anything but I'm running auxiliary scans nonetheless.
Your problem lies in something missing for your username, let's called the scheme owner name.
In essence
./minerd -a m7mhash -o stratum+tcp://mining.m-hash.com:3334 -u wlan04 -p password
should be
./minerd -a m7mhash -o stratum+tcp://mining.m-hash.com:3334 -u YOUR_POOL_SITE_ACCOUNT_NAME.wlan04 -p password
In my case:
./minerd -a m7mhash -o stratum+tcp://mining.m-hash.com:3334 -u Nehemoth.Worker01 -p MYPASSWORD
Hello can you help me ?
My command is ./minerd -a m7mhash -o stratum+tcp://mining.m-hash.com:3334 -u Petrakkel.user -p password
It only says Binding thread 1 to cpu 1
4 miner threads started, using m7mhash algorithm
starting Strtum on stratum+tcp://mining.m-hash.com:3334
binding thread 2 to cpu 2
binding thread 0 to cpu 0
bindiing thread 3 to cpu 3
Stratum connection failed: failed to connect to mining.m-hash.com port 3334 connection refused
Your username will be ".. Then your password will be your password you set for the individual worker
Hej!
- hope this helps
- all xmg pools are in maintens mode.
https://poolinfo.systms.org
-lm-
Wow it really helped thx so much
What do you doing do when the stratum connection fails
Hi Nehemoth,
You made my day. f.... around for 3h to write the user correctly. Big thanks.
Never mind. Found the logon syntax should be "-u ."