Re: [edk2] location of OvmfVideo.rom file?

2014-03-05 Thread John Davis
does not work. Other commands do work though. Thank you for the info. John On Wed, Mar 5, 2014 at 10:01 AM, Laszlo Ersek wrote: > On 03/05/14 18:30, John Davis wrote: > > Hello > > > > I'm building the Ovmf code as part of the edk2. The website mentions > &

[edk2] location of OvmfVideo.rom file?

2014-03-05 Thread John Davis
Hello I'm building the Ovmf code as part of the edk2. The website mentions OvmfVideo.rom in the install procedure for working with Qemu. Where do I get this file? My build made a Ovmf.fv so I think its working for me. On a related note. How do I search all the edk2 mailing lists? Clicking on ea

Re: [edk2] any idea why LocateHandleBuffer would fail with NT32?

2014-02-26 Thread John Davis
te: > > On Feb 26, 2014, at 4:22 PM, John Davis wrote: > > > I'm trying to mimic some existing code. I have > gEfiFirmwareVolumeProtocolGuid in my .efi [Protocols] section and previous > gBS->HandleProtocol calls work. > > > > EFI_STATUS

[edk2] any idea why LocateHandleBuffer would fail with NT32?

2014-02-26 Thread John Davis
I'm trying to mimic some existing code. I have gEfiFirmwareVolumeProtocolGuid in my .efi [Protocols] section and previous gBS->HandleProtocol calls work. EFI_STATUSStatus; UINTN HandleCount; EFI_HANDLE *HandleBuffer; // MdePkg/Include/Uefi/UefiSpec.h has a struct for BootServices which is of

Re: [edk2] Locating a file in the file system

2014-02-26 Thread John Davis
Ahh, I see the problem. All the zip files in the directories need to be unzipped first. once I did that, I could open the .chm files. On Wed, Feb 26, 2014 at 12:03 PM, John Davis wrote: > I wonder if you have them in a specific folder and that is why they open > correctly for you. &g

Re: [edk2] Locating a file in the file system

2014-02-26 Thread John Davis
I wonder if you have them in a specific folder and that is why they open correctly for you. On Wed, Feb 26, 2014 at 11:55 AM, Andrew Fish wrote: > > On Feb 26, 2014, at 11:30 AM, John Davis wrote: > > Hello Andrew, > > The link there has a second link which says: > L

Re: [edk2] Locating a file in the file system

2014-02-26 Thread John Davis
in the zip file. The .chm files look corrupted. You can see nodes on the left in the microsoft help viewer but the actual pages are blank and will say an error has occured.* *John* On Wed, Feb 26, 2014 at 10:50 AM, Andrew Fish wrote: > > On Feb 26, 2014, at 10:30 AM, John Davis wrote:

[edk2] Locating a file in the file system

2014-02-26 Thread John Davis
Hello Is there an example someplace for accessing a file in the filesystem? I would like to be able to read a file into a buffer as a simple exercise. I saw the earlier notes about doing this via stdlib/posix api calls. I figure there is a similar method to do this via uefi api. Later I want to

Re: [edk2] DevicePathToStr

2014-02-26 Thread John Davis
As a follow up, here is the complete code and a summary write up of the info. https://sourceforge.net/p/uefinotes/wiki/Application%20Notes/ On Wed, Feb 26, 2014 at 8:22 AM, John Davis wrote: > Hello Brian, > > That is a good explanation and guideline. Many thanks. I'll ad

Re: [edk2] DevicePathToStr

2014-02-26 Thread John Davis
Hello Brian, That is a good explanation and guideline. Many thanks. I'll add this to my notes. John On Wed, Feb 26, 2014 at 7:25 AM, Brian J. Johnson wrote: > On 02/25/2014 07:14 PM, John Davis wrote: > > Hello Jaben, > > > > No I did not. Its odd. Sometimes you

Re: [edk2] DevicePathToStr

2014-02-25 Thread John Davis
About the debugger. I did not know that. I had set a breakpoint in the uefi source back when you told me about the load address a while back. I'll try to debug an app using similar method. On Feb 25, 2014 6:10 PM, "Andrew Fish" wrote: > > On Feb 25, 2014, at 6:03 PM, John Da

