From c5ab46695cd7d1c9687b86e3b3eeccaba03b7af5 Mon Sep 17 00:00:00 2001 From: Frieder Schrempf Date: Tue, 7 Oct 2025 10:16:08 +0200 Subject: [PATCH] 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 --- 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.47.3