qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-arm] [Question] c79c0a3 target/arm: Implement new do_transaction_f


From: Hongbo Zhang
Subject: [Qemu-arm] [Question] c79c0a3 target/arm: Implement new do_transaction_failed hook
Date: Thu, 30 Nov 2017 12:13:52 +0800

Hi Peter,
I am doing this:
https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/plat/qemu.rst
Loading ATF in QEMU, and ATF loads UEFI, and then kernel is loaded.
(Difference from the page is I build my own debug version of QEMU_EFI.fd which has more print logs, instead of using the available one linked in the page)

Command is:
qemu-system-aarch64 -machine virt,secure=on,virtualization=on -cpu cortex-a57  -m 1024  -d unimp -semihosting-config enable,target=native -serial stdio -bios bl1.bin -kernel Image

Now I can use it to load ATF, UEFI and kernel by older QEMU, but cannot do it with latest QEMU,  e.g. ATF and UEFI can run, but kernel loading fails. Git bisect shows the bad commit is: c79c0a3 target/arm: Implement new do_transaction_failed hook.

So Peter, could you please help to analyze it?
Thanks.



Appending fail and success logs for reference, only tail of UEFI log and head of kernel log(if success) are showed here:

---------- success -----------
[......snip......]
 BlockSize : 262144 
 LastBlock : FF 
InstallProtocolInterface: CE345171-BA0B-11D2-8E4F-00A0C969723B 7AB9E420
InstallProtocolInterface: CE345171-BA0B-11D2-8E4F-00A0C969723B 7AB9DC20
 BlockSize : 262144 
 LastBlock : FF 
InstallProtocolInterface: FA920010-6785-4941-B6EC-498C579F160A 7AB966A0
InstallProtocolInterface: A19832B9-AC25-11D3-9A2D-0090273FC14D 7AB951A8
InstallProtocolInterface: 09576E91-6D3F-11D2-8E39-00A0C969723B 7AB95A18
[......snip......]
InstallProtocolInterface: 65530BC7-A359-410F-B010-5AADC7EC2B62 799CE438
InstallProtocolInterface: 41D94CD2-35B6-455A-8258-D4E51334AADD 799CC0A0
InstallProtocolInterface: 4579B72D-7EC4-4DD4-8486-083C86B182A7 799CD030
FetchBlob: loading 16310784 bytes for "kernel"
FetchBlob: loading 1 bytes for "cmdline"
InstallProtocolInterface: 09576E91-6D3F-11D2-8E39-00A0C969723B 7BD0F4E8
InstallProtocolInterface: 964E5B22-6459-11D2-8E39-00A0C969723B 7BD0F578
[Security] 3rd party image[0] can be loaded after EndOfDxe: VenHw(B0FAE7E7-6B07-49D0-9E5B-3BDEC83B039D)/kernel.
InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 7AB9D040
Loading driver at 0x00075628000 EntryPoint=0x0007638C4CC
Loading driver at 0x00075628000 EntryPoint=0x0007638C4CC 
InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 799C9118
ProtectUefiImageCommon - 0x7AB9D040
  - 0x0000000075628000 - 0x0000000000FFA000
SetUefiImageMemoryAttributes - 0x0000000075628000 - 0x0000000000001000 (0x0000000000004008)
SetUefiImageMemoryAttributes - 0x0000000075629000 - 0x0000000000DE3000 (0x0000000000020008)
SetUefiImageMemoryAttributes - 0x000000007640C000 - 0x0000000000216000 (0x0000000000004008)
[Bds]Stop Hotkey Service!
[Bds]UnregisterKeyNotify: 000C/0000 Success
[Bds]UnregisterKeyNotify: 0017/0000 Success
[Bds]UnregisterKeyNotify: 0000/000D Success
EFI stub: Booting Linux Kernel...
EFI stub: Generating empty DTB
EFI stub: Exiting boot services and installing virtual address map...
SetUefiImageMemoryAttributes - 0x000000007BE60000 - 0x0000000000040000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x0000000078AF0000 - 0x0000000000040000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x0000000078A40000 - 0x0000000000050000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x0000000078950000 - 0x0000000000040000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x00000000788B0000 - 0x0000000000040000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x0000000078810000 - 0x0000000000040000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x0000000078770000 - 0x0000000000040000 (0x0000000000000008)
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.0-00005-g516fb7f (address@hidden) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11)) #1 SMP PREEMPT Mon Nov 13 15:40:56 CST 2017
[    0.000000] Boot CPU: AArch64 Processor [411fd070]
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: EFI v2.60 by EDK II
[    0.000000] efi:  SMBIOS=0x78710000  SMBIOS 3.0=0x786f0000  ACPI=0x786d0000  ACPI 2.0=0x786d0014  MEMATTR=0x799c4018 
[    0.000000] cma: Reserved 16 MiB at 0x000000007f000000
[    0.000000] ACPI: Early table checksum verification disabled


---------- failed -----------
[......snip......]
 BlockSize : 262144 
 LastBlock : FF 

Synchronous Exception at 0x0000000078B051A0
PC 0x000078B051A0 (0x000078AF0000+0x000151A0) [ 0] ArmVeNorFlashDxe.dll
PC 0x000078B05160 (0x000078AF0000+0x00015160) [ 0] ArmVeNorFlashDxe.dll
PC 0x000078B01CF8 (0x000078AF0000+0x00011CF8) [ 0] ArmVeNorFlashDxe.dll
PC 0x000078B024C4 (0x000078AF0000+0x000124C4) [ 0] ArmVeNorFlashDxe.dll
PC 0x00007BBA21CC (0x00007BB9E000+0x000041CC) [ 1] PartitionDxe.dll
PC 0x00007BB9FA30 (0x00007BB9E000+0x00001A30) [ 1] PartitionDxe.dll
PC 0x00007EEE2A0C (0x00007EED4000+0x0000EA0C) [ 2] DxeCore.dll
PC 0x00007EEE1DD8 (0x00007EED4000+0x0000DDD8) [ 2] DxeCore.dll
PC 0x00007BCF0878 (0x00007BCE0000+0x00010878) [ 3] BdsDxe.dll
PC 0x00007BCF08E8 (0x00007BCE0000+0x000108E8) [ 3] BdsDxe.dll
PC 0x00007BCFF684 (0x00007BCE0000+0x0001F684) [ 3] BdsDxe.dll
PC 0x00007BCE30F0 (0x00007BCE0000+0x000030F0) [ 3] BdsDxe.dll
PC 0x00007EED685C (0x00007EED4000+0x0000285C) [ 4] DxeCore.dll
PC 0x00007EED57DC (0x00007EED4000+0x000017DC) [ 4] DxeCore.dll
PC 0x00007EED5024 (0x00007EED4000+0x00001024) [ 4] DxeCore.dll
PC 0x00006000EA3C
PC 0x00006000EC20
PC 0x0000600087EC
PC 0x0000600088C4
PC 0x000060008230
PC 0x580B0A42580B0A21

Recursive exception occurred while dumping the CPU state

reply via email to

[Prev in Thread] Current Thread [Next in Thread]