Browse Source

[build] Add named configuration for VirtualBox

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Robin Smidsrød 9 years ago
parent
commit
64dc45a4dc

+ 16
- 0
src/config/vbox/README View File

@@ -0,0 +1,16 @@
1
+Build using this command line:
2
+
3
+make CONFIG=vbox EMBED=config/vbox/embedded.ipxe bin/intel--virtio-net--pcnet32.rom
4
+
5
+Max size of a VirtualBox ROM is 56KB, 57344 bytes. There should be no need
6
+to pad the image as long as the binary is smaller or equal to this size.
7
+
8
+The embedded script is required because VirtualBox uses the ROM as an ISA
9
+ROM, which will not perform any autoboot behavior.  The bundled embedded
10
+script reproduces the default autoboot behavior.
11
+
12
+To use the ROM in VirtualBox you need to enable it using this command:
13
+
14
+vboxmanage setextradata global \
15
+    VBoxInternal/Devices/pcbios/0/Config/LanBootRom \
16
+    path/to/intel--virtio-net--pcnet32.rom

+ 0
- 0
src/config/vbox/colour.h View File


+ 0
- 0
src/config/vbox/console.h View File


+ 0
- 0
src/config/vbox/crypto.h View File


+ 5
- 0
src/config/vbox/embedded.ipxe View File

@@ -0,0 +1,5 @@
1
+#!ipxe
2
+prompt --key 0x02 --timeout 2000 Press Ctrl-B to enter the iPXE shell... && shell || goto auto
3
+exit
4
+:auto
5
+autoboot

+ 28
- 0
src/config/vbox/general.h View File

@@ -0,0 +1,28 @@
1
+/* Disabled from config/defaults/pcbios.h */
2
+
3
+#undef IMAGE_ELF
4
+#undef IMAGE_MULTIBOOT
5
+#undef SANBOOT_PROTO_ISCSI
6
+#undef SANBOOT_PROTO_AOE
7
+#undef SANBOOT_PROTO_IB_SRP
8
+#undef SANBOOT_PROTO_FCP
9
+#undef REBOOT_CMD
10
+#undef CPUID_CMD
11
+
12
+/* Disabled from config/general.h */
13
+
14
+#undef DOWNLOAD_PROTO_HTTP
15
+#undef CRYPTO_80211_WEP
16
+#undef CRYPTO_80211_WPA
17
+#undef CRYPTO_80211_WPA2
18
+#undef IWMGMT_CMD
19
+#undef FCMGMT_CMD
20
+#undef SANBOOT_CMD
21
+#undef MENU_CMD
22
+#undef LOGIN_CMD
23
+#undef SYNC_CMD
24
+
25
+/* Ensure ROM banner is not displayed */
26
+
27
+#undef ROM_BANNER_TIMEOUT
28
+#define ROM_BANNER_TIMEOUT 0

+ 0
- 0
src/config/vbox/serial.h View File


+ 0
- 0
src/config/vbox/settings.h View File


+ 0
- 0
src/config/vbox/sideband.h View File


Loading…
Cancel
Save