diff options
author | John Crispin <john@openwrt.org> | 2014-10-06 04:52:07 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-10-06 04:52:07 +0000 |
commit | b04bb3eea71338214ed83671f026e3e2625d23e8 (patch) | |
tree | 4c4369fcfa51a9951795dd86ba1b74349be6823a /target/linux/ramips/base-files | |
parent | 7ab5357280ba8d15ebb9a7b1121a754b1c473fd1 (diff) | |
download | upstream-b04bb3eea71338214ed83671f026e3e2625d23e8.tar.gz upstream-b04bb3eea71338214ed83671f026e3e2625d23e8.tar.bz2 upstream-b04bb3eea71338214ed83671f026e3e2625d23e8.zip |
ramips: Support for RAMIPS based Tripmate HT-TM02 board
Provides support for the Tripmate HT-TM02 personal router including LEDs and
reset button. “Mode” switch is not supported. New profile includes full set
of packages required to enable LEDs, USB, and LUCI. Patches were applied
against trunk snapshot r42649. Functionality has been tested in AP, basic wifi
client, wifi router, and routed client modes - all good.
Signed-off-by: Ron Curry <wingspinner@gmail.com>
SVN-Revision: 42785
Diffstat (limited to 'target/linux/ramips/base-files')
5 files changed, 18 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 bf646ed53b..ecaaaff764 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -112,6 +112,10 @@ case $board in hlk-rm04) set_wifi_led "rt2800pci-phy0::radio" ;; + ht-tm02) + ucidef_set_led_netdev "eth" "ETH" "ht-tm02:white:status" "eth0" + set_wifi_led "ht-tm02:blue:wifi" + ;; all0239-3g|\ hw550-3g) set_usb_led "hw550-3g:green:usb" 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 e027b3be89..c462fd8142 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -97,6 +97,12 @@ ramips_setup_interfaces() ucidef_add_switch_vlan "switch0" "2" "4 9t" ;; + ht-tm02) + ucidef_set_interface_lan "eth0.1" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "4 6t" + ;; + 3g-6200n | \ dir-610-a1 | \ dir-300-b7 | \ @@ -253,6 +259,7 @@ ramips_setup_macs() hlk-rm04 | \ mpr-a1 | \ mpr-a2 | \ + ht-tm02 | \ dir-300-b7 | \ dir-320-b1 | \ psr-680w |\ diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index 9ad7ccbda1..9752eb22ec 100755 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -63,6 +63,9 @@ get_status_led() { hlk-rm04) status_led="hlk-rm04:red:power" ;; + ht-tm02) + status_led="ht-tm02:white:status" + ;; all0239-3g|\ hw550-3g) status_led="hw550-3g:green:status" diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index bb42ace621..68ff509a4e 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -157,6 +157,9 @@ ramips_board_detect() { *"HILINK HLK-RM04") name="hlk-rm04" ;; + *"HOOTOO HT-TM02") + name="ht-tm02" + ;; *"HAME MPR-A1") name="mpr-a1" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 407c21838a..4aec78099a 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -52,6 +52,7 @@ platform_check_image() { hw550-3g | \ hg255d | \ hlk-rm04 | \ + ht-tm02 | \ ip2202 | \ m3 | \ m4 | \ |