Re: [edk2] write file in the USB Device

2015-05-22 Thread Aaron . Pop
The Open protocol function returns a EFI_FILE_PROTOCOL for the opened file. You need to use that protocol instance to write, not the root file system protocol. From: Andrew Fish To: edk2-devel@lists.sourceforge.net, Date: 05/22/2015 12:36 PM Subject:Re: [edk2] write file in

Re: [edk2] how to get the file length

2015-06-01 Thread Aaron . Pop
The GetInfo function of the EFI_FILE_PROTOCOL can be used to retrieve the information about the file. You will need to use the EFI_FILE_PROTOCOL instance from opening the specific file instance. for example, if you wanted to open Info.txt in the root of the file system, you should use the roo

Re: [edk2] EmulatorPkg rev 17865 is broken

2015-07-07 Thread Aaron . Pop
You will need to install the uuid development package from your linux distribution. Here is a link that describes how to setup an ubuntu environment. https://wiki.ubuntu.com/UEFI/EDK2 Best Personal Regards, Aaron Pop Senior Software Engineer Phone: +1 858-457-2600 Ext. 318 Fax: +1 858-457

Re: [edk2] EmulatorPkg rev 17865 is broken

2015-07-07 Thread Aaron . Pop
Can you please run two commands: gcc -version and build.sh and get the following information: [aaron@localhost EmulatorPkg]$ gcc --version gcc (GCC) 5.1.1 20150618 (Red Hat 5.1.1-4) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions.

Re: [edk2] EmulatorPkg rev 17865 is broken

2015-07-07 Thread Aaron . Pop
cus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ ___ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.ne

[edk2] [Patch] VfrCompile Crash on efivarstore statement

2014-12-19 Thread Aaron Pop
The following VFR statement was causing the VfrCompile to crash: efivarstore UINT8, attribute = 0, name = STRING_TOKEN(STR_TEST3), varsize = 1, guid = { 0xf648132a, 0x4193, 0x4c13, { 0x85, 0x71, 0x33, 0xf0, 0x6d, 0x53, 0x74, 0xa9 } }; In the vfrStatementVarStor

[edk2] [PATCH] MdeModulePkg: PcdPeim: Unaligned PcdSet in PEI for architectures requiring alignment

2014-12-29 Thread Aaron Pop
On architectures that require aligned reads/writes, the PCD PEIM can cause a misaligned access exception. This stems from the PcdPeim's SetWorker not using the WriteUnalignedN functions from the BaseLib. The attached patch file includes modifications to the PEIM that enforce unaligned access f

Re: [edk2] [Patch] VfrCompile Crash on efivarstore statement

2014-12-30 Thread Aaron Pop
urceforge.net<mailto:edk2-devel@lists.sourceforge.net> Subject: Re: [edk2] [Patch] VfrCompile Crash on efivarstore statement Aaron, Thanks to provide this patch. Code has checked in r16544. Thanks, Eric From: Aaron Pop [mailto:aar...@ami.com] Sent: Saturday, December 20, 2014 12:41 AM To: edk2-devel@li

Re: [edk2] [PATCH] MdeModulePkg: PcdPeim: Unaligned PcdSet in PEI for architectures requiring alignment

2015-01-07 Thread Aaron Pop
...@intel.com] Sent: Tuesday, January 06, 2015 8:35 PM To: edk2-devel@lists.sourceforge.net; Aaron Pop Cc: Tian, Feng Subject: RE: [edk2] [PATCH] MdeModulePkg: PcdPeim: Unaligned PcdSet in PEI for architectures requiring alignment Aaron, Sorry for late response. Could you let me know it's a

Re: [edk2] [Patch] VfrCompile Crash on efivarstore statement

2015-01-07 Thread Aaron Pop
ck it. So your code caused vfrcompiler crushed. Now I add code to check the varstore type filed for the old style. If user not use string identifier, vfrcompiler will report an error. Please review this new patch. Thanks, Eric From: Aaron Pop [mailto:aar...@ami.com] Sent: Wednesday, December 31,

Re: [edk2] [PATCH] MdeModulePkg: PcdPeim: Unaligned PcdSet in PEI for architectures requiring alignment

2015-01-08 Thread Aaron Pop
lePkg\Universal\PCD\Pei\Pcd\OUTPUT and $(OUTPUT_DIRECTORY)\$(TARGET)_$(TOOL_CHAIN_TAG)\ X64\MdeModulePkg\Universal\PCD\Dxe\Pcd\OUTPUT. 3. Share which PCD set in PEI cause the issue. Thanks, Star -Original Message- From: Aaron Pop [mailto:aar...@ami.com] Sent: Thursday, January 08, 2015 5:40

Re: [edk2] [PATCH] MdeModulePkg: PcdPeim: Unaligned PcdSet in PEI for architectures requiring alignment

2015-01-09 Thread Aaron Pop
they need to cover the case of VPD PCDs. The value of VPD PCDs are not in PCD database and only for Read, and their offset could be specified by platform developer in *.dsc. Thanks, Star -Original Message- From: Aaron Pop [mailto:aar...@ami.com] Sent: Friday, January 09, 2015 6:16 AM To:

[edk2] [Patch] VfrCompile Support Default statement for OrderedList controls

2015-04-21 Thread Aaron . Pop
Hi Eric and Yingke, Please find attached a potential path for allowing ordered lists to have default statements that are more than one element. I've also attached the test VFR used to demonstrate the syntax. Please let me know your opinions on if the change in the syntax will be allowable. B

Re: [edk2] [Patch] VfrCompile Support Default statement for OrderedList controls

2015-04-22 Thread Aaron . Pop
Regards, Aaron [attachment "Tool update for orderedlist opcode v3.patch" deleted by Aaron Pop/cus/congatec] [attachment "text.vfr" deleted by Aaron Pop/cus/congatec] -- BPM Camp - Free Virtual Workshop M

Re: [edk2] [Patch 1/2] BaseTools: Enhance the check for numeric opcode with EFI_IFR_DISPLAY_INT_DEC attribute.

2015-04-30 Thread Aaron . Pop
Hi Eric, I think this patch still needs some work because it isn't enforcing the min/max of signed integers. In the below example, the following error is generated: typedef struct { UINT8 Nothing[1]; } MY_EFI_VARSTORE_DATA; numeric varid = MY_EFI_VARSTORE_DATA.Nothing,

Re: [edk2] [Patch 1/2] BaseTools: Enhance the check for numeric opcode with EFI_IFR_DISPLAY_INT_DEC attribute.

2015-05-04 Thread Aaron . Pop
if (MaxU1 < MinU1) { +_PCATCH (VFR_RETURN_INVALID_PARAMETER, A->getLine(), "Maximum can't be less than Minimum"); + }

Re: [edk2] [Patch 1/2] BaseTools: Enhance the check for numeric opcode with EFI_IFR_DISPLAY_INT_DEC attribute.

2015-05-05 Thread Aaron . Pop
N_INVALID_PARAMETER, A->getLine(), "Maximum can't be less than Minimum"); + } }

Re: [edk2] GetNext of Smbios protocol not working

2015-07-23 Thread Aaron . Pop
th : %d\n\n", SmbiosRecord->Length); Print(L"SmbiosRecord->Handle : %d\n\n", SmbiosRecord->Handle); Print(L"Sizeof SmbiosRecord : %d\n", sizeof(SmbiosRecord)); FreePool (SmbiosRecord); return EFI_SUCCESS; Best Personal Regards, Aaron Pop Senior Soft