Welcome to the rt-n56u project
This project aims to improve the rt-n56u and other supported devices on the software part, allowing power user to take full control over their hardware. This project was created in hope to be useful, but comes without warranty or support. Installing it will probably void your warranty. Contributors of this project are not responsible for what happens next.
- Get the tools to build the system or Download pre-built system image
- Feed the device with the system image file (Follow instructions of updating your current system)
- Perform factory reset
- Open web browser on Router Config Page to configure the services
- To be completed
- gorden5566 Chinese dictionary
- aria2 front end replaced with AriaNg
- curl Optional compiled executable program
CONFIG_FIRMWARE_INCLUDE_CURL
- PROMETHEUS Some patches provided
- Linaro1985/padavan-ng part of the package the following plugins are optional:
- scutclient
CONFIG_FIRMWARE_INCLUDE_SCUTCLIENT
- gdut-drcom
CONFIG_FIRMWARE_INCLUDE_GDUT_DRCOM
- dogcom
CONFIG_FIRMWARE_INCLUDE_DOGCOM
- minieap
CONFIG_FIRMWARE_INCLUDE_MINIEAP
- njit-client
CONFIG_FIRMWARE_INCLUDE_NJIT_CLIENT
- napt66
CONFIG_FIRMWARE_INCLUDE_NAPT66
- softether-vpnserver
CONFIG_FIRMWARE_INCLUDE_SOFTETHERVPN_SERVER
- softether-vpnclient
CONFIG_FIRMWARE_INCLUDE_SOFTETHERVPN_CLIENT
- softether-vpncmd
CONFIG_FIRMWARE_INCLUDE_SOFTETHERVPN_CMD
- vlmcsd
CONFIG_FIRMWARE_INCLUDE_VLMCSD
- ttyd
CONFIG_FIRMWARE_INCLUDE_TTYD
- lrzsz
CONFIG_FIRMWARE_INCLUDE_LRZSZ
- htop
CONFIG_FIRMWARE_INCLUDE_HTOP
- nano
CONFIG_FIRMWARE_INCLUDE_NANO
- iperf3
CONFIG_FIRMWARE_INCLUDE_IPERF3
- dump1090
CONFIG_FIRMWARE_INCLUDE_DUMP1090
- rtl-sdr
CONFIG_FIRMWARE_INCLUDE_RTL_SDR
- samba3.6
CONFIG_FIRMWARE_INCLUDE_SMBD36
- mtr
CONFIG_FIRMWARE_INCLUDE_MTR
- socat
CONFIG_FIRMWARE_INCLUDE_SOCAT
- srelay
CONFIG_FIRMWARE_INCLUDE_SRELAY
- 3proxy
CONFIG_FIRMWARE_INCLUDE_3PROXY
- mentohust
CONFIG_FIRMWARE_INCLUDE_MENTOHUST
- frpc
CONFIG_FIRMWARE_INCLUDE_FRPC
- frps
CONFIG_FIRMWARE_INCLUDE_FRPS
- tunsafe
CONFIG_FIRMWARE_INCLUDE_TUNSAFE
- wireguard-go
CONFIG_FIRMWARE_INCLUDE_WIREGUARD
- smartdns
CONFIG_FIRMWARE_INCLUDE_SMARTDNS
* PSG1208
* PSG1218
* 5K-W20 (USB)
* OYE-001 (USB)
* NEWIFI-MINI (USB)
* MI-MINI (USB)
* MI-3 (USB)
* MI-3C
* MI-4
* MI-R3G (USB)
* MI-R4A
* MI-R3P (USB)
* HC5661A
* HC5761A (USB)
* HC5861B
* 360P2 (USB)
* MI-NANO
* MZ-R13
* MZ-R13P
* RT-AC1200GU (USB)
* XY-C1 (USB)
* WR1200JS (USB)
* NEWIFI3 (USB)
* B70 (USB)
* A3004NS (USB)
* K2P
* K2P-USB (USB)
* JCG-836PRO (USB)
* JCG-AC860M (USB)
* DIR-882 (USB)
* DIR-878
* MR2600 (USB)
* WDR7300
* RM2100
* CR660x (CR6606, CR6608, CR6609)
* R2100
* JCG-Y2 (USB)
* E8820V2 (USB)
* ZTE_E8820S (USB)
* MSG1500 (USB)
* R6220 (USB)
* NETGEAR-CHJ (R6260, R6350, R6850, WAC124)
* NETGEAR-BZV (R6800, R6700-v2, R7200, Nighthawk AC2400)
- Install dependencies
# Debian/Ubuntu
sudo apt update
sudo apt install unzip libtool-bin curl cmake gperf gawk flex bison nano xxd \
fakeroot kmod cpio git python3-docutils gettext automake autopoint \
texinfo build-essential help2man pkg-config zlib1g-dev libgmp3-dev \
libmpc-dev libmpfr-dev libncurses5-dev libltdl-dev wget libc-dev-bin -y
# Archlinux/Manjaro
sudo pacman -Syu --needed git base-devel cmake gperf ncurses libmpc \
gmp python-docutils vim rpcsvc-proto fakeroot cpio help2man
# Alpine
sudo apk add make gcc g++ cpio curl wget nano xxd kmod \
pkgconfig rpcgen fakeroot ncurses bash patch \
bsd-compat-headers python2 python3 zlib-dev \
automake gettext gettext-dev autoconf bison \
flex coreutils cmake git libtool gawk sudo
# CentOS 7
sudo yum update
sudo yum groupinstall "Development Tools"
sudo yum install ncurses-* flex byacc bison zlib-* texinfo gmp-* mpfr-* gettext \
libtool* libmpc-* gettext-* python-docutils nano help2man fakeroot
# CentOS 8
sudo yum update
sudo yum groupinstall "Development Tools"
sudo yum install ncurses-* flex byacc bison zlib-* gmp-* mpfr-* gettext \
libtool* libmpc-* gettext-* nano fakeroot
# CentOS 8 Cannot install texinfo directly through yum,help2man,python-docutils. Please go to the official website to download the released installation package to compile and install
# Take texinfo as an example
# cd /usr/local/src
# sudo wget http://ftp.gnu.org/gnu/texinfo/texinfo-6.7.tar.gz
# sudo tar zxvf texinfo-6.7.tar.gz
# cd texinfo-6.7
# sudo ./configure
# sudo make
# sudo make install
- Clone the source code
#git clone --depth=1 https://e.coding.net/hanwckf/rt-n56u/padavan.git /opt/rt-n56u
git clone --depth=1 https://github.com/gustavo8000br/rt-n56u.git /opt/rt-n56u
- Preparing the toolchain
cd /opt/rt-n56u/toolchain-mipsel
# (Recommended) Download the precompiled toolchain using a script:
sh dl_toolchain.sh
# Alternatively, the toolchain can also be compiled from source, which will take some time:
./clean_toolchain
./build_toolchain
- (Optional) Modify the model configuration file
nano /opt/rt-n56u/trunk/configs/templates/PSG1218.config
- start compiling
cd /opt/rt-n56u/trunk
# For WSL environment, it is recommended to compile with sudo, or use fakeroot-tcp instead of fakeroot
fakeroot ./build_firmware_modify PSG1218
# The first parameter of the script is the routing model, in trunk/configs/templates/
# The compiled firmware is in trunk/images
# After the first compilation is completed, if you need to compile other firmware again, you need to execute the cleanup script:
./clear_tree