[ipxe-devel] [PATCH] Fall back when driver probe fails

Robin Smidsrød robin at smidsrod.no
Wed Mar 6 19:35:39 UTC 2013

On 06.06.2012 18:19, Dave Hansen wrote:
> I have a Realtek nic in a Lenovo netbook which is not working with ipxe
> in git as of about a week ago.  It looks like there was some substantial
> consolidation of the Realtek code, so I backed up to commit:
> 	d27e6d6efdfb0d40e83a8c297b9eae9ca84a7638
> and things started working again.  I can _also_ get things working again
> if I compile out the realtek.c support altogether and just use undi.
> I hacked together the attached patch which also works around the issue,
> but might have wider applicability.  If a pci_probe() fails, this patch
> attempts to look for other drivers.  This lets my system try the
> realtek.c driver, fail to probe, then fall back to the UNDI Driver.
> Detailed information about my nic:
>> 05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
>> 	Subsystem: Realtek Semiconductor Co., Ltd. Device 0123
> Even more, including lspci -vvv -n:
> 	http://sr71.net/~dave/ipxe/
> and output from ipxe after "make DEBUG=realtek"
> 	http://sr71.net/~dave/foo/ipxe.debug.0.JPG

This patch no longer applies cleanly to the master branch. Could you fix
it up and repost it?

-- Robin

More information about the ipxe-devel mailing list