aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorMichael Lee <igvtee@gmail.com>2016-05-02 11:57:40 +0800
committerJohn Crispin <john@phrozen.org>2016-07-11 14:19:47 +0200
commitc3e420f28cf1ed229753f94bafdb0d5851748af3 (patch)
tree2b023931fbd0c874554460f67ae2a65bbbc0e400 /target/linux/ramips/base-files
parent36d98e6c7a4fdfc929bdec0540c6071ee117275b (diff)
downloadupstream-c3e420f28cf1ed229753f94bafdb0d5851748af3.tar.gz
upstream-c3e420f28cf1ed229753f94bafdb0d5851748af3.tar.bz2
upstream-c3e420f28cf1ed229753f94bafdb0d5851748af3.zip
ramips: Add support for D-Link DCH-M225
D-Link DCH-M225 is based on Mediatek MT7620 with 64MB ram, 8MB flash, 3.5mm audio out support. but no ethernet and usb ports. so you must default enable wifi. Signed-off-by: Michael Lee <igvtee@gmail.com>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds4
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network4
-rw-r--r--target/linux/ramips/base-files/etc/diag.sh1
-rw-r--r--target/linux/ramips/base-files/etc/uci-defaults/09_fix-seama-header1
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
6 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index 0e30ba076d..695b0c1e7d 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -100,6 +100,10 @@ d105)
db-wrt01)
ucidef_set_led_default "power" "power" "$board:orange:power" "1"
;;
+dch-m225)
+ ucidef_set_led_default "power" "POWER" "$board:geeen:power" "1"
+ ucidef_set_led_default "status" "STATUS" "$board:red:status" "0"
+ ;;
dcs-930l-b1)
ucidef_set_led_default "power" "POWER" "$board:red:power" "1"
ucidef_set_led_netdev "wifi" "WiFi" "$board:blue:wps"
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 f8b8ec66bd..c1c5f81ebe 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -166,6 +166,7 @@ ramips_setup_interfaces()
;;
cs-qr10|\
d105|\
+ dch-m225|\
hpm|\
mzk-ex300np|\
mzk-ex750np|\
@@ -285,6 +286,9 @@ ramips_setup_macs()
wan_mac=$(mtd_get_mac_binary devdata 7)
;;
cy-swr1100|\
+ dch-m225)
+ lan_mac=$(mtd_get_mac_ascii factory lanmac)
+ ;;
dir-645)
lan_mac=$(mtd_get_mac_ascii nvram lanmac)
wan_mac=$(mtd_get_mac_ascii nvram wanmac)
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index e9d623d106..da0cecd344 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -19,6 +19,7 @@ get_status_led() {
asl26555|\
br-6425|\
br-6475nd|\
+ dch-m225|\
dir-860l-b1|\
e1700|\
fonera20n|\
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/09_fix-seama-header b/target/linux/ramips/base-files/etc/uci-defaults/09_fix-seama-header
index 7a0a325d4b..f8d408deda 100644
--- a/target/linux/ramips/base-files/etc/uci-defaults/09_fix-seama-header
+++ b/target/linux/ramips/base-files/etc/uci-defaults/09_fix-seama-header
@@ -15,6 +15,7 @@ board=$(ramips_board_name)
case "$board" in
cy-swr1100 | \
+dch-m225 | \
dir-645 | \
dir-860l-b1)
fix_seama_header
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index b6ccd5ace3..565d5138cb 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -106,6 +106,9 @@ ramips_board_detect() {
*"DB-WRT01")
name="db-wrt01"
;;
+ *"DCH-M225")
+ name="dch-m225"
+ ;;
*"DCS-930")
name="dcs-930"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index c4d3c01367..88547ca083 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -193,6 +193,7 @@ platform_check_image() {
return 0
;;
cy-swr1100|\
+ dch-m225|\
dir-610-a1|\
dir-645|\
dir-860l-b1)