aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorZengFei Zhang <zhangzengfei@kunteng.org>2017-02-22 20:47:22 +0800
committerMathias Kresin <dev@kresin.me>2017-02-28 23:46:02 +0100
commitedae3479e64e93275dce4a928ea70279282eef9d (patch)
tree3a9e78e098b52d4e6e66c5edb636e6b8a0390f6e /target/linux/ramips/base-files
parent2677b66f9ba31dccbf3c815776fb6125fd9bfed3 (diff)
downloadupstream-edae3479e64e93275dce4a928ea70279282eef9d.tar.gz
upstream-edae3479e64e93275dce4a928ea70279282eef9d.tar.bz2
upstream-edae3479e64e93275dce4a928ea70279282eef9d.zip
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>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network4
-rw-r--r--target/linux/ramips/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh5
4 files changed, 14 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 507eb8a062..cfad1fffde 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -80,6 +80,7 @@ ramips_setup_interfaces()
dir-615-h1|\
firewrt|\
hc5661a|\
+ hc5962|\
hlk-rm04|\
mac1200rv2|\
miwifi-mini|\
@@ -345,7 +346,8 @@ ramips_setup_macs()
wan_mac=$(mtd_get_mac_ascii config WAN_MAC_ADDR)
;;
hc5*61|\
- hc5661a)
+ hc5661a|\
+ hc5962)
lan_mac=`mtd_get_mac_ascii bdinfo "Vfac_mac "`
[ -n "$lan_mac" ] || lan_mac=$(cat /sys/class/net/eth0/address)
wan_mac=$(macaddr_add "$lan_mac" 1)
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index a1297e26f5..3f2211778b 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -147,6 +147,9 @@ get_status_led() {
mlwg2)
status_led="$board:blue:system"
;;
+ hc5962)
+ status_led="$board:white:status"
+ ;;
linkits7688| \
linkits7688d)
[ "$1" = "upgrade" ] && status_led="mediatek:orange:wifi"
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index 5800aacd82..8e53848be8 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -226,6 +226,9 @@ ramips_board_detect() {
*"HC5861")
name="hc5861"
;;
+ *"HC5962")
+ name="hc5962"
+ ;;
*"HG255D")
name="hg255d"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 06931c8b16..e5e5eb0487 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"
;;