[U-Boot] [PATCH v4 0/5] efi_loader: ARM: add support for ARMV7_NONSEC=y

Heinrich Schuchardt xypron.glpk at gmx.de
Sat Jun 16 11:01:47 UTC 2018


On 06/15/2018 11:47 PM, Mark Kettenis wrote:
> This series makes it possible to run EFI applications in non-secure
> mode.  It allows me to run OpenBSD on the Technexion PICO-PI-IMX7 and
> Banana Pi boards using the PSCI implementation provided by U-Boot.
> 
> The second version avoids using r3 to pass the original stack pointer.
> For some reason that register gets clobbered on the Banana Pi.  Instead
> this version just migrates SP_svc to SP_hyp.
> 
> The third version avoids saving r3 on the stack and fixes an include
> guard as suggested by Alexander Graf.
> 
> This fourth version enables ARMV7_LPAE if HYP mode is supported sych
> that we enable the MMU and caches in HYP mode.  It also makes sure we
> don't attempt to enter non-secure mode twice if we execute a 2nd EFI
> payload.
> 
> Mark Kettenis (5):
>   ARM: HYP/non-sec: migrate stack
>   efi_loader: ARM: run EFI payloads non-secure
>   efi_loader: ARM: don't attempt to enter non-secure mode twice
>   ARM: HYP/non-sec: enable ARMV7_LPAE if HYP mode is supported
>   Revert "efi_loader: no support for ARMV7_NONSEC=y"
> 
>  arch/arm/cpu/armv7/Kconfig       |  2 +-
>  arch/arm/cpu/armv7/nonsec_virt.S |  2 ++
>  cmd/bootefi.c                    | 36 ++++++++++++++++++++++++++++++++++++
>  doc/README.uefi                  |  2 --
>  lib/efi_loader/Kconfig           |  2 --
>  5 files changed, 39 insertions(+), 5 deletions(-)
> 
Hello Mark,

I have built with your 5 patches added to git master
(f58e779513be36e30ce46838fb467e12ac6a5539).

With your patch series iPXE starts normally.

In iPXE I can use network commands ping and nslookup.

I was not able to boot via iSCSI but I have the same problem without
your patches 1-4.

Best regards

Heinrich


More information about the U-Boot mailing list