I think that you need to debug your DriverBinding.Start() and 
DriverBinding.Supported() APIs.  Those are what gets called in your driver when 
'connect' shell command it used.

-Jaben

> -----Original Message-----
> From: edk2-devel [mailto:[email protected]] On Behalf Of
> Mahan, Patrick
> Sent: Wednesday, December 16, 2015 12:24 PM
> To: [email protected]
> Subject: [edk2] Help in testing PCIe driver from UEFI shell
> Importance: High
> 
> All,
> 
> I am looking for information on how to test our PCIe DXE driver for our NIC on
> Intel.  I am building from the latest EDK2
> sources using gcc v4.8 on Ubuntu.
> 
> The 'ver' command from the UEFI shell gives -
> 
> EFI Specification Revision : 2.10
> EFI Vendor                              : Dell
> EFI Revision                            : 520.1
> 
> I have created a EDK2 package as per the instuctions in section 30 of the UEFI
> Driver Writer's Guide and have created
> a .efi file that I then copy to the FAT-32 partition used for EFI
> (/boot/efi/EFI/ubuntu).
> 
> I can load the driver successfully, print statements embedded show the
> driver's entry point is properly called.
> 
> However, when attempting to connect it is showing 0 for the PCI device which
> looks very suspicious to me.
> 
> Also, the shell 'pci' command does not show the NIC card, but if I boot into
> Ubuntu, lspci shows the card just fine
> which leads me to suspect that the PCI bus is not being scanned.
> 
> I've been googling around for a day now and cannot find any tutorials,
> examples or notes by anyone on how to
> address this issue, so I anyone has some pointers to give, I would appreciate 
> it
> greatly (with your favorite beverage
> if you wish :-) ).
> 
> Most of our initial work was done on our company's AARCH64 platform for
> which I simply included the driver's .inf
> into the platform .dsc and .fdf files and it is working there.  I would like 
> to
> move over to the Intel platform and test
> there for further validation.
> 
> Thanks for any pointers,
> 
> Patrick Mahan
> Cavium, Inc.
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to