<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:"\@宋体";
        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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:12.0pt;
        font-family:宋体;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:等线;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:等线;}
@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=ZH-CN link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span lang=EN-US>FVMAIN_COMPACT is not reported to DXE. So, it can’t be found in DXE phase. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Liming</span><span lang=EN-US style='font-size:10.5pt;font-family:等线'><o:p></o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:等线'>发件人<span lang=EN-US>:</span></span></b><span lang=EN-US style='font-size:11.0pt;font-family:等线'> devel@edk2.groups.io <devel@edk2.groups.io> </span><b><span style='font-size:11.0pt;font-family:等线'>代表 </span></b><span lang=EN-US style='font-size:11.0pt;font-family:等线'>Alireza Banejad<br></span><b><span style='font-size:11.0pt;font-family:等线'>发送时间<span lang=EN-US>:</span></span></b><span lang=EN-US style='font-size:11.0pt;font-family:等线'> 2023</span><span style='font-size:11.0pt;font-family:等线'>年<span lang=EN-US>3</span>月<span lang=EN-US>2</span>日<span lang=EN-US> 20:16<br></span><b>收件人<span lang=EN-US>:</span></b><span lang=EN-US> devel@edk2.groups.io; alibanejad1376@gmail.com<br></span><b>主题<span lang=EN-US>:</span></b><span lang=EN-US> Re: [edk2-devel] GetSectionFromAnyFv doesnt find file from FV<o:p></o:p></span></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><p class=MsoNormal><span lang=EN-US>So, I managed to solve this issue by adding my file to the [FV.DXEFV] section. I don't know why my files aren't found when I add them in [FV.FVMAIN_COMPACT] section.<o:p></o:p></span></p><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><div><p class=MsoNormal><span lang=EN-US>On Thu, Mar 2, 2023 at 3:16</span><span lang=EN-US style='font-family:"Times New Roman",serif'> </span><span lang=EN-US>PM Alireza Banejad via <a href="http://groups.io">groups.io</a> <alibanejad1376=<a href="mailto:gmail.com@groups.io">gmail.com@groups.io</a>> wrote:<o:p></o:p></span></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><p class=MsoNormal><span lang=EN-US>Any thoughts?<o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><div><p class=MsoNormal><span lang=EN-US>On Tue, Feb 28, 2023 at 3:32</span><span lang=EN-US style='font-family:"Times New Roman",serif'> </span><span lang=EN-US>PM Alireza Banejad via <a href="http://groups.io" target="_blank">groups.io</a> <alibanejad1376=<a href="mailto:gmail.com@groups.io" target="_blank">gmail.com@groups.io</a>> wrote:<o:p></o:p></span></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><p class=MsoNormal><span lang=EN-US>Hi everyone,<o:p></o:p></span></p><div><p class=MsoNormal><span lang=EN-US>I have this bmp file which I defined in the FV.FVMAIN_COMPACT section of the OvmfPkgX64.fdf file. when I get the a hexdump on the built firmware (OVMF.fd) I can see the file inside it. but whenever I call the the GetSectionFromAnyFv() function from a Application it fails to find the file.<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>This is how I defined the file in OvmfX64.fdf:<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>____________________________________<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>[FV.FVMAIN_COMPACT]<br>FvNameGuid         = 48DB5E17-707C-472D-91CD-1613E7EF51B0<br>FvAlignment        = 16<br>ERASE_POLARITY     = 1<br>MEMORY_MAPPED      = TRUE<br>STICKY_WRITE       = TRUE<br>LOCK_CAP           = TRUE<br>LOCK_STATUS        = TRUE<br>WRITE_DISABLED_CAP = TRUE<br>WRITE_ENABLED_CAP  = TRUE<br>WRITE_STATUS       = TRUE<br>WRITE_LOCK_CAP     = TRUE<br>WRITE_LOCK_STATUS  = TRUE<br>READ_DISABLED_CAP  = TRUE<br>READ_ENABLED_CAP   = TRUE<br>READ_STATUS        = TRUE<br>READ_LOCK_CAP      = TRUE<br>READ_LOCK_STATUS   = TRUE<br><br><br><br><br>FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {<br>   SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {<br>     #<br>     # These firmware volumes will have files placed in them uncompressed,<br>     # and then both firmware volumes will be compressed in a single<br>     # compression operation in order to achieve better overall compression.<br>     #<br>     SECTION FV_IMAGE = PEIFV<br>     SECTION FV_IMAGE = DXEFV<br>   }<br> }<br>  FILE FREEFORM = AFDAEAB5-3F81-4E93-8EE3-228434BA283D {<br>    SECTION RAW = OemPkg/FrontPage/Resources/FrontpageLogo.bmp<br>  }<br><br><br><br>!include FvmainCompactScratchEnd.fdf.inc<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>__________________________________________<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>and this is how I am using the GetSectionFromAnyFv() function:<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>  Status = GetSectionFromAnyFv (<br>             FileGuid,<br>             EFI_SECTION_RAW,<br>             0,<br>             (VOID **)&BMPData,<br>             &BMPDataSize<br>             );<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>So there's nothing much to it, yet I still don't know why it fails to find the file. I also must mention that I checked the GUID being passed to the function and the GUID of the file, they are both the same. I still don't know what's going on<o:p></o:p></span></p></div></div></blockquote></div></blockquote></div><div><p class=MsoNormal></o:p></span></p></div></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/100972">View/Reply Online (#100972)</a> |


  

|

  <a target="_blank" href="https://groups.io/mt/97511839/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>