Re: [edk2] DevicePathToStr

2014-02-25 Thread John Davis
f a .fdf and .dsc file. Thanks again John On Tue, Feb 25, 2014 at 5:55 PM, Andrew Fish wrote: > > On Feb 25, 2014, at 4:46 PM, Bill Paul wrote: > > Of all the gin joints in all the towns in all the world, John Davis had to > walk into mine at 16:34:49 on Tuesday 25 February 2014

Re: [edk2] DevicePathToStr

2014-02-25 Thread John Davis
Hello Jaben, No I did not. Its odd. Sometimes you add packages and it seems to compile and link. Other times I have to add a library package. In this case, I added the GenericBdsLib in the [LibraryClasses] and now it links. Many thanks. I'll look into your suggestion on the other routine to g

Re: [edk2] DevicePathToStr

2014-02-25 Thread John Davis
ons on some conversion results. > > -Jaben > > -Original Message- > From: Bill Paul [mailto:wp...@windriver.com] > Sent: Tuesday, February 25, 2014 4:24 PM > To: edk2-devel@lists.sourceforge.net > Subject: Re: [edk2] DevicePathToStr > > Of all the gin joints in

Re: [edk2] DevicePathToStr

2014-02-25 Thread John Davis
Hmm. That is what I did to begin with. Here are my includes and my .inf. Now, I am really puzzled. When I pasted the error from the build below, I noticed the error is actually in the code I used as a model for this app. How could this app cause the other app which used to build to fail? --

[edk2] DevicePathToStr

2014-02-25 Thread John Davis
Hello I see some code which uses DevicePathToStr. When I do a grep on it, I see it a few include files. 1. IntelFrameworkModulePkg 2. OvmfPkg 3. SecruityPkg I am working with the NT32 emulator so I'm guessing that I don't need the ones from source 2 and 3. However, when I try to include the h

[edk2] ASSERT_EFI_ERROR and nt32

2014-02-25 Thread John Davis
Hello I read an old post that this macro does not work on NT32. Is that still the case? I am running it within NT32 but it appears does not seem to do anything. -- John F. Davis 6 Kandes Court Durham, NC 27713 919-888-8358 独树一帜 --

Re: [edk2] hello world application sample and beyond

2014-02-22 Thread John Davis
Hello Scott Yes o noticed that as well after I played with it some. Thanks. John On Feb 22, 2014 11:33 AM, "Scott Duplichan" wrote: > John Davis [mailto:davi...@gmail.com] wrote: > > ]Hello > ] > ]Is there an official source for something a little more comp

Re: [edk2] hello world application sample and beyond

2014-02-21 Thread John Davis
I appreciate the help folks. Rick, Laurie, Andrew, Jabin, Tim and Bill. I've got something at least compiling now. Here is the relevant includes for the .c source. #include #include #include #include #include #include #include #include #include This requires the following entr

Re: [edk2] hello world application sample and beyond

2014-02-21 Thread John Davis
Hello I got a few emails. Perhaps I should repose the question. I was reading the EDKII Coding Guidelines document on tianocore. In it, it says do not use int or char native types. Consquently, I was trying to use UINT32 and UNIT8 types. When I try to extend the HelloWorld sample application f

Re: [edk2] hello world application sample and beyond

2014-02-21 Thread John Davis
significant application in terms of > what it does.. > > > > I would stay away from the compatibility stuff unless you are actually > compiling old code from previous generation environment. > > > > -Jaben > > > > *From:* John Davis [mailto:davi...@gmail.com] >

[edk2] hello world application sample and beyond

2014-02-21 Thread John Davis
Hello Is there an official source for something a little more complex than the helloworld application? I'm trying to use it as a model for something more complex and I can not get simple types to even build. I see that UINT32 is in the edkcompatibilitypkg dir and I have added it to my [packages]

Re: [edk2] can you use the emulator with dmem in the rom region?

