bzImage under x86_64 UEFI app mode.

Hi.
I'm trying the new UEFI-app mode where I rely on EFI services to give me access to things like block devices etc. I'm currently using 2022.04-rc1. So far so good. I can start U-boot and the efi block device works just fine.
But I'm not succeeding in booting a regular bzImage. This kernel (5.16.4) configuration works on both the physical hardware and an UEFI x86_64 VBox instance using Barebox 2021.08, so kernel configuration should in theory be ok. It's a bzImage with a efistub.
I can load a kernel or kernel+initrd baked in, verify the data and use zboot on the loadaddr. zboot does not complain afaics. The kernel however, does not seem to make it very far.
Valid Boot Flag Setup Size = 0x00003a00 Magic signature found Using boot protocol version 2.0f Linux kernel version 5.16.4 (ptxdist@ptxdist) #4 SMP PREEMPT 2022-02-01T00:00:00+00:00 Building boot_params at 0x00090000 Loading bzImage at address 100000 (69330784 bytes) Initial value for argc=3 Final value for argc=3 Initial value for argc=3 Final value for argc=3 Setup E820 entries Setup cmdline Kernel command line:console=$(console) rdinit=/sbin/init quiet rw secpboot=factoryimage Kernel command line: "console=tty0 rdinit=/sbin/init quiet rw secpboot=factoryimage" Setup devicetree Kernel loaded at 00100000, setup_base=0000000000090000
Starting kernel ...
tsc-timer: When removing: flags=600, drv->flags=0, err=-129 serial: When removing: flags=600, drv->flags=0, err=-129 efi-fb.vidconsole0: When removing: flags=600, drv->flags=0, err=-129 efi-fb: When removing: flags=600, drv->flags=0, err=-129 efi_media.blk: When removing: flags=600, drv->flags=0, err=-129 efi_media_0: When removing: flags=600, drv->flags=0, err=-129 root_driver: When removing: flags=600, drv->flags=0, err=-129 !!!! X64 Exception Type - 0D(#GP - General Protection) CPU Apic ID - 00000000 !!!! ExceptionData - 0000000000000000 RIP - 000000000010001A, CS - 0000000000000038, RFLAGS - 0000000000010006 RAX - 000000000431E490, RCX - 0000000000000000, RDX - 00000000FFFFFFFB RBX - 0000000000000000, RSP - 00000000000901E8, RBP - 0000000000100000 RSI - 0000000000090000, RDI - 0000000000000000 R8 - 0000000000000020, R9 - 000000000000000A, R10 - 000000000000000D R11 - 0000000000000008, R12 - 0000000000090000, R13 - 00000000DB2372C8 R14 - 00000000D9D0D9D8, R15 - 00000000FFFFFFFF DS - 0000000000000030, ES - 0000000000000030, FS - 0000000000000030 GS - 0000000000000030, SS - 0000000000000030 CR0 - 00000000C0010033, CR2 - 0000000000000000, CR3 - 00000000DB001000 CR4 - 0000000000000668, CR8 - 0000000000000000 DR0 - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000 DR3 - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400 GDTR - 00000000DAFF2018 0000000000000047, LDTR - 0000000000000000 IDTR - 00000000DAC04018 0000000000000FFF, TR - 0000000000000000 FXSAVE_STATE - 000000000008FE40 !!!! Can't find image information. !!!!
Hints?
participants (1)
-
Christian Melki