qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Patch: let qemu work with latest bochsbios


From: Anthony Liguori
Subject: Re: [Qemu-devel] Patch: let qemu work with latest bochsbios
Date: Wed, 01 Aug 2007 11:02:58 -0500
User-agent: Thunderbird 1.5.0.12 (X11/20070604)

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 */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]