This is a WIP repo for making XMRig v6.25.0 and run on latest termux(v0.118.3) and latest clang(v21.1.8).
- Download & install latest arm64-v8a Termux:
https://github.com/termux/termux-app/releases/download/v0.118.3/termux-app_v0.118.3+github-debug_arm64-v8a.apk
- Installing clang and dependencies:
- Type
ythen enter key in any prompts!
yes | pkg update -y
yes | pkg upgrade -y
yes | pkg install build-essential binutils clang cmake libuv nano git wget -y
- Clone repo & chmod:
git clone --branch ARMv8 --single-branch https://github.com/Darktron/xmrig.git
mkdir ~/xmrig/build/
cd ~/xmrig/build/
chmod +x ~/xmrig/start.sh
cp ~/xmrig/config.json ~/xmrig/start.sh ~/xmrig/build/
- Compile XMRig:
cmake ..
make -j$(nproc)
cp xmrig-notls xmrig
strip ~/xmrig/build/xmrig
- Change your algo, pools, address, and miner name with:
nano ~/xmrig/build/config.json
- Line
62algo = your algorithm of choice. - line
63coin = coin of choice (optional). - Line
64url = your pool with port of choice. - Line
65user = your address and after can include.Difficulty. - Line
66pass = your worker name of choice.
- Start ccminer with:
~/xmrig/build/start.sh
- Close ccminer with:
CTRL + c
- If Termux can't complete update & upgrade please clear app cache and data.
- Disable battery manager, battery optimization for Termux app.
- If you long press anywhere within Termux then click
Morethere is an option toKeep screen on. - Alternatively you can pull down the notification drawer and expand Termux notification to
Acquire wakelockthis will enable you to mine with the screen off (NOTE! not all devices obey this rule is a hit or miss) - Use a pool with low latency to your location/internet.
- Give the miner/stratum time to stabilize hashrate(~30m-1h).