2014-02-12 Thread John Davis
ess I can submit the minor patch to print out the start address is output. https://sourceforge.net/p/uefinotes/wiki/Add%20a%20ROM%20to%20FV/ John On Wed, Feb 12, 2014 at 10:10 AM, Andrew Fish wrote: > > On Feb 12, 2014, at 9:51 AM, John Davis wrote: > > Andrew and others, > >

[edk2] Fwd: can you use the emulator with dmem in the rom region?

2014-02-12 Thread John Davis
-- Forwarded message -- From: John Davis Date: Wed, Feb 12, 2014 at 11:37 AM Subject: Re: [edk2] can you use the emulator with dmem in the rom region? To: af...@apple.com I just noticed this: On Wed, Feb 12, 2014 at 10:10 AM, Andrew Fish wrote: > > On Feb 12, 2014, a

Re: [edk2] can you use the emulator with dmem in the rom region?

2014-02-12 Thread John Davis
Tue, Feb 11, 2014 at 7:04 PM, John Davis wrote: > I guess I am confused. I don't have the files handy but I thought the > entire fv would be loaded at the top of memory. I'll post more detail > tomorrow morning. > On Feb 11, 2014 6:06 PM, "Andrew Fish" wrote: >

Re: [edk2] can you use the emulator with dmem in the rom region?

2014-02-11 Thread John Davis
I guess I am confused. I don't have the files handy but I thought the entire fv would be loaded at the top of memory. I'll post more detail tomorrow morning. On Feb 11, 2014 6:06 PM, "Andrew Fish" wrote: > > On Feb 11, 2014, at 4:34 PM, John Davis wrote: > >

[edk2] can you use the emulator with dmem in the rom region?

2014-02-11 Thread John Davis
Hello Can you use the emulator to dump memory associated with roms? For instance, dmem fff3c9e8 is a region where I believe I have a rom mapped, but that command will crash the emulator. -- John F. Davis 6 Kandes Court Durham, NC 27713 919-888-8358 独树一帜

Re: [edk2] have any of you guys ever worked with option roms?

2014-02-10 Thread John Davis
fore on > this mailing list. > > > > Thanks ... br > > --- > > Brian Richardson -- brian.richard...@intel.com -- Twitter: intel_brian > > > > *From:* John Davis [mailto:davi...@gmail.com] > *Sent:* Monday, February 10, 2014 7:25 PM > *To:* edk2-devel@lists.so

[edk2] have any of you guys ever worked with option roms?

2014-02-10 Thread John Davis
If so and you want to chat, I would be extremely happy to talk to you. -- John F. Davis 6 Kandes Court Durham, NC 27713 919-888-8358 独树一帜 -- Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime

[edk2] corrections & questions Ch 2 EDK II Build Spec

2014-02-10 Thread John Davis
Corrections: Section 2 - Under the second Note on page 2. - Repeated "The the" Section 2.5.2 - Shouldn't the title be "Firmware Files" or a "Firmware File System Files" In the text beneath it also says are combined into a "Firmware File (FFS)" but if you go back to Figure 1 It shows EFI Section Fi

Re: [edk2] so i am trying to build a copy of DriverSampleDxe

2014-02-08 Thread John Davis
Hello again Here is the completed page with build and run instructions. I don't know why images for screenshots don't show up. I'll correct that later. https://sourceforge.net/p/uefinotes/wiki/MyDriverSample/ On Sat, Feb 8, 2014 at 10:29 AM, John Davis wrote: > Hello Gao,

Re: [edk2] so i am trying to build a copy of DriverSampleDxe

2014-02-08 Thread John Davis
Hello Gao, Andrew Thank you again. That indeed was the trick. The emulator .fdf file needed to be edited along with the firmware .fdf file. I'm getting a runtime error now. I figured that would happen since i did not differenitate all the guids. I'm working on that now. Not sure besides the o

Re: [edk2] so i am trying to build a copy of DriverSampleDxe

2014-02-07 Thread John Davis
de it. So, you can't see it NT32 FV Output > folder. > > > > Thanks > > Liming > > *From:* John Davis [mailto:davi...@gmail.com] > *Sent:* Saturday, February 08, 2014 6:49 AM > *To:* edk2-devel@lists.sourceforge.net > *Subject:* Re: [edk2] so i am trying to bu

