From: Mathieu Othacehe <othacehe@gnu.org>
To: marek.vasut+renesas@mailbox.org, paul@pbarker.dev
Cc: u-boot@lists.denx.de, anton.reding@landisgyr.com
Subject: RZG2L and DTB blob from TF-A
Date: Tue, 16 Sep 2025 14:49:31 +0200 [thread overview]
Message-ID: <87plbqd0kk.fsf@gnu.org> (raw)
Hello,
I am working on the RZG2L devkit from Renesas and trying to get the
mainline U-Boot working there.
I have noticed that in several locations, U-Boot is unconditionally
expecting the TF-A to pass a DTB blob:
In board/renesas/rzg2l/rzg2l.c:
--8<---------------cut here---------------start------------->8---
static void apply_atf_overlay(void *fdt_blob)
{
void *atf_fdt_blob = (void *)(rcar_atf_boot_args[1]);
...
}
--8<---------------cut here---------------end--------------->8---
In arch/arm/mach-renesas/cpu_info-rzg2l.c:
--8<---------------cut here---------------start------------->8---
static const struct tfa_info *get_tfa_info(void)
{
void *atf_fdt_blob = (void *)(rcar_atf_boot_args[1]);
...
}
--8<---------------cut here---------------end--------------->8---
Now, the TF-A that I have compiled (v2.5/rzg2l-1.00-43-g950d6a6b9) from
https://github.com/renesas-rz/rzg_trusted-firmware-a.git is not passing
any DTB blob:
--8<---------------cut here---------------start------------->8---
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x50000000
INFO: SPSR = 0x3c5
VERBOSE: Argument #0 = 0x0
VERBOSE: Argument #1 = 0x0
VERBOSE: Argument #2 = 0x0
VERBOSE: Argument #3 = 0x0
VERBOSE: Argument #4 = 0x0
VERBOSE: Argument #5 = 0x0
VERBOSE: Argument #6 = 0x0
VERBOSE: Argument #7 = 0x0
--8<---------------cut here---------------end--------------->8---
That results in dereferencing a NULL pointer and failing to run U-Boot
on that platform. On the other hand, disabling the two pieces of code
mentioned below is enough to have a working U-Boot.
It does not seem that the upstream TF-A has support for the RZG2L
CPU. So my question is, what is the expected TF-A branch / repository
that is meant to be used together with the renesas_rzg2l_smarc_defconfig
U-Boot configuration?
Thanks in advance,
Mathieu
next reply other threads:[~2025-09-16 12:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-16 12:49 Mathieu Othacehe [this message]
2025-09-16 13:29 ` RZG2L and DTB blob from TF-A Marek Vasut
2025-09-16 14:02 ` Biju Das
2025-09-18 12:54 ` Mathieu Othacehe
2025-09-18 13:11 ` Biju Das
2025-09-18 14:33 ` Mathieu Othacehe
2025-09-18 14:41 ` Biju Das
2025-10-07 6:41 ` Biju Das
2025-09-18 13:14 ` Marek Vasut
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=87plbqd0kk.fsf@gnu.org \
--to=othacehe@gnu.org \
--cc=anton.reding@landisgyr.com \
--cc=marek.vasut+renesas@mailbox.org \
--cc=paul@pbarker.dev \
--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.