From edae3479e64e93275dce4a928ea70279282eef9d Mon Sep 17 00:00:00 2001
From: ZengFei Zhang <zhangzengfei@kunteng.org>
Date: Wed, 22 Feb 2017 20:47:22 +0800
Subject: ramips: add support for HiWiFi HC5962

This patch adds supports for the HiWiFi HC5962(gee4) http://www.hiwifi.com

Short specification:

 - MT7621AT + MT7612EN + 7603EN
 - 256MB DDR3 RAM
 - 128MB NAND flash
 - 1+3 x 1000M Ethernet
 - 1x USB 2.0 port. 1x USB 3.0 port.
 - reset button
 - UART pad on PCB (JP3: TX, RX, GND, 3.3V)

Flash instruction:

1, Download lede-ramips-mt7621-hc5962-squashfs-factory.bin
2, Login as root via SSH on 192.168.199.1 and then copy factory.bin(using wget or nc or...) to /tmp/
3, use the following commands:
   $ mtd write /tmp/lede-ramips-mt7621-hc5962-squashfs-factory.bin firmware
   $ mtd erase firmware_backup && reboot
After reboot you should be able to login as root via SSH on 192.168.1.1

Signed-off-by: ZengFei Zhang <zhangzengfei@kunteng.org>
---
 target/linux/ramips/base-files/lib/upgrade/platform.sh | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'target/linux/ramips/base-files/lib/upgrade/platform.sh')

diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 06931c8..e5e5eb0 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -228,6 +228,10 @@ platform_check_image() {
 		}
 		return 0
 		;;
+	hc5962)
+		# these boards use metadata images
+		return 0
+		;;
 	ubnt-erx)
 		nand_do_platform_check "$board" "$1"
 		return $?;
@@ -260,6 +264,7 @@ platform_pre_upgrade() {
 	local board=$(ramips_board_name)
 
 	case "$board" in
+	hc5962|\
     	ubnt-erx)
 		nand_do_upgrade "$ARGV"
 		;;
-- 
cgit v1.1