From: Frieder Schrempf Date: Tue, 7 Oct 2025 08:16:08 +0000 (+0200) Subject: imx: kontron-sl-mx8mm: Autostart fastboot if booted from USB X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c5ab46695cd7d1c9687b86e3b3eeccaba03b7af5;p=thirdparty%2Fu-boot.git imx: kontron-sl-mx8mm: Autostart fastboot if booted from USB 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 --- 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; }