Hi Asha,
Q1: Is UEFI flashed as single binary i.e., PlatformPkg.fd or different
efi's?
It really depends of your configuration/platform. UEFI is only a portion of
your boot firmware. Prior to UEFI, you might have one (or more) additional
boot code/firmware.
The EDK2 FDF file will help you to generate a Firmware Device file you can
flash onto your platform Non-Volatile memory (eg: ROM, NAND)
But you can also load single EFI application/driver (EFI binary) from a UEFI
firmware. For instance, if you develop a EFI driver, you do not need to
rebuild the full Platform UEFI firmware. You can load the single EFI driver.
Q2. As the code is in ROM (flash), I understand that it must be copied to
RAM for execution.
Will complete UEFI be copied to RAM or some phase or section wise?
RAM provides much better performance than some other memory storage. Code
can also be run from RAM (at the difference of NAND for instance).
But there is no requirement to copy the code into RAM for execution. It
depends of your platform specification and the choice of the firmware
engineer.
If we take the example of EDK2 code base, the PEI Core (Pre EFI phase)
copies the firmware into DRAM as soon as the System Memory (DRAM) is setup.
Q3. How does operating system invoke the UEFI Runtime services?
The UEFI specification covers this part . See the section "2.3 Calling
Convention" of the Specification.
Q4. I read in one of the internet link that other than Timer, there are no
hardware interrupts.
Without hardware interrupt how will the USB kind of device be
recognized?
The UEFI drivers can register functions to be called periodically (see the
'Boot Services' Event functions). The USB drivers register periodic
functions that scan if new devices are connected.
I hope that will help you,
Olivier
From: [email protected]
[mailto:[email protected]] On Behalf Of Ryan Harkin
Sent: 26 March 2012 16:17
To: Asha R
Cc: [email protected]
Subject: Re: UEFI basic questions
Hi Asha,
I don't know the proper answers to all of your questions. I would suggest
that the EDK2 mailing list might give you more detailed answers:
[email protected]
I think you have to sign up for the list first:
https://lists.sourceforge.net/lists/listinfo/edk2-devel
2012/3/26 Asha R <[email protected]>
I am new to UEFI and trying to understand working of UEFI on ARM platform.
On building UEFI, there are different binaries generated for each phase and
also for drivers
eg: platformSec.efi, platformBds.efi and UsbDxe.efi,etc
Q1. Is UEFI flashed as single binary i.e., PlatformPkg.fd or different
efi's?
I flash a single .fd onto my platforms.
Q1. As the code is in ROM (flash), I understand that it must be copied to
RAM for execution.
Will complete UEFI be copied to RAM or some phase or section wise?
Q3. How does operating sysetm invoke the UEFI Runtime services?
Q4. I read in one of the internet link that other than Timer, there are no
hardware interrupts.
Without hardware interrupt how will the USB kind of device be
recognized?
UEFI has interrupt support for ARM platforms.
Regards,
Ryan.
_______________________________________________
boot-architecture mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/boot-architecture