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

Dave Hansen dave at sr71.net
Wed Jun 6 16:19:50 UTC 2012

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:


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:


and output from ipxe after "make DEBUG=realtek"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipxe-do-driver-fallback.patch
Type: text/x-patch
Size: 4486 bytes
Desc: not available
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20120606/e1f53d3c/attachment.bin>

More information about the ipxe-devel mailing list