Re: [edk2] using gdb on OVMF with symbols

2013-04-09 Thread Joe Vernaci
Thanks for making a new title it'll be easier to track... Andrew is right those have not changed in quite a long time and even if they did since GdbSyms builds against current headers it won't matter. Gcc builds the .dll files as a self contained binary which is passed through GenFw which if need

[edk2] Feedback on UDK2010.SR1.UP1 How-to-build page

2013-04-09 Thread Wunderlich, Mark W
Warning, first time contributor to this mailing list and new to EDK in general so I apologize if I break any policies or norms for participation. Probably should submit this as a possible defect but as yet have not resolved how/where to get access to a defect tracker site (as referenced on the

Re: [edk2] using gdb on OVMF with symbols

2013-04-09 Thread Andrew Fish
On Apr 9, 2013, at 2:13 PM, Duane Voth wrote: > previous thread was: [edk2] OVMF networking revisited > Spliting off this gdb+qemu+ovmf debugging discussion. > Versions: > qemu-kvm 1.2.0 > gdb 7.5.1 > OVMF X64 built on Linux with GCC 4.6 > > On Tue, Apr 9, 2013 at 12:27 AM, Joe Vern

[edk2] using gdb on OVMF with symbols

2013-04-09 Thread Duane Voth
previous thread was: [edk2] OVMF networking revisited Spliting off this gdb+qemu+ovmf debugging discussion. Versions: qemu-kvm 1.2.0 gdb 7.5.1 OVMF X64 built on Linux with GCC 4.6 On Tue, Apr 9, 2013 at 12:27 AM, Joe Vernaci wrote: > ... > The error you are seeing means gdb does not

Re: [edk2] csm issues

2013-04-09 Thread Andrew Fish
On Apr 9, 2013, at 12:15 PM, Rafael Machado wrote: > The only point I imagine is that there is a possibility of some application > fail if it alocates the first page returned by the GetMemoryMap function even > with this page being of type Desc->Type == EfiConventionalMemory And this > seems

Re: [edk2] csm issues

2013-04-09 Thread Rafael Machado
The only point I imagine is that there is a possibility of some application fail if it alocates the first page returned by the GetMemoryMap function even with this page being of type Desc->Type == EfiConventionalMemory And this seems to be possible when CSM is disabled. Should I disconsider the fi

Re: [edk2] csm issues

2013-04-09 Thread Andrew Fish
On Apr 9, 2013, at 11:42 AM, Rafael Machado wrote: > I think I was not clear. I didn't add all information > The first step at the application is to get the MemoryMap > (gBS->GetMemoryMap), and after that, alocate the pages of the first block I > can access Based on the description of that pa

Re: [edk2] csm issues

2013-04-09 Thread Rafael Machado
I think I was not clear. I didn't add all information The first step at the application is to get the MemoryMap (gBS->GetMemoryMap), and after that, alocate the pages of the first block I can access Based on the description of that page if Desc->Type == EfiConventionalMemory The problem seems tha

Re: [edk2] csm issues

2013-04-09 Thread Andrew Fish
On Apr 9, 2013, at 10:50 AM, Rafael Machado wrote: > Hi Andrew > > Thanks for the answer. > It's strange the the application allocated these addresses. > These seems to be at the BDA right ? They should not be allocated. > > At the application I use several calls to: > > gBS->AllocatePoo

Re: [edk2] csm issues

2013-04-09 Thread Rafael Machado
Hi Andrew Thanks for the answer. It's strange the the application allocated these addresses. These seems to be at the BDA right ? They should not be allocated. At the application I use several calls to: gBS->AllocatePool(EfiBootServicesData, sizeof(EFI_MEMORY_BLOCKS), (VOID**) &MemoryBlocks);

Re: [edk2] BLOCK_IO_PROTOCOL on PCIe device(VirtioBlk)

2013-04-09 Thread satish kondapalli
Thanks Andrew and Laszlo. On Tue, Apr 9, 2013 at 8:21 PM, Laszlo Ersek wrote: > Hi Sateesh, > > On 04/09/13 16:22, satish kondapalli wrote: > > > My PCIe device option ROM driver registers BLOCK_IO_PROTOCOL on PCIe > > device. I successfully booted ubuntu OS from my pcie device. But > > Ce

Re: [edk2] csm issues

2013-04-09 Thread Andrew Fish
On Apr 9, 2013, at 7:48 AM, Rafael Machado wrote: > After some debug here comes the question. > Why am I able to allocated more memory when csm is off ? Because the CSM allocates memory when it runs. > > Does uefi have some kind of virtual memory ? Not generally. For X64 and ARM paging is

Re: [edk2] Help:Nested fimware Voume

2013-04-09 Thread Andrew Fish
On Apr 9, 2013, at 2:22 AM, Vishnuvardhan Reddy wrote: > Hi, > Appreciated your supports. > Could you please help me out to know about the how nested firmware volumes > (FV) concept work in general How FVs work is fully defined in the UEFI Platform Initialization Specification 1.2.1 availabl

Re: [edk2] BLOCK_IO_PROTOCOL on PCIe device(VirtioBlk)

2013-04-09 Thread Laszlo Ersek
Hi Sateesh, On 04/09/13 16:22, satish kondapalli wrote: > My PCIe device option ROM driver registers BLOCK_IO_PROTOCOL on PCIe > device. I successfully booted ubuntu OS from my pcie device. But > CentOS failed to boot. Centos is using GRUB one boot loader. (I'll assume you mean CentOS 6.4.)

Re: [edk2] csm issues

2013-04-09 Thread Rafael Machado
After some debug here comes the question. Why am I able to allocated more memory when csm is off ? Does uefi have some kind of virtual memory ? Thanks and Regards Rafael R. Machado 2013/4/9 Rafael Machado > Hi everyone > > > I'm having some problems with an uefi application that works perfec

Re: [edk2] BLOCK_IO_PROTOCOL on PCIe device(VirtioBlk)

2013-04-09 Thread Andrew Fish
Sateesh, If you make a child handle you can add the device path to that, along with your Block IO protocol. The device path would be the device path from the PCI IO protocol with the vendor device path appended to it. An EFI driver that produces a child handle is called a bus driver. You can r

[edk2] csm issues

2013-04-09 Thread Rafael Machado
Hi everyone I'm having some problems with an uefi application that works perfectly when CSM (Compatibility Support Module) is enabled but doesn't work when CSM is off. At the application I have a big array allocated to store some data. When CSM is on I have: current address: 00066FF8

[edk2] BLOCK_IO_PROTOCOL on PCIe device(VirtioBlk)

2013-04-09 Thread satish kondapalli
Hi, My PCIe device option ROM driver registers BLOCK_IO_PROTOCOL on PCIe device. I successfully booted ubuntu OS from my pcie device. But CentOS failed to boot. Centos is using GRUB one boot loader. My driver is similar to OVMF VirtioBlk driver and i found one bug in redhat site. https://b

Re: [edk2] OVMF networking revisited

2013-04-09 Thread Laszlo Ersek
On 04/09/13 00:38, Duane Voth wrote: > So gdb => qemu: I can single step and get/set cpu regs, but I can't set > breakpoints or step over subroutines... does qemu 1.2 support > breakpoints? (anything to make this easier!) You need the debug symbols for the qemu binary. Your distro may provide th

[edk2] Help:Nested fimware Voume

2013-04-09 Thread Vishnuvardhan Reddy
Hi, Appreciated your supports. Could you please help me out to know about the how nested firmware volumes concept work in general in efi and how to identify the modules present in nested firmware volumes. Thanks & regards, Vishnu The contents of this e-mail and

[edk2] Tab-autocomplete patch for files beginning with "cd"

2013-04-09 Thread Mutschler Stefan
Hi, I found a bug, where autocomplete doesn't work for files beginning with "cd" and typing "cd" in the shell. Filtering for the following space makes the autocomplete work with files and if you type the space, autocomplete is also working for folders. I don't know how to apply patches to the pr