Now we specify the build flags to optimize XMRig for your SBC in particular. You'll have to only choose one of these:
for any SBC:
for the Raspberry Pi 2:
for the Raspberry Pi 2 if the command above doesn't work:
for the Raspberry Pi 3:
for the Raspberry Pi 4:
for the Asus Tinker Board:
You may find the right flags for your board here. I was only able to test these on a Raspberry Pi 2 and the Asus Tinker Board. Also, this guide is not perfect, so feel free to add/edit flags or devices!
To finish the compilation type:
To speed up the compilation you can add -j [amount_of_CPU_cores]. On a Raspberry Pi 2/3 this would be make -j 4 for example.
Configuring and Running XMRig
First we need to copy config.json to the same directory the XMRig executable is located:
Now we have to edit the configuration file properly. In this guide we'll be using nano, but any other text editor should also work fine:
Your terminal should display the contents of config.json.
In order to mine Kryptokrona, we tell XMRig what algorithm you want to mine. Look out for the "algo": setting and change it to "algo": "cryptonight-pico/trtl",
In place of "url": "donate.v2.xmrig.com:3333", you'll need to choose a pool to mine towards. Make sure to choose the right port. You can learn more about choosing a pool here.
Instead of "user": "YOUR_WALLET_ADDRESS", simply paste your Kryptokrona wallet address.
If you don't have one yet, you can find out how to create a wallet here.
When you're done with that, press:
CTRL + O to save, confirm with Enter. And after that, hit CTRL + X to close the file.
Then start the miner:
After entering this command, the miner will start scanning your hardware and begin to mine.