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