mfsbsd icon indicating copy to clipboard operation
mfsbsd copied to clipboard

UEFI-compatible img build

Open lapo-luchini opened this issue 9 years ago • 8 comments

I'm helping a friend doing recovery on his hard-disk on his brand new UEFI-only system, and he reports that mfsBSD image doesn't boot, while FreeBSD’s UEFI-memstick does work nicely. I will try and see if I can manage to build it, but it would be nice to have it on the official website too.

lapo-luchini avatar Jun 16 '16 13:06 lapo-luchini

have similar problem with lenovo x220. It just does not boot legacy gpt

s4ms0n avatar Mar 27 '18 20:03 s4ms0n

I have tried this, but UEFI Bootloader gave me strange errors

NeoChen1024 avatar Sep 22 '18 02:09 NeoChen1024

@mmatuska What's the overall status of mfsbsd booting in UEFI mode from, say, a USB stick?

For me, a stock FreeBSD 12 boots fine in UEFI mode from USB, but when I build mfsbsd 12, the USB stick itself isn't seen as a UEFI-bootable device.

Intensity avatar Dec 18 '18 21:12 Intensity

@mmatuska we have the same issue with UEFI boot, have not seen update for this issue, you must be quite busy on something. Wonder if you can shed some light how to make the UEFI boot working, we can figure out by ourselves. Big thanks!

joe-zhou-ripple avatar Jan 15 '19 22:01 joe-zhou-ripple

I am trying to setup UEFI netboot with mfsbsd. I copied FreeBSD's loader.efi and it can load the kernel successfully. However, /dev/md0 is failed to mount.

I caught the following error maybe helpful: mfsbsd_error

cuihaoleo avatar Feb 01 '19 06:02 cuihaoleo

EFI_STAGING_SIZE is too small https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209944

stamak avatar Apr 26 '19 12:04 stamak

Anyone had luck with this? I did couple of changes to the Makefile to generate an UEFI ISO but I'm facing the same issue as @cuihaoleo.

Screenshot 2019-08-27 17 19 59

I have tried using the latest loader.efi available in FreeBSD-11.3-STABLE-amd64-20190822-r351362-bootonly.iso and is the same. This loader.efi have the following commit which should allow up to 100Mb memory allocation so I think the problem is elsewhere.

Any feedback is highly appreciated so I can send an MR to add UEFI.

PS: For some reason I have to run all those commands manually otherwise it does not boot.

Thanks!

amontalban avatar Aug 27 '19 20:08 amontalban

Hello,

I just submited a PR #100, would love to get some feedback from you (I only tested with FreeBSD 11.3).

Thanks!

amontalban avatar Aug 30 '19 13:08 amontalban