mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: boards: protonic-imx6: Add prt-usb as fallback preferred boot target
@ 2025-03-27 10:00 Robin van der Gracht
  2025-03-31  7:29 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Robin van der Gracht @ 2025-03-27 10:00 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox, Robin van der Gracht

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.

Signed-off-by: Robin van der Gracht <robin@protonic.nl>
---
 arch/arm/boards/protonic-imx6/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boards/protonic-imx6/board.c b/arch/arm/boards/protonic-imx6/board.c
index 4585ca4730..19e58627c6 100644
--- a/arch/arm/boards/protonic-imx6/board.c
+++ b/arch/arm/boards/protonic-imx6/board.c
@@ -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);
-- 
2.43.0




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-03-31  7:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-27 10:00 [PATCH] ARM: boards: protonic-imx6: Add prt-usb as fallback preferred boot target Robin van der Gracht
2025-03-31  7:29 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox