Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Failure to boot on real hardware or bhyve (Exhausted heap space) #173

@shamazmazum

Description

@shamazmazum

When trying to boot with bhyve or real hardware, the bootloader loads about 116000 pages and then fails with the following:

vasily@resurrected:/home/shared/test % bhyve -c 2 -m 10G -w -H -s 0,hostbridge -s 4,ahci-cd,Mezzano.Demo.5.CD-USB-hybrid.iso -s 29,fbuf,tcp=192.168.20.1:5901,w=1920,h=1080,wait -s 30,xhci,tablet -s 31,lpc -l com1,stdio -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CODE-devel.fd mezzano
Unable to setup memory (22)
vasily@resurrected:/home/shared/test % bhyve -c 2 -m 10G -w -H -s 0,hostbridge -s 4,ahci-cd,Mezzano.Demo.5.CD-USB-hybrid.iso -s 29,fbuf,tcp=192.168.20.1:5901,w=1920,h=1080,wait -s 30,xhci,tablet -s 31,lpc -l com1,stdio -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CODE-devel.fd mezzano
fbuf frame buffer base: 0xac1e00000 [sz 16777216]
BdsDxe: loading Boot0001 "UEFI BHYVE SATA DVD ROM BHYVE-83CE-D888-D389" from PciRoot(0x0)/Pci(0x4,0x0)/Sata(0x0,0xFFFF,0x0)
BdsDxe: starting Boot0001 "UEFI BHYVE SATA DVD ROM BHYVE-83CE-D888-D389" from PciRoot(0x0)/Pci(0x4,0x0)/Sata(0x0,0xFFFF,0x0)
efi: base @ 0xbe23e000, text @ 0xbe23f000, data @ 0xbe258000, bss @ 0xbe265000
efi: usable memory ranges (31 total):
 0x0000000000001000-0x00000000000a0000 (636 KiB)
 0x0000000000100000-0x0000000000806000 (7192 KiB)
 0x0000000000807000-0x0000000000820000 (100 KiB)
 0x0000000001400000-0x00000000bbfbe000 (3059448 KiB)
 0x00000000bbfde000-0x00000000be23e000 (35200 KiB)
 0x00000000beb1b000-0x00000000beea4000 (3620 KiB)
 0x00000000bf200000-0x00000000bf201000 (4 KiB)
 0x00000000bfe00000-0x00000000bff39000 (1252 KiB)
 0x0000000100000000-0x00000002c0000000 (7340032 KiB)
loader: version is 20151220+42af04c
efi: boot device is PciRoot(0x0)/Pci(0x4,0x0)/Sata(0x0,0xFFFF,0x0)/CDROM(0x1,0x63,0x800)
fs: mounted ISO9660 on cdrom0 ('CDROM') (uuid: 2020-07-24-17-08-49-00)
device: detected devices:
 cdrom0  -> EFI disk PciRoot(0x0)/Pci(0x4,0x0)/Sata(0x0,0xFFFF,0x0)
device: boot device is cdrom0
config: reading configuration file '/boot/kboot.cfg'
mezzano: Loading image 5cf6ee79-2cdf-05a1-ba4b-6325c41a5f10 on device /image with protocol version 0.26
mezzano: Entry fref at 7fff8cde09. Initial process at 013c3139.
mezzano: Loading image 5cf6ee79-2cdf-05a1-ba4b-6325c41a5f10 on device /image with protocol version 0.26
mezzano: Entry fref at 7fff8cde09. Initial process at 013c3139.
mezzano: Loading image 5cf6ee79-2cdf-05a1-ba4b-6325c41a5f10 on device /image with protocol version 0.26
mezzano: Entry fref at 7fff8cde09. Initial process at 013c3139.
mezzano: Loading image 5cf6ee79-2cdf-05a1-ba4b-6325c41a5f10 on device /image with protocol version 0.26
mezzano: Entry fref at 7fff8cde09. Initial process at 013c3139.
mezzano: Loading image 5cf6ee79-2cdf-05a1-ba4b-6325c41a5f10 on device /image with protocol version 0.26
mezzano: Entry fref at 7fff8cde09. Initial process at 013c3139.
mezzano: Loading image 5cf6ee79-2cdf-05a1-ba4b-6325c41a5f10 on device /image with protocol version 0.26
mezzano: Entry fref at 7fff8cde09. Initial process at 013c3139.
mezzano: Loading image 5cf6ee79-2cdf-05a1-ba4b-6325c41a5f10 on device /image with protocol version 0.26
mezzano: Entry fref at 7fff8cde09. Initial process at 013c3139.
mezzano: Loading image 5cf6ee79-2cdf-05a1-ba4b-6325c41a5f10 on device /image with protocol version 0.26
mezzano: Entry fref at 7fff8cde09. Initial process at 013c3139.
menu: booting menu entry 'Mezzano - video console'
Loading 133179 pages...

Internal Error: Exhausted heap space (want 1360 bytes)

Please report this error to https://github.com/aejsmith/kboot
Version: 20151220+42af04c
Backtrace (base = 0xbe23e000):
 0xbe251b43 (0x13b43)
 0xbe25304e (0x1504e)
 0xbe2439ac (0x59ac)
 0xbe242e55 (0x4e55)
 0xbe24db63 (0xfb63)
 0xbe250044 (0x12044)
 0xbe250271 (0x12271)
 0xbe25058a (0x1258a)
 0xbe252e68 (0x14e68)
 0xbe243761 (0x5761)
 0xbff6aacc (0x1d2cacc)

Both real hardware and bhyve use UEFI for booting the OS. Should I probably report this to aejsmith/kboot as suggested?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions