Skip to contentSkip to conversation

ARM: boards: protonic-imx6: Add prt-usb as fallback preferred boot target

PATCH Applied Robin van der Gracht 2 participants 2 messages Mar 27, 2025 – Mar 31, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: boards: protonic-imx6: Add prt-usb as fallback preferred boot target

If i.e. the bootchooser target fails because of missing or broken follow-up software, instead of doing nothing, we try to boot from usb.

---
 arch/arm/boards/protonic-imx6/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boards/protonic-imx6/board.c +1 -1
index 4585ca4730..19e58627c6 100644
@@ -496,7 +496,7 @@ static int prt_imx6_env_init(struct prt_imx6_priv *priv)
 	if (!priv->no_usb_check)
 		boot_targets = xasprintf("prt-usb %s", bootsrc);
 	else
-		boot_targets = xstrdup(bootsrc);
+		boot_targets = xasprintf("%s prt-usb", bootsrc);
 
 	ret = setenv("global.boot.default", boot_targets);
 	free(boot_targets);
Signature · 1 line
2.43.0