FlawShatter / padavan-4.4-MeIsReallyBa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

padavan

This project is based on original rt-n56u with latest mtk 4.4.198 kernel, which is fetch from D-LINK GPL code.

Enhancements in this repo
  • 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 10.3.0
    • uClibc-ng 1.0.42
  • 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
  • ...

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

Compilation steps

  • Install dependencies
    # Debian/Ubuntu
    sudo apt install unzip libtool-bin ccache 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 liblzma-dev
    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

Package Development

  • 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

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

About


Languages

Language:C 94.8%Language:Assembly 1.6%Language:Shell 0.8%Language:Makefile 0.8%Language:Roff 0.5%Language:Classic ASP 0.4%Language:C++ 0.2%Language:Perl 0.2%Language:CSS 0.1%Language:M4 0.1%Language:JavaScript 0.1%Language:HTML 0.1%Language:Python 0.1%Language:TeX 0.1%Language:Yacc 0.0%Language:Lua 0.0%Language:CMake 0.0%Language:C# 0.0%Language:Meson 0.0%Language:SmPL 0.0%Language:Java 0.0%Language:Berry 0.0%Language:Lex 0.0%Language:Awk 0.0%Language:1C Enterprise 0.0%Language:Tcl 0.0%Language:GDB 0.0%Language:UnrealScript 0.0%Language:Terra 0.0%Language:sed 0.0%Language:Dockerfile 0.0%Language:XSLT 0.0%Language:Logos 0.0%Language:SourcePawn 0.0%Language:Gherkin 0.0%Language:Raku 0.0%Language:ASL 0.0%Language:Batchfile 0.0%Language:Verilog 0.0%Language:AIDL 0.0%Language:QMake 0.0%Language:XS 0.0%Language:Clojure 0.0%Language:Arc 0.0%Language:Scilab 0.0%Language:PostScript 0.0%Language:Emacs Lisp 0.0%Language:V 0.0%Language:Starlark 0.0%