summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-12-27 16:56:30 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-12-27 16:56:30 +0000
commit723d8dd74fdcb14465acc5ef5956020054ff9642 (patch)
treeab44a6c066037678d4d13e5d371912e77f89522d /target/linux/ramips/base-files
parent250ef0cb72325e88afa6dfc95f6d9477c62ca1b3 (diff)
downloadmtk-20170518-723d8dd74fdcb14465acc5ef5956020054ff9642.zip
mtk-20170518-723d8dd74fdcb14465acc5ef5956020054ff9642.tar.gz
mtk-20170518-723d8dd74fdcb14465acc5ef5956020054ff9642.tar.bz2
ramips: rt288x: add support for the Buffalo WLI-TX4-AG300N board
SVN-Revision: 29612
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/diag.sh3
-rw-r--r--target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom1
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/network9
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
5 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index edb8376..652787b 100755
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -66,6 +66,9 @@ get_status_led() {
whr-g300n)
status_led="whr-g300n:green:router"
;;
+ wli-tx4-ag300n)
+ status_led="buffalo:blue:power"
+ ;;
wl-351)
status_led="wl-351:amber:power"
;;
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 a1d4887..55c577e 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
@@ -60,6 +60,7 @@ case "$FIRMWARE" in
wcr-150gn | \
whr-g300n | \
wl-351 | \
+ wli-tx4-ag300n | \
wr512-3gn)
rt2x00_eeprom_extract "factory" 0 272
;;
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network b/target/linux/ramips/base-files/etc/uci-defaults/network
index 60dd716..834a2a7 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/network
@@ -30,6 +30,10 @@ ramips_setup_interfaces()
ucidef_add_switch_vlan "rtl8366rb" "2" "4 5t"
;;
+ wli-tx4-ag300n)
+ ucidef_set_interface_lan "eth0"
+ ;;
+
rt-n15)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
ucidef_add_switch "rtl8366s" "1" "1"
@@ -81,6 +85,11 @@ ramips_setup_macs()
lan_mac=$(ramips_get_mac_binary factory 4)
wan_mac=$(ramips_get_mac_binary factory 40)
;;
+
+ wli-tx4-ag300n)
+ lan_mac=$(ramips_get_mac_binary factory 4)
+ ;;
+
esac
[ -n $lan_mac ] && ucidef_set_interface_macaddr lan $lan_mac
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index 4dc10ae..d197fce 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -107,6 +107,9 @@ ramips_board_name() {
*"Sitecom WL-351 v1 002")
name="wl-351"
;;
+ *"WLI-TX4-AG300N")
+ name="wli-tx4-ag300n"
+ ;;
*"WZR-AGL300NH")
name="wzr-agl300nh"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 03a1e7b..aebaf38 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -27,6 +27,7 @@ platform_check_image() {
rt-g32-b1 | \
rt-n15 | \
v22rw-2x2 | \
+ wli-tx4-ag300n | \
whr-g300n)
[ "$magic" != "2705" ] && {
echo "Invalid image type."