[openwrt/openwrt] mvebu: puzzle: wan LED and fix default network
LEDE Commits
lede-commits at lists.infradead.org
Sat Jan 1 14:31:30 PST 2022
dangole pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/104774c3b07b1dff14f8987687ad5a99fc5ada8a
commit 104774c3b07b1dff14f8987687ad5a99fc5ada8a
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Thu Dec 23 19:01:48 2021 +0000
mvebu: puzzle: wan LED and fix default network
Fix default network configuration of the Puzzle-M902 so all LAN ports
are included in the LAN bridge.
Setup network LED to indicate WAN port link status, like vendor
firmware does as well.
Signed-off-by: Daniel Golle <daniel at makrotopia.org>
(cherry picked from commit f9782f5bcd13e419abf9c84017ada27fa9764011)
---
.../mvebu/cortexa72/base-files/etc/board.d/01_leds | 20 ++++++++++++++++++++
.../cortexa72/base-files/etc/board.d/02_network | 2 +-
2 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/target/linux/mvebu/cortexa72/base-files/etc/board.d/01_leds b/target/linux/mvebu/cortexa72/base-files/etc/board.d/01_leds
new file mode 100644
index 0000000000..809a64a60e
--- /dev/null
+++ b/target/linux/mvebu/cortexa72/base-files/etc/board.d/01_leds
@@ -0,0 +1,20 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+. /lib/functions/uci-defaults.sh
+
+board_config_update
+
+board=$(board_name)
+
+case "$board" in
+iei,puzzle-m901)
+ ucidef_set_led_netdev "wan" "WAN" "white:network" "eth0" "link"
+ ;;
+iei,puzzle-m902)
+ ucidef_set_led_netdev "wan" "WAN" "white:network" "eth2" "link"
+ ;;
+esac
+
+board_config_flush
+
+exit 0
diff --git a/target/linux/mvebu/cortexa72/base-files/etc/board.d/02_network b/target/linux/mvebu/cortexa72/base-files/etc/board.d/02_network
old mode 100755
new mode 100644
index e0a4bc3015..2b70882eb1
--- a/target/linux/mvebu/cortexa72/base-files/etc/board.d/02_network
+++ b/target/linux/mvebu/cortexa72/base-files/etc/board.d/02_network
@@ -15,7 +15,7 @@ iei,puzzle-m901)
ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4 eth5" "eth0"
;;
iei,puzzle-m902)
- ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4 eth5 eth10 eth11 eth12" "eth0"
+ ucidef_set_interfaces_lan_wan "eth0 eth1 eth3 eth4 eth5 eth6 eth7 eth8" "eth2"
;;
marvell,armada8040-mcbin-doubleshot|\
marvell,armada8040-mcbin-singleshot)
More information about the lede-commits
mailing list