Mining NKN on your Openwrt Router

#1

Requirement:

  • a router which is running openwrt 18.06
  • CPU architecture: {386|amd64|arm|arm64|mips|mipsle}
  • flash size > 8M, Memory size >256M
  • additional storage size > 4G, USB storage or NAS shared driver
  • a public IPv4 address

I use USB storage in this tutorial.

  1. Auto mount your usb memory stick during router boot. (Skip this step is you already mounted your storage.)
    run command:
opkg update && opkg install block-mount e2fsprogs kmod-fs-ext4 kmod-usb-storage

make sure your memory stick has been mounted correctly, remember its mount point, we will need it later. Check ‘Enable’ in below snapshot to mount your memory stock during router boot. Click “Save & Apply”.
mount

  1. Download this script to /tmp directory in your router. Then run:
cd /tmp && chmod +x nkn-mining_openwrt.sh

Replace ‘mipsle’ with your CPU architecture in below command.
Replace ‘/mnt/sda1’ with your storage mount point in below command.

./nkn-mining_openwrt.sh mipsle /mnt/sda1

Once installation finished, your will be given an serial number which has NKN prefix, copy this.
finished

  1. Open the URL on top of your NKN serial number, e.g. http://192.168.2.1:8181/web
    your will see NKN-mining GUI like this.
    wallet-en

  2. Fill in your wallet pasword and NKN serial number to create a new wallet, or just load your local wallet.
    You may download your wallet, and store it in some safe place. Click ‘Sign in’ to continue.
    wallet-en2

  3. Enable your NKN node by click On/Off switch.
    wallet-en3

  4. Open TCP 30001-30003 on your router for NKN incoming connection.
    firewall

  5. Wait 5-10 minutes, if your node is woring correctly, the relay number and block height should increase.
    node

Enjoy your NKN mining.

2 Likes
#2

:clap::clap::clap:

#3

优酷路由宝是 32M闪存 128M内存 8G内存卡
openwrt bb版 cpu 7620
研究一下 怎么安装 已经root了 可以telnet登录

#4

路由宝有nkn定制固件,不用折腾openwrt。

#5

基于路由宝原固件 root后可以实现非常的过的功能
拨公网
ddns
s-s-r
ftp
中继
wisp
微信吸粉
17ce
adbyby去广告
迅雷远程
等等
官方固件的app管理,挖矿依然不受影响

#6

Now it is announced on OpenWRT forum as well:

1 Like