Re: [edk2] GetTime - TimeZone

2015-09-03 Thread Andrew Fish
from values set via SetTime(). I would posit if the RTC stores the TimeZone and Daylight information, then it makes sense to return that info. Thanks, Andrew Fish > ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c > implementation may need to be reviewed. > &g

Re: [edk2] sprintf

2015-08-27 Thread Andrew Fish
aster/AppPkg/Applications/Main/Main.inf> All the drivers, and most of the edk2 code just uses: https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Library/PrintLib.h <https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Libra

Re: [edk2] 答复: can ovmf boot from mbr partioned disk

2015-08-16 Thread Andrew Fish
can contain an unlimited number of OS loaders. The OS installer writes an NVRAM variable that sets the name of the 1st stage OS loader (EFI Application). Thanks, Andrew Fish > -- > Rod Smith > rodsm...@rodsbooks.com > http://www.rodsbooks.com > > -

Re: [edk2] can ovmf boot from mbr partioned disk

2015-08-15 Thread Andrew Fish
> On Aug 15, 2015, at 9:01 PM, Fanhenglong wrote: > > > > 发件人: Andrew Fish [mailto:af...@apple.com <mailto:af...@apple.com>] > 发送时间: 2015年8月16日 11:44 > 收件人: Fanhenglong > 抄送: edk2-devel@lists.sourceforge.net <mailto:edk2-devel@lists.sourceforge.net> >

Re: [edk2] can ovmf boot from mbr partioned disk

2015-08-15 Thread Andrew Fish
> On Aug 15, 2015, at 7:24 PM, Fanhenglong wrote: > > Hi all, > > I have some mbr partioned disk, my system only support to boot by uefi, > I can’t convert mbr to gpt, > So I want to know if I can use ovmf to boot mbr disk. > UEFI supports booting from MBR, and GPT

Re: [edk2] [PATCH] BaseTools: Add GCC49LTO tool chain: GCC49 with link time optimization

2015-08-14 Thread Andrew Fish
> On Aug 14, 2015, at 8:36 AM, David Woodhouse wrote: > > On Fri, 2015-08-14 at 08:13 -0700, Andrew Fish wrote: >> >> https://github.com/tianocore/edk2/blob/master/MdeModulePkg/MdeModulePkg.dsc >> [LibraryClasses.ARM, LibraryClasses.AARCH64] >> # >&g

Re: [edk2] [PATCH] BaseTools: Add GCC49LTO tool chain: GCC49 with link time optimization

2015-08-14 Thread Andrew Fish
ides the instrinsic functions generated by a given compiler. # [LibraryClasses.ARM] and NULL mean link this library into all ARM images. # NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf It is not a full set of intrinsics, just what is needed for the edk2 codin

Re: [edk2] __executable_start

2015-08-10 Thread Andrew Fish
able address. So in general things are never linked to their executable address. Thanks, Andrew Fish > Thanx. > > On Sun, Aug 9, 2015 at 9:16 PM, Ard Biesheuvel <mailto:ard.biesheu...@linaro.org>> wrote: > On 9 August 2015 at 23:20, Narinder Dhillon <mailto:ndhillo...

Re: [edk2] what is way the to check available RT services

2015-07-27 Thread Andrew Fish
IGH_MONO_COUNTGetNextHighMonotonicCount; EFI_RESET_SYSTEMResetSystem; // // UEFI 2.0 Capsule Services // EFI_UPDATE_CAPSULE UpdateCapsule; EFI_QUERY_CAPSULE_CAPABILITIES QueryCapsuleCapabilities; // // Miscellaneous UEFI 2.0 Service // EFI_QUERY_VAR

Re: [edk2] GetNext of Smbios protocol not working

2015-07-23 Thread Andrew Fish
. All the spec based data structures already have types, that have been tested. Thanks, Andrew Fish > Shubha D. Ramani > shubharam...@gmail.com <mailto:shubharam...@gmail.com> > shubharam...@yahoo.com <mailto:shubharam...@yahoo.com> > > > On Thursday, July 23,

Re: [edk2] GetNext of Smbios protocol not working

