From 410d9ccc0388b77b1e21ba218b2e21138930c90f Mon Sep 17 00:00:00 2001 From: Annette Kobou Date: Mon, 25 Aug 2025 15:54:31 +0200 Subject: [PATCH] imx: kontron-sl-mx6ul: Autostart fastboot if booted from USB For booting via USB we want to automatically start the fastboot command in order to access the board via uuu or other tools. This allows for easier bringup of new boards during development and manufacturing. Signed-off-by: Annette Kobou Signed-off-by: Frieder Schrempf --- board/kontron/sl-mx6ul/sl-mx6ul.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/board/kontron/sl-mx6ul/sl-mx6ul.c b/board/kontron/sl-mx6ul/sl-mx6ul.c index 16d89c64d61..e33907ee124 100644 --- a/board/kontron/sl-mx6ul/sl-mx6ul.c +++ b/board/kontron/sl-mx6ul/sl-mx6ul.c @@ -5,7 +5,9 @@ #include #include +#include #include +#include #include #include #include @@ -87,6 +89,16 @@ int board_init(void) return 0; } +int board_late_init(void) +{ + if (is_boot_from_usb()) { + env_set("bootdelay", "0"); + env_set("bootcmd", "fastboot 0"); + } + + return 0; +} + enum env_location env_get_location(enum env_operation op, int prio) { if (prio) -- 2.47.3