Currently, Xen has the etherboot rom for hvm guests, which only supports rtl8139 nic device model. This patch is intended to support etherboot for e100 nic by: - adding etherboot rom for e100 nic (provided by rom-o-matic.net). - making hvmloader scan pci devices, find the first nic device and load the corresponding etherboot rom. Regards, ------------------- Yosuke Iwamatsu NEC Corporation _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Yosuke Iwamatsu writes ("[Xen-devel] [PATCH] Etherboot for E100 NIC"):> Currently, Xen has the etherboot rom for hvm guests, > which only supports rtl8139 nic device model. > This patch is intended to support etherboot for e100 nic by: > - adding etherboot rom for e100 nic (provided by rom-o-matic.net). > - making hvmloader scan pci devices, find the first nic device > and load the corresponding etherboot rom.Thanks. We''d prefer not to include a binary where we don''t have the source code in the tree and also don''t have any of the scripts which generate the rom from the upstream. So I will look into alternative ways of providing a suitable e100 etherboot. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Jackson wrote:> Yosuke Iwamatsu writes ("[Xen-devel] [PATCH] Etherboot for E100 NIC"): >> Currently, Xen has the etherboot rom for hvm guests, >> which only supports rtl8139 nic device model. >> This patch is intended to support etherboot for e100 nic by: >> - adding etherboot rom for e100 nic (provided by rom-o-matic.net). >> - making hvmloader scan pci devices, find the first nic device >> and load the corresponding etherboot rom. > > Thanks. We''d prefer not to include a binary where we don''t have the > source code in the tree and also don''t have any of the scripts which > generate the rom from the upstream. > > So I will look into alternative ways of providing a suitable e100 > etherboot. > > Ian.Do you mean you are going to take the etherboot source code in xen''s tree and generate rtl8139/e100 roms at compile time, or thinking any other way? Thanks, --------- Yosuke Iwamatsu _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Yosuke Iwamatsu writes ("[Xen-devel] [PATCH] Etherboot for E100 NIC"):> Do you mean you are going to take the etherboot source code > in xen''s tree and generate rtl8139/e100 roms at compile time, > or thinking any other way?Yes, I''m going to try to do that and see how the result looks. Probably by putting a tarball of the etherboot source in the xen tree. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Yosuke Iwamatsu writes ("[Xen-devel] [PATCH] Etherboot for E100 NIC"):> Currently, Xen has the etherboot rom for hvm guests, > which only supports rtl8139 nic device model. > This patch is intended to support etherboot for e100 nic by: > - adding etherboot rom for e100 nic (provided by rom-o-matic.net). > - making hvmloader scan pci devices, find the first nic device > and load the corresponding etherboot rom.Following on from the changes recently made to build etherboot ourselves from source, I''ve adapted Yosuke Iwamatsu''s idea to work in this context. The result is below and appears to work. The set of supported NICs can be adjusted by changing the setting of NICS in tools/firmware/etherboot/Makefile. The added file tools/firmware/etherboot/make-eb-rom-list needs to have chmod +x run on it before committing. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Jackson wrote:> Following on from the changes recently made to build etherboot > ourselves from source, I''ve adapted Yosuke Iwamatsu''s idea to work in > this context. > > The result is below and appears to work. The set of supported NICs > can be adjusted by changing the setting of NICS in > tools/firmware/etherboot/Makefile. > > The added file tools/firmware/etherboot/make-eb-rom-list needs to have > chmod +x run on it before committing.Thanks for your work. I tried the latest staging tree and got etherboot work fine. The attached patch (applied to cs16963) was needed to build etherboot in my test environment. I also found that build failed with "debug=y" specified, though I don''t know how to fix it yet. Yosuke. ---------------------- diff -r d29d74d4eeac tools/firmware/etherboot/Config --- a/tools/firmware/etherboot/Config Fri Feb 01 12:01:34 2008 +0000 +++ b/tools/firmware/etherboot/Config Fri Feb 01 21:40:48 2008 +0900 @@ -10,4 +10,6 @@ CFLAGS+= -UPXE_DHCP_STRICT CFLAGS+= -UPXE_DHCP_STRICT CFLAGS+= -DPXE_DHCP_STRICT +CFLAGS+= -fno-stack-protector + # Also, the Makefile arranges for us to use GCC 3 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 1/2/08 12:39, "Yosuke Iwamatsu" <y-iwamatsu@ab.jp.nec.com> wrote:> Thanks for your work. > I tried the latest staging tree and got etherboot work fine. > > The attached patch (applied to cs16963) was needed to build etherboot > in my test environment. > I also found that build failed with "debug=y" specified, > though I don''t know how to fix it yet.I''ve yielded and checked in a pre-built eb-roms.h file. Making etherboot properly portable is not worth the effort. If you want to build your own eb-roms.h file you''ll have to accept that some tweaking of Config may be required. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser writes ("Re: [Xen-devel] [PATCH] Etherboot for E100 NIC"):> I''ve yielded and checked in a pre-built eb-roms.h file. Making etherboot > properly portable is not worth the effort. If you want to build your own > eb-roms.h file you''ll have to accept that some tweaking of Config may be > required.For the avoidance of doubt, I think this is fine. (We should make sure we rebuild this, and anything else like it, when we make a release.) Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel