diff options
| author | Primoz Fiser <primoz.fiser@norik.com> | 2026-02-12 09:33:30 +0100 |
|---|---|---|
| committer | Fabio Estevam <festevam@gmail.com> | 2026-02-28 15:31:49 -0300 |
| commit | 3b1da4cce6d315a45242c9bfe53e79eeac9dc7a9 (patch) | |
| tree | dcadff0af4f2a1939f20a2d765e9dca176cf8cfa | |
| parent | 7936aec48b17f02b7f4f5a4b7b684a8eb75f92e7 (diff) | |
board: phytec: phycore-imx93: Enter fastboot on USB boot by default
In case board is booted from USB, enter fastboot by default to enable
the UUU flashing. In case of abort continue with the regular bootstd
scan. User also has possibility to override the default bootcmd from
the environment. Last but not least, this syncs behavior with other
PHYTEC boards from the i.MX family.
Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
Reviewed-by: Benjamin Hahn <B.Hahn@phytec.de>
| -rw-r--r-- | board/phytec/phycore_imx93/phycore-imx93.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board/phytec/phycore_imx93/phycore-imx93.c b/board/phytec/phycore_imx93/phycore-imx93.c index cdaedd52c14..036c9f5de7e 100644 --- a/board/phytec/phycore_imx93/phycore-imx93.c +++ b/board/phytec/phycore_imx93/phycore-imx93.c @@ -41,6 +41,11 @@ int board_late_init(void) case MMC1_BOOT: env_set_ulong("mmcdev", 0); break; + case USB_BOOT: + printf("Detect USB boot. Will enter fastboot mode!\n"); + if (!strcmp(env_get("bootcmd"), env_get_default("bootcmd"))) + env_set("bootcmd", "fastboot 0; bootflow scan -lb;"); + break; default: break; } |
