[edk2] Efi/Tiano Compress

Subject: [edk2] Efi/Tiano Compress

From: galla rao <gallagnv.rao@gmail.com>

To: edk2-devel@lists.sourceforge.net

Date: 2013-08-23 23:14:13

Hello Everyone
Can any one please elaborate how compression in uEFI environment can help
reduce a third-party drive size.
I havea scenario where the compiled driver size reduced to 1/3rd of it's size by using EfiCompress.exe with options Efi/Tiano
The Algo it uses it LZ77/Huffman
I could not load this compiled driver from Shell
Do i have to Decompress as how it is defined in UDK2010 in PciRomTable.c
if (EfiRomHeader->CompressionType == EFI_PCI_EXPANSION_ROM_HEADER_COMPRESSED) {
Status = gBS->LocateProtocol (&gEfiDecompressProtocolGuid, NULL, (VOID **) &Decompress);
if (EFI_ERROR (Status)) {
SkipImage = TRUE;
} else {
SkipImage = TRUE;
Status = Decompress->GetInfo (
Decompress,
ImageBuffer,
ImageLength,
&DestinationSize,
&ScratchSize
Can i decompress it before i load the driver from Shell
Kindly provide the inputs, Thanks in Advance
Regards
Ranga