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 > Sent: Friday, December 4, 2020 9:49 AM To: devel@edk2.groups.io; Wang, Sunny (HPS SW) >; sergestus@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@yandex.ru Sent: Friday, December 4, 2020 5:43 PM To: Wang@mx0a-002e3701.pphosted.com; Wang, Sunny (HPS SW) ; devel@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