Re: [edk2] edk2 build problems

2015-07-08 Thread Neeraj Ladkani
​If you want to build Shell, please update your target_conf as ACTIVE_PLATFORM = ShellPkg\ShellPkg.dsc On Wed, Jul 8, 2015 at 10:25 PM, Tony wrote: > I am very new to uefi dev and trying to understand how the environment > needs to be setup to bring up the uefi shell. > > My current e

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

2015-07-08 Thread Neeraj Ladkani
1. The PCIR data structure contain 2 byte pointer to device id table and the device id table is a list containing device ids which your ROM can support.device id is a 2 byte field that's why each entry in device id table is 2 byte wide 2 UEFI driver model, when your driver is called in "driver bin

Re: [edk2] TFTP client application in UEFI

2015-05-27 Thread Neeraj Ladkani
I am planning to submit the patch soon… > > > > *From:* Neeraj Ladkani [mailto:neeraj.ladk...@gmail.com] > *Sent:* 27 May 2015 03:15 > *To:* edk2-devel@lists.sourceforge.net > *Subject:* [edk2] TFTP client application in UEFI > > > > Hi All, > > > > I

[edk2] TFTP client application in UEFI

2015-05-26 Thread Neeraj Ladkani
Hi All, Is there any open source project which has tftp client for UEFI? I am looking for a simple UEFI application which connects to tftp server and download the file. ​any pointers will help. - ​​ ​ Thanks ​​ Neeraj

Re: [edk2] Qestion about how to debug OVMF on QEMU

2015-05-24 Thread Neeraj Ladkani
in summary 1. Change the gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel = 0x 2. run build -D -D DEBUG_ON_SERIAL_PORT 3. install com2com ( to create virtual COM ports on your laptop in case you dont have ) 4. qemu-system-x86_64.exe -bios OVMF.fd -serial COM1 On Sun, May 24, 2015 at

[edk2] Authenticate an UEFI Image ?

2015-05-16 Thread Neeraj Ladkani
Hello, ​We have two ​UEFI i mages in our partition, the goal is to find a particular image from two ( names could change, size could change , location could change ) and start it. all we know is one image is signed using a certificate issued by XYZ company and second image is signed using a certi

[edk2] UEFI app before memory init?

2015-01-09 Thread Neeraj Ladkani
Hello All, I want to write few registers before memory init( in memory controller), I don't think it can be done but is there "*any*" possibility it can be done( by hook or crook) using a uefi shell application or any other way? Experimenting on a platform without debugger. Thanks Neeraj ---

Re: [edk2] UEFI and ACPI

2014-09-18 Thread Neeraj Ladkani
You mean changing tables during subsequent boot or runtime? IMHO, During reboot, boot fw can choose which table to populate . Neeraj On Sep 19, 2014 11:10 AM, "Narinder Dhillon" wrote: > Hi All, > > In order to add ACPI tables to UEFI, iasl compiler has to be downloaded > from acpica.org. > UE

Re: [edk2] How to determine if Secure Boot is enabled

2014-09-14 Thread Neeraj Ladkani
One way could be to query HII variable in your applications. On Sun, Sep 14, 2014 at 7:26 PM, J. E. wrote: > > How do I check if Secure Boot is enabled or disabled in an EFI app? > > > -- > Want excitement? > Manually up

Re: [edk2] 答复: 答复: 答复: run SMM in 64-bit

2014-09-06 Thread Neeraj Ladkani
t; Some server have multi PCI segment. These PCI segment are put > above 4GB to save more memory space belowme > > 4GB for legacy device(some device only use 32-bit Memory Mapped IO > space).My SMI want to access these PCI segment. > > But I can’t find a method to touch it

Re: [edk2] run SMM in 64-bit

2014-09-06 Thread Neeraj Ladkani
Hi, as par SDM section 34.5.1. not sure if its a hardware limitation. "After saving the current context of the processor, the processor initializes its core registers to the values shown in Table 34-4. Upon entering SMM, the PE and PG flags in control register CR0 are cleared, which places the p

Re: [edk2] How to debug UEFI (UDK2014) Shell application Using Visual Studio

2014-09-05 Thread Neeraj Ladkani
> "The earth is round and the place which may seem like the end may also be > the beginning" > > ---------- > &g

Re: [edk2] How to debug UEFI (UDK2014) Shell application Using Visual Studio

2014-09-05 Thread Neeraj Ladkani
you can include SourceLevelDebugPkg for this purpose. refer to documentation for the same. Are you running from device or OVMF? Neeraj On Fri, Sep 5, 2014 at 12:37 PM, partha sarathi swain < partha161.sili...@gmail.com> wrote: > Hi All, > > I have downloaded EDK (UEDK2014) from taniacore sit

Re: [edk2] build ovmf failure

