summaryrefslogtreecommitdiff
path: root/boot/bootflow.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-02-22 22:17:04 +0300
committerSimon Glass <sjg@chromium.org>2023-03-08 22:40:49 +0300
commit47dd6b4d7daba06a04bb612d0c19e350e6287fac (patch)
treee68de28980fa5672afed9428bd13e9454b88a811 /boot/bootflow.c
parent4f806f31fc29b30f06bd13abe44a1d3649d480e5 (diff)
downloadu-boot-47dd6b4d7daba06a04bb612d0c19e350e6287fac.tar.xz
bootstd: Replicate the dtb-filename quirks of distroboot
For EFI, the distro boot scripts search in three different directories for the .dtb file. The SOC-based filename fallback is supported only for 32-bit ARM. Adjust the code to mirror this behaviour. Also some boards can use a prior-stage FDT if one is not found in the normal way. Support this and show a message in that case. Signed-off-by: Simon Glass <sjg@chromium.org> Suggested-by: Mark Kettenis <kettenis@openbsd.org>
Diffstat (limited to 'boot/bootflow.c')
-rw-r--r--boot/bootflow.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/boot/bootflow.c b/boot/bootflow.c
index 70d5fc5238..8f2cb876bb 100644
--- a/boot/bootflow.c
+++ b/boot/bootflow.c
@@ -467,6 +467,9 @@ int bootflow_run_boot(struct bootflow_iter *iter, struct bootflow *bflow)
printf("** Booting bootflow '%s' with %s\n", bflow->name,
bflow->method->name);
+ if (IS_ENABLED(CONFIG_OF_HAS_PRIOR_STAGE) &&
+ (bflow->flags & BOOTFLOWF_USE_PRIOR_FDT))
+ printf("Using prior-stage device tree\n");
ret = bootflow_boot(bflow);
if (!IS_ENABLED(CONFIG_BOOTSTD_FULL)) {
printf("Boot failed (err=%d)\n", ret);