U-Boot loader for arm64 bhyve
The loader is configured to boot automatically from the first VirtIO block
device. Specify
-o bootrom=$LOCALBASE/share/u-boot/u-boot-bhyve-arm64/u-boot.bin
in bhyve(8) parameters. Note that this loader is experimental as the arm64
bhyve port is still under development.
sysutils/u-boot-bhyve-arm64: Fix after the 2024.01 import
Because this config is not yet upstreamed (pending arm64/bhyve/vmm
actually landing in main), we have to maintain our own for the time
being.
Tweak the config to work around two problems which arose after the
latest update:
- EFI support implies SMBIOS support, which requires that we implement a
finalizer, which we don't have. Since SMBIOS support isn't required,
just remove it.
- Don't configure EVENT, as we don't use it, and its configuration
implies that we implement a hook that runs immediately before command
processing.
While here, incorporate a patch from jrtc27 which permits booting from
images formatted using an MBR.
Reviewed by: manu, jrtc27
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D43784
Differential Revision: https://reviews.freebsd.org/D43785
sysutils/u-boot-bhyve-arm64: Fix the GIC redistributor size
This is needed when booting multi-vCPU guests.
Reviewed by: manu
Obtained from: jrtc27
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D42995
sysutils/u-boot-bhyve-arm64: New port
This is a port of https://github.com/zxombie/u-boot/tree/bhyvearm64 to
the version of u-boot in the ports tree. There is a bhyve arm64 port
that is close to landing, so now seems like a good time to make the port
available.
In the longer term we would upstream this platform in some form, but
since arm64 bhyve is experimental, I think trying to upstream at this
point is premature. Of course, we prefer not to carry patches in the
ports tree when possible, but in this case it seems justified to do so
for some time, to give users a change to test and report problems.
Approved by: manu
Sponsored by: Innovate UK
Sponsored by: Klara, Inc. (hardware)
Differential Revision: https://reviews.freebsd.org/D42437