Hi Ravi, See my answers below.
-----Original Message----- From: Ravi Chhabra [mailto:ravi.chhabra@broadcom.com] Sent: 11 November 2014 17:56 To: Olivier Martin; linaro-uefi@lists.linaro.org Subject: RE: question on EDK build patch step
Hi Olivier,
Sure, Thanks. I greatly appreciate your help. That link is very informative.
I was able to build our package successfully. I have few more questions:
- Where should we create our pkg? (in edk2 or edk2/ArmPlatformPkg)
I guess for it will be easier and cleaner for you to create a edk2/BroadcomPkg where all your code would live.
- We are going to use the method 1 (cold boot case) and we have only
300K SRAM in our emulation platform, is it possible to fit this in such memory size? We have PL011 as UART and we really don't need anything else except the promot show up at uart.
I managed once to fit UEFI into 250KB of SRAM. This UEFI was supporting booting Linux. I think I wrote down somewhere on my computer the changes I had to do. I need to find out. There was maybe on code change to reduce the size of the buffer pre-allocated by DiskIoDxe. And another change was to disable some debug support that was consuming too much memory.
- We would like to run this bootloader for our chip verification, do
you have any document on how to run this in any simulation environment? Normally we take *.axf file and convert it to *.hex and set the PC where the *.axf shows.
This information are generally vendor/infrastructure specific. We have such document but I am not sure they will be useful for you (and I doubt our legal department will leave us to publish it).
Also, it would be great if you could update the example for V8 as well on the link you provided.
You are right. I should do it.
-----Original Message----- From: Olivier Martin [mailto:Olivier.Martin@arm.com] Sent: Friday, November 07, 2014 2:19 AM To: Ravi Chhabra; linaro-uefi@lists.linaro.org Subject: RE: question on EDK build patch step
Yes, using the ARMVExpress package is a way to start. You can also have a look at this page: http://tianocore.sourceforge.net/wiki/ArmPlatformPkg Let me know if you have any difficulty. ________________________________________ From: Ravi Chhabra [ravi.chhabra@broadcom.com] Sent: 06 November 2014 21:05 To: Olivier Martin; linaro-uefi@lists.linaro.org Subject: RE: question on EDK build patch step
Hi Olivier,
Thank you so much for the reply. That was helpful. I was able to build successfully.
I am quite a beginner in this area. I would appreciate if you could educate me on this. I am assigned the task of building the uefi boot package for our design.
Design Details: (Simple Version) v8 architecture - (A53) UART - 0x4000_0000 Flash - 0x0000_0000 Internal RAM - 16MB External RAM
At this point, my aim is to get uefi boot-up prompt through UART.
I am trying to understand ARMVExpress package and planning to reuse that for the most part.
Please correct me if that's not the right way. I would greatly appreciate if you could give me some direction. Thanks again.
Thanks, Ravi C
From: Olivier Martin [mailto:olivier.martin@arm.com] Sent: Wednesday, October 29, 2014 11:48 AM To: Ravi Chhabra; linaro-uefi@lists.linaro.org Subject: RE: question on EDK build patch step
This patch is actually not required anymore. BaseTools should fully support ARM and AArch64. I will delete this patch now.
Unfortunately I cannot update the wikipages. I cannot login anymore - I am waiting for the wikipage maintainer to fix it.
From: linaro-uefi-bounces@lists.linaro.orgmailto:linaro-uefi- bounces@lists.linaro.org [mailto:linaro-uefi-bounces@lists.linaro.org] On Behalf Of Ravi Chhabra Sent: 29 October 2014 18:00 To: linaro-uefi@lists.linaro.orgmailto:linaro-uefi@lists.linaro.org Subject: [Linaro-uefi] question on EDK build patch step
Hi,
I am trying to build edk by following the steps in readme file. For some reason, I am unable to patch the files. Getting following error:
edk2> patch -p1 < edk2> ArmPlatformPkg/Documentation/patches/BaseTools-Pending- Patches.pat edk2> ch
patching file BaseTools/Source/C/GenFw/Elf32Convert.c
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 18.
Hunk #3 FAILED at 264.
Hunk #4 FAILED at 291.
Hunk #5 FAILED at 315.
5 out of 5 hunks FAILED -- saving rejects to file BaseTools/Source/C/GenFw/Elf32Convert.c.rej
patching file BaseTools/Source/C/GenFw/Elf64Convert.c
Hunk #1 FAILED at 19.
Hunk #2 FAILED at 258.
Hunk #3 FAILED at 286.
Hunk #4 FAILED at 310.
4 out of 4 hunks FAILED -- saving rejects to file BaseTools/Source/C/GenFw/Elf64Convert.c.rej
Please help.
Thanks, Ravi C
-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2557590 ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2548782