[edk2] EDKII ARM OrigenBoard question.

2013-04-11 Thread nicolas
hi, Rony: I followed these steps described in this web page to compile an EDKII Origen Pkg: https://wiki.linaro.org/Boards/Origen/Setup/UEFI But it booted failed in DXE Phase, the log message is: Boot firmware (version built at 19:37:38 on Apr 11 2013) Trust Zone Configuration is disabled .Time

Re: [edk2] using gdb on OVMF with symbols

2013-04-11 Thread Duane Voth
Thanks Andrew, I'll give CpuBreakpoint() a try. Is there a good place you know of where to place a startup breakpoint so that all the system data structures are in place (and Andrei's script will run properly)? Andrei - ouch that syntax :) Is there anyway we can get to DxeCore.gST ? Perhaps G

Re: [edk2] OVMF networking revisited

2013-04-11 Thread Duane Voth
> > How is [it] possible [that AcpiTimerLibConstructor() runs in 32bit mode] ? > AFAIR you have an X64 build. Laszlo, I'm just reporting what gdb is demanding: "set arch i386" for the constructor (which displays 32bit flat 0xfffc addresses), and "set arch i386:x86-64" for the hang location (w

Re: [edk2] OVMF networking revisited

2013-04-11 Thread Laszlo Ersek
On 04/11/13 16:49, Duane Voth wrote: > With DEBUG_VERBOSE on and -debugcon file:debug.log -global > isa-debugcon.iobase=0x402 added to the qemu command line, debug.log > remains empty. I've never seen any debug output from this flag nor via > -debugcon. My OVMF build line is: > > $ build -D SO

Re: [edk2] using gdb on OVMF with symbols

2013-04-11 Thread Andrew Fish
On Apr 11, 2013, at 6:04 AM, Duane Voth wrote: > Thanks Andrew, I'll give CpuBreakpoint() a try. Is there a good place you > know of where to place a startup breakpoint so that all the system data > structures are in place (and Andrei's script will run properly)? > I usually just place it i

Re: [edk2] Status of PCD usage in VFR and ASL?

2013-04-11 Thread Tim Lewis
Andrew - Thanks, I will give it a try. Hopefully, if we can get this working, it certainly would extend the usefulness of PCDs in real-world platforms. Tim From: Andrew Fish [mailto:af...@apple.com] Sent: Wednesday, April 10, 2013 10:24 PM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2

Re: [edk2] OVMF networking revisited

2013-04-11 Thread Kinney, Michael D
My next suggestion is to use the -y and -Y flags to the build.exe command to generate a report and review the PCD value used to see if the they are being set to the expected value of 0xB000 and not 0x400. The next step after that is to review the AutoGen.h files in the build output directory fo

Re: [edk2] Status of PCD usage in VFR and ASL?

2013-04-11 Thread Gao, Liming
Tim: For VFR file with FixedPcd, it is not supported, because VfrCompiler only recognizes the limited C syntax used in VFR file. It doesn't support many C syntax used in C source code, such as VOID* and function definitions. But, to know FixedPcd value in VFR file, VFR file needs to include Au

Re: [edk2] Status of PCD usage in VFR and ASL?

2013-04-11 Thread Andrew Fish
On Apr 11, 2013, at 9:31 AM, "Gao, Liming" wrote: > Tim: > For VFR file with FixedPcd, it is not supported, because VfrCompiler only > recognizes the limited C syntax used in VFR file. It doesn’t support many C > syntax used in C source code, such as VOID* and function definitions. But, to

[edk2] Unistd.h support in edk2

2013-04-11 Thread Ritvik_Sharma
Hi, Can we have support for the functions in Unistd.h like fsync(); etc in edk2 ? Thanks and Regards, Ritvik -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The pla

Re: [edk2] Status of PCD usage in VFR and ASL?

2013-04-11 Thread Tim Lewis
In fact, I would venture to guess that the ASL trimming is very similar to what is needed for the VFR, since ASL also does not deal with VOID* etc. Tim From: Andrew Fish [mailto:af...@apple.com] Sent: Thursday, April 11, 2013 9:41 AM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] Status

