On 01/27/15 at 11:44 AM Ard Biesheuvel ard.biesheuvel@linaro.org wrote:
So Varad, can you confirm that your port consists of a primary FV containing PrePi and a compressed secondary FV, which in turn contains all the other modules?
I'm using the same FD layout, I have switched to your version of MemoryInitPeiLib.
On 11 January 2015 at 17:23, Varad Gautam varadgautam@gmail.com wrote:
- arch/arm/boot/compressed/head.S: jump to zImage `mov pc, r3` fails,
although jump
to hard-coded relocated address (`ldr pc, =0x80008000`) works, 0x80008000
being the
new zImage location. Need help with calling convention - am I setting
*image_addr
correctly?
^ this problem still persists, except the zImage is now placed at 0x82000000; but I noticed that clearing (or changing) r4 in head.S after `efi_entry` returns causes the kernel to boot and show early debug messages! I am figuring out what's causing this oddity.
--- diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S @@ -166,6 +166,7 @@ efi_stub_entry: mov r2, sp @ pass pointer in r2 bl efi_entry ldr r3, [sp], #8 @ get new zImage address from stack + mov r4, #0x00 @ doing this strangely boots the kernel
@ Check for error return from EFI stub. r0 has FDT address @ or error code. ---
Thanks, Varad