Skip to content

499906881/rt-n56u

 
 

Repository files navigation

Build Status GitHub All Releases release

README

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.

How do I get set up?

Contribution guidelines

  • To be completed

特别说明


固件特点

  • 使用gorden5566的汉化字典
  • aria2前端更换为AriaNg
  • curl可选编译可执行程序 CONFIG_FIRMWARE_INCLUDE_CURL
  • 可选关闭webui里不常用的vpn页面 CONFIG_FIRMWARE_WEBUI_HIDE_VPN
  • 使用了PROMETHEUS提供的部分补丁
  • 使用了Linaro1985/padavan-ng的部分软件包
  • 可选以下插件:
  • 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
  • ssr/ss CONFIG_FIRMWARE_INCLUDE_SHADOWSOCKS
  • ss-server CONFIG_FIRMWARE_INCLUDE_SSSERVER
  • softether-vpnserver CONFIG_FIRMWARE_INCLUDE_SOFTETHERVPN_SERVER
  • softether-vpnclient CONFIG_FIRMWARE_INCLUDE_SOFTETHERVPN_CLIENT
  • softether-vpncmd CONFIG_FIRMWARE_INCLUDE_SOFTETHERVPN_CMD
  • dns-forwarder CONFIG_FIRMWARE_INCLUDE_DNSFORWARDER
  • 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
  • mentohust CONFIG_FIRMWARE_INCLUDE_MENTOHUST
  • frpc CONFIG_FIRMWARE_INCLUDE_FRPC
  • frps CONFIG_FIRMWARE_INCLUDE_FRPS
  • tunsafe CONFIG_FIRMWARE_INCLUDE_TUNSAFE
  • 已适配除官方适配外的以下机型
  • PSG1208
  • PSG1218
  • 5K-W20 (USB)
  • OYE-001 (USB)
  • NEWIFI-MINI (USB)
  • MI-MINI (USB)
  • MI-3 (USB)
  • MI-R3G (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

编译说明

  • 安装依赖包
sudo apt update
sudo apt install unzip libtool-bin curl cmake gperf gawk flex bison nano xxd \
cpio git python-docutils gettext automake autopoint texinfo build-essential help2man \
pkg-config zlib1g-dev libgmp3-dev libmpc-dev libmpfr-dev libncurses5-dev libltdl-dev
  • 克隆源码
git clone --depth=1 https://gitee.com/hanwckf/rt-n56u.git /opt/rt-n56u
#git clone --depth=1 https://github.com/hanwckf/rt-n56u.git /opt/rt-n56u
  • 准备工具链
cd /opt/rt-n56u/toolchain-mipsel

# (推荐)使用脚本下载预编译的工具链:
sh dl_toolchain.sh

# 或者,也可以从源码编译工具链,这需要一些时间:
# Manjaro/ArchLinux 用户请使用gcc-8
# sudo pacman -S gcc8
# sudo ln -sf /usr/bin/gcc-8 /usr/local/bin/gcc
# sudo ln -sf /usr/bin/g++-8 /usr/local/bin/g++
./clean_toolchain
./build_toolchain
  • (可选) 修改机型配置文件
nano /opt/rt-n56u/trunk/configs/templates/PSG1218.config
  • 清理代码树并开始编译
cd /opt/rt-n56u/trunk
sudo ./clear_tree
sudo ./build_firmware_modify PSG1218
# 脚本第一个参数为路由型号,在trunk/configs/templates/中
# 编译好的固件在trunk/images里

请参阅

Packages

No packages published

Languages

  • C 87.1%
  • Objective-C 4.6%
  • Assembly 1.9%
  • C++ 1.8%
  • HTML 1.2%
  • Shell 1.1%
  • Other 2.3%