Remote logging during boot

Hello,
Can I remote log the boot of CoreOS.
It is installed on raspberry pi with edk2, what to my knowledge, support Ethernet.

CoreOS crashes during boot, USB stops working, so how the only option I have in mind currently is to log to a remote log server.

I would think that UEFI, bootloader and kernel could all be configured to use a serial console and that serial console data could be saved to disk externally.

The kernel has netconsole. Maybe edk2 console output could go through a ConSplitter sending both UEFI and bootloader to the network? Some experimentation will be needed here…

I’ll do Provisioning Fedora CoreOS on the Raspberry Pi 4 :: Fedora Docs with EDK2 and Combined Disk.
Unfortunately, it fails during booting FCOS and USB Driver are not loaded, when Devicetree is activated.
So my last hope is to log to a remote server.

EDK2 boot → GRUB and starting FCOS boot works, but then it crashes.
I would need guidance to get the remote log working

I think the key is to get edk2 to use a serial or netconsole. I am not sure what drivers edk2 has to support this but I would want efi drivers first.

Next would be to get grub2 to use the console edk2 provides and I would think the GRUB_TERMINAL=console would do it but I don’t really know.

I asked at EDK2 Discussion: Can EDK2 output to netconsole to allow remote logging of boot · tianocore/edk2 · Discussion #10580
let’s see what happens.