Re: [EDK DEV] What is ORG file ?

Subject: Re: [EDK DEV] What is ORG file ?

From: Adhyas Avasthi <aavasthi@vmware.com>

To: "dev@edk.tianocore.org" <dev@edk.tianocore.org>

Date: 2008-06-17 17:19:55

Thanks Liming. So that means that if I do not care about compressing my
FFS files (i.e. remove the Compress statement from IMAGE_SCRIPT), my ORG
and FFS files are going to be the exact same copies, right?

- Adhyas

Gao, Liming wrote:
> Hi,
>   ORG file and FFS file is generated both by GenFfsFile. ORG file is also the FFS file with the uncompressed section files. But FFS file is made of the section files described in the Pkg file.
>   So, ORG file is always the FFS file with the uncompressed section files. They can be placed into one FV image, then compress them together to get the better compression ratio to reduce the size.
>
>   Take the following package for DxeMain as the example, the ORG file is the FFS file with the uncompressed DxeMain.pe32 section. But the FFS file is combined of the compressed DxeMain.pe32 section.
>
> [Package.BS_DRIVER.DxeMainStripped]
> PACKAGE.INF
> \[.]
> BASE_NAME                   = $(BASE_NAME)
> FFS_FILEGUID                = $(FILE_GUID)
> FFS_FILETYPE                = EFI_FV_FILETYPE_DXE_CORE
> FFS_ATTRIB_CHECKSUM         = TRUE
>
> IMAGE_SCRIPT =
> {
>   Compress ($(COMPRESS_METHOD)) {
>     $(BASE_NAME).pe32
>   }
> }
>
> Thanks
> Liming
> -----Original Message-----
> From: Adhyas Avasthi [mailto:aavasthi@vmware.com]
> Sent: 2008617 6:37
> To: dev@edk.tianocore.org
> Subject: [EDK DEV] What is ORG file ?
>
> I see a bunch of ORG files created during the build process. Most of
> them have the same size as the FFS file for that module. Some of them
> even have the same diffs (like PeiMain, if I remember correctly). I
> cannot seem to figure out anything about this ORG. What format is this?
> Why a different format than what modules already create (FFS, that is) ?
>
> I haven't found enough time to hex dump ORG file and find out what
> exactly it is from the inside. Would really appreciate if someone can
> throw some pointers. Also, if I can know the build files responsible for
> creating the ORG files.
>
> - Adhyas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@edk.tianocore.org
> For additional commands, e-mail: dev-help@edk.tianocore.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@edk.tianocore.org
> For additional commands, e-mail: dev-help@edk.tianocore.org
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@edk.tianocore.org
For additional commands, e-mail: dev-help@edk.tianocore.org