2014-08-25 Thread Neeraj Ladkani
Yes, I installed nasm. Neeraj Did you update Conf/build_rules.txt to use nasm? On 25.08.2014, at 14:29, chen.fan.f...@cn.fujitsu.com wrote: > Hi, > > I always built OVMF successfully, but today I pull the newest edk2 code > to build OVMF then showing building failure: > > ---

Re: [edk2] build ovmf failure

2014-08-25 Thread Neeraj Ladkani
I faced the same issue. For time being I commented line 506 in PCI.c and build. It builds fine. Pls look at my last post on this forum regarding same. Neeraj On Aug 25, 2014 4:01 PM, "chen.fan.f...@cn.fujitsu.com" < chen.fan.f...@cn.fujitsu.com> wrote: > Hi, > > I always built OVMF successfully,

[edk2] Regarding commit: ShellPkg: Update 'pci' command for updated class codes

2014-08-23 Thread Neeraj Ladkani
Hi Jaben, The recent commit f056e4c18047e9a0157a915175d07afbd8b8c581(Fri Aug 22 17:02:11) is broken on GCC 4.7, + { +0x20, +L"Ethernet (802.11a <96> 5 GHz)", +PCIBlankEntry + }, + { +0x21, +L"Ethernet (802.11b <96> 2.4 GHz)", +PCIBlankEntry + }, Reverting this push bu

Re: [edk2] making UEFI driver part of optrom

2014-08-01 Thread Neeraj Ladkani
Check if your UEFI oprom execution is enabled in your UEFI setup. On Fri, Aug 1, 2014 at 4:51 PM, sushma s wrote: > Hello, > > We have written a UEFI driver for PCIe card. > The PCIe card already has legacy optrom image, which is loaded while booting > in legacy BIOS mode. Along with this legacy

Re: [edk2] PCI OpROM driver

2014-03-12 Thread Neeraj Ladkani
Also please check if you have an option to add a pci function(BDF) as boot device, if so, please add the BDF and change the boot order to point to newly added boot device as first boot device. Thanks Neeraj On Wed, Mar 12, 2014 at 6:42 PM, Neeraj Ladkani wrote: > >> I think, that

Re: [edk2] PCI OpROM driver

2014-03-12 Thread Neeraj Ladkani
nd my driver not present. > But after "loadpcirom" - my driver present in a "drivers" list. > > > 11.03.2014, 17:46, "Neeraj Ladkani" : > > Can you try disabling SATA/RAID and other on board storage controllers ? > there might be a possibility that BIO

Re: [edk2] PCI OpROM driver

2014-03-11 Thread Neeraj Ladkani
evice-> ->Option Rom Execution " option > isn't present in the BIOS settings. > "UEFI Boot -> Enable", and all optimizations disabled, of course. > > i'm no idea, what i do wrong... > Maybe reason in platform policy? > > > 07.03.2014, 22:08, &qu

Re: [edk2] PCI OpROM driver

2014-03-07 Thread Neeraj Ladkani
very basic input... sometime on specific platforms, PCIe oprom execution is disabled by default , please check in UEFI Setup -> PCI device-> ->Option Rom Execution might be disabled. Thanks Neeraj On Fri, Mar 7, 2014 at 1:25 PM, Onipchuk Vladimir wrote: > > > My DEBUG prints uses . > Even i

Re: [edk2] PCI OpROM driver

2014-03-06 Thread Neeraj Ladkani
om image, but some does. You should check what you > report when execute efirom. > > Igor Sharovar > > > > On Wed, Mar 5, 2014 at 5:54 AM, Neeraj Ladkani > wrote: > >> if you are trying to locate a specific protocol from your driver, it > might not installed durin

Re: [edk2] PCI OpROM driver

2014-03-05 Thread Neeraj Ladkani
if you are trying to locate a specific protocol from your driver, it might not installed during boot process so it doesn't work, but when you execute it from shell the consumed protocol might already been loaded by some other driver so it works. please check the protocol you are trying to locate

Re: [edk2] OptionROM [MdeModulePkg\Bus\PCI\Mydriver]

2013-12-24 Thread Neeraj Ladkani
One main reason could be your polling functions as UEFI doesn't have interrupts. On Tue, Dec 24, 2013 at 5:56 PM, boot devel wrote: > Hi, > > My legacy optionrom driver downloads windows boot image over PXE in few > seconds but uefi optionrom is taking several minutes, what could be the > r

Re: [edk2] Issue in UNDI driver for INTEL GIGABIT CT DESKTOP ADAPTER

2013-12-05 Thread Neeraj Ladkani
HI Shiva, IMHO, typically PHY init functions depends on the firmware running on adapter card and the Option Rom running from adapter card drives the firmware. Since you are running on ARM platform, adapter option rom might not be supported ( check EBC). it might be a reason for your PHY init fai

Re: [edk2] How to specify name/value storage in HiiCreateOneOfOpCode?

