

192.168.31.1
user: admin
password: admin
- MI-3 (USB)
- MI-3MI (USB)
小米路由3硬改SOP flash 16mb
- MI-3A
- MI-3C
- MI-4C
- MI-4A-100M
- 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
sudo apt-get update
sudo apt-get install unzip libtool curl cmake gperf gawk flex bison nano \
git python-docutils gettext automake autopoint texinfo build-essential fakeroot \
pkg-config zlib1g-dev libgmp3-dev libmpc-dev libmpfr-dev libncurses5-dev libltdl-dev
git clone --depth=1 https://github.com/xiaiohuan/MI-WIFI.git /opt/rt-n56u
#git clone --depth=1 https://github.com/xiaiohuan/MI-WIFI.git /opt/rt-n56u
cd /opt/rt-n56u/toolchain-mipsel
./clean_sources
./build_toolchain_3.4.x
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里