On 01/21/2016 06:03 PM, Ran Shalit wrote: > Hello, > > I would like to ask if it is possible in some way or other to start > debugging the pci driver without the real hardware available. > I've decided to use solo6x10 driver (I hope it's a good decision) as a > template for our coming hardware. > The thing is that I don't have hardware yet. I expect to purchase it > in the coming days, but wanted to start debugging code even before > that. > Is it possible in some way or other to make the driver think that the > pci board is connected to pci HW ? The only way I can think of is to plug in some other pci card, make sure the driver for that card isn't compiled in and instead use that pci vendor and device ID for your driver. That way you can load it. You can setup most of the skeleton code: register video nodes, even setting up vb2, as long as you don't actually try to write/read to/from PCI registers since obviously it is the wrong hardware. But at least that way you can create all the non-hw dependent parts of the driver. Apparently you can fake a PCI device as well: http://www.linuxquestions.org/questions/linux-kernel-70/how-to-emulate-a-pci-device-in-linux-901554/ but I think that's overkill for this. Regards, Hans -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html