2013-09-28 Thread Neeraj Ladkani
Simon, if your data values are predefined, you can create them in formset and hide them using supressif upon a condition. On Sat, Sep 28, 2013 at 3:33 PM, Galla Rao wrote: > I used it in EDKI & UDK2010 it worked for me > > > On Fri, Sep 27, 2013 at 9:34 PM, Simon (Xiang) Lian-SSI < > simon.

Re: [edk2] Doubt about IPMI

2013-08-23 Thread Neeraj Ladkani
Hi Rafael, if you want to just send one IPMI message and process the response, you don't want to implement whole IPMI protocol, frame the IPMI request send it over transport ( SSIF, KCS, IPMB ) using base protocols ( IO mapped , SMBUS) , and process the response. Thanks Neeraj Thanks Neeraj

Re: [edk2] Both legacy OpROM and UEFI BSD loaded

2012-10-30 Thread Neeraj Ladkani
System can boot either in Legacy or in UEFI mode… so platform bios can give a option to user to choose the mode in which they want network / storage oprom to run. Exception of this could be a need of preboot features( e.g. CLP ) if which might be implemented only in one mode of oprom, On Tue,

Re: [edk2] Driver name listed as UNKNOWN in shell2

2012-09-17 Thread Neeraj Ladkani
Just curious to know if the UNI( for HII ) also need to have similar language codes to be order to comply with spec? #string STR_BUS_DEV_FUNC #language en-US "Bus:Dev:Func" #language fr-FR "*." From: Richardson, Bria

Re: [edk2] RouteConfig query

2012-09-17 Thread Neeraj Ladkani
g to 2. Thanks, Eric From: Neeraj Ladkani [mailto:neeraj.ladk...@gmail.com] Sent: Thursday, August 09, 2012 9:14 PM To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net> Subject: [edk2] RouteConfig query Hello, I have a HII form set in my OPROM UEFI driver which has m

Re: [edk2] Using "Intel UEFI Development Kit Debugger" Tool for Oprom Debugging !

2012-08-28 Thread Neeraj Ladkani
It could be loaded /unloaded in shell to enable/disable source debugging feature. If enabled, you could source debugging your UEFI driver loaded in shell. Wish it could help you. Jeff From: Neeraj Ladkani [mailto:neeraj.ladk...@gmail.com] Sent: Tuesday, August 28, 2012 11:34 PM To: edk2-devel@l

[edk2] Using "Intel UEFI Development Kit Debugger" Tool for Oprom Debugging !

2012-08-28 Thread Neeraj Ladkani
Hello All, I am able to do source debugging using WinDBG on OVMF Package. is there any mechanism using which we can do source debugging for my option rom (UEFI driver) built with SourceLevelDebugPkg loaded on a real system which has production system bios ( not built with SOURCE_DEBUG_ENABLE). .

[edk2] RouteConfig query

2012-08-09 Thread Neeraj Ladkani
Hello, I have a HII form set in my OPROM UEFI driver which has many sub forms inside, currently system bios calls RouteConfig->ExrtractConfig only once while entering into my formset and EFI_HII_CONFIG_ACCESS_PROTOCOL->RouteConfig every time I enter into my subforms, are there any HII/VFR proper

Re: [edk2] Need Help on VFR question ids

2012-07-25 Thread Neeraj Ladkani
is issue soon. Thanks. > > ** ** > > Thanks,**** > > Eric > > *From:* Neeraj Ladkani [mailto:neeraj.ladk...@gmail.com] > *Sent:* Tuesday, July 17, 2012 2:11 AM > *To:* Gao, Liming; edk2-devel@lists.sourceforge.net > *Subject:* Re: [edk2] Need Help on VFR question ids >

Re: [edk2] How to get PCI Slot number in UEI Driver.

2012-07-23 Thread Neeraj Ladkani
Hello, If you want to write small piece of code as a separate app... 1. Search using LocateHandleBuffer by providing GUID of protocol your driver installs. 2. Once you have the handle(s), query the pciIO protocol using HandleProtocol, 3. Do a PCI read as PciIo->Pci.Read(PciIo, EfiPciIoWidthUi

Re: [edk2] Need Help on VFR question ids

2012-07-16 Thread Neeraj Ladkani
one imp thing is I am doing this as part of a oprom driver which has vfr forms and compiled separately from system bios. can there be compatible issues ? Thanks Neeraj , On Mon, Jul 16, 2012 at 11:43 AM, Neeraj Ladkani wrote: > Yes, exactly. When X.Y == 0x2, old one will show A 2 4 8,

Re: [edk2] Need Help on VFR question ids

2012-07-15 Thread Neeraj Ladkani
DKII Browser driver to show your form? > When X.Y == 0x2, old one will show A 2 4 8, but new one will show A 8 4 > 2 A 4 2, right? > > Thanks > Liming > From: Neeraj Ladkani [mailto:neeraj.ladk...@gmail.com] > Sent: Saturday, July 14, 2012 4:34 AM > To: edk2-devel@lis