WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Fix etherboot option ROM loading

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Fix etherboot option ROM loading
From: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>
Date: Mon, 28 Jun 2010 19:07:10 +0100
Cc: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>
Delivery-date: Mon, 28 Jun 2010 11:05:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

The option ROM included in the source tree is built with the default PCI
vendor and device ID's for the gPXE e1000 driver. Unfortunately these
don't correspond to the ID's of the installed NIC. For that reason the
new and improved OPROM probing routines in hvmloader fail to load any
PXE ROM's meaning no network boot.

Following patch fixes this in the gPXE build process by specifying the
target based on PCI-ID's and not on device name. I neglected to include
eb-roms.h in the patch since it's huge.

I am working on improved fix for this by building a gPXE ROM with
support for both rtl8139 and e1000 and then ignoring PCI ID's in the
option ROM header from within hvmloader - effectively providing a single
Multi-ROM. This fix is enough to get things working for now though.

Enjoy

Gianni Tedesco


diff -r b622e411eef8 tools/firmware/etherboot/Config
--- a/tools/firmware/etherboot/Config   Thu Jun 24 21:56:03 2010 +0100
+++ b/tools/firmware/etherboot/Config   Mon Jun 28 18:17:32 2010 +0100
@@ -1,5 +1,5 @@
 
-NICS = rtl8139 eepro100
+NICS = rtl8139 8086100e
 
 CFLAGS += -UPXE_DHCP_STRICT
 CFLAGS += -DPXE_DHCP_STRICT
diff -r b622e411eef8 tools/firmware/etherboot/Makefile
--- a/tools/firmware/etherboot/Makefile Thu Jun 24 21:56:03 2010 +0100
+++ b/tools/firmware/etherboot/Makefile Mon Jun 28 18:17:32 2010 +0100
@@ -19,7 +19,7 @@
        cat $^ | ../hvmloader/mkhex etherboot >$@
 
 eb-roms.h: Config
-       $(MAKE) $@.new
+       $(MAKE) NO_WERROR=1 $@.new
        mv -f $@.new $@
 
 $D/src/arch/i386/Config: $T Config



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel