From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IGGfA-0006vc-FA for qemu-devel@nongnu.org; Wed, 01 Aug 2007 12:03:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IGGf8-0006uv-P7 for qemu-devel@nongnu.org; Wed, 01 Aug 2007 12:03:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGGf8-0006ur-Gw for qemu-devel@nongnu.org; Wed, 01 Aug 2007 12:03:02 -0400 Received: from wr-out-0506.google.com ([64.233.184.226]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IGGf7-00019T-Mx for qemu-devel@nongnu.org; Wed, 01 Aug 2007 12:03:01 -0400 Received: by wr-out-0506.google.com with SMTP id 50so100618wra for ; Wed, 01 Aug 2007 09:03:00 -0700 (PDT) Message-ID: <46B0AEB2.9040709@codemonkey.ws> Date: Wed, 01 Aug 2007 11:02:58 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Patch: let qemu work with latest bochsbios References: <20070801154217.GC5570@chrom.inf.tu-dresden.de> In-Reply-To: <20070801154217.GC5570@chrom.inf.tu-dresden.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Bernhard Kauer wrote: > 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 > > ------------------------------------------------------------------------ > > 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 */ > } > Please don't comment out code. Just delete it. Regards, Anthony Liguori > #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 */ >