Re: [Qemu-devel] Patch: let qemu work with latest bochsbios
Has somebody besides me tested the patch? Bernhard Kauer On Wed, Aug 01, 2007 at 05:42:17PM +0200, 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.
Re: [Qemu-devel] Patch: let qemu work with latest bochsbios
On Wed, Aug 01, 2007 at 11:02:58AM -0500, Anthony Liguori wrote: > Bernhard Kauer wrote: >> -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. You are right. At the time i changed it I just wondered what the comment means... Bernhard 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 - 1.323 +++ vl.c 4 Aug 2007 13:05:28 - @@ -7828,7 +7828,6 @@ fprintf(stderr, "No valid PXE rom found for network device\n"); exit(1); } - 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 - 1.81 +++ hw/pc.c 4 Aug 2007 13:05:29 - @@ -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 */
Re: [Qemu-devel] Patch: let qemu work with latest bochsbios
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.c29 Jul 2007 17:57:25 - 1.323 +++ vl.c1 Aug 2007 15:36:31 - @@ -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 - 1.81 +++ hw/pc.c 1 Aug 2007 15:36:31 - @@ -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 */
[Qemu-devel] Patch: let qemu work with latest bochsbios
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 - 1.323 +++ vl.c 1 Aug 2007 15:36:31 - @@ -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 - 1.81 +++ hw/pc.c 1 Aug 2007 15:36:31 - @@ -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 */
[Qemu-devel] Patch: let qemu work with latest bochsbios
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