Browse Source

[build] Avoid using embedded script in VirtualBox named configuration

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Robin Smidsrød 10 years ago
parent
commit
df202b3f4d
3 changed files with 8 additions and 12 deletions
  1. 8
    6
      src/config/vbox/README
  2. 0
    5
      src/config/vbox/embedded.ipxe
  3. 0
    1
      src/config/vbox/general.h

+ 8
- 6
src/config/vbox/README View File

@@ -1,16 +1,18 @@
1 1
 Build using this command line:
2 2
 
3
-make CONFIG=vbox EMBED=config/vbox/embedded.ipxe bin/intel--virtio-net--pcnet32.rom
3
+make CONFIG=vbox bin/intel--virtio-net--pcnet32.isarom
4 4
 
5 5
 Max size of a VirtualBox ROM is 56KB, 57344 bytes. There should be no need
6 6
 to pad the image as long as the binary is smaller or equal to this size.
7 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 8
 To use the ROM in VirtualBox you need to enable it using this command:
13 9
 
14 10
 vboxmanage setextradata global \
15 11
     VBoxInternal/Devices/pcbios/0/Config/LanBootRom \
16
-    path/to/intel--virtio-net--pcnet32.rom
12
+    /absolute/path/to/intel--virtio-net--pcnet32.isarom
13
+
14
+NB: If you build the ROM using the .rom prefix then it'll be built as a PCI
15
+ROM, which won't work properly in VirtualBox.  The error message you'll see
16
+is "No more network devices", which is somewhat confusing.  If you enter the
17
+shell and use the "autoboot" command things will work as intended.  Remember
18
+to always build as a .isarom to avoid this issue.

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

@@ -1,5 +0,0 @@
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

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

@@ -1,7 +1,6 @@
1 1
 /* Disabled from config/defaults/pcbios.h */
2 2
 
3 3
 #undef IMAGE_ELF
4
-#undef IMAGE_MULTIBOOT
5 4
 #undef SANBOOT_PROTO_ISCSI
6 5
 #undef SANBOOT_PROTO_AOE
7 6
 #undef SANBOOT_PROTO_IB_SRP

Loading…
Cancel
Save