Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[build] Avoid using embedded script in VirtualBox named configuration
Signed-off-by: Michael Brown <mcb30@ipxe.org>
- Loading branch information
1 parent
705907f
commit df202b3
Showing
3 changed files
with
8 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
Build using this command line: | ||
|
||
make CONFIG=vbox EMBED=config/vbox/embedded.ipxe bin/intel--virtio-net--pcnet32.rom | ||
make CONFIG=vbox bin/intel--virtio-net--pcnet32.isarom | ||
|
||
Max size of a VirtualBox ROM is 56KB, 57344 bytes. There should be no need | ||
to pad the image as long as the binary is smaller or equal to this size. | ||
|
||
The embedded script is required because VirtualBox uses the ROM as an ISA | ||
ROM, which will not perform any autoboot behavior. The bundled embedded | ||
script reproduces the default autoboot behavior. | ||
|
||
To use the ROM in VirtualBox you need to enable it using this command: | ||
|
||
vboxmanage setextradata global \ | ||
VBoxInternal/Devices/pcbios/0/Config/LanBootRom \ | ||
path/to/intel--virtio-net--pcnet32.rom | ||
/absolute/path/to/intel--virtio-net--pcnet32.isarom | ||
|
||
NB: If you build the ROM using the .rom prefix then it'll be built as a PCI | ||
ROM, which won't work properly in VirtualBox. The error message you'll see | ||
is "No more network devices", which is somewhat confusing. If you enter the | ||
shell and use the "autoboot" command things will work as intended. Remember | ||
to always build as a .isarom to avoid this issue. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters