[openwrt/openwrt] mpc85xx: fix failsafe iface selection for mpc85xx boards

LEDE Commits lede-commits at lists.infradead.org
Wed Jan 14 16:31:44 PST 2026


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-25.12:
https://git.openwrt.org/7f6d739fd7b2d5ecc7c8e29ca718b8c0c9ae39b1

commit 7f6d739fd7b2d5ecc7c8e29ca718b8c0c9ae39b1
Author: Pawel Dembicki <paweldembicki at gmail.com>
AuthorDate: Mon Jan 12 15:44:05 2026 +0100

    mpc85xx: fix failsafe iface selection for mpc85xx boards
    
    Some mpc85xx boards still boot with failsafe configured on a non-LAN
    interface. Align the preinit interface with the first DSA port or the
    interface that LAN is connected to.
    
    This makes failsafe reachable on devices where the default selection does
    not map to the primary LAN port.
    
    Signed-off-by: Pawel Dembicki <paweldembicki at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/21516
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
    (cherry picked from commit a73db6d0a041e1b86bd72ee4103b23d41887a31e)
---
 .../base-files/lib/preinit/05_set_preinit_iface_mpc85xx       | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/target/linux/mpc85xx/base-files/lib/preinit/05_set_preinit_iface_mpc85xx b/target/linux/mpc85xx/base-files/lib/preinit/05_set_preinit_iface_mpc85xx
index d6f0853438..7934a5bfc2 100644
--- a/target/linux/mpc85xx/base-files/lib/preinit/05_set_preinit_iface_mpc85xx
+++ b/target/linux/mpc85xx/base-files/lib/preinit/05_set_preinit_iface_mpc85xx
@@ -4,6 +4,17 @@
 
 mpc85xx_set_preinit_iface() {
 	case $(board_name) in
+	aerohive,br200-wp|\
+	ocedo,panda|\
+	tplink,tl-wdr4900-v1)
+		ifname=lan1
+		;;
+	aerohive,hiveap-330|\
+	enterasys,ws-ap3715i|\
+	watchguard,firebox-t10|\
+	watchguard,firebox-t15)
+		ifname=eth1
+		;;
 	watchguard,xtm330)
 		ifname=port1
 		;;




More information about the lede-commits mailing list