小白编译chongshengB/rt-n56u自动编译老毛子padavan固件脚本使用方法
此脚本为自动编译老毛子固件脚本,以下是固件基本说明
一、固件说明
默认登陆IP:192.168.2.1
默认用户名/密码:admin/admin
默认wifi密码:1234567890
集成/取消新增插件请修改此文件: trunk/build_firmware_modify
二、已适配除官方适配外的以下机型
MI-R3P(感谢群里emmmm适配,可能led控制有点问题,其它功能正常)
京东云路由(文件来自Lintel) 编译代码: JDC-1
歌华链(感谢群里Heaven适配与测试)编译代码: GHL
NEWIFI-D1
B70(感谢Untitled提供荒野无灯的适配文件)
JCG-AC856M(感谢群里的旅途中的我适配和测试,gpio值还未完全适配,但不影响使用)
JCG-AC836M(感谢群里的碧霄客修改和测试)
YK-L1(L1、L1C、L1W通刷)
PSG712
PSG1208
PSG1218
5K-W20 (USB)
OYE-001 (USB)
NEWIFI-MINI (USB)
MI-MINI (USB)
MI-3 (USB)
MI-R3G (USB)
HC5661A
HC5761A (USB)
HC5861B
360P2 (USB)
MI-NANO
MZ-R13
MZ-R13P
MZ-R18(USB)
RT-AC1200GU (USB)
XY-C1 (USB)
WR1200JS (USB)
NEWIFI3 (USB)
B70 (USB)
A3004NS (USB)
K2P
K2P-USB (USB)
JCG-836PRO (USB)
JCG-AC860M (USB)
DIR-882 (USB)
DIR-878
MR2600 (USB)
WDR7300
RM2100
R2100
E8820V2(USB)
MSG1500(USB)
可选以下插件
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
三、编译说明
1、安装依赖包
# Debian/Ubuntu
sudo apt update sudo apt install unzip libtool-bin curl cmake gperf gawk flex bison nano xxd \ fakeroot kmod cpio git python-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
# CentOS 7
sudo yum update sudo yum groupinstall "Development Tools" sudo yum install ncurses-* flex byacc bison zlib-* texinfo gmp-* mpfr-* gettext \ libtool* libmpc-* gettext-* python-docutils nano help2man fakeroot
# CentOS 8
sudo yum update sudo yum groupinstall "Development Tools" sudo yum install ncurses-* flex byacc bison zlib-* gmp-* mpfr-* gettext \ libtool* libmpc-* gettext-* nano fakeroot
CentOS 8不能直接通过yum安装texinfo,help2man,python-docutils。请去官网下载发行的安装包编译安装
以texinfo为例
cd /usr/local/src sudo wget http://ftp.gnu.org/gnu/texinfo/texinfo-6.7.tar.gz sudo tar zxvf texinfo-6.7.tar.gz cd texinfo-6.7 sudo ./configure sudo make sudo make install
2、克隆源码
git clone --depth=1 https://github.com/chongshengB/rt-n56u.git /opt/rt-n56u
3、准备工具链
cd /opt/rt-n56u/toolchain-mipsel
(推荐)使用脚本下载预编译的工具链:
sh dl_toolchain.sh
或者,也可以从源码编译工具链,这需要一些时间:
./clean_toolchain ./build_toolchain
4、(可选) 修改机型配置文件
sudo pacman -Syu --needed git base-devel cmake gperf ncurses libmpc \ gmp python-docutils vim rpcsvc-proto fakeroot cpio help2man0
如果需要启用或者关闭某项功能,就将对应的项目赋值成y或者n,或者在其前面加上#注释符,每个项目的具体说明请参考 README.md,例如:
sudo pacman -Syu --needed git base-devel cmake gperf ncurses libmpc \ gmp python-docutils vim rpcsvc-proto fakeroot cpio help2man1
5、清理代码树并开始编译
sudo pacman -Syu --needed git base-devel cmake gperf ncurses libmpc \ gmp python-docutils vim rpcsvc-proto fakeroot cpio help2man2
脚本第一个参数为路由型号,在trunk/configs/templates/中
编译好的固件在trunk/images里
首次编译完成后,如果需要再次编译其它固件,需要执行清理脚本:
sudo pacman -Syu --needed git base-devel cmake gperf ncurses libmpc \ gmp python-docutils vim rpcsvc-proto fakeroot cpio help2man3
编译好的.trx固件在trunk/images里,可直接在breed里刷入;
在Padavan里也可以直接从webui更新固件,或者手动将固件上传到路由器中然后用以下命令刷入:
sudo pacman -Syu --needed git base-devel cmake gperf ncurses libmpc \ gmp python-docutils vim rpcsvc-proto fakeroot cpio help2man4
点击链接加入群聊三群:751529538
点击链接加入群聊二群:376877156
点击链接加入群聊【路由器交流群:622891808已满】
本站附件分享,如果附件失效,可以去找找看
饿了么红包