Hi,

 

Thanks for providing the inputs here. Really appreciated.

I will try to resume the work(had to put it aside due to other priorities). Please expect the patch by EOW.

 

Thanks,

Vineel

From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of yi1 li via groups.io
Sent: Tuesday, February 22, 2022 6:33 PM
To: Vineel Kovvuri <vineel.kovvuri@gmail.com>; devel@edk2.groups.io
Subject: [EXTERNAL] Re: [edk2-devel] [PATCH 1/2] Reconfigure OpensslLib to add elliptic curve chipher algorithms

 

Hi Vineel,

Are you still working on this issue? I'm glad to see that edk2 will enable EC and other crypto features and would like some advice.

I found from the previous discussion that there are only some issues with Ovmf binary size left,
Have you tried enlarging the size of DXEFV in OvmfPkgIa32X64.fdf, I think this is the most direct way to solve this problem.

Such like:

diff --git a/OvmfPkg/OvmfPkgIa32X64.fdf b/OvmfPkg/OvmfPkgIa32X64.fdf

index 097fd428d5..1de0aad9f4 100644

--- a/OvmfPkg/OvmfPkgIa32X64.fdf

+++ b/OvmfPkg/OvmfPkgIa32X64.fdf

@@ -62,10 +62,10 @@ FV = SECFV

 

 [FD.MEMFD]

 BaseAddress   = $(MEMFD_BASE_ADDRESS)

-Size          = 0xD00000

+Size          = 0xE00000

 ErasePolarity = 1

 BlockSize     = 0x10000

-NumBlocks     = 0xD0

+NumBlocks     = 0xE0

 

 0x000000|0x006000

 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesSize

@@ -83,7 +83,7 @@ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase|gUefiOvmfPkgTokenSpaceGuid.P

 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvSize

 FV = PEIFV

 

-0x100000|0xC00000

+0x100000|0xD00000

 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvSize

 FV = DXEFV

Please cc me if there is any other progress, my team and I will provide support as far as possible.
Thanks!