[PATCH v1 7/8] ARM: boards: skov-imx6: set net.ifup_force_detect if no switch is detected

Oleksij Rempel o.rempel at pengutronix.de
Thu Sep 9 02:13:48 PDT 2021


In case of the no-switch board, we can only do the net boot over an USB
ethernet adapter. Since USB probing is slow, we do not probe it for
normal boot. So, set net.ifup_force_detect to probe everything possible
in case the net boot is chosen.

Signed-off-by: Oleksij Rempel <o.rempel at pengutronix.de>
---
 arch/arm/boards/skov-imx6/board.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boards/skov-imx6/board.c b/arch/arm/boards/skov-imx6/board.c
index 618c6eb6b4..9a32e68f21 100644
--- a/arch/arm/boards/skov-imx6/board.c
+++ b/arch/arm/boards/skov-imx6/board.c
@@ -626,6 +626,8 @@ no_switch:
 		pr_warn("Can't disable eth0\n");
 	}
 
+	globalvar_set("net.ifup_force_detect", "true");
+
 	return 0;
 }
 late_initcall(skov_switch_test);
-- 
2.30.2




More information about the barebox mailing list