This project is based on original rt-n56u with latest mtk 4.4.198 kernel, which is fetch from D-LINK GPL code.
-
Features
- 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
-
WIP
- 802.11kvr and mtkiappd roam functions
- IPTV related functions
-
Supported devices
- CR660x
- JCG-Q20
- JCG-AC860M
- JCG-836PRO
- JCG-Y2
- DIR-878
- DIR-882
- K2P
- K2P-USB
- NETGEAR-BZV
- MR2600
- MI-R3P
- XY-C1
-
Compilation step
- Install dependencies
# Debian/Ubuntu 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 # 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
- Clone source code
git clone https://github.com/hanwckf/padavan-4.4.git
- Prepare toolchain
cd padavan-4.4/toolchain-mipsel # (Recommend) Download prebuilt toolchain for x86_64 or aarch64 host ./dl_toolchain.sh # or build toolchain with crosstool-ng # ./build_toolchain
- Modify template file and start compiling
cd padavan-4.4/trunk # (Optional) Modify template file # nano configs/templates/K2P.config # Start compiling fakeroot ./build_firmware_modify K2P # To build firmware for other devices, clean the tree after previous build ./clear_tree
- Install dependencies
-
Manuals
- 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
步骤
0.点击右上角的Fork按钮,进入自己fork后的仓库。
1.修改/workflows/build-padavan.yml里的插件与机型。修改TNAME: K2P 中的K2P为需要编译的型号,注意名称要与configs/templates/目录下的名字 相同。
修改后commit changes保存。
2.点击页面上部的Actions按钮,点击I understand my workflows,go ahead and enable them绿色按钮启用action。
3.点击右上角的 Star 星星按钮即可开始自动编译(自己点击才会编译)。修改配置后若需再次编译,先点击Star取消Star后,再点击Star即可重新编译。
编译完成后在Actions页面底部下载固件。