From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KN7l3-0002HS-U1 for qemu-devel@nongnu.org; Sun, 27 Jul 2008 11:02:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KN7l2-0002HG-FV for qemu-devel@nongnu.org; Sun, 27 Jul 2008 11:02:01 -0400 Received: from [199.232.76.173] (port=45280 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KN7l2-0002HD-AH for qemu-devel@nongnu.org; Sun, 27 Jul 2008 11:02:00 -0400 Received: from mail.gmx.net ([213.165.64.20]:54582) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KN7l1-0001WE-OV for qemu-devel@nongnu.org; Sun, 27 Jul 2008 11:02:00 -0400 Message-ID: <018401c8eff9$b6e1ddd0$0201a8c0@zeug> From: "Sebastian Herbszt" References: <04cc01c8ef48$d84eb620$0201a8c0@zeug> <488BC0FF.1000900@codemonkey.ws> Date: Sun, 27 Jul 2008 17:01:31 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [4952] Add e1000 etherboot ROM fromhttp://www.rom-o-matic.net Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org Anthony Liguori wrote: >> >>> Add e1000 etherboot ROM from http://www.rom-o-matic.net >> >> unlike the other available images (pcnet, rtl8139, ...) this one seems >> to be a "legacy" (non-PnP) option rom. Any reason for this? > > Not that I know of. Does this cause a problem in some way? I tested > PXE boot and it seemed to work quite happily. I'll reconfigure the ROM > if there's a compelling reason to do so though. > If i use "qemu -L pc-bios -hda disk.img -net nic,model=pcnet -boot n" the VM will start from network using pxe-pcnet.bin option rom. This option rom is a PnP option rom so it does not hook any interrupts. The bochs bios does detect it and use it's BEV to start. It is also possible to select this option rom from the boot menu. If i use "qemu -L pc-bios -hda disk.img -net nic,model=e1000 -boot n" the VM will also start from network. Since this option rom is a legacy rom (no PnP header present) it does hook int 19h. It does not appear in the boot menu and it is not possible to override "-boot n" using the boot menu since int 19h is hooked. With "qemu -L pc-bios -hda disk.img -net nic,model=pcnet -option-rom pxe-pcnet.bin" it is possible to boot from network by using the boot menu when needed and else it defaults to booting from hdd. With "qemu -L pc-bios -hda disk.img -net nic,model=e1000 -option-rom pxe-e1000.bin" it it not possible to do the same since the option rom is a legacy rom. I have created an option rom for the e1000 with default rom-o-matic parameters: http://www.rom-o-matic.net/etherboot/etherboot-5.4.3/contrib/rom-o-matic/build.php? version=5.4.3&F=&arch=i386&nic=e1000%3Ae1000-82540em+--+%5B0x8086%2C0x100e%5D &ofmt=Binary+ROM+Image%28.zrom%29&A=Get+ROM With "qemu -L pc-bios -hda disk.img -net nic,model=e1000 -option-rom eb-5.4.3-e1000-82540em.zrom" it is possible to achieve what currently is possible with pxe-pcnet.bin and it does also work with using "-boot n". - Sebastian