From 1588114cf2a3a32e96e818e65b99392723184400 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Mon, 7 May 2018 16:08:00 +0000 Subject: ath79: add etactica-eg200 support Based on original ar71xx eg200 board files Tested working: * usb hub, storage and serial port * ethernet * wifi * leds * button sysupgrade from self->self passes validity checks. sysupgrade from old ar71xx->ath79 passes. (however this doesn't migrate wireless driver configs) Only unknown issue is the existance of a /sys/class/leds/ath9k-phy0, which doesn't "exist" Signed-off-by: Karl Palsson --- target/linux/ath79/base-files/etc/board.d/01_leds | 6 ++++++ target/linux/ath79/base-files/etc/board.d/02_network | 3 +++ 2 files changed, 9 insertions(+) (limited to 'target/linux/ath79/base-files') diff --git a/target/linux/ath79/base-files/etc/board.d/01_leds b/target/linux/ath79/base-files/etc/board.d/01_leds index 76b0257919..80e32d9e00 100755 --- a/target/linux/ath79/base-files/etc/board.d/01_leds +++ b/target/linux/ath79/base-files/etc/board.d/01_leds @@ -18,6 +18,12 @@ case "$board" in ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssi3" "wlan0" "60" "100" ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:green:rssi4" "wlan0" "80" "100" ;; +"etactica,eg200") + ucidef_set_led_netdev "lan" "LAN" "$boardname:red:eth0" "eth0" + ucidef_set_led_wlan "wlan" "WLAN" "$boardname:red:wlan" "phy0tpt" + ucidef_set_led_oneshot "modbus" "Modbus" "$boardname:red:modbus" "100" "33" + ucidef_set_led_default "etactica" "etactica" "$boardname:red:etactica" "ignore" + ;; "glinet,ar150") ucidef_set_led_wlan "wlan" "WLAN" "gl-ar150:orange:wlan" "phy0tpt" ;; diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index c02d9ff063..a2d6ab0049 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -8,6 +8,9 @@ ath79_setup_interfaces() local board="$1" case "$board" in + "etactica,eg200") + ucidef_set_interface_lan "eth0" "dhcp" + ;; "avm,fritz300e"|\ "tplink,tl-mr10u"|\ "tplink,tl-wr703n"|\ -- cgit v1.2.3