All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] bootefi failures on armv7
Date: Wed, 10 Apr 2019 21:38:30 +0300	[thread overview]
Message-ID: <20190410183830.GA12913@apalos> (raw)
In-Reply-To: <61f8820b-b7ec-8754-773a-82f8cf8fb11f@gmx.de>

Hello Heinrich,
> 
> @Simon, @Alex
> Why did we ever introduce this value?
> 127 MB in baf70c02107 ("efi: Relocate FDT to 127MB instead of 128MB")
> 128 MB in ad0c1a3d2ce ("efi_loader: Put fdt into convenient location")
> 
> baf70c02107 says that the Sandbox has only 128 MiB. But why should we
> need to hard code this here. When the Sandbox has initialized the memory
> map efi_allocate_pool() will take care of finding an address in the
> available memory anyway.
> 
> ad0c1a3d2ce mentions 128 MB as recommended value but does not provide
> any reference. I think we should provide the source of this recommendation.
> 
> According to
> https://www.st.com/en/microcontrollers-microprocessors/stm32mp157.html
> STM32MP157 comes with support for TrustZone and SecureBoot.
> 
> https://www.st.com/en/microcontrollers-microprocessors/stm32mp157.html#tools-software:
> 
> "The developer package comes with
> 
>     Boot chain based on TF-A and U-Boot
>     OP-TEE secure OS running on the Arm® Cortex®-A in secure mode."
> 
> The Linux device tree does not reserve a memory region for the trusted
> firmware (TF-A) and the trusted execution environment (OP-TEE) Shouldn't
> there be a reserved memory area for both.
> 
> If TF-A or OP-TEE reside near 0xC8000000, this would explain the
> observed behavior.
> 
> @Ilias
> Do you use TF-A or OP-TEE in your setup?
No none of those are present in my tests. 

Note that in both workaround 1/2 fdt ends up at the same address (0xc7ef4000).

Thanks
/Ilias

  reply	other threads:[~2019-04-10 18:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-10 16:57 [U-Boot] bootefi failures on armv7 Ilias Apalodimas
2019-04-10 18:27 ` Heinrich Schuchardt
2019-04-10 18:38   ` Ilias Apalodimas [this message]
2019-04-10 20:15 ` Heinrich Schuchardt
2019-04-10 20:35   ` Ilias Apalodimas
2019-04-11 18:15 ` Ard Biesheuvel
2019-04-11 18:44   ` Ilias Apalodimas

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=20190410183830.GA12913@apalos \
    --to=ilias.apalodimas@linaro.org \
    --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.