2015-07-23 Thread Andrew Fish
.Length is the length of the entire SMBIOS structure, not the header. If you just want the header it would we be sizeof (EFI_SMBIOS_TABLE_HEADER). Sp just standard C bugs. Thanks, Andrew Fish > typedef struct { > EFI_SMBIOS_TYPE Type; > UINT8 Length; > EFI_SMBIOS_

Re: [edk2] Merging OpenSSL support

2015-07-23 Thread Andrew Fish
ents the 3rd party. You have to update the DEC if the non edk2 project changes its include path, but otherwise your good to go. Thanks, Andrew Fish > So we can't just tell it to include files > from the openssl/include and openssl/crypto/include/ directories? > > So far I&#

Re: [edk2] [PATCH] CryptoPkg: OpensslLib: reintroduce EFIAPI for ERR_add_error_data()

2015-07-23 Thread Andrew Fish
orted via the function attribute in clang, it was not a few years ago when we checked. So it is possible to add custom targets to LLVM to support the ABI/image format you care about. Some one could add -target x86_64-pc-win32-elf for example. Our firmware team added -target x86_64-pc-win32-macho

Re: [edk2] How can I get an efi version of acpidump ?

2015-07-15 Thread Andrew Fish
acpica/acpica.dsc -a X64 -t XCODE5 This compiles for me with Xcode 6.4 on a Mac. Probably will just work for gcc, and likely to work for VC++ after the acpidump.inf [BuildOptions] section is updated to support VC++. You just need to change the -t, tools target in the build command to give it a try. C

Re: [edk2] [PATCH] BaseTools: Add GCC49LTO tool chain: GCC49 with link time optimization

2015-07-15 Thread Andrew Fish
RCH64_CC_FLAGS = $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) DEF(GCC_AARCH64_CC_FLAGS) -Wno-address -O0 RELEASE_ARMLINUXGCC_AARCH64_CC_FLAGS = $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) DEF(GCC_AARCH64_CC_FLAGS) -Wno-address -Wno-unused-but-set-variable Thanks, Andrew Fish > Thanks, > Scott > > > -Origina

Re: [edk2] booting linux from SD memory card

2015-07-15 Thread Andrew Fish
_SUCCESS The resulting handle was returned. @retval EFI_NOT_FOUND No handles match the search. @retval EFI_INVALID_PARAMETER Protocol is NULL. @retval EFI_INVALID_PARAMETER DevicePath is NULL. @retval EFI_INVALID_PARAMETER A handle matched the search and Device is NULL. **

Re: [edk2] Filesystem support

2015-07-15 Thread Andrew Fish
BR_TYPE_EFI_PARTITION_TABLE_HEADER 0x02 #define NO_DISK_SIGNATURE 0x00 #define SIGNATURE_TYPE_MBR0x01 #define SIGNATURE_TYPE_GUID 0x02 Thanks, Andrew Fish > > I am not getting from where it is populating these values of HD(). > > > Now on selecting FS0, I s

Re: [edk2] upload two drivers

2015-07-15 Thread Andrew Fish
> On Jul 15, 2015, at 2:55 AM, Laszlo Ersek wrote: > > On 07/14/15 23:49, Andrew Fish wrote: >> >>> On Jul 14, 2015, at 2:21 PM, Laszlo Ersek >> <mailto:ler...@redhat.com> >>> <mailto:ler...@redhat.com <mailto:ler...@redhat.com>>>

Re: [edk2] [PATCH] BaseTools: Add mechanism to override or add CC_FLAGS

2015-07-14 Thread Andrew Fish
2/code/trunk/edk2/BaseTools/Conf/tools_def.template> *_GCC46_ARM_PLATFORM_FLAGS = -march=armv7-a DEFINE GCC46_ARM_CC_FLAGS = $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) DEF(GCC44_ALL_CC_FLAGS) DEF(GCC_ARM_CC_FLAGS) -fstack-protector DEBUG_GCC46_ARM_CC_FLAGS = DEF(GCC46_ARM_CC_FLAGS) -O0 RELEASE_

Re: [edk2] upload two drivers

2015-07-14 Thread Andrew Fish
gt; You could also convert one of the drivers to a NULL library (change the INF file), and add that new NULL library to the DSC statement for the other driver. Conceptually the build system could support this behavior, since the library constructors and entry point functions are auto-

Re: [edk2] [patch] NetworkPkg: Fix an error that the call function declared implicitly.

2015-07-13 Thread Andrew Fish
code would break an emulator. How does this code compile for both the ARM architectures? Why not use the existing library API, GetPerformanceCounter() that abstracts the implementation. Thanks Andrew Fish > -Original Message- > From: Fu, Siyuan > Sent: Tuesday, July 14, 2015

Re: [edk2] [patch] NetworkPkg: Fix an error that the call function declared implicitly.

2015-07-13 Thread Andrew Fish
Why not use some abstraction like the TimerLib? Sent from my iPhone > On Jul 13, 2015, at 6:55 PM, Fu, Siyuan wrote: > > Lubo, > > What's the DnsHeader->Identification means? Why it use the value of TSC > register? > > Siyuan > > -Original Message- > From: Zhang, Lubo > Sent: Tuesd

Re: [edk2] edk2 build problems

2015-07-09 Thread Andrew Fish
July2012.zip/download> > The error message implies your MdeModulePkg is not the same as the ZIP. The ZIP file MdeModulePkg\Library\UefiHiiLib\HiiString.c:253 matches the MdePkg library include file. PlatformLanguage = GetEfiGlobalVariable (L"PlatformLang"); So you did somethi

