![release](https://camo.githubusercontent.com/16a2b50f19f59072700d10517d2ae93d8c1576d2d04b2af27b40887a1533bac2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f68616e77636b662f72742d6e3536752e737667)
![b84Ru4.jpg](https://camo.githubusercontent.com/91fd1c3f420166b2414c63e0a92bb3c51211812f637fd52313984d440b843420/68747470733a2f2f73342e617831782e636f6d2f323032322f30332f30322f6238345275342e6a7067)
10.32.0.1
user: admin
password: admin
sudo apt-get 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 libctf-nobfd0 libcunit1-dev libhdf5-dev libopenblas-dev -y
git clone --depth=1 https://github.com/yuos-bit/Padavan.git /opt/rt-n56u
#git clone --depth=1 https://github.com/yuos-bit/Padavan.git /opt/rt-n56u
cd /opt/rt-n56u/toolchain-mipsel
# (推荐)使用脚本下载预编译的工具链:
sh dl_toolchain.sh
# 或者,也可以从源码编译工具链,这需要一些时间:
./clean_toolchain
./build_toolchain
nano /opt/rt-n56u/trunk/configs/templates/PSG1218.config
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千兆版
- 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
#undef BOARD_GPIO_LED_ALL
#define BOARD_GPIO_LED_WIFI 11
#define BOARD_GPIO_LED_POWER 24 /* 24: blue, 26: yellow, 29: red */
#undef BOARD_GPIO_LED_LAN
#undef BOARD_GPIO_LED_WAN
- 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=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
#undef BOARD_GPIO_LED_ALL
#define BOARD_GPIO_LED_WIFI 11
#define BOARD_GPIO_LED_POWER 24 /* 24: blue, 26: yellow, 29: red */
#undef BOARD_GPIO_LED_LAN
#undef BOARD_GPIO_LED_WAN
/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
/opt/rt-n56u/trunk/.config: line 237: CONFIG_FIRMWARE_INCLUDE_LRZSZ: command not found
rm -rf /opt/rt-n56u/trunk/.config