GRUB port refurbish patch

Eric McCorkle eric at metricspace.net
Sat Sep 7 01:35:04 UTC 2019


I've posted a review for my work on refurbishing the GRUB port:

https://reviews.freebsd.org/D21558

I don't consider this all the way ready at this point, but it can be
tested by others at this point.

As it currently stands, this fixes things to where grub-install will
actually work again, and I have used the resulting install to boot on
real UEFI hardware.

The port also adds the QEMU target (which I haven't tested), as well as
a Coreboot target (which can't really be tested right now)

Current issues:

At present, GRUB doesn't seem to be passing the necessary information to
the kernel to initialize the EFI frame buffer, so the screen will be
blank until my system switches to the intel graphics drivers.  I suspect
this is because GRUB lacks the ability to create the parameter modules
used to do this (and also to pass in keys via keybufs).  I will add this
ability, but that's really more of a GRUB patch.  Aside from that, the
UEFI mode seems to work.

grub-install doesn't auto-detect the modules to build into the grub
image; you'll need to use the --modules argument to do that, or you'll
end up with an unbootable system.

grub-install also tries to use efibootmgr to set up efi vars, which
isn't present on FreeBSD.  You'll have to give it the --no-nvram
argument (I'll probably add a patch to make that the default).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20190906/fef7df65/attachment.sig>


More information about the freebsd-hackers mailing list