From: "David A. Long" dave.long@linaro.org
Signed-off-by: David A. Long dave.long@linaro.org --- PandaBoardPkg/Library/PandaBoardLib/PandaBoardHelper.S | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
diff --git a/PandaBoardPkg/Library/PandaBoardLib/PandaBoardHelper.S b/PandaBoardPkg/Library/PandaBoardLib/PandaBoardHelper.S index 6405d16..49fcf53 100644 --- a/PandaBoardPkg/Library/PandaBoardLib/PandaBoardHelper.S +++ b/PandaBoardPkg/Library/PandaBoardLib/PandaBoardHelper.S @@ -23,6 +23,9 @@ GCC_ASM_EXPORT(ArmPlatformPrePiBootAction) GCC_ASM_EXPORT(ArmPlatformGetCorePosition)
+GCC_ASM_EXPORT(ArmPlatformIsPrimaryCore) +GCC_ASM_EXPORT(ArmPlatformPeiBootAction) + /** ArmPlatformPrePiBootAction
@@ -99,4 +102,18 @@ relocator_end: ASM_PFX(ArmPlatformGetCorePosition): bx lr
+ASM_PFX(ArmPlatformIsPrimaryCore): + #Bits 8 through 11 are CPU ID + ldr r1, =0xf00 + and r0, r0, r1 + #id for core0 should be 0 + ldr r1, =0x0 + cmp r0, r1 + moveq r0, #1 + movne r0, #0 + mov pc, lr + +ASM_PFX(ArmPlatformPeiBootAction): + mov pc, lr + ASM_FUNCTION_REMOVE_IF_UNREFERENCED
Hi Dave,
I've applied this patch to uefi-next.git now. The branch "linaro-tracking" should have everything there, with an almost-up-to-date edk2 source.
I haven't tested Panda at all, other than built it, so if you want to give it a test asap (code freeze day is tomorrow) then please do and let me know.
Cheers, Ryan.
On 10 September 2013 17:17, David Long dave.long@linaro.org wrote:
From: "David A. Long" dave.long@linaro.org
Signed-off-by: David A. Long dave.long@linaro.org
PandaBoardPkg/Library/PandaBoardLib/PandaBoardHelper.S | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
diff --git a/PandaBoardPkg/Library/PandaBoardLib/PandaBoardHelper.S b/PandaBoardPkg/Library/PandaBoardLib/PandaBoardHelper.S index 6405d16..49fcf53 100644 --- a/PandaBoardPkg/Library/PandaBoardLib/PandaBoardHelper.S +++ b/PandaBoardPkg/Library/PandaBoardLib/PandaBoardHelper.S @@ -23,6 +23,9 @@ GCC_ASM_EXPORT(ArmPlatformPrePiBootAction) GCC_ASM_EXPORT(ArmPlatformGetCorePosition)
+GCC_ASM_EXPORT(ArmPlatformIsPrimaryCore) +GCC_ASM_EXPORT(ArmPlatformPeiBootAction)
/** ArmPlatformPrePiBootAction
@@ -99,4 +102,18 @@ relocator_end: ASM_PFX(ArmPlatformGetCorePosition): bx lr
+ASM_PFX(ArmPlatformIsPrimaryCore):
- #Bits 8 through 11 are CPU ID
- ldr r1, =0xf00
- and r0, r0, r1
- #id for core0 should be 0
- ldr r1, =0x0
- cmp r0, r1
- moveq r0, #1
- movne r0, #0
- mov pc, lr
+ASM_PFX(ArmPlatformPeiBootAction):
- mov pc, lr
ASM_FUNCTION_REMOVE_IF_UNREFERENCED
1.8.1.2
boot-architecture mailing list boot-architecture@lists.linaro.org http://lists.linaro.org/mailman/listinfo/boot-architecture
On 09/18/13 16:36, Ryan Harkin wrote:
Hi Dave,
I've applied this patch to uefi-next.git now. The branch "linaro-tracking" should have everything there, with an almost-up-to-date edk2 source.
I haven't tested Panda at all, other than built it, so if you want to give it a test asap (code freeze day is tomorrow) then please do and let me know.
I did successfully build and boot uefi on my 4460. I'm not really set up to actually boot a linux kernel with uefi at the moment, which may be the reason it stopped with the following error:
The default boot selection will start in 1 seconds ASSERT /home/dave/nfsroot/junk/uefi-next/MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c(160): Length >= sizeof (EFI_DEVICE_PATH_PROTOCOL)
I was able to get into the UEFI shell and run assorted commands.
-dl
On 18 September 2013 23:15, David Long dave.long@linaro.org wrote:
On 09/18/13 16:36, Ryan Harkin wrote:
Hi Dave,
I've applied this patch to uefi-next.git now. The branch "linaro-tracking" should have everything there, with an almost-up-to-date edk2 source.
I haven't tested Panda at all, other than built it, so if you want to give it a test asap (code freeze day is tomorrow) then please do and let me know.
I did successfully build and boot uefi on my 4460. I'm not really set up to actually boot a linux kernel with uefi at the moment, which may be the reason it stopped with the following error:
The default boot selection will start in 1 seconds
ASSERT /home/dave/nfsroot/junk/uefi-**next/MdePkg/Library/** UefiDevicePathLib/**DevicePathUtilities.c(160): Length >= sizeof (EFI_DEVICE_PATH_PROTOCOL)
Yes, I'd expect you're right. So long as UEFI runs for the moment, that's
good enough for me. Ideally, it should boot the kernel happily, but actually having Panda run UEFI is great news!
I was able to get into the UEFI shell and run assorted commands.
Marvelous! Thanks for testing it.
-dl
boot-architecture@lists.linaro.org