[PATCH] board: unmatched: Workaround failure to find .dtb file.

Marek Vasut marek.vasut at mailbox.org
Mon Jan 19 07:42:59 CET 2026


On 1/19/26 1:09 AM, Vagrant Cascadian wrote:
> 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 at debian.org>
> 
> Not sure who all to CC on this, please feel free to forward
> appropriately!

./scripts/get_maintainer.pl -f board/sifive/unmatched/

produces a few names, added

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

Also +CC Peng because iMX is also affected.


More information about the U-Boot mailing list