From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web11.8062.1607046537741936166 for ; Thu, 03 Dec 2020 17:48:59 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Fri, 04 Dec 2020 09:48:55 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , , References: <975F67E5-3C1A-4117-9894-0153BD1E5CF2@hpe.com> In-Reply-To: <975F67E5-3C1A-4117-9894-0153BD1E5CF2@hpe.com> Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gSW5jbHVkZSBVRUZJIGFwcGxpY2F0aW9uIGludG8gdGhlIEJJT1MgaW1hZ2UgdG8gYmUgYWJsZSB0byBydW4gaXQgZnJvbSBVRUZJIFNoZWxs?= Date: Fri, 4 Dec 2020 09:48:55 +0800 Message-ID: <009b01d6c9df$a05fc810$e11f5830$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQHN45vpAxj7YT/TfNMLtYhfqqtu7gE4mFreqe4xGnA= Content-Type: multipart/alternative; boundary="----=_NextPart_000_009C_01D6CA22.AE83CB60" Content-Language: zh-cn ------=_NextPart_000_009C_01D6CA22.AE83CB60 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sergey: MdeModulePkg FvSimpleFilesystemDxe will map FV as FileSystem. After FvSim= pleFilesystemDxe is built into BIOS image, Shell will show FV file system, = then you can find the built-in application.=20 =20 MdeModulePkg LoadFileOnFv2 will install LoadFile protocol for the applica= tion in FV image. If BIOS includes it, every application will have its boot= option.=20 =20 Thanks Liming =E5=8F=91=E4=BB=B6=E4=BA=BA: bounce+27952+68233+4905953+8761045@groups.io = =E4=BB=A3=E8=A1=A8 Wang, Sun= ny (HPS SW) =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2020=E5=B9=B412=E6=9C=883=E6=97=A5 1= 7:45 =E6=94=B6=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io; sergestus@yandex.ru =E6=8A=84=E9=80=81: Wang, Sunny (HPS SW) =E4=B8=BB=E9=A2=98: Re: [edk2-devel] Include UEFI application into the BIO= S image to be able to run it from UEFI Shell =20 Hi Sergey, =20 I think you can use FvSimpleFilesystemDxe.=20 https://patches.linaro.org/patch/26959/ https://edk2-devel.narkive.com/tPwPAeo1/pacing-uefi-shell-application-in-f= irmware-volume =20 As for how to include an application into the BIOS image, you can search a= nd check PcdBootManagerMenuFile in EDK II master (https://github.com/tianoc= ore/edk2) to get the details. This is how we add the boot manager menu appl= ication into the BIOS image.=20 =20 By the way, if launching it from the boot manager menu is acceptable, you = can add your application as a boot option that is similar to what we do for= the boot manager menu, but you will need to use LOAD_OPTION_CATEGORY_BOOT = instead of LOAD_OPTION_CATEGORY_APP.=20 Regards, Sunny Wang =20 From: > on behalf of "= sergestus@yandex.ru " > Reply-To: "devel@edk2.groups.io " >, "sergestus@yandex.ru " > Date: Wednesday, December 2, 2020 at 8:06 PM To: "devel@edk2.groups.io " > Subject: [edk2-devel] Include UEFI application into the BIOS image to be a= ble to run it from UEFI Shell =20 Hi, I created an UEFI application that works fine in UEFI Shell. Users launch = the application from USB stick. The application became popular and we want = to include it into the BIOS image. The question is how to properly include = it into the BIOS image to be able to run it from UEFI Shell without any ext= ernal storage device? Thank you, Sergey=20 ------=_NextPart_000_009C_01D6CA22.AE83CB60 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Sergey:

=C2=A0MdeModulePkg FvSimpleFilesystemDxe will map FV as File= System. After FvSimpleFilesystemDxe is built into BIOS image, Shell will sh= ow FV file system, then you can find the built-in application. <= /span>

<= o:p> 

=C2=A0MdeModulePkg LoadFileOnFv2 will install LoadFile pro= tocol for the application in FV image. If BIOS includes it, every applicati= on will have its boot option.

 

Thanks<= /o:p>

Liming

=E5=8F=91=E4=BB=B6=E4=BA=BA: bounce+27952+68233+490= 5953+8761045@groups.io <bounce+27952+68233+4905953+8761045@groups.io>= =E4=BB=A3=E8=A1= =A8 Wang, Sunny (HPS SW)
=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2020=E5=B9=B412=E6=9C=883=E6=97=A5 17:45
=E6=94=B6=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io; sergestus@yandex.ru
=E6=8A=84=E9=80=81: = Wang, Sunny (HPS SW) <sunnywang@hpe.com>
=E4=B8=BB=E9=A2= = =98: Re: [edk2-devel] Inc= lude UEFI application into the BIOS image to be able to run it from UEFI Sh= ell

 

<= span style=3D'color:#203864'>Hi Sergey,

 
I think you can use FvSimpleF=
ilesystemDxe. 

https://p= atches.linaro.org/patch/26959/

https://edk2-deve= l.narkive.com/tPwPAeo1/pacing-uefi-shell-application-in-firmware-volume=

 

As for how to include an application into the BIOS image, yo= u can search and check PcdBootManagerMenuFile in EDK II master (https://github.com/tianocore/edk2) t= o get the details. This is how we add the boot manager menu application int= o the BIOS image.

 

By the way, if launching= it from the boot manager menu is acceptable, you can add your application = as a boot option that is similar to what we do for the boot manager menu, b= ut you will need to use LOAD_OPTION_CATEGORY_BOOT instead of LOAD_OPTION_CA= TEGORY_APP.


Regards,

Sunny Wang

 

From: <deve= l@edk2.groups.io> on behalf of "sergestus@yandex.ru" <sergestus@yandex.ru>
Reply-To: "devel@edk2.groups.io" <devel@edk2.groups.io>, "sergestus@yandex.ru" <sergestus@yandex.ru>
Date: Wednesda= y, December 2, 2020 at 8:06 PM
To: "devel@edk2.groups.io" <devel@edk2.groups.io>
Subject: [edk2-devel= ] Include UEFI application into the BIOS image to be able to run it from UE= FI Shell

 

Hi,
I created an UEFI application tha= t works fine in UEFI Shell. Users launch the application from USB stick. Th= e application became popular and we want to include it into the BIOS image.= The question is how to properly include it into the BIOS image to be able = to run it from UEFI Shell without any external storage device?
Thank you= ,
Sergey

------=_NextPart_000_009C_01D6CA22.AE83CB60--