aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-10-19 10:07:38 +0000
committerJohn Crispin <blogic@openwrt.org>2015-10-19 10:07:38 +0000
commit8d5e529d09bc777828ee65eb3888dd4aea1dc471 (patch)
treef312e3032a825e8dc36535f280bb9f4f6453cd8d /target/linux/ramips/base-files
parent765d67d621dabbe68dd939476e6777226f96cbd9 (diff)
downloadmaster-187ad058-8d5e529d09bc777828ee65eb3888dd4aea1dc471.tar.gz
master-187ad058-8d5e529d09bc777828ee65eb3888dd4aea1dc471.tar.bz2
master-187ad058-8d5e529d09bc777828ee65eb3888dd4aea1dc471.zip
ramips: add LinkIt Smart7688 support
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47203 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network7
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh9
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh2
3 files changed, 18 insertions, 0 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 94d69b9e7e..07327968fc 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -46,6 +46,8 @@ ramips_setup_interfaces()
dcs-930|\
dcs-930l-b1|\
ht-tm02|\
+ linkits7688 | \
+ linkits7688d | \
microwrt|\
ncs601w|\
w150m|\
@@ -302,6 +304,11 @@ ramips_setup_macs()
ht-tm02)
lan_mac=$(cat /sys/class/net/eth0/address)
;;
+ linkits7688 | \
+ linkits7688d)
+ wan_mac=$(mtd_get_mac_binary factory 4)
+ lan_mac=$(mtd_get_mac_binary factory 46)
+ ;;
m3|\
m4|\
x5|\
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index b89a88c27c..340bc4c3b3 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -202,6 +202,15 @@ ramips_board_detect() {
*"M4")
name="m4"
;;
+ *"MediaTek LinkIt Smart7688")
+ linkit="$(dd bs=1 skip=1024 count=12 if=/dev/mtd2 2> /dev/null)"
+ if [ "${linkit}" = "LINKITS7688D" ]; then
+ name="linkits7688d"
+ RAMIPS_MODEL="${machine} DUO"
+ else
+ name="linkits7688"
+ fi
+ ;;
*"Memory 2 Move")
name="m2m"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 44d41c1406..d3d9df3a0f 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -62,6 +62,8 @@ platform_check_image() {
ht-tm02|\
hw550-3g|\
ip2202|\
+ linkits7688|\
+ linkits7688d|\
m2m|\
m3|\
m4|\