From 361839151407c897bb1856bc66712a28dc7f0024 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 16 Feb 2015 21:19:18 +0000 Subject: ramips: Buffalo WZR-AGL300NH target support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I got work with this patch. Ethernet switch (includes VLAN), WiFi connected via PCIe, LEDs, buttons. In mtd partion map of DTS file, I renamed Linux firmware regions (kernel + root squashfs) to “firmware”because it allows kernel to split kernel and roots and rootfsdata. signed-off-by: ngc@ff.iij4u.or.jp —— —— SVN-Revision: 44470 --- target/linux/ramips/base-files/etc/board.d/02_network | 6 ++++++ target/linux/ramips/base-files/etc/diag.sh | 3 +++ target/linux/ramips/base-files/lib/upgrade/platform.sh | 1 + 3 files changed, 10 insertions(+) (limited to 'target/linux/ramips/base-files') 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 f298aa47af..7e9d8c984b 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -242,6 +242,12 @@ ramips_setup_interfaces() ucidef_add_switch_vlan "switch1" "2" "4 6t" ;; + wzr-agl300nh) + ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 5t" + ucidef_add_switch_vlan "switch0" "2" "0 5t" + ;; *) RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350)"` if [ -n "${RT3X5X}" ]; then diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index d31fbe4f98..39a0868727 100644 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -168,6 +168,9 @@ get_status_led() { wli-tx4-ag300n) status_led="buffalo:blue:power" ;; + wzr-agl300nh) + status_led="buffalo:green:router" + ;; wl-351) status_led="wl-351:amber:power" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 356a0856c9..fffbe72cb8 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -100,6 +100,7 @@ platform_check_image() { wl-351 | \ wl341v3 | \ wli-tx4-ag300n | \ + wzr-agl300nh | \ wmr300 |\ wnce2001 | \ wr512-3gn |\ -- cgit v1.2.3