Re: [edk2] edk2 build problems

2015-07-09 Thread Andrew Fish
n?)? I would not expect you could have gotten the MdePkg and MdeModulePkg from the same place and see this error? Thanks, Andrew Fish > Thanks. > > From: tony...@hotmail.com <mailto:tony...@hotmail.com> > To: edk2-devel@lists.sourceforge.net <mailto:edk2-devel@lists.sour

Re: [edk2] Read string from KeyBoard

2015-07-09 Thread Andrew Fish
What are you trying to do? A shell application can use ShellPromptForResponse(), or ShellPromptForResponseHii() if you need to localize the string. Thanks, Andrew Fish > > -- > Don't Limit Your Business.

Re: [edk2] edk2 build problems

2015-07-08 Thread Andrew Fish
> other. > Don’t know about that, but you don’t need any system include files to compile the MdeModulePkg. All the include files are in the edk2 that you need. The system include files are only needed for OS hosted build tools, and the emulators. Thanks, Andrew Fish > I will

Re: [edk2] [PATCH] BaseTools/GCC: allow unused but set variables

2015-07-08 Thread Andrew Fish
raries. The call is in place to fix the library issue. To make the libraries portable the PCD reference needs to be an external reference from the library. If you use the PCD form that accesses the global, that does not dead strip, as that global lives in AutoGen.c and can only be optimized via

Re: [edk2] [PATCH] BaseTools/GCC: allow unused but set variables

2015-07-08 Thread Andrew Fish
sure about that? I wonder is some hackery could make MDEPKG_NDEBUG path behave the same way? #else #define ASSERT(Expression) do {} while (FALSE && (Expression)) #endif Maybe we could find something that all the compilers dead strip, but behaves more like the non #if path? Thanks, Andr

Re: [edk2] [PATCH] BaseTools/GCC: allow unused but set variables

2015-07-08 Thread Andrew Fish
BUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED) != 0) { CpuBreakpoint (); } else if ((PcdGet8(PcdDebugPropertyMask) & DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED) != 0) { CpuDeadLoop (); } } Thanks, Andrew Fish -- Don&#

Re: [edk2] [PATCH] BaseTools/GenFw: Added AArch64 page-relative relocations

2015-07-08 Thread Andrew Fish
uld add some code to pack the TE header down to the start of the .text section and get that space back. Thanks, Andrew Fish > -- > Ard. -- Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud

Re: [edk2] [PATCH] BaseTools/GenFw: Added AArch64 page-relative relocations

2015-07-08 Thread Andrew Fish
ains SectionAlignment and FileAlignment fields in the optional (for COFF, required for PE/COFF) headers? SectionAlignment is the alignment of sections when copied to memory. FileAlignment is the alignment in the PE/COFF file. Thanks, Andrew Fish > Every PE/COFF loader needs to be modified (

Re: [edk2] How to use same UEFI Option ROM binary for devices with different device ID?

2015-07-08 Thread Andrew Fish
the image handles found in rules (1), (2), (3), and (4) above are removed. The remaining image handles are sorted from highest to lowest based on the Version field of the EFI_DRIVER_BINDING_PROTOCOL instance associated with each image handle. Th

Re: [edk2] NetworkPkg\Application\Ping6 does not compile

2015-07-07 Thread Andrew Fish
hellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf Vlv2TbltDevicePkg/PlatformPkgIA32.dsc:274: ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf Vlv2TbltDevicePkg/PlatformPkgX64.dsc:274: ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf Looks like: ShellLib|ShellPkg/Library/UefiShellLib

Re: [edk2] [PATCH V2 3/4] Accept VT220 DEL and function keys for TTY terminal type

2015-07-07 Thread Andrew Fish
*RawFiFo; UNICODE_FIFO*UnicodeFiFo; EFI_KEY_FIFO*EfiKeyFiFo; EFI_UNICODE_STRING_TABLE*ControllerNameTable; EFI_EVENT TimerEvent; EFI_EVENT TwoSecondTimeOut; UINT32

Re: [edk2] XHCI with ARM-v8 based platform

2015-07-06 Thread Andrew Fish
ssue even if we wrongly fill this register with host address) but > ARM platforms aren't. > On ARM it is not just 1:1 mapping, but also cache coherency. You can’t do DMA into catchable memory. So the Map(), Flush(), Unmap(), etc. functions hide the implementation detail from the driv

Re: [edk2] XHCI with ARM-v8 based platform

2015-07-06 Thread Andrew Fish
ram the DMA Bus Master with the DeviceAddress returned by Map(). The common buffer can now be accessed equally by the processor and the DMA bus master. Call Unmap(). Call FreeBuffer(). Thanks, Andrew Fish > Regards, > Thomas > > -

Re: [edk2] [PATCH] BaseTools: fix a syntax error in 4 KB aligned GNU ld linker script

