[U-Boot] [PATCH 0/3] efi_loader: ARM: add support for ARMV7_NONSEC=y
Mark Kettenis
mark.kettenis at xs4all.nl
Wed Jun 13 22:20:49 UTC 2018
> From: Heinrich Schuchardt <xypron.glpk at gmx.de>
> Date: Tue, 12 Jun 2018 20:00:28 +0200
>
> On 06/12/2018 07:27 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 imx7d-pico-pi board while
> > using the PSCI implementation provided by U-Boot.
> >
> > Mark Kettenis (3):
> > ARM: HYP/non-sec: save and restore stack
> > efi_loader: ARM: run EFI payloads non-secure
> > Revert "efi_loader: no support for ARMV7_NONSEC=y"
> >
> > arch/arm/cpu/armv7/nonsec_virt.S | 6 ++++--
> > cmd/bootefi.c | 32 ++++++++++++++++++++++++++++++++
> > doc/README.uefi | 2 --
> > lib/efi_loader/Kconfig | 2 --
> > 4 files changed, 36 insertions(+), 6 deletions(-)
> >
>
> This is the output I got with your patches when trying to boot my BananaPi:
>
> => bootefi hello
> Scanning disk mmc at 01c0f000.blk...
> Found 3 disks
> WARNING: booting without device tree
> ## Starting EFI application at 42000000 ...
> WARNING: using memory device/image path, this may confuse some payloads!
>
> U-Boot SPL 2018.07-rc1-D001-00104-g5b859da7ca8 (Jun 12 2018 - 19:52:34
> +0200)
> DRAM:
I could reproduce that. For some reason r3 gets clobbered and we
still end up with a broken stack. Posted v2 that simply migrates
SP_svc to SP_hyp. That seems to work on both imx7 and sun7i.
More information about the U-Boot
mailing list