diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-08-17 17:56:05 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-08-17 17:56:05 +0000 |
commit | 89606b61b1feaf9e9ba5b7344883a6bae30f8485 (patch) | |
tree | 1467b4640c0f17bac9a67c5cb0b3f1e4fb87c5b2 /target/linux/ramips/base-files | |
parent | 25ac1447ed9e7c1b58771c568be164a8262c903b (diff) | |
download | mtk-20170518-89606b61b1feaf9e9ba5b7344883a6bae30f8485.zip mtk-20170518-89606b61b1feaf9e9ba5b7344883a6bae30f8485.tar.gz mtk-20170518-89606b61b1feaf9e9ba5b7344883a6bae30f8485.tar.bz2 |
ramips: add support for D-Link DIR-615 H1
rt2x00 still needs some patching as the radio doesn't come to life.
Installation via webflash.
[juhosg: fix whitespace issues, remove rt305x_register_usb
from machine setup because the board has no USB port]
Signed-off-by: Mikko Hissa <mikko.hissa@uta.fi>
SVN-Revision: 33205
Diffstat (limited to 'target/linux/ramips/base-files')
7 files changed, 15 insertions, 3 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index b426693..6c86513 100755 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -36,7 +36,7 @@ get_status_led() { argus-atp52b) status_led="argus-atp52b:green:run" ;; - dir-300-b1 | dir-600-b1 | dir-600-b2 | dir-620-a1) + dir-300-b1 | dir-600-b1 | dir-600-b2 | dir-615-h1 | dir-620-a1) status_led="d-link:green:status" ;; dap-1350) diff --git a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom index 392a8e1..2a40519 100644 --- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom +++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom @@ -57,6 +57,7 @@ case "$FIRMWARE" in all5002 | \ argus-atp52b | \ bc2 | \ + dir-615-h1 | \ dir-620-a1 | \ esr-9753 | \ fonera20n | \ diff --git a/target/linux/ramips/base-files/etc/uci-defaults/leds b/target/linux/ramips/base-files/etc/uci-defaults/leds index 21804c7..32fae25 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/leds +++ b/target/linux/ramips/base-files/etc/uci-defaults/leds @@ -32,6 +32,10 @@ case $board in ucidef_set_led_default "wan" "WAN LED (amber)" "d-link:amber:wan" "1" set_wifi_led "rt2800pci-phy0::radio" ;; + dir-615-h1) + ucidef_set_led_default "status" "Status LED (amber)" "d-link:amber:status" "0" + set_wifi_led "rt2800pci-phy0::radio" + ;; esr-9753) set_wifi_led "rt2800pci-phy0::radio" ;; diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network b/target/linux/ramips/base-files/etc/uci-defaults/network index cbb0b85..e7e9334 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/network +++ b/target/linux/ramips/base-files/etc/uci-defaults/network @@ -18,6 +18,7 @@ ramips_setup_interfaces() case $board in all0256n | \ all5002 | \ + dir-615-h1 | \ wl-330n) ucidef_set_interface_lan "eth0.1" ;; @@ -89,7 +90,8 @@ ramips_setup_macs() case $board in all0256n | \ - all5002) + all5002 | \ + dir-615-h1) lan_mac=$(ramips_get_mac_binary factory 40) ;; 3g-6200n | \ diff --git a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac index a6c88ed..7709b3b 100644 --- a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac +++ b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac @@ -35,7 +35,8 @@ preinit_set_mac_address() { ifconfig eth0 hw ether $mac 2>/dev/null ;; all0256n |\ - all5002 | \ + all5002 |\ + dir-615-h1 |\ fonera20n |\ hw550-3g |\ nbg-419n |\ diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 8dcda48..fb2a573 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -83,6 +83,9 @@ ramips_board_name() { *"DIR-620 A1") name="dir-620-a1" ;; + *"DIR-615 H1") + name="dir-615-h1" + ;; *"DAP-1350") name="dap-1350" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 2548e1d..1b5d546 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -21,6 +21,7 @@ platform_check_image() { dir-300-b1 | \ dir-600-b1 | \ dir-600-b2 | \ + dir-615-h1 | \ dir-620-a1 | \ dap-1350 | \ esr-9753 | \ |