2015-07-02 Thread Andrew Fish
> On Jul 2, 2015, at 12:03 AM, Jordan Justen wrote: > > On 2015-07-01 23:22:37, Andrew Fish wrote: >>> On Jul 1, 2015, at 11:08 PM, Jordan Justen >>> wrote: >>> >>>> On 2015-07-01 22:35:12, Gao, Liming wrote: >>>> Ard: >

Re: [edk2] [PATCH] BaseTools: fix a syntax error in 4 KB aligned GNU ld linker script

2015-07-01 Thread Andrew Fish
zation flag has precedence. Do the include a file flags work differently? thanks Andrew Fish > Is this the long term plan? > > Do Visual Studio based builds do something similar? > > -Jordan > >> -Original Message- >> From: Ard Biesheuvel [mailto:ard.bi

Re: [edk2] Question on DSC double includes

2015-07-01 Thread Andrew Fish
ments. Maybe it has been fixed? Thanks, Andrew Fish > > From: Andrew Fish [mailto:af...@apple.com] > Sent: Wednesday, July 01, 2015 10:25 AM > To: edk2-devel@lists.sourceforge.net > Subject: Re: [edk2] Question on DSC double includes > > > On Jun 30, 2015, at 7:12 PM, G

Re: [edk2] Question on DSC double includes

2015-06-30 Thread Andrew Fish
> On Jun 30, 2015, at 7:12 PM, Gao, Liming wrote: > > Samer: >What means back to back !include? What issue is it? Could you give one > sample for it? > I posted an example on the mailing list of the failure a while back. Thanks, Andrew Fish > Thanks > Limin

Re: [edk2] Question on DSC double includes

2015-06-30 Thread Andrew Fish
the 1st include maps directly, line numbers with the !include get mapped, after returning from the !include the line numbers in the main file are now offset, etc. Thanks, Andrew Fish > Cheers, > Larry Hauch > Intel Corporation > SSG, STO, Platform Software Infrastructure > 70

Re: [edk2] Question on DSC double includes

2015-06-30 Thread Andrew Fish
DSC spec issue statement below is cleared up. Anyone can comment on > the DSC spec? > > My reading of the specification is it does not restrict you from doing this, as it makes nesting an optional feature. > > > From: Andrew Fish [mailto:af...@apple.com] > Sent: Tu

Re: [edk2] Question on DSC double includes

2015-06-30 Thread Andrew Fish
ude A.dsc !include B.dsc And doing ‘!include’ breaks line numbers in a lot of error messages. Thanks, Andrew Fish > Thanks, > --Samer > > > -- > Don't Limit Your Business. Reach for the Cloud.

Re: [edk2] [MdeModulePkg][PeiCore] Looks like there may be a PEI Core bug with Temp RAM?

2015-06-30 Thread Andrew Fish
> On Jun 29, 2015, at 9:56 PM, Andrew Fish wrote: > > I was playing around in an emulator and I started to see a crash with > Private->Fv[0] having bad data. > > I root caused the bug and it looks like if gEfiTemporaryRamSupportPpiGuid > path is taken there is

Re: [edk2] edk2-devel Digest, Vol 66, Issue 397

2015-06-30 Thread Andrew Fish
> On Jun 30, 2015, at 1:20 AM, D chinni babu wrote: > > HI Andrew Fish, > Thanks for the quick update. > Still I am not clear on few things. > 1. When exactly we go for Locking or why we need it ? If your driver publishes interfaces, Protocols in UEFI speak, or contains

Re: [edk2] Few doubts on code execution

2015-06-29 Thread Andrew Fish
It is an event model, so the person writing the event has to yield the system back. If you put a CpuDeadLoop() in an event handler you will crash the system. Thanks, Andrew Fish > Please help to clarify these things for better understanding of UEFI. > > Thanks, > Chinni. >

[edk2] [MdeModulePkg][PeiCore] Looks like there may be a PEI Core bug with Temp RAM?

2015-06-29 Thread Andrew Fish
specification. I see the PI Spec calls out that the stack can be a separate memory space, so I think it needs to be accounted for differently. But the HeapOffset should just calculate the offset PeiTemporaryRamBase in the TemporarayRamBase? Thanks, Andrew Fish PS I verified the

Re: [edk2] [RFC PATCH 0/4] AArch64 linker script and small C model

2015-06-24 Thread Andrew Fish
ule is being used? Also what impact does it have on the ABI? For example does it impact size_t definition? I assume it does not change the definition of long? Thanks, Andrew Fish-- Monitor 25 network devices or server

Re: [edk2] Assertion in Linked list - help

2015-06-23 Thread Andrew Fish
walk the list by hand in the debugger and see what operation corrupts it. The Obvious answer would be the list operation before the one that ASSERTs is the bad one. Or if the corruption is in your program it is likely between the last working call and the failing call. Thanks, Andrew Fish > F

Re: [edk2] [PATCH] BaseTools for AArch64 GCC: Ensure that the correlation .text and .data is consistent between ELF and PE-COFF so the debugger sees global variables correctly

2015-06-23 Thread Andrew Fish
o DLINK_FLAGS or MTOC_FLAGS for XIP modules Maybe there is a better way, but it would be nice to solve this XIP issue in a general way. Thanks, Andrew Fish -- Monitor 25 network devices or servers for free with OpM

Re: [edk2] PXE with manual TFTP server and filename options

2015-06-22 Thread Andrew Fish
> On Jun 22, 2015, at 11:29 PM, Radha Mohan wrote: > > On Mon, Jun 22, 2015 at 10:49 PM, Andrew Fish <mailto:af...@apple.com>> wrote: >> >> On Jun 22, 2015, at 10:26 PM, Radha Mohan wrote: >> >> On Mon, Jun 22, 2015 at 10:19 PM, Ye, Ting wrote: &g

Re: [edk2] PXE with manual TFTP server and filename options

2015-06-22 Thread Andrew Fish
ddedPkg/Library/EfiFileLib/EfiFileLib.c> Thanks, Andrew Fish > >> >> Best Regards, >> Ye Ting >> >> -Original Message- >> From: Leekha Shaveta [mailto:shav...@freescale.com] >> Sent: Tuesday, June 23, 2015 1:15 PM >> To: edk2-devel@lists

Re: [edk2] How to fix (CPU address space) upper address in EDKII

2015-06-22 Thread Andrew Fish
> On Jun 22, 2015, at 8:21 AM, Jeyaraman Sundararajan (jeysunda) > wrote: > > Hi Andrew > > My answers inline > > From: Andrew Fish [mailto:af...@apple.com <mailto:af...@apple.com>] > Sent: 22 June 2015 07:35 > To: edk2-devel@lists.sourceforge.net <

Re: [edk2] [PATCH] BaseTools for AArch64 GCC: Ensure that the correlation .text and .data is consistent between ELF and PE-COFF so the debugger sees global variables correctly

2015-06-22 Thread Andrew Fish
OFF header? I seem to remember that PE/COFF loads the PE/COFF header into executable memory, but ELF does not. So that is why the adjustment is required. This value should be discoverable by the debugger script as it is the size of the PE/COFF header, stored in the header? Thanks, Andrew Fi

Re: [edk2] How to fix (CPU address space) upper address in EDKII

2015-06-22 Thread Andrew Fish
0x - 0x. Have a fake region from 0xFFFE - 0xFFE in the FD flash map. Use a post processing tool to patch the value of the last 64K of the FD into the previous 64K. Thanks, Andrew Fish > Thanks > Jeyaram > --

Re: [edk2] Efi app compile error

2015-06-22 Thread Andrew Fish
ild tools not handling properly formatted GUID strings. Probably you hand edited the GUID in the INF FILE_GUID section, which is bad. Or you had a copy paste error copying it. GuidStringToGuidStructureString() should probably try/execpt around the processing and throw a human readable error.

Re: [edk2] Assertion in Linked list - help

2015-06-19 Thread Andrew Fish
LIST_ENTRY *) that may be a bug too. LIST_ENTRY ListData; LIST_ENTRY *ListHead = &ListData; LIST_ENTRY *ListEntry = &ListData; InitializeListHead (ListHead); for (i=0; i<2; i++) { InsertHeadList (ListHead, ListEntry); } Thanks, Andrew Fish > Thanks > Sai > >

