From: Mathieu Othacehe <othacehe@gnu.org>
To: Marek Vasut <marek.vasut@mailbox.org>
Cc: anton.reding@landisgyr.com,
Nobuhiro Iwamatsu <iwamatsu@nigauri.org>,
Tom Rini <trini@konsulko.com>, Paul Barker <paul@pbarker.dev>,
Peng Fan <peng.fan@nxp.com>,
Sam Protsenko <semen.protsenko@linaro.org>,
u-boot@lists.denx.de, Biju Das <biju.das.jz@bp.renesas.com>,
Chris Paterson <Chris.Paterson2@renesas.com>
Subject: Re: [PATCH] board: rzg2l: Do not expect a DTB blob from the TF-A.
Date: Thu, 18 Sep 2025 16:39:26 +0200 [thread overview]
Message-ID: <87cy7nhlk1.fsf@gnu.org> (raw)
In-Reply-To: <173f12da-c201-4272-83a1-f70f2d4ca47b@mailbox.org> (Marek Vasut's message of "Thu, 18 Sep 2025 15:17:19 +0200")
Hello Marek,
> magic validity first. Is the magic actually valid in your fail case?
So to clarify the situation, the mainline TF-A does not have RZG2L
support. So the only one available out there is the forked Reneasas one
that I have mentioned up in the thread.
Now, the mainline U-Boot is doing:
--8<---------------cut here---------------start------------->8---
void *atf_fdt_blob = (void *)(rcar_atf_boot_args[1]);
if (fdt_magic(atf_fdt_blob) != FDT_MAGIC)
--8<---------------cut here---------------end--------------->8---
unconditionally, with rcar_atf_boot_args[1] being NULL as no arguments
are passed by the forked Reneasas TF-A fork to U-Boot.
I could test for NULL pointers as well, but I thought that getting rid
of that piece of code made more sense as there are no TF-As out there
passing such arguments.
If you think that it will be better to take the problem the other way
around and modify the forked TF-A to pass that argument that also makes
sense to me. Picking one of the two solutions would allow us to have
something working out of the box.
> Also, enable CONFIG_DEBUG_UART in your U-Boot config, then you will get very
> early UART output capabilities, it works even before DT is used.
Noted, thanks :)
Mathieu
next prev parent reply other threads:[~2025-09-18 14:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-18 12:48 [PATCH] board: rzg2l: Do not expect a DTB blob from the TF-A Mathieu Othacehe
2025-09-18 13:17 ` Marek Vasut
2025-09-18 14:39 ` Mathieu Othacehe [this message]
2025-09-18 15:06 ` Marek Vasut
2025-09-22 16:30 ` Mathieu Othacehe
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=87cy7nhlk1.fsf@gnu.org \
--to=othacehe@gnu.org \
--cc=Chris.Paterson2@renesas.com \
--cc=anton.reding@landisgyr.com \
--cc=biju.das.jz@bp.renesas.com \
--cc=iwamatsu@nigauri.org \
--cc=marek.vasut@mailbox.org \
--cc=paul@pbarker.dev \
--cc=peng.fan@nxp.com \
--cc=semen.protsenko@linaro.org \
--cc=trini@konsulko.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.