public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Wang, Sunny (HPS SW)" <sunnywang@hpe.com>
To: "sergestus@yandex.ru" <sergestus@yandex.ru>,
	"Wang@mx0a-002e3701.pphosted.com"
	<Wang@mx0a-002e3701.pphosted.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>,
	"gaoliming@byosoft.com.cn" <gaoliming@byosoft.com.cn>
Cc: "Wang, Sunny (HPS SW)" <sunnywang@hpe.com>
Subject: Re: [edk2-devel] Include UEFI application into the BIOS image to be able to run it from UEFI Shell
Date: Mon, 7 Dec 2020 09:19:44 +0000	[thread overview]
Message-ID: <DF4PR8401MB058528190EF56FB859EA493FA8CE0@DF4PR8401MB0585.NAMPRD84.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <17241.1607074969209613374@groups.io>

[-- Attachment #1: Type: text/plain, Size: 2492 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 7225 bytes --]

  reply	other threads:[~2020-12-07  9:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-02 12:05 Include UEFI application into the BIOS image to be able to run it from UEFI Shell sergestus
2020-12-03  9:44 ` [edk2-devel] " Wang, Sunny (HPS SW)
2020-12-04  1:48   ` 回复: " gaoliming
2020-12-04  9:42   ` sergestus
2020-12-07  9:19     ` Wang, Sunny (HPS SW) [this message]
2020-12-07 10:27       ` sergestus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DF4PR8401MB058528190EF56FB859EA493FA8CE0@DF4PR8401MB0585.NAMPRD84.PROD.OUTLOOK.COM \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox