Skip to content

Latest commit

 

History

History
102 lines (83 loc) · 4.64 KB

README.md

File metadata and controls

102 lines (83 loc) · 4.64 KB

Pic Of Lxn-Padavan

Lxn-Padavan

就要做最简洁、最轻快、最实用的Padavan固件。

Padavan

  • 基于hanwckf的Padavan仓库制作
  • 使用gorden5566的汉化字典
  • curl可选编译可执行程序 CONFIG_FIRMWARE_INCLUDE_CURL 添加了SSL完整支持。
  • 使用了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
  • softether-vpnserver CONFIG_FIRMWARE_INCLUDE_SOFTETHERVPN_SERVER
  • softether-vpnclient CONFIG_FIRMWARE_INCLUDE_SOFTETHERVPN_CLIENT
  • softether-vpncmd CONFIG_FIRMWARE_INCLUDE_SOFTETHERVPN_CMD
  • 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
  • 3proxy CONFIG_FIRMWARE_INCLUDE_3PROXY
  • mentohust CONFIG_FIRMWARE_INCLUDE_MENTOHUST
  • frpc CONFIG_FIRMWARE_INCLUDE_FRPC
  • frps CONFIG_FIRMWARE_INCLUDE_FRPS
  • tunsafe CONFIG_FIRMWARE_INCLUDE_TUNSAFE
  • wireguard-go CONFIG_FIRMWARE_INCLUDE_WIREGUARD
  • smartdns CONFIG_FIRMWARE_INCLUDE_SMARTDNS
  • 已适配除官方适配外的以下机型
  • MI-MINI (USB)
  • MI-R4A
  • MI-NANO
  • K2P
  • K2P-USB (USB)

编译

  • 安装依赖包
# Ubuntu 20.04 LTS
sudo apt update
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
  • 克隆源码
git clone --depth=1 git@github.com:LxnChan/Padavan.git /opt/rt-n56u
git clone --depth=1 git@bitbucket.org:lxnchan/main.git /opt/rt-n56u
  • 准备工具链
cd /opt/rt-n56u/toolchain-mipsel

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

# 或者,也可以从源码编译工具链,这需要一些时间:
./clean_toolchain
./build_toolchain

也可以在 下载,自己改一下dl_toolchain.sh脚本的下载地址就行。

  • 修改机型配置文件
vim /opt/rt-n56u/trunk/configs/templates/MI-R4A.config
  • 开始编译
cd /opt/rt-n56u/trunk
# 对于WSL环境,建议使用sudo进行编译,或者使用fakeroot-tcp代替fakeroot
fakeroot ./build_firmware_modify MI-R4A
# 脚本第一个参数为路由型号,在trunk/configs/templates/中
# 编译好的固件在trunk/images里
# 首次编译完成后,如果需要再次编译其它固件,需要执行清理脚本:
./clear_tree