arm64-gate icon indicating copy to clipboard operation
arm64-gate copied to clipboard

qemu: use u-boot here, too

Open richlowe opened this issue 1 year ago • 4 comments

There's a couple of reasons to do this, but I think they end up basically the same.

  1. It means all the boards boot the same way (a reasonable thing to expect to continue on systems that aren't UEFI).
  2. Most actual hardware requires some level of firmware initialization, without firmware on qemu, that initialization never happens and the OS has to take care of it. It would be nice if that were possible, but it's a lot of work that's not really ARM-specific

This doesn't use arm-trusted-firmware as well since that is for the moment less relevant and being an "insecure" CPU world is perhaps an interesting quirk to preserve.

richlowe avatar Jul 10 '24 23:07 richlowe

@rmustacc this seems like a cop out, but it's probably an expedient cop out, right?

richlowe avatar Jul 10 '24 23:07 richlowe

I've also booted this under qemu in an emu-branded OmniOS zone - also successful once I removed the secure=on that we were putting in there.

citrus-it avatar Jul 11 '24 10:07 citrus-it

@rmustacc this seems like a cop out, but it's probably an expedient cop out, right?

I don't know the cost of using u-boot, but seems like a reasonably starting point for now to me.

rmustacc avatar Jul 11 '24 16:07 rmustacc

I've also booted this under qemu in an emu-branded OmniOS zone - also successful once I removed the secure=on that we were putting in there.

I would have expected secure=on to imply we came up in EL3 and would really prefer to have the trusted firmware in there. I'm surprised things worked if we come up in EL3 without the firmware. hm.

richlowe avatar Jul 11 '24 19:07 richlowe

@r1mikey I left this dangling because it isn't actually necessary to me until the rest of PCI support works properly.

That said, I think your plan long-term includes us using u-boot too (and possibly, its UEFI, but I don't think that is important right now). If so, would me merging this now make sense?

One thing I've noticed is that, with this, virtio_mmio nodes self-identify, so we can make use of that globally if we're willing to say "We're going to use u-boot on all non-SBSA systems"?

richlowe avatar Feb 08 '25 22:02 richlowe

I'm working on top of this change for getting loader up.

No further changes were needed for UEFI to work, so it'd be great to get this in.

r1mikey avatar Feb 08 '25 23:02 r1mikey