Re: [PATCH 0/5] qemu-arm64: Allow booting via Trusted Firmware

2020-09-29 Thread Tom Rini
On Thu, Sep 24, 2020 at 01:17:10AM +0100, Andre Przywara wrote: > U-Boot on QEMU-arm64 can be used in two configurations: Loaded directly > via QEMU's -bios option, or as a non-secure payload (BL33) via > ARM Trusted Firmware-A (TF-A). > In the latter case we need to define CONFIG_TFABOOT, to

Re: [PATCH 0/5] qemu-arm64: Allow booting via Trusted Firmware

2020-09-24 Thread Amit Tomar
> > > > > I tried testing this series but don't see any output while loading > > U-Boot from ROM: > > > > # ./qemu-system-aarch64 -M virt -cpu cortex-a57 -nographic -smp 1 -bios > > u-boot.bin > > TF-A runs at EL3 so you should test with > -machine virt,secure=true,virtualization=true > > The bios

Re: [PATCH 0/5] qemu-arm64: Allow booting via Trusted Firmware

2020-09-24 Thread Amit Tomar
> > Did you regenerate the .config? Otherwise, CONFIG_INIT_SP_RELATIVE may > still be enabled. > I cloned a fresh U-boot source (with top commit 55004fa43364e) , and the top of it applied these patches. After generating the .config using "qemu_arm64_defconfig" where CONFIG_INIT_SP_RELATIVE is

Re: [PATCH 0/5] qemu-arm64: Allow booting via Trusted Firmware

2020-09-24 Thread Amit Tomar
Hi, Andre Przywara (5): > arm64: PIE: Skip fixups if distance is zero > arm64: PIE: Allow fixed stack pointer > qemu-arm: Remove need to specify flash banks > qemu: Drop ARCH_SUPPORT_TFABOOT > qemu/arm64: Enable POSITION_INDEPENDENT > > arch/arm/Kconfig | 4 ++-- >

Re: [PATCH 0/5] qemu-arm64: Allow booting via Trusted Firmware

2020-09-24 Thread André Przywara
On 24/09/2020 09:44, Heinrich Schuchardt wrote: > On 24.09.20 09:57, Amit Tomar wrote: >> Hi, >> >> Andre Przywara (5): >> >>   arm64: PIE: Skip fixups if distance is zero >>   arm64: PIE: Allow fixed stack pointer >>   qemu-arm: Remove need to specify flash banks >>   qemu: Drop

Re: [PATCH 0/5] qemu-arm64: Allow booting via Trusted Firmware

2020-09-24 Thread Ard Biesheuvel
On Thu, 24 Sep 2020 at 09:58, Amit Tomar wrote: > > Hi, > > Andre Przywara (5): >> >> arm64: PIE: Skip fixups if distance is zero >> arm64: PIE: Allow fixed stack pointer >> qemu-arm: Remove need to specify flash banks >> qemu: Drop ARCH_SUPPORT_TFABOOT >> qemu/arm64: Enable

Re: [PATCH 0/5] qemu-arm64: Allow booting via Trusted Firmware

2020-09-24 Thread Heinrich Schuchardt
On 24.09.20 09:57, Amit Tomar wrote: > Hi, > > Andre Przywara (5): > >   arm64: PIE: Skip fixups if distance is zero >   arm64: PIE: Allow fixed stack pointer >   qemu-arm: Remove need to specify flash banks >   qemu: Drop ARCH_SUPPORT_TFABOOT >   qemu/arm64: Enable

Re: [PATCH 0/5] qemu-arm64: Allow booting via Trusted Firmware

2020-09-24 Thread André Przywara
On 24/09/2020 08:57, Amit Tomar wrote: > Hi, > > Andre Przywara (5): > >   arm64: PIE: Skip fixups if distance is zero >   arm64: PIE: Allow fixed stack pointer >   qemu-arm: Remove need to specify flash banks >   qemu: Drop ARCH_SUPPORT_TFABOOT >   qemu/arm64: Enable

[PATCH 0/5] qemu-arm64: Allow booting via Trusted Firmware

2020-09-23 Thread Andre Przywara
U-Boot on QEMU-arm64 can be used in two configurations: Loaded directly via QEMU's -bios option, or as a non-secure payload (BL33) via ARM Trusted Firmware-A (TF-A). In the latter case we need to define CONFIG_TFABOOT, to accommodate the first flash bank being secure only, and manually set