From: Primoz Fiser <primoz.fiser@norik.com>
To: Mathieu Othacehe <m.othacehe@gmail.com>,
Christoph Stoidner <c.stoidner@phytec.de>,
Stefano Babic <sbabic@nabladev.com>,
Fabio Estevam <festevam@gmail.com>,
uboot-imx@nxp.com, Tom Rini <trini@konsulko.com>,
Benjamin Hahn <B.Hahn@phytec.de>
Cc: u-boot@lists.denx.de, upstream@lists.phytec.de
Subject: [PATCH 2/3] board: phytec: phycore-imx93: Set boot_targets dynamically
Date: Thu, 4 Dec 2025 09:07:43 +0100 [thread overview]
Message-ID: <20251204080744.3868067-2-primoz.fiser@norik.com> (raw)
In-Reply-To: <20251204080744.3868067-1-primoz.fiser@norik.com>
Set boot_targets environment variable dynamically, so that when booting
from SD-card, boot binaries are also preferably fetched from the SD-card
by default. If the user decides to set their own boot_targets, we should
not overwrite them.
Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
---
board/phytec/phycore_imx93/phycore-imx93.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/board/phytec/phycore_imx93/phycore-imx93.c b/board/phytec/phycore_imx93/phycore-imx93.c
index c6a4e923b074..cfc6d91f20f2 100644
--- a/board/phytec/phycore_imx93/phycore-imx93.c
+++ b/board/phytec/phycore_imx93/phycore-imx93.c
@@ -38,6 +38,8 @@ int board_late_init(void)
switch (get_boot_device()) {
case SD2_BOOT:
env_set_ulong("mmcdev", 1);
+ if (!env_get("boot_targets"))
+ env_set("boot_targets", "mmc1 mmc0 ethernet");
break;
case MMC1_BOOT:
env_set_ulong("mmcdev", 0);
--
2.34.1
next prev parent reply other threads:[~2025-12-04 8:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-04 8:07 [PATCH 1/3] board: phytec: phycore-imx93: Switch to standard boot Primoz Fiser
2025-12-04 8:07 ` Primoz Fiser [this message]
2025-12-04 8:07 ` [PATCH 3/3] board: phytec: phycore-imx93: env: Add required uuu variables Primoz Fiser
2025-12-05 9:41 ` [PATCH 1/3] board: phytec: phycore-imx93: Switch to standard boot Benjamin Hahn
2025-12-05 10:03 ` Primoz Fiser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251204080744.3868067-2-primoz.fiser@norik.com \
--to=primoz.fiser@norik.com \
--cc=B.Hahn@phytec.de \
--cc=c.stoidner@phytec.de \
--cc=festevam@gmail.com \
--cc=m.othacehe@gmail.com \
--cc=sbabic@nabladev.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=uboot-imx@nxp.com \
--cc=upstream@lists.phytec.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.