Re: [edk2] Toolchain question...

2014-02-07 Thread John Davis
Hello bill This might not help but once a long time ago I had built a driver using the ddk and a user stack using the SDK. Both of these were free. Later when I tried to integrate it with a larger component built using a devstudio app the app failed to use the use mode stack DLLs I had built wit

Re: [edk2] so i am trying to build a copy of DriverSampleDxe

2014-02-07 Thread John Davis
Hello Andrew, At first I was like yay, then I noticed in step 9 I had edited the .fdf file to include MyDriverSample. FWIW, I do have a MyDriverSample in the ..FV\Guid.xref file. I even have MyDriverSample.efi in DEBUG_VS2010x86/IA32 folder. Its just not in the fv folder. John ---

[edk2] so i am trying to build a copy of DriverSampleDxe

2014-02-07 Thread John Davis
Hello I am trying to build a copy of DriverSampleDxe. This is the process I am using. The build completes and I see it building MyDriverSampleDxe. However, when I examine the C:\fw\edk2\Build\NT32IA32\DEBUG_VS2010x86\FV\Ffs directory I don't see a GUIDMyDriverSample folder. -- This is the

[edk2] fv components to high level source dir map

2014-02-07 Thread John Davis
Maybe this will help somebody. I made it while trying to work from build output in reverse. I examined the final .fv output and then created a table pointing back to the source directory for each of the components in an NT32 emulator build. https://sourceforge.net/p/uefinotes/wiki/FV%20Sources/

Re: [edk2] minnowboard and duet

2014-02-06 Thread John Davis
Hello Bibbet, Thank you for the info. I appreciate it. FWIW, I was just curious what the package was as I was poking around. Speaking of opensource, here is a good video on UEFI and Android. Off camera you can hear Dong Wei from HP speaking a few times. I just happened to be listening to this

[edk2] minnowboard and duet

2014-02-06 Thread John Davis
Hello As I am looking through the EDKII workspace, I am wondering where is the port for minnowboard? I saw a video from an Intel guy on youtube and it mentioned the minnowboard as a atom based board which could be used as a cheap UEFI reference development kit. This sounds like a good deal for th

Re: [edk2] How do I quickly determine info such as what is difference between .efi and .ifi files?

2014-02-05 Thread John Davis
Hello Andrew Thanks again for your help. On Wed, Feb 5, 2014 at 11:10 AM, Andrew Fish wrote: > > On Feb 5, 2014, at 10:27 AM, John Davis wrote: > > Wow, that is good info you gave me. I was surprised that PEView ( a free program) actually decodes the Subsystem

[edk2] How do I quickly determine info such as what is difference between .efi and .ifi files?

2014-02-05 Thread John Davis
Hello I notice that there are many file types in the edkII build workspace. I notice the workspace also contains files like .efi and .ifi. Besides knowing these are both PE files by examining them with a hex editor its not easy for me to find what the difference in these files are. From the EDK

[edk2] pcd, fd and loading option roms/firmware at runtime

2014-02-04 Thread John Davis
Hello In the EDK II build spec, Chapter 10 on Post-Build ImageGen Stage - Flash Images, it mentions PCD's (Some of the PCD's defined...) and FD (.. combined into FD image files..). What are these files? The glossary has PCD defined as a Platform Configuration Database, but I thought there would

Re: [edk2] trying to include PeImage.h

2014-01-31 Thread John Davis
Thanks for your expertise Andrew. I'll use your advice. -- WatchGuard Dimension instantly turns raw network data into actionable security intelligence. It gives you real-time visual feedback on key security issues and tren

Re: [edk2] trying to include PeImage.h

2014-01-31 Thread John Davis
On Fri, Jan 31, 2014 at 4:28 PM, Andrew Fish wrote: > > On Jan 31, 2014, at 4:11 PM, John Davis wrote: > > Hello > > I'm trying to #include in a .c file. > I think, but not certain that the inf file [LibraryClasses] determines the > include path as well as libs to

