public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Vagrant Cascadian <vagrant@debian.org>
To: u-boot@lists.denx.de
Cc: Marek Vasut <marex@denx.de>
Subject: [PATCH] board: unmatched: Workaround failure to find .dtb file.
Date: Sun, 18 Jan 2026 16:09:53 -0800	[thread overview]
Message-ID: <877bteqx7y.fsf@wireframe> (raw)

[-- 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 --]

             reply	other threads:[~2026-01-19  0:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-19  0:09 Vagrant Cascadian [this message]
2026-01-19  6:42 ` [PATCH] board: unmatched: Workaround failure to find .dtb file Marek Vasut
2026-01-19 19:18   ` Tom Rini
2026-01-20  0:46     ` Vagrant Cascadian
2026-01-20 14:59       ` Tom Rini

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=877bteqx7y.fsf@wireframe \
    --to=vagrant@debian.org \
    --cc=marex@denx.de \
    --cc=u-boot@lists.denx.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox