Created attachment 170922 [details]
screenshot from virtualbox when kernel panics
while trying to uefi boot FreeBSD 10.3 from memory disk (mfsroot) kernel panics
w/ "panic: error reading '/mfsroot': cant allocate memory" (pic in attach)
Tried on VM (VirtualBox 5.0.20) w/ 1024MB of RAM and on HP Gen9 (256Gig of RAM; Bios version P89 1.32). Both was panicking with the same result.
i was using http://mfsbsd.vx.sk/ to build this image w/ default loader.conf provided by mfsbsd:
disk image is using ufs as FS for bsd's partition.
I'm not sure if it's mfs or efi issue. Would be great if we would be at least figure out this.
If you need any other info - please let me know
The reason why mem allocation was failing is because default value of EFI_STAGING_SIZE is 48M, and if mfsroot is bigger than that - booting fails.
building a custom loader.efi w/ value for EFI_STAGING_SIZE bigger than mfsroot's size fixed this panic.