Skip to content

Instantly share code, notes, and snippets.

@robinsmidsrod
Created November 2, 2012 12:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinsmidsrod/4001104 to your computer and use it in GitHub Desktop.
Save robinsmidsrod/4001104 to your computer and use it in GitHub Desktop.
VirtualBox LAN boot ROM max size calculation
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