aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/lib
diff options
context:
space:
mode:
authorPavel Kubelun <be.dissent@gmail.com>2017-08-12 17:56:11 +0300
committerJohn Crispin <john@phrozen.org>2017-08-23 14:59:12 +0200
commit6e283cdc0da25928f8148805ebef7f8f2b769ee8 (patch)
tree532335271e41ba1cd18ca931c2ed5b865d11554d /target/linux/ramips/base-files/lib
parent4fce22e88f21733b62c30de65eec94bc8630cba5 (diff)
downloadupstream-6e283cdc0da25928f8148805ebef7f8f2b769ee8.tar.gz
upstream-6e283cdc0da25928f8148805ebef7f8f2b769ee8.tar.bz2
upstream-6e283cdc0da25928f8148805ebef7f8f2b769ee8.zip
ramips: add Xiaomi Mi Router 3G support
This commit adds support for Xiaomi Mi WiFi Router 3G. Short specification: - MT7621AT + MT7603EN + 7612EN - 256MB DDR3 RAM - 128MB NAND flash - 1+2 x 1000M Ethernet - 1x USB 3.0 port - reset button - yellow, blue, red leds Installation through telnet/ssh: - copy lede-ramips-mt7621-mir3g-squashfs-kernel1.bin and lede-ramips-mt7621-mir3g-squashfs-rootfs0.bin to usb disk or wget it from LEDE download site to /tmp - switch to /extdisks/sda1/ (if copied to USB drive) or to /tmp if wgetted from LEDE download site - run: mtd write lede-ramips-mt7621-mir3g-squashfs-kernel1.bin kernel1 - run: mtd write lede-ramips-mt7621-mir3g-squashfs-rootfs0.bin rootfs0 - run: mtd erase kernel0 - run: reboot Originally stock firmware has following partitions: - ... - kernel0 (primary kernel image) - kernel1 (secondary kernel image, used by u-boot in failsafe routine) - rootfs0 (primary rootfs) - rootfs1 (secondary rootfs in case primary fails) - overlay (used as ubi overlay) This commit squashes rootfs0, rootfs1 and overlay partitions into 1, so it can be used by LEDE fully for package installation, resulting in 117,5MiB. This device lacks hw watchdog, so adding softdog instead (stock does the same). Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
Diffstat (limited to 'target/linux/ramips/base-files/lib')
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh2
2 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index a3f376e6ac..fe66a87c2e 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -286,6 +286,9 @@ ramips_board_detect() {
*"Mercury MAC1200R v2")
name="mac1200rv2"
;;
+ *"Mi Router 3G")
+ name="mir3g"
+ ;;
*"MicroWRT")
name="microwrt"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 8977381c86..3cb1d19a28 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -251,6 +251,7 @@ platform_check_image() {
return 0
;;
hc5962|\
+ mir3g|\
r6220)
# these boards use metadata images
return 0
@@ -297,6 +298,7 @@ platform_do_upgrade() {
case "$board" in
hc5962|\
+ mir3g|\
r6220|\
ubnt-erx|\
ubnt-erx-sfp)