Skip to content

240038901/padavan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE: commits in this repo has beed rewritten on top of hanwckf/rt-n56u repo for better history tracking.

padavan

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
  • Supported devices

    • CR660x
    • JCG-Q20
    • JCG-AC860M
    • JCG-836PRO
    • JCG-Y2
    • DIR-878
    • DIR-882
    • K2P
    • K2P-USB
    • NETGEAR-BZV
    • MR2600
    • MI-4
    • MI-R3G
    • MI-R3P
    • R2100
    • 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
      Optional: install golang (and add it to PATH), if you are going to build go programs
    • Clone source code
      git clone https://github.com/tsl0922/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
  • 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

Packages

No packages published

Languages

  • C 95.8%
  • Assembly 1.6%
  • Shell 0.6%
  • Makefile 0.5%
  • Roff 0.4%
  • C++ 0.2%
  • Other 0.9%