From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IGGL8-0001rh-SI for qemu-devel@nongnu.org; Wed, 01 Aug 2007 11:42:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IGGL6-0001of-Oy for qemu-devel@nongnu.org; Wed, 01 Aug 2007 11:42:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGGL6-0001oS-K3 for qemu-devel@nongnu.org; Wed, 01 Aug 2007 11:42:20 -0400 Received: from os.inf.tu-dresden.de ([141.76.48.99]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IGGL6-0004Gt-02 for qemu-devel@nongnu.org; Wed, 01 Aug 2007 11:42:20 -0400 Received: from chrom.inf.tu-dresden.de ([141.76.48.24]) by os.inf.tu-dresden.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) id 1IGGL4-0006og-3r for qemu-devel@nongnu.org; Wed, 01 Aug 2007 17:42:18 +0200 Received: from kauer by chrom.inf.tu-dresden.de with local (Exim 4.67) (envelope-from ) id 1IGGL3-0002aD-LU for qemu-devel@nongnu.org; Wed, 01 Aug 2007 17:42:17 +0200 Date: Wed, 1 Aug 2007 17:42:17 +0200 From: Bernhard Kauer Message-ID: <20070801154217.GC5570@chrom.inf.tu-dresden.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline Subject: [Qemu-devel] Patch: let qemu work with latest bochsbios Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The boot_device is not communicated to the bochsbios through the CMOS. The following patch allows to boot via network on the newest bochsbios. Bernhard Kauer --d6Gm4EdcadzBjdND Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="qemu_boot_device.diff" Index: vl.c =================================================================== RCS file: /sources/qemu/qemu/vl.c,v retrieving revision 1.323 diff -u -r1.323 vl.c --- vl.c 29 Jul 2007 17:57:25 -0000 1.323 +++ vl.c 1 Aug 2007 15:36:31 -0000 @@ -7828,7 +7828,7 @@ fprintf(stderr, "No valid PXE rom found for network device\n"); exit(1); } - boot_device = 'c'; /* to prevent confusion by the BIOS */ + //boot_device = 'c'; /* to prevent confusion by the BIOS */ } #endif Index: hw/pc.c =================================================================== RCS file: /sources/qemu/qemu/hw/pc.c,v retrieving revision 1.81 diff -u -r1.81 pc.c --- hw/pc.c 6 Jun 2007 16:26:13 -0000 1.81 +++ hw/pc.c 1 Aug 2007 15:36:31 -0000 @@ -197,6 +197,9 @@ case 'd': rtc_set_memory(s, 0x3d, 0x03); /* CD-ROM boot */ break; + case 'n': + rtc_set_memory(s, 0x3d, 0x04); /* Network boot */ + break; } /* floppy type */ --d6Gm4EdcadzBjdND--