Created
November 2, 2012 12:37
-
-
Save robinsmidsrod/4001104 to your computer and use it in GitHub Desktop.
VirtualBox LAN boot ROM max size calculation
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
include/iprt/cdefs.h | |
1888:#define _64K 0x00010000 | |
src/VBox/Devices/PC/DevPcBios.h | |
43:#define VBOX_LANBOOT_SEG 0xe200 | |
src/VBox/Devices/PC/DevPcBios.cpp | |
1348: if (cbFileLanBoot > _64K - (VBOX_LANBOOT_SEG << 4 & 0xffff)) | |
$ perl -e 'printf "%x\n", 0x10000 - 0xe200 << 4 & 0xffff' | |
e000 | |
$ perl -e 'printf "%d\n", 0x10000 - 0xe200 << 4 & 0xffff' | |
57344 | |
C:\Users\robin>vboxmanage getextradata TestVM enumerate | |
Key: VBoxInternal/Devices/pcbios/0/Config/LanBootRom, Value: S:\forked\ipxe\src\bin\8086100e.rom | |
Key: VBoxInternal/Devices/pcbios/0/Config/PXEDebug, Value: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment