qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Patch: let qemu work with latest bochsbios
@ 2007-08-01 15:41 Bernhard Kauer
  0 siblings, 0 replies; 5+ messages in thread
From: Bernhard Kauer @ 2007-08-01 15:41 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] Patch: let qemu work with latest bochsbios
@ 2007-08-01 15:42 Bernhard Kauer
  2007-08-01 16:02 ` Anthony Liguori
  2007-08-17 16:48 ` Bernhard Kauer
  0 siblings, 2 replies; 5+ messages in thread
From: Bernhard Kauer @ 2007-08-01 15:42 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 162 bytes --]

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

[-- Attachment #2: qemu_boot_device.diff --]
[-- Type: text/x-diff, Size: 970 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Patch: let qemu work with latest bochsbios
  2007-08-01 15:42 [Qemu-devel] Patch: let qemu work with latest bochsbios Bernhard Kauer
@ 2007-08-01 16:02 ` Anthony Liguori
  2007-08-04 13:05   ` Bernhard Kauer
  2007-08-17 16:48 ` Bernhard Kauer
  1 sibling, 1 reply; 5+ messages in thread
From: Anthony Liguori @ 2007-08-01 16:02 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Patch: let qemu work with latest bochsbios
  2007-08-01 16:02 ` Anthony Liguori
@ 2007-08-04 13:05   ` Bernhard Kauer
  0 siblings, 0 replies; 5+ messages in thread
From: Bernhard Kauer @ 2007-08-04 13:05 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 380 bytes --]

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

[-- Attachment #2: qemu_boot_device.diff --]
[-- Type: text/x-diff, Size: 908 bytes --]

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	4 Aug 2007 13:05:28 -0000
@@ -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 -0000	1.81
+++ hw/pc.c	4 Aug 2007 13:05:29 -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 */

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Patch: let qemu work with latest bochsbios
  2007-08-01 15:42 [Qemu-devel] Patch: let qemu work with latest bochsbios Bernhard Kauer
  2007-08-01 16:02 ` Anthony Liguori
@ 2007-08-17 16:48 ` Bernhard Kauer
  1 sibling, 0 replies; 5+ messages in thread
From: Bernhard Kauer @ 2007-08-17 16:48 UTC (permalink / raw)
  To: qemu-devel

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-08-17 16:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-01 15:42 [Qemu-devel] Patch: let qemu work with latest bochsbios Bernhard Kauer
2007-08-01 16:02 ` Anthony Liguori
2007-08-04 13:05   ` Bernhard Kauer
2007-08-17 16:48 ` Bernhard Kauer
  -- strict thread matches above, loose matches on Subject: below --
2007-08-01 15:41 Bernhard Kauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).