This project is based on original rt-n56u with latest mtk 4.4.198 kernel, which is fetch from D-LINK GPL code.
- Adding user/chinadns-ng , and fix shadowsocks + chinadns-ng using local domain whitellist.
- AP Relay auto-daemon
- Transparent proxy (iptables) wasn't cleaned completely, this issue is fixed.
- Adding DNSProxy , Local DNS integrated with SS/SSR
- Dnsmasq optimization specially for SS/SSR
- Resolve DNS pollution - Adding DNS i/p in china-route mode
- Fast-open option is enabled according to linux version
- commits has beed rewritten on top of hanwckf/rt-n56u repo for better history tracking
- Optimized Makefiles and build scripts, added a toplevel Makefile
- Added ccache support, may save up to 50%+ build time
- Upgraded the toolchain and libc:
- gcc 13.3.0
- musl 1.2.5 / uClibc-ng 1.0.50
- OpenWrt style package Makefile
- Enabled kernel cgroups support
- Fixed K2P led label names
- Replaced udpxy with msd_lite
- Replaced Web Console with ttyd
- Upgraded libs and user packages
- And a lot of package related fixes
- ...
- Based on 4.4.198 Linux kernel
- Support MT7621 based devices
- Support MT7615D/MT7615N/MT7915D wireless chips
- Support raeth and mt7621 hwnat with legency driver
- Support qca shortcut-fe
- Support IPv6 NAT based on netfilter
- Support WireGuard integrated in kernel
- Support fullcone NAT (by Chion82)
- Support LED&GPIO control via sysfs
- 360-T6M (from https://github.com/BINGHUAice/padavan-4.4, 没有机器测试,自行判断)
- B70
- BELL-A040WQ
- C-Life-XG1 (from https://github.com/vb1980/padavan-4.4, 没有机器测试,自行判断)
- CR660x
- DIR-878
- DIR-882
- EA7500 (from https://github.com/MNM28/padavan-4.4, 没有机器测试,自行判断)
- G-AX1800 (from https://github.com/ddyjyj/padavan-4.4, 富春江G-AX1800, 自测可用)
- G-AX1800-B (from https://github.com/vb1980/padavan-4.4, 富春江G-AX1800黑色版本,自测可用, 网口配置和白色版不一样,4根天线都是ipex可拆,ttl排针焊接好了,做工比白色版好些)
- GHL (from https://github.com/fangenhui520/padavan-4.4, 没有机器测试,自行判断)
- HAR-20S2U1 (from https://github.com/vb1980/padavan-4.4, 没有机器测试,自行判断)
- JDCloud RE-CP-02 (无线宝鲁班, from https://github.com/240038901/padavan-4.4, 没有机器测试,自行判断)
- JDCloud RE-SP-01B (from https://github.com/MeIsReallyBa/padavan-4.4, 没有机器测试,自行判断)
- JCG-836PRO
- JCG-AC860M
- JCQ-Q10Pro (from https://github.com/vb1980/padavan-4.4, 没有机器测试,自行判断)
- JCQ-Q11Pro (from https://github.com/qewwqewq22/padavan11, 没有机器测试,自行判断)
- JCG-Q20
- JCG-Y2
- K2P
- K2P-USB
- MI-4
- MI-R3G
- MI-R3P
- MI-R4A (from https://github.com/vipshmily/padavan-4.4, 自测可用)
- MR2600
- MSG1500
- MSG1500-Z (from https://github.com/TurBoTse/padavan, 自测可用)
- NETGEAR-BZV
- NETGEAR-R6800 (from https://github.com/MNM28/padavan-4.4, 没有机器测试,自行判断)
- NETGEAR-R7450 (from https://github.com/vipshmily/padavan-4.4, 自测可用)
- NEWIFI
- NEWIFI3 (partially from https://github.com/GH-X/padavan-4.4, 无需拆除C48电容,没有机器测试,自行判断)
- QM-B1 (from https://github.com/monw/padavan, 没有机器测试,自行判断)
- R2100
- RM2100
- RT-AC85P
- SIM-AX1800T (from https://github.com/vb1980/padavan-4.4, 没有机器测试,自行判断)
- TX1801 Plus (from https://github.com/MNM28/padavan-4.4, 没有机器测试,自行判断)
- WDR8620 (from https://github.com/fzn0268/padavan-4.4, 没有机器测试,自行判断)
- WE410443-TC (from https://github.com/akw28888/padavan-4.4, 没有机器测试,自行判断)
- WIA3300-10 (from https://github.com/vb1980/padavan-4.4, 西加云杉WIA3300-10,自测可用)
- WR1200JS
- XY-C1
- ZTE-E8820S
- ZTE-E8820V2
- Install dependencies
Optional:
# Debian/Ubuntu sudo apt install unzip libtool-bin ccache curl cmake gperf gawk flex bison nano xxd \ fakeroot kmod cpio bc zip 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
- install golang for building go programs
sudo rm -rf /usr/local/go curl -fsSL https://go.dev/dl/go1.20.10.linux-amd64.tar.gz | sudo tar -C /usr/local -xz echo "export PATH=\$PATH:/usr/local/go/bin" | sudo tee /etc/profile.d/go.sh source /etc/profile.d/go.sh go version
- install nodejs for building AdGuardHome
sudo apt update sudo apt install -y ca-certificates curl gnupg sudo mkdir -p /etc/apt/keyrings curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list sudo apt update sudo apt install -y nodejs node -v
- install golang for building go programs
- Clone source code
git clone https://github.com/TurBoTse/padavan.git
- Modify template file and start compiling
# (Optional) Modify template file # vi trunk/configs/templates/K2P.config # Start compiling with: make PRODUCT_NAME make K2P # To build firmware for other devices, clean the tree after previous build make clean
- Makefile examples
- Compiling a single package (cd to
trunk
first)- build:
make libs/libpcre_only
- clean:
make libs/libpcre_clean
- romfs:
make libs/libpcre_romfs
- build:
- Controlling GPIO and LEDs via sysfs
- How to use NAND RWFS partition
- How to use IPv6 NAT and fullcone NAT
- How to add new device support with device tree