[edk2-devel] Include UEFI application into the BIOS image to be able to run it from UEFI Shell

Wang, Sunny (HPS SW) sunnywang at hpe.com
Mon Dec 7 09:19:44 UTC 2020


Sorry for the delay, Sergey.
See my Comment inline with [Sunny]. I also merged Liming’s informative email into this email in case you missed it.

Regards,
Sunny Wang

From: gaoliming <gaoliming at byosoft.com.cn<mailto:gaoliming at byosoft.com.cn>>
Sent: Friday, December 4, 2020 9:49 AM
To: devel at edk2.groups.io<mailto:devel at edk2.groups.io>; Wang, Sunny (HPS SW) <sunnywang at hpe.com<mailto:sunnywang at hpe.com>>; sergestus at yandex.ru<mailto:sergestus at yandex.ru>
Subject: 回复: [edk2-devel] Include UEFI application into the BIOS image to be able to run it from UEFI Shell

Sergey:
 MdeModulePkg FvSimpleFilesystemDxe will map FV as FileSystem. After FvSimpleFilesystemDxe is built into BIOS image, Shell will show FV file system, then you can find the built-in application.

 MdeModulePkg LoadFileOnFv2 will install LoadFile protocol for the application in FV image. If BIOS includes it, every application will have its boot option.

Thanks
Liming

From: sergestus at yandex.ru <sergestus at yandex.ru>
Sent: Friday, December 4, 2020 5:43 PM
To: Wang at mx0a-002e3701.pphosted.com; Wang, Sunny (HPS SW) <sunnywang at hpe.com>; devel at edk2.groups.io
Subject: Re: [edk2-devel] Include UEFI application into the BIOS image to be able to run it from UEFI Shell

Hi Sunny,

Thank you very much for the answer! Please, clarify if I got you right:
1. To make accessible volume in the uefi shell I must include EFI_FIRMWARE_VOLUME2_PROTOCOL(FvSimpleFilesystemDxe) into the BIOS.
[Sunny] Yes

2. To include uefi application in the BIOS image I just need to include it MdeModulePkg.
[Sunny] No need to include it in MdeModulePkg. The application can be put into any package folder. For saving the future edk2 code merge effort, it would be better to put your application into your platform package. You just need to modify your platform .dsc and .fdf files with the correct file path pointing to your application.

3. To run application as a boot manager it GUID should be defined in PcdBootManagerMenuFile PCD.
[Sunny] Hmm, do you mean you want to replace edk2 boot manger menu with your application? If so, you’re right. If not, you should generate a new GUID as your application’s file PCD.  What I meant is that you can check how edk2 code build “boot manager menu” application into BIOS image and do the similar things for your application.

4. To run application from boot manager it need to use LOAD_OPTION_CATEGORY_BOOT option.
[Sunny] Yeah.


Thank you,
Sergey


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#68379): https://edk2.groups.io/g/devel/message/68379
Mute This Topic: https://groups.io/mt/78657676/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20201207/9c71045e/attachment.htm>


More information about the edk2-devel-archive mailing list