Re: [edk2] Assertion in Linked list - help

2015-06-19 Thread Andrew Fish
s? The lists are circular so I guess you could get stuck in an infinite loop, if you initialize them incorrectly or have memory corruption. Thanks, Andrew Fish > Your help is so much appreciated. > > Thanks > Sai > --

Re: [edk2] [PATCH v3] MdeModulePkg: Regular expression protocol

2015-06-19 Thread Andrew Fish
really messed up. Note: It is likely that size_t maps to UINTN assuming all the compilers support “large” objects in their 64-bit flavors. Thanks, Andrew Fish > ____ > From: Andrew Fish [af...@apple.com] > Sent: Friday, June 19, 2015 11:38 >

Re: [edk2] [PATCH v3] MdeModulePkg: Regular expression protocol

2015-06-19 Thread Andrew Fish
tructure. The code needs to use CopyMem(), and not = in these cases. Thanks, Andrew Fish PS if you are using VS2013 you can use the /FAcs compiler flag to generate a .cod file. You can search for the memcpy in the .cod file and track down the C code that is causing the issue. > _

Re: [edk2] Mapping global variables to R/W memory during In Place execution

2015-06-19 Thread Andrew Fish
> I don’t know of any with globals. You can git grep for BuildGuidHob()/GetFirstGuidHob() to see the way PI PEIMs do it. Thanks, Andrew Fish > Thanks > Sakar > > -- >

