aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2023-02-27 00:04:33 +0000
committerChristian Lamparter <chunkeey@gmail.com>2023-05-20 23:24:00 +0200
commitc191c2d46f0080b8c6e6aee76b30ae9cf50d6e3e (patch)
tree5feb398a6a0145387861e5df38288ba784c4d2af
parent857345496bf1d4870320e856ae75104e166d78d1 (diff)
downloadupstream-c191c2d46f0080b8c6e6aee76b30ae9cf50d6e3e.tar.gz
upstream-c191c2d46f0080b8c6e6aee76b30ae9cf50d6e3e.tar.bz2
upstream-c191c2d46f0080b8c6e6aee76b30ae9cf50d6e3e.zip
x86: base-files add support for Sophos 135r3/135r3w
The Sophos SG/XG-135 revision 3 has odd numbering of eth ports where the WAN port (as marked on the case) is: `eth6` and `eth0`, `eth1`, `eth2`, `eth3`, `eth5`, `eth7`, `eth8` are LAN ports. Port `eth4` seems to be the SFP port. Also add the missing LED definition for supported Sophos devices. Original discussion at: https://forum.openwrt.org/t/openwrt-on-revision-3-of-sophos-desktop-appliances/152912 Signed-off-by: Stan Grishin <stangri@melmac.ca>
-rw-r--r--target/linux/x86/base-files/etc/board.d/01_leds7
-rw-r--r--target/linux/x86/base-files/etc/board.d/02_network4
2 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/x86/base-files/etc/board.d/01_leds b/target/linux/x86/base-files/etc/board.d/01_leds
index e639d10808..e41c78e62b 100644
--- a/target/linux/x86/base-files/etc/board.d/01_leds
+++ b/target/linux/x86/base-files/etc/board.d/01_leds
@@ -16,6 +16,13 @@ pc-engines-apu1|pc-engines-apu2|pc-engines-apu3|pc-engines-apu4|pc-engines-apu5|
ucidef_set_led_netdev "lan" "LAN" "apu:green:2" "br-lan"
ucidef_set_led_default "diag" "DIAG" "apu:green:1" "1"
;;
+sophos-sg-105wr1|sophos-sg-125wr1|sophos-sg-135wr1|sophos-xg-105wr1|sophos-xg-125wr1|sophos-xg-135wr1)
+ ucidef_set_led_netdev "wlan" "WiFi" "ath9k-phy0" "phy0tpt"
+ ;;
+sophos-sg-105wr2|sophos-sg-125wr2|sophos-sg-135wr2|sophos-xg-105wr2|sophos-xg-125wr2|sophos-xg-135wr2|
+sophos-sg-105wr3|sophos-sg-125wr3|sophos-sg-135wr3|sophos-xg-105wr3|sophos-xg-125wr3|sophos-xg-135wr3)
+ ucidef_set_led_netdev "wlan" "WiFi" "ath10k-phy0" "phy0tpt"
+ ;;
traverse-technologies-geos)
ucidef_set_led_netdev "lan" "LAN" "geos:1" "br-lan" "tx rx"
ucidef_set_led_netdev "wlan" "WiFi" "geos:2" "phy0tpt"
diff --git a/target/linux/x86/base-files/etc/board.d/02_network b/target/linux/x86/base-files/etc/board.d/02_network
index 094a45f914..e00e8c04dd 100644
--- a/target/linux/x86/base-files/etc/board.d/02_network
+++ b/target/linux/x86/base-files/etc/board.d/02_network
@@ -64,6 +64,10 @@ sophos-sg-135r2|sophos-xg-135r2| \
sophos-sg-135wr2|sophos-xg-135wr2)
ucidef_set_interfaces_lan_wan "eth0 eth2 eth3 eth4 eth5 eth6 eth7" "eth1"
;;
+sophos-sg-135r3|sophos-xg-135r3| \
+sophos-sg-135wr3|sophos-xg-135wr3)
+ ucidef_set_interfaces_lan_wan "eth0 eth1 eth2 eth3 eth5 eth7 eth8" "eth6"
+ ;;
traverse-technologies-geos)
ucidef_set_interface_lan "eth0 eth1"
ucidef_add_atm_bridge "0" "35" "llc" "bridged"