On Thu., Sep. 14, 2023, 09:18 Matt DeVillier, <matt.devillier@gmail.com> wrote:


On Wed, Sep 13, 2023 at 11:28 PM Keith Hui <buurin@gmail.com> wrote:


I did add SeaBIOS as
secondary payload, and it couldn't boot. Then I pulled out the main
drive out of my laptop which is all UEFI, and it booted fine after
probably 30 seconds of nothing - the first thing I saw on screen is
the Fedora spinner. Nothing from edk2 or grub on the drive.

edk2 doesn't support secondary payloads

Then how should edk2 + CSM (seabios?) + (i)PXE be set up so it can boot from anything?


 

There also was a bit of delay on my connected serial console, then
when info finally started flowing, it's already well into ramstage.
And when I checked cbmem, it unfortunately overflowed so I lost logs
of raminit, which would be most important given my patch train now
under review. It would take a warm reboot before I start getting the
head of the boot logs.

I didn't set a boot logo.

What more set up I have to do to get my edk2 and grub boot menu back?

I've attached logs from minicom, cbmem, and my Kconfig, if it helps.

as Nico said, you need to use a linear framebuffer, not vga text. The display resolution should be native.

also, edk2 cbmem logging may or may not work, and may or may not slow down boot time.

I'll report back when I return from a trip in a week.

edk2 cbmem logging probably works. I remember seeing some EFI things in there.

Thanks
Keith