From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: "Hans Christian Lønstad" <hcl@datarespons.no>,
"Barebox List" <barebox@lists.infradead.org>
Subject: Re: IMX8M and Optee support
Date: Wed, 18 Oct 2023 11:06:44 +0200 [thread overview]
Message-ID: <52fa194d-441c-8827-00ac-49db2cd72661@pengutronix.de> (raw)
In-Reply-To: <EE0A8E0F-465F-46D1-A366-676E9047EA0C@datarespons.no>
Hello Hans,
On 18.10.23 10:11, Hans Christian Lønstad wrote:
> Just reaching out to ask whether anyone has successfully integrated Optee on the IMX8M(P) platform.
> Our trials results in a crash when the ATF (NXP 2.8) does the handover to Optee (exit EL3).
>
> In ATF it appears that BL32 is expected to load at 0x56000000 on IMX8MP while Barebox actually loads
> The Optee bin blob just below top of memory.
> (Patching Barebox to the expected ATF BL32_BASE does not resolve the issue)
>
> Any help would be appreciated
I am using OP-TEE in an i.MX8MN project successfully. The hardcoding of addresses
is indeed unfortunate and it needs manual adjustment depending on the size
of available RAM.
The common configuration is to reserve secure memory at the end of DRAM as not
to split the RAM in half. You should thus change the BL32 address used in TF-A
in alignment with barebox CONFIG_OPTEE_SIZE, which is always relative to the end
of RAM.
Let me know how it goes.
Cheers,
Ahmad
>
> Hans Christian Lønstad
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2023-10-18 9:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-18 8:11 Hans Christian Lønstad
2023-10-18 9:06 ` Ahmad Fatoum [this message]
2023-10-18 11:29 ` Hans Christian Lønstad
2023-10-18 12:31 ` Hans Christian Lønstad
2023-10-18 13:04 ` Ahmad Fatoum
2023-10-18 14:06 ` Hans Christian Lønstad
2023-10-18 14:36 ` Ahmad Fatoum
2023-10-19 6:23 ` Hans Christian Lønstad
2023-10-19 6:25 ` Hans Christian Lønstad
2024-01-22 15:48 ` Ahmad Fatoum
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=52fa194d-441c-8827-00ac-49db2cd72661@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=hcl@datarespons.no \
/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