Re: [edk2] Console for Qemu

2015-06-18 Thread Andrew Fish
svn.code.sf.net/p/edk2/code/trunk/edk2/Nt32Pkg/Library/Nt32BdsLib/PlatformData.c <https://svn.code.sf.net/p/edk2/code/trunk/edk2/Nt32Pkg/Library/Nt32BdsLib/PlatformData.c> If I remember correctly gPlatformConsole[] is would need a device path that would include the te

Re: [edk2] [PATCH] BaseTools for AArch64 GCC: Ensure that the correlation .text and .data is consistent between ELF and PE-COFF so the debugger sees global variables correctly

2015-06-17 Thread Andrew Fish
ew and approval to move forward. > Eugene, One question. Does this make the minimum PEIM size > 64K? The original reason for the 32 byte alignment in the PE/COFF images was to make PEIMs smaller, the default is 4K alignment for sections. Thanks, Andrew Fish > Thanks, > > Euge

Re: [edk2] [Patch] BaseTools: Fixed Build Option override bugs.

2015-06-16 Thread Andrew Fish
d with an ‘=‘ getting lost if two of the same form are in a DSC? Thanks, Andrew Fish > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Yingke Liu > --- > BaseTools/Source/Python/AutoGen/AutoGen.py | 20 > .../Source/Python/Workspace/

Re: [edk2] USB3 driver development setup suggestions.

2015-06-14 Thread Andrew Fish
OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf:24: LIBRARY_CLASS = DebugLib Thanks, Andrew Fish -- ___ edk2-devel mailing list

Re: [edk2] AARCH64: Timer Dxe

2015-06-14 Thread Andrew Fish
> On Jun 14, 2015, at 2:35 AM, Sharma Bhupesh > wrote: > >> From: Andrew Fish >>> On Jun 13, 2015, at 1:52 AM, Sharma Bhupesh >> wrote: >>> >>> Hi, >>> >>> Can some ARM expert help me with my queries below. >>>

Re: [edk2] USB3 driver development setup suggestions.

2015-06-13 Thread Andrew Fish
) to the build command the log file will show you what instance of the DebugLib is in use. You can also see the PCD settings, and other useful information about all the drivers. Thanks, Andrew Fish > Thanks, > Eric > > > ---

Re: [edk2] AARCH64: Timer Dxe

