<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:新細明體;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@新細明體";
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#2F5496;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#2F5496">Sorry for the delay, Sergey. <o:p>
</o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496">See my Comment inline with [Sunny]. I also merged Liming’s informative email into this email in case you missed it.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496">Sunny Wang<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496"><o:p> </o:p></span></p>
<p class="MsoNormal"><b>From:</b> gaoliming <<a href="mailto:gaoliming@byosoft.com.cn">gaoliming@byosoft.com.cn</a>>
<br>
<b>Sent:</b> Friday, December 4, 2020 9:49 AM<br>
<b>To:</b> <a href="mailto:devel@edk2.groups.io">devel@edk2.groups.io</a>; Wang, Sunny (HPS SW) <<a href="mailto:sunnywang@hpe.com">sunnywang@hpe.com</a>>;
<a href="mailto:sergestus@yandex.ru">sergestus@yandex.ru</a><br>
<b>Subject:</b> <span lang="ZH-TW" style="font-family:"新細明體",serif">回复</span>: [edk2-devel] Include UEFI application into the BIOS image to be able to run it from UEFI Shell<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#203864;mso-fareast-language:ZH-CN">Sergey:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:DengXian;mso-fareast-language:ZH-CN"> MdeModulePkg
</span><span style="color:#203864;mso-fareast-language:ZH-CN">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.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-fareast-language:ZH-CN"> MdeModulePkg LoadFileOnFv2 will install LoadFile protocol for the application in FV image. If BIOS includes it, every application will have its boot option.
</span><span style="font-size:10.5pt;font-family:DengXian;mso-fareast-language:ZH-CN"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:DengXian;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:DengXian;mso-fareast-language:ZH-CN">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:DengXian;mso-fareast-language:ZH-CN">Liming<span style="color:#2F5496"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="color:#2F5496"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>From:</b> sergestus@yandex.ru <sergestus@yandex.ru> <br>
<b>Sent:</b> Friday, December 4, 2020 5:43 PM<br>
<b>To:</b> Wang@mx0a-002e3701.pphosted.com; Wang, Sunny (HPS SW) <sunnywang@hpe.com>; devel@edk2.groups.io<br>
<b>Subject:</b> Re: [edk2-devel] Include UEFI application into the BIOS image to be able to run it from UEFI Shell<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi Sunny,<br>
<br>
Thank you very much for the answer! Please, clarify if I got you right:<br>
1. To make accessible volume in the uefi shell I must include EFI_FIRMWARE_VOLUME2_PROTOCOL(FvSimpleFilesystemDxe) into the BIOS.<span style="color:#2F5496"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496">[Sunny] Yes<o:p></o:p></span></p>
<p class="MsoNormal"><br>
2. To include uefi application in the BIOS image I just need to include it MdeModulePkg.<span style="color:#2F5496"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496">[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.</span>
<span style="color:#2F5496"><o:p></o:p></span></p>
<p class="MsoNormal"><br>
3. To run application as a boot manager it GUID should be defined in <span style="color:#203864">PcdBootManagerMenuFile PCD.</span><span style="color:#2F5496"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496">[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 “</span>boot manager menu<span style="color:#2F5496">” application into BIOS image and do the similar things for your application.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864"><br>
4. To run </span>application from boot manager it need to use <span style="color:#203864">LOAD_OPTION_CATEGORY_BOOT option.<br>
</span><span style="color:#2F5496">[Sunny] Yeah. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#203864"><br>
Thank you,<br>
Sergey</span> <span style="color:#2F5496"><o:p></o:p></span></p>
</div>
</body>
</html>


 <div width="1" style="color:white;clear:both">_._,_._,_</div> <hr> Groups.io Links:<p>   You receive all messages sent to this group.    <p> <a target="_blank" href="https://edk2.groups.io/g/devel/message/68379">View/Reply Online (#68379)</a> |    |  <a target="_blank" href="https://groups.io/mt/78657676/1813853">Mute This Topic</a>  | <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br>    <a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> | <a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |  <a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>  [edk2-devel-archive@redhat.com]<br> <div width="1" style="color:white;clear:both">_._,_._,_</div>