cd /opt/rt-n56u/trunk
sudo ./clear_tree
fakeroot ./build_firmware_modify PSG1218
#脚本第一个参数为路由型号,在trunk/configs/templates/中#编译好的固件在trunk/images里
已额外适配除官方适配外的以下机型
MI-3 (USB)
MI-3MI (USB) 小米路由3硬改SOP flash 16mb
MI-3A
MI-3C
MI-4C
MI-4A-100M
MI-R4A小米路由4A千兆版
小米路由3C 网口以及LED灯配置分别如下
wlan and lan: >>>>> kernel-3.4.x.config
# CONFIG_RAETH_ESW_IGMP_SNOOP_OFF is not set
CONFIG_RAETH_ESW_IGMP_SNOOP_SW=y
CONFIG_RAETH_ESW_PORT_WAN=0
CONFIG_RAETH_ESW_PORT_LAN1=4
CONFIG_RAETH_ESW_PORT_LAN2=2
CONFIG_RAETH_ESW_PORT_LAN3=3
CONFIG_RAETH_ESW_PORT_LAN4=1
# CONFIG_RAETH_ESW_IGMP_SNOOP_OFF is not set
CONFIG_RAETH_ESW_IGMP_SNOOP_SW=y
CONFIG_RAETH_ESW_PORT_WAN=1
CONFIG_RAETH_ESW_PORT_LAN1=4
CONFIG_RAETH_ESW_PORT_LAN2=2
CONFIG_RAETH_ESW_PORT_LAN3=3
CONFIG_RAETH_ESW_PORT_LAN4=0
/opt/rt-n56u/trunk/libs/libpcre/pcre-8.43/missing: line 81: aclocal-1.16: command not found
WARNING: 'aclocal-1.16' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
<https://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<https://www.gnu.org/software/autoconf><https://www.gnu.org/software/m4/><https://www.perl.org/>
Makefile:1438: recipe for target 'aclocal.m4' failed
make[3]: *** [aclocal.m4] Error 127
解决方案
cd /opt/rt-n56u/trunk/libs/libpcre/pcre-8.43
autoreconf -ivf
报错 2
/opt/rt-n56u/trunk/.config: line 237: CONFIG_FIRMWARE_INCLUDE_LRZSZ: command not found