Re: [edk2] Unistd.h support in edk2

2013-04-11 Thread Jarlstrom, Laurie
Yes, it is included the StdLib Package thanks, Laurie laurie.jarlst...@intel.com EFI / Framework Technical Marketing Engineering Team (503) 712-9395 From: ritvik_sha...@dell.com [mailto:ritvik_sha...@dell.com] Sent: Thursday, April 11, 2013 9:54 AM To: edk2-deve

Re: [edk2] Unistd.h support in edk2

2013-04-11 Thread Mcdaniel, Daryl
Hello Ritvik, Take a look at the StdLib package in EDK II. There is a ReadMe.txt file in StdLib which should help you get started using it. Functions like fsync(), which are more OS and filesystem dependent, currently have a very low priority for implementation. This could change based upon

Re: [edk2] Unistd.h support in Edk2

2013-04-11 Thread Ritvik_Sharma
I was looking for these 3 functions in particular which are not there in Stdlib currently. Fchmod(); fchown(); and fsync(); I guess. I already went through the readme. Thanks for the information anyhow :) Thanks and Regards Ritvik -Original Message- From: edk2-devel-requ...@lists.sou

Re: [edk2] OVMF networking revisited

2013-04-11 Thread Duane Voth
Oh! Sweet! Finally some debug output! On Thu, Apr 11, 2013 at 10:31 AM, Laszlo Ersek wrote: > > (i) the "-D DEBUG_ON_SERIAL_PORT" edk2 build option, > > (ii) the DEBUG_VERBOSE bit in > OvmfPkgX64.dsc::gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel, > > (iii) the "-debugcon file:debug.log" an

Re: [edk2] OVMF networking revisited

2013-04-11 Thread Duane Voth
So what are Ffs files? Two *unnamed* Ffs entries in edk2/Build/OvmfX64/DEBUG_GCC46/FV/Ffs appear to have Cirrus content ... -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured

Re: [edk2] OVMF networking revisited

2013-04-11 Thread Laszlo Ersek
On 04/11/13 20:39, Duane Voth wrote: > PDB = > /home/jljusten/dev/edk2/Build/OvmfX64/RELEASE_GCC44/X64/OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430Dxe/DEBUG/CirrusLogic5430Dxe.dll > Loading driver at 0x0003E552000 EntryPoint=0x0003E5522AF > CirrusLogic5430Dxe.efi > But also, where does Cir

Re: [edk2] OVMF networking revisited

2013-04-11 Thread Andrew Fish
On Apr 11, 2013, at 12:23 PM, Laszlo Ersek wrote: > On 04/11/13 20:39, Duane Voth wrote: > >>PDB = >> /home/jljusten/dev/edk2/Build/OvmfX64/RELEASE_GCC44/X64/OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430Dxe/DEBUG/CirrusLogic5430Dxe.dll >> Loading driver at 0x0003E552000 EntryPoint=0x0003E

Re: [edk2] OVMF networking revisited

2013-04-11 Thread Laszlo Ersek
On 04/11/13 21:20, Duane Voth wrote: > So what are Ffs files? Two *unnamed* Ffs entries > in edk2/Build/OvmfX64/DEBUG_GCC46/FV/Ffs appear to have Cirrus content ... BaseTools/UserManuals/GenFfs_Utility_Man_Page.rtf "GenFfs generates FFS files for inclusion in a firmware volume. FFS file is the f

Re: [edk2] OVMF networking revisited

2013-04-11 Thread Andrew Fish
On Apr 11, 2013, at 12:20 PM, Duane Voth wrote: > So what are Ffs files? The Flash Device (FD) is made up of a set of regions and some of these regions contain Firmware Volumes (FVs). An FV has a header and a series of FFS file. FFS files are made up of Sections. It is all documented in the P

Re: [edk2] OVMF networking revisited

