[edk2] [PATCH v2] BaseTools: Update Rsa2048Sha256Sign to use openssl standard options

2018-03-26 Thread Liming Gao
sha256 is not the standard option. It should be replaced by sha -sha256. Otherwise, it doesn't work in MAC OS. In V2, update the option to sha1 -sha256. In late openssl version >= 1.1, there is no sha option, but has sha1,sha256. In previous openssl version < 1.1, there is no sha256, but has

Re: [edk2] How to make a memory mapped to FV ffs efi program?

2018-03-26 Thread Andrew Fish
David, I'm not sure what you are asking? Per UEFI Spec boot policy there are well know NVRAM variables that define boot policy. See UEFI Spec 3.3 Globally Defined Variables. Look at BootOrder, BootNext, Boot etc. The memory mapped volume part is tricky as there is not a concept of booting

[edk2] How to make a memory mapped to FV ffs efi program?

2018-03-26 Thread david moheban
Hi, This question has always been very elusive despite hours of google searching. Was wondering how it would be possible to convert an efi program into a memory mapped volume that advertises itself onto your boot menu? For example to convert shell.efi into a bootable item on my boot menu. Thank

Re: [edk2] [PATCH] MdeModulePkg/PartitionDxe: Add partition type guid to installed handle

2018-03-26 Thread Wu, Hao A
The patch is good to me. Reviewed-by: Hao Wu Best Regards, Hao Wu > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > jbrasen@qualcommdatacenter.com > Sent: Monday, March 26, 2018 4:57 PM > To: edk2-devel@lists.01.org

[edk2] [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Remove UHCI and EHCI drivers.

2018-03-26 Thread zwei4
Remove UHCI and EHCI drivers because these USB controllers are not present on E3900 SoC. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: zwei4 --- Platform/BroxtonPlatformPkg/PlatformPkg.fdf | 2 -- 1 file changed, 2 deletions(-) diff --git

[edk2] [Patch] BaseTools: Update Rsa2048Sha256Sign to use openssl standard options

2018-03-26 Thread Liming Gao
sha256 is not the standard option. It should be replaced by sha -sha256. Otherwise, it doesn't work in MAC OS. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liao Jui-peng Signed-off-by: Liming Gao Cc: Michael Kinney

[edk2] [PATCH] BaseTools: argument genfds-multi-thread create GenSec command issue

2018-03-26 Thread Feng, YunhuaX
Issue: genfds-multi-thread create makefile before section file generation, so it get alignment is zero from empty file. It is incorrect. solution: GenSec get section alignment from input file when the input alignment is zero. Cc: Liming Gao Cc: Yonghong Zhu

[edk2] [PATCH] BaseTools: Correct GenSec argument dummy free memory issue

2018-03-26 Thread Feng, YunhuaX
Free DummyFileBuffer and set DummyFileBuffer to NULL. Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yunhua Feng --- BaseTools/Source/C/GenSec/GenSec.c | 3 ++- 1

Re: [edk2] [PATCH] BaseTools/ECC: Add a new exception support

2018-03-26 Thread Zhu, Yonghong
Reviewed-by: Yonghong Zhu Best Regards, Zhu Yonghong -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Yonghong Zhu Sent: Wednesday, March 21, 2018 4:23 PM To: edk2-devel@lists.01.org Cc: Chen, Hesheng

[edk2] [PATCH v1 1/1] BaseTools: refactor repeated RegExp when no special searching is needed.

2018-03-26 Thread Jaben Carsey
use str.replace and try/except. Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey --- BaseTools/Source/Python/Common/Expression.py | 9 + 1 file

Re: [edk2] Question regarding structure PCD

2018-03-26 Thread Kinney, Michael D
Jeff, You can provide default values for structure fields in the DEC file. Liming has an example posted in the following branch: https://github.com/lgao4/edk2/tree/UDK2018 DEC file example in TestPkg: https://github.com/lgao4/edk2/blob/UDK2018/TestPkg/TestPkg.dec Mike > -Original

[edk2] Question regarding structure PCD

2018-03-26 Thread jbrasen . qdt
Hello, I was implementing support for PCDs in my platform using the new structure PCD support, and I had a question regarding this. Is it possible in the dec file to define the default values of a PCD defined as a structure using this format or just the byte array format? Thanks, Jeff

[edk2] [PATCH v1] CorebootPayloadPkg: Conditionally add DebugAgentLib for DXE drivers

2018-03-26 Thread Alex James
To fix building with SOURCE_DEBUG_ENABLE, add DebugAgentLib for LibraryClasses.common.DXE_DRIVER, as is done with Vlv2TbltDevicePkg. Cc: Maurice Ma Cc: Prince Agyeman Cc: Benjamin You Contributed-under: TianoCore

Re: [edk2] [PATCH] OvmfPkg/QemuVideoDxe: handle invalid BltOperation gracefully

2018-03-26 Thread Laszlo Ersek
On 03/26/18 03:26, Ni, Ruiyu wrote: > On 3/24/2018 11:52 AM, Ard Biesheuvel wrote: >> On 23 March 2018 at 21:57, Laszlo Ersek wrote: >>> According to the UEFI spec, EFI_GRAPHICS_OUTPUT_PROTOCOL.Blt() is >>> supposed >>> to catch an invalid BltOperation, and report it with >>>

[edk2] Change default Setup variable in MinnowBoard (for setting eMMCBootMode)

2018-03-26 Thread David Beamonte Arbues
Hello, I am working with a self-designed board based on MinnowBard-Max reference board and I would like to change some default boot behaviour. I am specifically trying to change the value of Setup.eMMCBootMode (which is defined in SouthClusterConfig.vfi) from the default value 0 (auto detect)

Re: [edk2] [PATCH 2/2] Hisilicon/D0x: Enable tftp command by default

2018-03-26 Thread Guo Heyi
Thanks Ray. Does that mean we need build the dynamic command driver separately and store it in other media instead of UEFI fd image? Right now if I include the driver into the fd image, it will be automatically added to EFI Shell command list; we don't need to run the load command. Hi Leif, Is

[edk2] [PATCH] MdeModulePkg/PartitionDxe: Add partition type guid to installed handle

2018-03-26 Thread jbrasen.qdt
From: Jeff Brasen Add the partition type GUID for every partition to the installed handle, this is required per the UEFI specification. "The firmware must add the PartitionTypeGuid to the handle of every active GPT partition using

[edk2] [PATCH edk2-non-osi v2 1/1] Hisilicon/Sm750Dxe: Unify binary and fix GOP frame buffer base

2018-03-26 Thread Heyi Guo
Sm750Dxe is a generic PCIe device driver for SM750 VGA device, so it is not necessary to maintain two different binary images for D03 and D05 respectively. The main difference between D03 and D05 is the implementation of SerialPortLib, which causes BaseDebugLibSerialPort to be different. So we

[edk2] [PATCH edk2-non-osi v2 0/1] Hisilicon/D0x/Sm750: Fix GOP framebuffer

2018-03-26 Thread Heyi Guo
The code in SM750 driver treated the address returned from PciIo->GetBarAttributes() as device address; this should be fixed after edk2 commit dc080d3 since GetBarAttributes() returns host address from then on. Binaries for D03 and D05 are also be unified after using null DebugLib. Binary files