2015-06-13 Thread Andrew Fish
fy.c> if (CompareGuid (Entry->ProtocolGuid, &gEfiTimerArchProtocolGuid)) { // // Register the Core timer tick handler with the Timer AP // gTimer->RegisterHandler (gTimer, CoreTimerTick); } Thanks, Andrew Fish > if (Timeout != 0x) { >if (Timeout > 0) { >

Re: [edk2] Show image BMP with UEFI

2015-06-11 Thread Andrew Fish
S ConvertBmpToGopBlt ( IN VOID *BmpImage, IN UINTN BmpImageSize, IN OUT VOID **GopBlt, IN OUT UINTN *GopBltSize, OUT UINTN *PixelHeight, OUT UINTN *PixelWidth ) Thanks, Andrew Fish > > Source code of the example: > > http://sour

Re: [edk2] [PATCH 0/4] Add an implementation of EFI_SMART_CARD_READER_PROTOCOL

2015-06-10 Thread Andrew Fish
de that is not secure. So yes you can’t write a virus (code the loads unsigned code) and get it signed by the CA. That is exactly how UEFI Secure Boot is supposed to work. Thanks, Andrew Fish > There are about 168 UEFI projects on Github today. A few dozen would be > useful to have under

Re: [edk2] [ShellPkg] I think there is an issue in ls.

2015-06-10 Thread Andrew Fish
and look to see what the shell did. Since the shell seemed to be doing the wrong thing I decided to at least report it to the mailing list. I’m guessing more modern filesystems probably store the time in UTC? Thanks, Andrew Fish > -Jaben > >> -----Original Message- >> Fr

[edk2] [ShellPkg] I think there is an issue in ls.

2015-06-10 Thread Andrew Fish
== EFI_UNSPECIFIED_TIMEZONE // This is the current path in the code Assume time is local time, and print it out else: // This is the missing path. Adjust the FileSystemTime.TimeZone for the System.TimeZone (and System.Daylight), thus display the time in local time. Thanks, Andrew Fish

Re: [edk2] attention git users: a productivity boost for edk2

2015-06-09 Thread Andrew Fish
ni >> *.dsc.inc diff=ini >> *.fdf diff=ini >> *.fdf.inc diff=ini >> *.inf diff=ini >> >> (2) in your .git/config, add >> >> [diff "ini"] >>xfuncname = "^\\[[A-Za-z0-9_., ]+]" >> >

Re: [edk2] [Patch] BaseTools: Update nasmb build rule

2015-06-09 Thread Andrew Fish
So the build_rule.template file can be per compiler but the rules in the FDF file are generic. So this is the reason that is hard to change. If we changed the build_rule.template file then the rules in platform FDF files would all break. So this ends up being a compatibility issue with trees based

Re: [edk2] [Linaro-uefi] [RFC 0/4] New terminal type for Linux

2015-06-05 Thread Andrew Fish
MdePkg could have the NULL version of this lib, and then a given platform could publish an extension lib that knows about the extra GUIDs. Thanks, Andrew Fish -- ___ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel

Re: [edk2] getsystemtime-- help

2015-06-05 Thread Andrew Fish
> On Jun 5, 2015, at 4:29 PM, Andrew Fish wrote: > > >> On Jun 5, 2015, at 4:21 PM, Andrew Fish > <mailto:af...@apple.com>> wrote: >> >> >>> On Jun 5, 2015, at 4:13 PM, Saiprasad Chavali >> <mailto:s...@marvell.com>> wrote: &

Re: [edk2] getsystemtime-- help

2015-06-05 Thread Andrew Fish
> On Jun 5, 2015, at 4:21 PM, Andrew Fish wrote: > > >> On Jun 5, 2015, at 4:13 PM, Saiprasad Chavali > <mailto:s...@marvell.com>> wrote: >> >> Hi Andrew, >> >> The “GetPerformanceCounter” is not working the way we want, the elaps

Re: [edk2] getsystemtime-- help

2015-06-05 Thread Andrew Fish
ink this will work for us. > > We need a value that increments in time like a system time call in windows > “getsystemtime” in msecs. > > Please suggest. > You need the correct TimerLib for your hardware. What TimerLib are you using? Thanks, Andrew Fish > Thanks > Sai

Re: [edk2] Query UEFI : PCIE Driver for Armv8 platform

2015-06-05 Thread Andrew Fish
figuration ? >> Here you seem to be specifying one IO, 4 Mem and 1 Bus space. Why 6 of them >> and how do they differ? > > On which basis 6 resources are given here? > These are the basic resource types supported by PCI. I/O so the inb outb instructions on X86 (IO BAR) 32-b

Re: [edk2] Failures building due to tool problems.

2015-06-05 Thread Andrew Fish
Try deleting Conf/.cache You can add --no-cache to the build command. I don't know what the root cause is, probably some threading issue. It would be nice if the tools would just fix this error (delete cache and rebuild it) Sent from my iPhone > On Jun 5, 2015, at 8:48 AM, Roberts, Bruce (CoSpg

Re: [edk2] Problem with PiSmmCore Dispatcher.c

2015-06-04 Thread Andrew Fish
e compiler more happy. Let > me know if you have any comments/questions. > Zach, You need to add: Contributed-under: TianoCore Contribution Agreement 1.0 Thanks, Andrew Fish > Best Regards, > Zach > > From: Zachary Bobroff > Sent: Tuesday, June 02, 2015 6:32

Re: [edk2] Query UEFI : PCIE Driver for Armv8 platform

2015-06-04 Thread Andrew Fish
o figured if the firmware and the OS used the same description technique there would be less chance for error. It also seemed to us that ACPI had already solved this problem (describing resources), so why invent a new way to do it. Thanks, Andrew Fish > (2) I was referring ArmJunoPkg for PCI H

Re: [edk2] Proposal of Git Repo Layout for EDKII project

2015-06-03 Thread Andrew Fish
uns the git commands to adjust the local repository. Thanks, Andrew Fish-- ___ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel

Re: [edk2] getsystemtime-- help

2015-06-03 Thread Andrew Fish
code/trunk/edk2/MdePkg/Include/Library/TimerLib.h> On a PC the PerformanceCounter is usually the TSC (CPU register) or the ACPI Timer. Thanks, Andrew Fish > Thanks > Sai > > From: Andrew Fish [mailto:af...@apple.com] > Sent: Wednesday, June 03, 2015 7:51 PM > To: ed

Re: [edk2] getsystemtime-- help

2015-06-03 Thread Andrew Fish
rying to do? Thanks, Andrew Fish > Sai > > From: Andrew Fish [mailto:af...@apple.com] > Sent: Wednesday, June 03, 2015 7:40 PM > To: edk2-devel@lists.sourceforge.net > Subject: Re: [edk2] getsystemtime-- help > > > On Jun 3, 2015, at 7:27 PM, Saiprasad Chavali <

Re: [edk2] getsystemtime-- help

2015-06-03 Thread Andrew Fish
PL Restrictions Time Services <= TPL_CALLBACK If not it is a bug in the implementation of gRT->GetTime(). Thanks, Andrew Fish > Thanks > Sai > -- > ___

Re: [edk2] Proposal of Git Repo Layout for EDKII project

2015-06-03 Thread Andrew Fish
big git repro could be made to work? It would be awesome if the build could generate a list of all the files used in the build, so that pruning would be easy. Thanks, Andrew Fish -- ___ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel

Re: [edk2] Proposal of Git Repo Layout for EDKII project

2015-06-03 Thread Andrew Fish
it svn rebase git svn dcommit git svn info Thanks, Andrew Fish-- ___ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel

Re: [edk2] Proposal of Git Repo Layout for EDKII project

2015-06-03 Thread Andrew Fish
git in general only works from inside the submodule. For example if you have a bunch of submodules and you do git status all you will see is: modified: MdePkg (modified content, untracked content) modified: MdeModulePkg (modified content, untracked content) To see the change lists y

Re: [edk2] Accessing SMBios' System Event Log through GPNV functions

2015-06-02 Thread Andrew Fish
> On Jun 2, 2015, at 12:47 PM, Andrew Fish wrote: > > >> On Jun 2, 2015, at 11:50 AM, Tomaz Fogaça > <mailto:tom.fog...@gmail.com>> wrote: >> >> Hello everyone, >> >> I'm writing this application for UEFI using the UDK and in it I'

Re: [edk2] Accessing SMBios' System Event Log through GPNV functions

2015-06-02 Thread Andrew Fish
files/standards/documents/DSP0119.pdf> > 3 - Is there any UDK api to handle them? > No. This is likely a bug in the SMBIOS table, as these functions got obsoleted a while ago. Thanks, Andrew Fish > > Thank you very much. > Tomaz > -

Re: [edk2] Executing Signtool When Building Applications

2015-05-29 Thread Andrew Fish
> On May 29, 2015, at 1:14 PM, Andrew Fish wrote: > >> >> On May 29, 2015, at 9:23 AM, Cohen, Eugene > <mailto:eug...@hp.com>> wrote: >> >> Dear edk2 tools experts, >> >> We are trying to invoke Signtool to sign applications (modu

Re: [edk2] Executing Signtool When Building Applications

2015-05-29 Thread Andrew Fish
ODE) -r $(PCI_REVISION) -o $dst $(OPTROM_FLAGS) $src What happens if you make extension something other than .efi? Like .sefi?Or omit ? Thanks, Andrew Fish > Your help is greatly appreciated. > > Thanks, > > Eugene > > --

Re: [edk2] [PATCH v2] BaseTools/Conf: Don't support upper case nasm extensions

2015-05-28 Thread Andrew Fish
> On May 28, 2015, at 8:35 AM, Hauch, Larry wrote: > > Hi Jordan, > So if we remove .Nasm and .NASM and someone accidentally uses these in an INF > file, should the build break? I vote yes. All our build servers run with a case sensitive file system. Thanks, Andrew Fish &g

Re: [edk2] Replacement EDK2 email list coming soon

2015-05-27 Thread Andrew Fish
> On May 27, 2015, at 11:21 AM, Jordan Justen wrote: > > On 2015-05-27 10:20:09, Laszlo Ersek wrote: >> On 05/27/15 18:06, Andrew Fish wrote: >>> >>>> On May 27, 2015, at 1:52 AM, Laszlo Ersek >>> <mailto:ler...@redhat.com>> wrote: >>

Re: [edk2] Replacement EDK2 email list coming soon

2015-05-27 Thread Andrew Fish
, why is a web browser bad? The git repository is a centralized server, and so is the website. Thanks, Andrew Fish-- ___ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel

Re: [edk2] TFTP client application in UEFI

2015-05-26 Thread Andrew Fish
EFI Firmware VOlume device 2 10.0.1.102: - TFTP service IP followed by the file name Thanks, Andrew Fish > -​​​ > Thanks > ​​Neeraj > > -- > ___ > edk2-d

Re: [edk2] Replacement EDK2 email list coming soon

2015-05-26 Thread Andrew Fish
the author on a build fail. 3) If everything compiles patch is sent to edk2 mailing list with link to Gerrit auto-added. We can still required all the comments happen in the mailing list. To me the win for Gerrit is workflow automation, getting to test compile against other tools. Also I’m a

Re: [edk2] Phy support

2015-05-26 Thread Andrew Fish
ct model of how to solve this problem. Given I don’t know all the constraints it is hard for me to design the correct object module to solve your specific issue. Thanks, Andrew Fish > -Bill -- _

Re: [edk2] Phy support

2015-05-25 Thread Andrew Fish
ttps://svn.code.sf.net/p/edk2/code/trunk/edk2/MdePkg/Include/Protocol/DriverDiagnostics2.h> https://svn.code.sf.net/p/edk2/code/trunk/edk2/MdePkg/Include/Protocol/DriverHealth.h <https://svn.code.sf.net/p/edk2/code/trunk/edk2/MdePkg/Include/Protocol/DriverHealth.h> Thanks, Andrew Fish > Regar

  1   2   3   4   5   6   7   8   9   10   >