cpuminer-opt)This tutorial documents exactly what you’ve already done (Termux + building
cpuminer-opt) and turns it into a clean, repeatable workflow.✅ No flashing / no bootloader unlock required
⚠️ Reality check: CPU mining on an old phone is usually not profitable. Treat this as learning + automation practice (and possibly as a low-power “node/controller” later). Keep heat low to avoid battery damage.

https://play.google.com/store/apps/details?id=com.termux&pcampaignid=web_share - install Termux
-t 1) on a phone to limit heat.pkg update && pkg upgrade
pkg install git clang make automake autoconf libtool pkg-config
Your log showed:
ar: No such file or directoryFix by installing binutils:
pkg install binutils
Verify:
which ar
ar --version
cpuminer-optgit clone https://github.com/JayDDee/cpuminer-opt.git
cd cpuminer-opt
(You already did this successfully.)
make clean || true
Older phones can crash with aggressive CPU flags like -march=native. Build with safer flags:
CFLAGS="-O2" ./build.sh
ls -l cpuminer
./cpuminer --help
If help text prints, you’re done.
You need:
yespower)stratum+tcp://pool.example.com:3333)If you don’t know your algorithm/pool yet, don’t guess—you can still verify your miner works using
--help.
Below is the exact mining command filled in with your pool, wallet, coin, and algorithm.
yescryptyescrypt.na.mine.zpool.ca6233RXDu2nWPSmy5sJodZNu5NxATsn5yiCWD94RVNcd ~/cpuminer-opt
./cpuminer \
-a yescrypt \
-o stratum+tcp://yescrypt.na.mine.zpool.ca:6233 \
-u RXDu2nWPSmy5sJodZNu5NxATsn5yiCWD94 \
-p c=RVN \
-t 1
cd ~/cpuminer-opt
./cpuminer \
-a yescrypt \
-o stratum+tcp://yescrypt.na.mine.zpool.ca:6233 \
-u RXDu2nWPSmy5sJodZNu5NxATsn5yiCWD94 \
-p c=RVN \
-t 2
If the phone gets hot, throttle kicks in, or it exits — immediately stop and revert to -t 1.
Install tmux:
pkg install tmux
Start a session:
tmux new -s miner
Run your miner inside tmux:
cd ~/cpuminer-opt
./cpuminer -a ALGO -o stratum+tcp://POOL:PORT -u WALLET_ADDRESS -p x -t 1
Detach (leave it running):
Re-attach later:
tmux attach -t miner
Stop mining:
pkg install openssh
Set a password:
passwd
Start SSH:
sshd
Termux SSH usually runs on port 8022.
On your phone you saw:
ip → cannot bind netlink socketThat’s normal on locked/older Android. Use one of these instead:
ifconfigpkg install net-tools
ifconfig
Look for inet 192.168.x.x.
getprop dhcp.wlan0.ipaddress
hostname -I
Replace USER and PHONE_IP:
ssh -p 8022 USER@PHONE_IP
Example format:
ssh -p 8022 u0_a123@192.168.1.88
Once connected you can:
ar: No such file or directory✅ Fix:
pkg install binutils
ip says cannot bind netlink socket✅ This is a permission limitation on older Android.
Use:
getprop dhcp.wlan0.ipaddress
or:
pkg install net-tools
ifconfig
✅ Rebuild with safer CFLAGS:
cd ~/cpuminer-opt
make clean || true
CFLAGS="-O2" ./build.sh
✅ Reduce heat:
-t 1If the goal is earning, phones are usually better as:
But as a learning project, this build is perfect.
