public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] board: unmatched: Workaround failure to find .dtb file.
@ 2026-01-19  0:09 Vagrant Cascadian
  2026-01-19  6:42 ` Marek Vasut
  0 siblings, 1 reply; 5+ messages in thread
From: Vagrant Cascadian @ 2026-01-19  0:09 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut

[-- Attachment #1: Type: text/plain, Size: 1770 bytes --]

The fdtdfile variable contains quotes:

  printenv fdtfile
  fdtfile="sifive/hifive-unmatched-a00.dtb"

But this leads to issues which booting with an extlinux.conf format
file failing to find the .dtb file:

  Retrieving file: /usr/lib/linux-image-6.12.63+deb13-riscv64/"sifive/hifive-unmatched-a00.dtb"
  Skipping fdtdir /usr/lib/linux-image-6.12.63+deb13-riscv64/ for failure retrieving dts

Other platforms (e.g. rockpro64-rk3399) do not contain quotes in the
fdtfile variable, and work properly out of the box.

The workaround suggested by marex is to hard-code the correct .dtb
value, which works for me.

This has been present at least since version 2025.01, also present in
2026.01. I have not yet tested against git master branch.

This could probably be properly fixed by stripping the quotes in
whatever processes the .env file. There are numerous other boards that
have the same way of setting the fdtfile variable, which might
similarly be effected by this issue.

Signed-off-by: Vagrant Cascadian <vagrant@debian.org>

Not sure who all to CC on this, please feel free to forward
appropriately!

---
 board/sifive/unmatched/unmatched.env | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/sifive/unmatched/unmatched.env b/board/sifive/unmatched/unmatched.env
index 34425dc9efa..cdba2c8ae0e 100644
--- a/board/sifive/unmatched/unmatched.env
+++ b/board/sifive/unmatched/unmatched.env
@@ -16,4 +16,4 @@ partitions=
     name=loader1,start=17K,size=1M,type=${type_guid_gpt_loader1};
     name=loader2,size=4MB,type=${type_guid_gpt_loader2};
     name=system,size=-,bootable,type=${type_guid_gpt_system};
-fdtfile=CONFIG_DEFAULT_FDT_FILE
+fdtfile=sifive/hifive-unmatched-a00.dtb
-- 
2.47.3


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-01-20 14:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-19  0:09 [PATCH] board: unmatched: Workaround failure to find .dtb file Vagrant Cascadian
2026-01-19  6:42 ` Marek Vasut
2026-01-19 19:18   ` Tom Rini
2026-01-20  0:46     ` Vagrant Cascadian
2026-01-20 14:59       ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox