From 6cce9557a0b77ee2450e75779c05231692e4c71f Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Thu, 2 Feb 2017 21:01:36 -0800 Subject: ar71xx: Add support for D-Link EBR-2310 Rev. C Add support for the EBR-2310, which is almost identical to the DIR-615 rev E4, without the wifi. Signed-off-by: Alexandru Gagniuc --- target/linux/ar71xx/base-files/etc/board.d/01_leds | 3 ++- target/linux/ar71xx/base-files/etc/board.d/02_network | 5 +++++ .../ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration | 1 + target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 1 + 5 files changed, 12 insertions(+), 1 deletion(-) (limited to 'target/linux/ar71xx/base-files') diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds index ee67899d4f..ab8585c3f6 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -246,7 +246,8 @@ dhp-1565-a1) ;; dir-600-a1|\ dir-615-e1|\ -dir-615-e4) +dir-615-e4|\ +ebr-2310-c1) ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1" ucidef_set_led_switch "lan1" "LAN1" "d-link:green:lan1" "switch0" "0x02" ucidef_set_led_switch "lan2" "LAN2" "d-link:green:lan2" "switch0" "0x04" diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network index d14fb428d8..14bb34b898 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -310,6 +310,11 @@ ar71xx_setup_interfaces() "0u@eth0" "2:lan" "3:lan" "4:lan" ucidef_add_switch_attr "switch0" "enable" "false" ;; + ebr-2310-c1) + ucidef_set_interfaces_lan_wan "eth0.1" "eth1" + ucidef_add_switch "switch0" \ + "0@eth0" "1:lan:1" "2:lan:2" "3:lan:3" "4:lan:4" + ;; el-m150) ucidef_set_interfaces_lan_wan "eth1.1" "eth0" ucidef_add_switch "switch0" \ diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration index f1b3ae1430..0558848d04 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration @@ -58,6 +58,7 @@ dir-600-a1|\ dir-615-c1|\ dir-615-e1|\ dir-615-e4|\ +ebr-2310-c1|\ ja76pf|\ rb-750|\ rb-751|\ diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 44dd9c4d49..d51260df7b 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -613,6 +613,9 @@ ar71xx_board_detect() { *EAP7660D) name="eap7660d" ;; + *"EBR-2310 rev. C1") + name="ebr-2310-c1" + ;; *EL-M150) name="el-m150" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 3b7db4699a..f227bf8d18 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -233,6 +233,7 @@ platform_check_image() { dlan-pro-500-wp|\ dr531|\ dragino2|\ + ebr-2310-c1|\ epg5000|\ esr1750|\ esr900|\ -- cgit v1.2.3