[edk2] trying to include PeImage.h

2014-01-31 Thread John Davis
Hello I'm trying to #include in a .c file. I think, but not certain that the inf file [LibraryClasses] determines the include path as well as libs to link. With that said I added [LibraryClasses] UefiApplicationEntryPoint UefiLib BaseLib To my BaseLib to that section as shown, but it sti

[edk2] Fwd: EFI OS Loaders and Beyond BIOS book

2014-01-31 Thread John Davis
I looked at that code in the EFI Toolkit. It looks like it is similar code to the OS Loader shown in the book except it uses stdlib. Thanks for the pointer, Vincent. This prompts a few more questions. It appears this code has been superseded by the EADK. Other than the stdlibinternals code all

Re: [edk2] EFI OS Loaders and Beyond BIOS book

2014-01-31 Thread John Davis
elease of the sdk as a whole. Lastly, is the sample you mentioned for a different release? On Fri, Jan 31, 2014 at 10:22 AM, Zimmer, Vincent wrote: > Did you look at > https://svn.code.sf.net/p/efi-toolkit/code/trunk/efi-toolkit/apps/osloader/osloader.c, > such as line 375 ? > >

[edk2] EFI OS Loaders and Beyond BIOS book

2014-01-31 Thread John Davis
Hello The sequence described in Chapter 4 Protocols You Should Know, on EFI OS Loaders looks interesting. Can this code be used with the emulator? The only place I found one of the routines (LibGetSystemConfigurationTable) in the codebase was in two patch files associated with EfiDump.c. There

Re: [edk2] regarding the chapter 4 sample program in the book Beyond Bios

2014-01-30 Thread John Davis
Hello I got it working. Thanks for the help. I used the code from the book with the uefi.h include and I modeled the .inf file from the samplehelloapp in the edk2. The only problem was using the webpage to generate the guid. I don't know if that line was meant to generate a guid or simply use

Re: [edk2] regarding the chapter 4 sample program in the book Beyond Bios

2014-01-30 Thread John Davis
I did a search on efi.h the ones I found are commented out of the Nt32Pkg build file. I give, I'll move on. On Thu, Jan 30, 2014 at 1:59 PM, John Davis wrote: > Hello Andrew, > > It kind of looks like the one you show. Kind of. > > For reference here it is > &g

Re: [edk2] regarding the chapter 4 sample program in the book Beyond Bios

2014-01-30 Thread John Davis
S; } On Thu, Jan 30, 2014 at 12:57 PM, Andrew Fish wrote: > > On Jan 30, 2014, at 12:38 PM, John Davis wrote: > > > Hello > > > > I'm reading the Beyond Bios book in conjunction with the stuff on > tianocore. The example code in chapter 4 of that book talks a

Re: [edk2] regarding the chapter 4 sample program in the book Beyond Bios

2014-01-30 Thread John Davis
Hello Laurie, Thank you for letting me know the source is still valid. I'll look at the references you provided to see if I can get it working. I do have that massive 400+ page pdf and I have built the emulator. It just takes a while to dig though. It seems the answer is in there, I just haven'

[edk2] regarding the chapter 4 sample program in the book Beyond Bios

2014-01-30 Thread John Davis
Hello I'm reading the Beyond Bios book in conjunction with the stuff on tianocore. The example code in chapter 4 of that book talks about a HelloApplication. The format looks different from the sample code in AppPkg\Hello directory of the EDK2 src. Is that format/api shown in the book obsolete?

[edk2] build run has duplicate consoles

2014-01-29 Thread John Davis
Hello I used ms windows to build the EDK II source. I have built the code using ms visual studio 2010 premium and even done a build post cleanall. However everytime I do a $ build run, I get two tianocore emulator screens. They appear to be mirrored, but its confusing to have two windows. Is

[edk2] Wiki document updates

2014-01-28 Thread John Davis
I'm learning uefi and reading the beyond bios and the wiki. I've noticed some parts which could be updated but the pages are locked and no email addresses for most of the Admins. How can I get in touch with them? The one email I sent never got a response. ---