From: =?UTF-8?Q?Andr=c3=a9_Przywara?= Date: Thu, 24 Sep 2020 09:39:59 +0100 Subject: [PATCH 0/5] qemu-arm64: Allow booting via Trusted Firmware In-Reply-To: References: <20200924001715.30975-1-andre.przywara@arm.com> Message-ID: <631bed48-80ca-037c-ef67-04634b6af4fd@arm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 POSITION_INDEPENDENT > > ?arch/arm/Kconfig? ? ? ? ? ? ?| 4 ++-- > ?arch/arm/cpu/armv8/start.S? ?| 3 ++- > ?configs/qemu_arm64_defconfig | 1 + > ?include/configs/qemu-arm.h? ?| 8 +------- > ?4 files changed, 6 insertions(+), 10 deletions(-) > > -- > 2.17.5 > > > 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 I can't reproduce this (read: works for me). I tried with cross-gcc 9.2 & QEMU 5.0.0, and with Ubuntu-arm64 (GCC 7.5 & QEMU 2.11.1). Did you apply against master, used qemu_arm64_defconfig, cleaned the build directory? Is your (self-built?) QEMU working? Are you using the actual generated binary? I pushed the branch to https://github.com/Andre-ARM/u-boot/commits/qemu-tfa, please try this. Cheers, Andre > > strangely enough SP is having a value of 0 after execution: > > (qemu) info registers > ?PC=0000000000001a00 X00=540000a0f100303f X01=000000000007c000 > X02=0000000000000000 X03=00000000401fe000 X04=0000000000000000 > X05=0000000000000000 X06=0000000000000030 X07=00000000401fe008 > X08=0000000000000000 X09=14000008d51e115f X10=0000000000000000 > X11=0000000000000000 X12=0000000000000000 X13=0000000000000000 > X14=0000000000000000 X15=0000000000000000 X16=0000000000000000 > X17=0000000000000000 X18=0000000000000000 X19=0000000000000000 > X20=0000000000000000 X21=0000000000000000 X22=0000000000000000 > X23=0000000000000000 X24=0000000000000000 X25=0000000000000000 > X26=0000000000000000 X27=0000000000000000 X28=0000000000000000 > X29=00000000000000c8 X30=14000008d51e39cb ?SP=0000000000000000 > PSTATE=000003c5 ---- EL1h ? ? FPCR=00000000 FPSR=00000000 > > Wondering , if I have missed something ? > > Thanks > -Amit