diff options
author | Michael Lee <igvtee@gmail.com> | 2016-05-02 11:57:40 +0800 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-07-11 14:19:47 +0200 |
commit | c3e420f28cf1ed229753f94bafdb0d5851748af3 (patch) | |
tree | 2b023931fbd0c874554460f67ae2a65bbbc0e400 /target/linux/ramips/base-files/etc | |
parent | 36d98e6c7a4fdfc929bdec0540c6071ee117275b (diff) | |
download | upstream-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/etc')
4 files changed, 10 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 |