mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
4f806f31fc
commit
47dd6b4d7d
3 changed files with 78 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue