<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)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:等线;
        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 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* 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:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML 预设格式 字符";
        margin:0cm;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTML
        {mso-style-name:"HTML 预设格式 字符";
        mso-style-priority:99;
        mso-style-link:"HTML 预设格式";
        font-family:"Courier New";}
span.EmailStyle25
        {mso-style-type:personal-reply;
        font-family:等线;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.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=ZH-CN link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='color:#203864'>Sergey:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线'>  MdeModulePkg </span><span lang=EN-US style='color:#203864'>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 lang=EN-US style='color:#203864'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#203864'>  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 lang=EN-US style='font-size:10.5pt;font-family:等线'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线'>Thanks<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线'>Liming<o:p></o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-family:等线'>发件人<span lang=EN-US>:</span></span></b><span lang=EN-US style='font-family:等线'> bounce+27952+68233+4905953+8761045@groups.io <bounce+27952+68233+4905953+8761045@groups.io> </span><b><span style='font-family:等线'>代表 </span></b><span lang=EN-US style='font-family:等线'>Wang, Sunny (HPS SW)<br></span><b><span style='font-family:等线'>发送时间<span lang=EN-US>:</span></span></b><span lang=EN-US style='font-family:等线'> 2020</span><span style='font-family:等线'>年<span lang=EN-US>12</span>月<span lang=EN-US>3</span>日<span lang=EN-US> 17:45<br></span><b>收件人<span lang=EN-US>:</span></b><span lang=EN-US> devel@edk2.groups.io; sergestus@yandex.ru<br></span><b>抄送<span lang=EN-US>:</span></b><span lang=EN-US> Wang, Sunny (HPS SW) <sunnywang@hpe.com><br></span><b>主题<span lang=EN-US>:</span></b><span lang=EN-US> Re: [edk2-devel] Include UEFI application into the BIOS image to be able to run it from UEFI Shell<o:p></o:p></span></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><div><div><p class=MsoNormal><span style='color:#203864'>Hi </span><span lang=EN-US style='color:#203864'>Sergey</span><span style='color:#203864'>,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#203864'><o:p> </o:p></span></p><pre style='margin-bottom:7.5pt;mso-line-height-alt:10.75pt;background:white;word-break:break-all'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#203864'>I think you can use FvSimpleFilesystemDxe. <o:p></o:p></span></pre><p class=MsoNormal><span style='color:#203864'><a href="https://patches.linaro.org/patch/26959/">https://patches.linaro.org/patch/26959/</a></span><o:p></o:p></p><p class=MsoNormal><span style='color:#203864'><a href="https://edk2-devel.narkive.com/tPwPAeo1/pacing-uefi-shell-application-in-firmware-volume">https://edk2-devel.narkive.com/tPwPAeo1/pacing-uefi-shell-application-in-firmware-volume</a><o:p></o:p></span></p><p class=MsoNormal><span style='color:#203864'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#203864'>As for how to include an application into the BIOS image, you can search and check PcdBootManagerMenuFile in EDK II master (<a href="https://github.com/tianocore/edk2">https://github.com/tianocore/edk2</a>) to get the details. This is how we add the boot manager menu application into the BIOS image. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Consolas;color:#24292E;background:white'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#203864'>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. <o:p></o:p></span></p><p class=MsoNormal><span style='color:#203864'><br>Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#203864'>Sunny Wang<o:p></o:p></span></p></div></div></div><p class=MsoNormal><o:p> </o:p></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:12.0pt;color:black'>From: </span></b><span style='font-size:12.0pt;color:black'><<a href="mailto:devel@edk2.groups.io">devel@edk2.groups.io</a>> on behalf of "<a href="mailto:sergestus@yandex.ru">sergestus@yandex.ru</a>" <<a href="mailto:sergestus@yandex.ru">sergestus@yandex.ru</a>><br><b>Reply-To: </b>"<a href="mailto:devel@edk2.groups.io">devel@edk2.groups.io</a>" <<a href="mailto:devel@edk2.groups.io">devel@edk2.groups.io</a>>, "<a href="mailto:sergestus@yandex.ru">sergestus@yandex.ru</a>" <<a href="mailto:sergestus@yandex.ru">sergestus@yandex.ru</a>><br><b>Date: </b>Wednesday, December 2, 2020 at 8:06 PM<br><b>To: </b>"<a href="mailto:devel@edk2.groups.io">devel@edk2.groups.io</a>" <<a href="mailto:devel@edk2.groups.io">devel@edk2.groups.io</a>><br><b>Subject: </b>[edk2-devel] Include UEFI application into the BIOS image to be able to run it from UEFI Shell<o:p></o:p></span></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal>Hi,<br>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 external storage device?<br>Thank you,<br>Sergey <o:p></o:p></p><div><p class=MsoNormal></o:p></span></p></div></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/68308">View/Reply Online (#68308)</a> |    |  <a target="_blank" href="https://groups.io/mt/78700734/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>