From 5ff5c9bce6b6e51060c272521528b5afd789e9ab Mon Sep 17 00:00:00 2001 From: Markus Scheck Date: Mon, 27 May 2019 19:25:22 +0200 Subject: ramips: add support for Xiaomi Mi Router 4A (100M Edition) - SoC: MediaTek MT7628AN - Flash: 16MB (Winbond W25Q128JV) - RAM: 64MB - Serial: As marked on PCB, 3V3 logic, baudrate is 115200 - Ethernet: 3x 10/100 Mbps (switched, 2x LAN + WAN) - WIFI0: MT7628AN 2.4GHz 802.11b/g/n - WIFI1: MT7612EN 5GHz 802.11ac - Antennas: 4x external (2 per radio), non-detachable - LEDs: Programmable power-LED (two-colored, yellow/blue) Non-programmable internet-LED (shows WAN-activity) - Buttons: Reset INSTALLATION: 1. Connect to the serial port of the router and power it up. If you get a prompt asking for boot-mode, go to step 3. 2. Unplug the router after > Erasing SPI Flash... > raspi_erase: offs:20000 len:10000 occurs on the serial port. Plug the router back in. 3. At the prompt select option 2 (Load system code then write to Flash via TFTP.) 4. Enter 192.168.1.1 as the device IP and 192.168.1.2 as the Server-IP. 5. Connect your computer to LAN1 and assign it as 192.168.1.2/24. 6. Rename the sysupgrade image to test.bin and serve it via TFTP. 7. Enter test.bin on the serial console and press enter. Signed-off-by: Markus Scheck Signed-off-by: Christian Lamparter [added mt76 compatible] --- target/linux/ramips/image/mt76x8.mk | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'target/linux/ramips/image') diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk index ca279a7d61..4e6a5d1ca9 100644 --- a/target/linux/ramips/image/mt76x8.mk +++ b/target/linux/ramips/image/mt76x8.mk @@ -450,6 +450,14 @@ define Device/wrtnode2r endef TARGET_DEVICES += wrtnode2r +define Device/xiaomi_mir4a-100m + DTS := XIAOMI-MIR4A-100M + IMAGE_SIZE := 14976k + DEVICE_TITLE := Xiaomi Mi Router 4A (100M Edition) + DEVICE_PACKAGES := kmod-mt76x2 +endef +TARGET_DEVICES += xiaomi_mir4a-100m + define Device/zbtlink_zbt-we1226 DTS := ZBT-WE1226 IMAGE_SIZE := $(ralink_default_fw_size_8M) -- cgit v1.2.3