* Question about merge efi application into BIOS
@ 2018-01-15 1:52 高念慈
0 siblings, 0 replies; only message in thread
From: 高念慈 @ 2018-01-15 1:52 UTC (permalink / raw)
To: edk2-devel
Hello
I write an efi tool and try to merge to BIOS, then execute from BIOS.
My idea as follow, but i don't know my concept is right or not
1. write .inf file to produce firmware volume(FV)
2. Copy FV to memory (load image ?)
3. start image to execute my efi tool
[On step1] , my efi tool could be found in FV after compiling
[On step2], My load image parameter as follow
*typedef*
*EFI_STATUS*
*(EFIAPI *EFI_IMAGE_LOAD) (*
*IN BOOLEAN **BootPolicy,*
*IN EFI_HANDLE **ParentImageHandle,*
*IN EFI_DEVICE_PATH_PROTOCOL ***DevicePath,*
*IN VOID ***SourceBuffer **OPTIONAL,*
*IN UINTN **SourceSize,*
*OUT EFI_HANDLE ***ImageHandle*
*);*
[BootPolicy]
False
[ParentImageHandle]
i don't understand the meaning of spec?
it say "EFI_HANDLE is defined in the
EFI_BOOT_SERVICES.InstallProtocolInterface function description"
[Device path]
use VENDOR_DEVICE_PATH
[Source buffer]
Use *EFI_FIRMWARE_VOLUME_PROTOCOL. ReadSection()*
*to load FV from flash part and save to buffer ?*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-15 1:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-15 1:52 Question about merge efi application into BIOS 高念慈
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox