[PATCH 11/13] imx: kontron-sl-mx8mm: Autostart fastboot if booted from USB
Frieder Schrempf
frieder at fris.de
Tue Oct 7 10:16:08 CEST 2025
From: Frieder Schrempf <frieder.schrempf at kontron.de>
This is useful for development and manufacturing setups as fastboot
can be used without requiring any user input on the device.
Signed-off-by: Frieder Schrempf <frieder.schrempf at kontron.de>
---
board/kontron/sl-mx8mm/sl-mx8mm.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/board/kontron/sl-mx8mm/sl-mx8mm.c b/board/kontron/sl-mx8mm/sl-mx8mm.c
index cf71a4cf367..220c9701ca5 100644
--- a/board/kontron/sl-mx8mm/sl-mx8mm.c
+++ b/board/kontron/sl-mx8mm/sl-mx8mm.c
@@ -167,6 +167,11 @@ int board_late_init(void)
env_set("touch_rst_gpio", "87");
}
+ if (is_usb_boot()) {
+ env_set("bootcmd", "fastboot 0");
+ env_set("bootdelay", "0");
+ }
+
return 0;
}
--
2.51.0
More information about the U-Boot
mailing list