Linux image for mining Coin Magi XMG on Orange Pi Zero
Mining Coin Magi (XMG) on Orange Pi Zero is cool because this SBC consumes very little power (2W at peak, usually 2W), costs as a pint of beer ($6.99), and gives a hash rate of 4-6KH/s.
I made an image which you can burn to your microsd card (at least 8GB class 4).
You don’t need to compile anything, install anything, just download, burn image to card using your favourite image writing software and do some simple config (explained below), sit back and enjoy!
Download Armbian image here: OrangePiZeroMagiMiner8g-public.img.zip. It contains stock Armbian (Orange Pi Zero is 32bit), with addition of compiled and configured miner wolf-m7m-cpuminer, so you dont need to do Makefile changes and compiling.
login as root and password changeme
Image is configured so miner autostarts. It will not start mining until you configure your pool credentials, so first you need to kill miner process:
To connect to wifi use:
then change several files using midnight commander (command: mc, find the file and hit F4 to edit, F2 to save, F10 to exit editor):
/etc/init.d/miner.sh change pool address and port, poolUsername, worker name and WorkerPassword:
sudo /home/alojz/wolf-m7m-cpuminer/minerd -a m7mhash -o stratum+tcp://xmg.minerclaim.net:7008 -u poolUsername.worker -p WorkerPassword -s 15 -B
Reboot and unplug LAN cable
/etc/hostname if you have more sbc’s:
/etc/modprobe.d/xradio-wlan.conf if you have more sbc’s so these dont collide on your router, each needs to have unique mac address:
options xradio_wlan macaddr=04:5A:5D:99:5A:XX
/etc/NetworkManager/system-connections/YOUR-CONNECTION-NAME change mac address in this file too.
If you found this article and armbian image helpful, and if you consider supporting this free website, you can donate here. Thank you!
Register on PoolAttractor and start monitoring all your mining pools, with some useful data crunched just for you!
And now some pictures of my mining rig build (in progress)