<div dir="ltr">Hi everyone,<div>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.</div><div>This is how I defined the file in OvmfX64.fdf:</div><div>____________________________________</div><div>[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<br></div><div>__________________________________________</div><div><br></div><div>and this is how I am using the GetSectionFromAnyFv() function:</div><div> Status = GetSectionFromAnyFv (<br> FileGuid,<br> EFI_SECTION_RAW,<br> 0,<br> (VOID **)&BMPData,<br> &BMPDataSize<br> );<br></div><div>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</div></div>
<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/100544">View/Reply Online (#100544)</a> |
|
<a target="_blank" href="https://groups.io/mt/97288408/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>