2013-04-11 Thread Laszlo Ersek
On 04/11/13 21:24, Andrew Fish wrote: > > On Apr 11, 2013, at 12:23 PM, Laszlo Ersek wrote: > >> On 04/11/13 20:39, Duane Voth wrote: >> >>>PDB = >>> /home/jljusten/dev/edk2/Build/OvmfX64/RELEASE_GCC44/X64/OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430Dxe/DEBUG/CirrusLogic5430Dxe.dll >>> Lo

Re: [edk2] OVMF networking revisited

2013-04-11 Thread Duane Voth
On Thu, Apr 11, 2013 at 2:54 PM, Laszlo Ersek wrote: After some digging, CirrusLogic5430Dxe used to be the video driver in OVMF, > but in svn r11524 ("OvmfPkg: Add QemuVideoDxe driver") Jordan retired it. > Duane, are you building an ancient checkout? :) > > Laszlo > No sir. Updated to revision

Re: [edk2] OVMF networking revisited

2013-04-11 Thread Laszlo Ersek
On 04/11/13 22:07, Duane Voth wrote: > On Fri, Nov 23, 2012 at 9:53 AM, Gerd Hoffmann > wrote: > > From: Gerd Hoffmann mailto:kra...@redhat.com>> > > > Add code to handle qemu-emulated vga cards supporting the bochs > dispi interface (standard vga, qxl vga

Re: [edk2] OVMF networking revisited

2013-04-11 Thread Duane Voth
And there we are! An Ovmf that I build runs in qemu. Summary: -- the CirrusLogic5430Dxe driver (in Ffs 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 and also(?) A4EF5A93-3F1B-4232-A1C4-F0910E6D1D9C) appears to not use the ACPI timer facility properly when run under qemu (waits for values at i/o port 0x4

Re: [edk2] OVMF networking revisited

2013-04-11 Thread Laszlo Ersek
On 04/11/13 22:37, Laszlo Ersek wrote: > - I don't know if CirrusLogic5430Dxe has a bug or not, but: it shouldn't > be built into your OVMF.fd to begin with. > > Actually... Do you have an environment where qemu (auto-?)loads a > pre-built CirrusLogic5430Dxe binary into the emulated video card as

Re: [edk2] OVMF networking revisited

2013-04-11 Thread Duane Voth
On Thu, Apr 11, 2013 at 3:58 PM, Laszlo Ersek wrote: > ... > In the thread starter > you said: > > > I copy OVMF.fd to bios.bin, but no OvmfVideo.rom file is created or > > available as suggested by the online sourceforge docs > > (ht

Re: [edk2] OVMF networking revisited

2013-04-11 Thread Laszlo Ersek
On 04/11/13 23:38, Duane Voth wrote: > So EDK2 changes since that original setup (October 2012 I believe, where > I was told to "mv CirrusLogic5446.rom vgabios-cirrus.bin") have rendered > the need for that rom obsolete, but also maybe are not backward > compatable with that rom? The OVMF.fd in th

Re: [edk2] Status of PCD usage in VFR and ASL?

2013-04-11 Thread Gao, Liming
Tim: ASL just needs to get PCD or MACRO value. But, VFR file also needs to include structure definition. For ASL, Trim can remove all preprocessed code from .h files. For VFR file, Trim needs to keep structure definitions, and can't easily remove all. It needs Trim to parse VFR file and get th

Re: [edk2] Status of PCD usage in VFR and ASL?

2013-04-11 Thread Tim Lewis
Liming - What you are saying is: the existing build tools for VFR need to keep *some* other items, like structure definitions. Correct? Tim From: Gao, Liming [mailto:liming@intel.com] Sent: Thursday, April 11, 2013 6:36 PM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] Status of PCD

Re: [edk2] Status of PCD usage in VFR and ASL?

2013-04-11 Thread Gao, Liming
Tim: VFR source file includes its required header file that defines its used structure. For example, MdeModulePkg\Universal\DriverSampleDxe\Vfr.vfr #include "NVDataStruc.h". Now, no build tool supports VFR to keep its used structure. If VFR file includes more header files, like AutoGen.h,