i have solved this problem. Seemed there was a problem with the USB stick I was booting from anyways. The kernel gets stuck after exiting CoreExitBootServices.
I tried putting debug logs on other RunTime services functions but nothing seems to be happening, Is the kernel stalling for interrupts or memory writes?

Sent with Proton Mail secure email.

On Sunday, March 2nd, 2025 at 6:17 PM, memristor2 via groups.io <memristor2=proton.me@groups.io> wrote:
Hello Everyone,
I have already asked this question but I am sending it again since I found more info on this matter.
I have built coreboot with UEFIpayload and Universal Payload but either way grub can't load the OS. I the OS I am trying to boot is Ubuntu 24.02 and it shows the grub menu but hangs when linux kernel is tried to call. below is part of the log I got from the BIOS:

FSOpen: Open '\efi\rufus\ntfs_x64.efi' Success
[Security] 3rd party image[0] can be loaded after EndOfDxe: PciRoot(0x1F)/Pci(0x7,0x0)/Pci(0x0,0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)/USB(0x1,0x0)/USB(0x1,0x0)/HD(2,MBR,0x1B2B42E0,0x39D17A5,0x81F)/\efi\rufus\ntfs_x64.efi.
CcMeasurementProtocol is not installed. - Not Found
Tcg2Protocol is not installed. - Not Found
None of Tcg2Protocol/CcMeasurementProtocol is installed.
InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 605533C0

Loading driver at 0x0006052F000 EntryPoint=0x0006054488B ntfs.efi
InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 60350218
ProtectUefiImageCommon - 0x605533C0
  - 0x000000006052F000 - 0x0000000000023180
[CoreStartImage], started - memristor.
[CoreStartImage], ImageInfo loaded - memristor.
[CoreStartImage], before preformance measurement - memristor.
[CoreStartImage], After preformance measurement - memristor.
[CoreStartImage], Before allocating pool - memristor.
[CoreStartImage], Before Aligning pointer - memristor.
[CoreStartImage], Before setting jump - memristor.
[CoreStartImage], set jump is zero - memristor.
[CoreStartImage], about to call image entry point - memristor.
[FindVariableEx],started-memristor.
[FindVariableEx],started-memristor.
InstallProtocolInterface: F4ED18CA-CDFB-40CA-97EC-322A8B014E5F 60551FB0
InstallProtocolInterface: 18A031AB-B443-4D1A-A5C0-0C09261E9F71 60551D60
InstallProtocolInterface: 107A772C-D5E1-11D4-9A46-0090273FC14D 60551D10
InstallProtocolInterface: 6A7A5CFF-E8D9-4F70-BADA-75AB3025CE14 60551CE0
[CoreStartImage], image has returned - memristor.
InstallProtocolInterface: 964E5B22-6459-11D2-8E39-00A0C969723B 605537A8
[Security] 3rd party image[0] can be loaded after EndOfDxe: PciRoot(0x1F)/Pci(0x7,0x0)/Pci(0x0,0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)/USB(0x1,0x0)/USB(0x1,0x0)/HD(1,MBR,0x1B2B42E0,0x800,0x39D0F80)/\EFI\boot\bootx64.efi.
CcMeasurementProtocol is not installed. - Not Found
Tcg2Protocol is not installed. - Not Found
None of Tcg2Protocol/CcMeasurementProtocol is installed.
InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 6031E7C0

Loading driver at 0x0005FD48000 EntryPoint=0x0005FD6B000
InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 60312D18
ProtectUefiImageCommon - 0x6031E7C0
  - 0x000000005FD48000 - 0x00000000000D7000

ValidateSetVariable - Variable (605DAB50-E046-4300-ABB6-3DD810DD8B23:SbatLevel) returning Success.

ValidateSetVariable - Variable (605DAB50-E046-4300-ABB6-3DD810DD8B23:MokListRT) returning Success.

ValidateSetVariable - Variable (605DAB50-E046-4300-ABB6-3DD810DD8B23:MokListXRT) returning Success.

ValidateSetVariable - Variable (605DAB50-E046-4300-ABB6-3DD810DD8B23:MokListTrustedRT) returning Success.

MemoryAttributesTable:
  Version              - 0x00000002
  NumberOfEntries      - 0x00000013
  DescriptorSize       - 0x00000030
Entry (0x5FF0C6A8)
  Type              - 0x5
  PhysicalStart     - 0x0000000063253000
  VirtualStart      - 0x0000000000000000
  NumberOfPages     - 0x00000000000000C8
  Attribute         - 0x8000000000000000
Entry (0x5FF0C6D8)
  Type              - 0x5
  PhysicalStart     - 0x000000006331B000
  VirtualStart      - 0x0000000000000000
  NumberOfPages     - 0x0000000000000001
  Attribute         - 0x8000000000004000
Entry (0x5FF0C708)
  Type              - 0x5
  PhysicalStart     - 0x000000006331C000
  VirtualStart      - 0x0000000000000000
  NumberOfPages     - 0x0000000000000004
  Attribute         - 0x8000000000020000
Entry (0x5FF0C738)
  Type              - 0x5
  PhysicalStart     - 0x0000000063320000
  VirtualStart      - 0x0000000000000000
  NumberOfPages     - 0x0000000000000002
  Attribute         - 0x8000000000004000
Entry (0x5FF0C768)
  Type              - 0x5
  PhysicalStart     - 0x0000000063322000
  VirtualStart      - 0x0000000000000000
  NumberOfPages     - 0x0000000000000003
  Attribute         - 0x8000000000020000
Entry (0x5FF0C798)
  Type              - 0x5
  PhysicalStart     - 0x0000000063325000
  VirtualStart      - 0x0000000000000000
  NumberOfPages     - 0x0000000000000003
  Attribute         - 0x8000000000004000
Entry (0x5FF0C7C8)
  Type              - 0x5
  PhysicalStart     - 0x0000000063328000
  VirtualStart      - 0x0000000000000000
  NumberOfPages     - 0x0000000000000002
  Attribute         - 0x8000000000020000
Entry (0x5FF0C7F8)
  Type              - 0x5
  PhysicalStart     - 0x000000006332A000
  VirtualStart      - 0x0000000000000000
  NumberOfPages     - 0x0000000000000002
  Attribute         - 0x8000000000004000
Entry (0x5FF0C828)
  Type              - 0x5
  PhysicalStart     - 0x000000006332C000
  VirtualStart      - 0x0000000000000000
  NumberOfPages     - 0x0000000000000003
  Attribute         - 0x8000000000020000
Entry (0x5FF0C858)
  Type              - 0x5
  PhysicalStart     - 0x000000006332F000
  VirtualStart      - 0x0000000000000000
  NumberOfPages     - 0x0000000000000002
  Attribute         - 0x8000000000004000
Entry (0x5FF0C888)
  Type              - 0x5
  PhysicalStart     - 0x0000000063331000
  VirtualStart      - 0x0000000000000000
  NumberOfPages     - 0x000000000000000E
  Attribute         - 0x8000000000020000
Entry (0x5FF0C8B8)
  Type              - 0x5
  PhysicalStart     - 0x000000006333F000
  VirtualStart      - 0x0000000000000000
  NumberOfPages     - 0x0000000000000003
  Attribute         - 0x8000000000004000
Entry (0x5FF0C8E8)
  Type              - 0x5
  PhysicalStart     - 0x0000000063342000
  VirtualStart      - 0x0000000000000000
  NumberOfPages     - 0x0000000000000003
  Attribute         - 0x8000000000020000
Entry (0x5FF0C918)
  Type              - 0x5
  PhysicalStart     - 0x0000000063345000
  VirtualStart      - 0x0000000000000000
  NumberOfPages     - 0x0000000000000003
  Attribute         - 0x8000000000004000
Entry (0x5FF0C948)
  Type              - 0x5
  PhysicalStart     - 0x0000000063348000
  VirtualStart      - 0x0000000000000000
  NumberOfPages     - 0x0000000000000004
  Attribute         - 0x8000000000020000
Entry (0x5FF0C978)
  Type              - 0x5
  PhysicalStart     - 0x000000006334C000
  VirtualStart      - 0x0000000000000000
  NumberOfPages     - 0x0000000000000002
  Attribute         - 0x8000000000004000
Entry (0x5FF0C9A8)
  Type              - 0x5
  PhysicalStart     - 0x000000006334E000
  VirtualStart      - 0x0000000000000000
  NumberOfPages     - 0x0000000000000003
  Attribute         - 0x8000000000020000
Entry (0x5FF0C9D8)
  Type              - 0x5
  PhysicalStart     - 0x0000000063351000
  VirtualStart      - 0x0000000000000000
  NumberOfPages     - 0x0000000000000002
  Attribute         - 0x8000000000004000
Entry (0x5FF0CA08)
  Type              - 0x6
  PhysicalStart     - 0x0000000063353000
  VirtualStart      - 0x0000000000000000
  NumberOfPages     - 0x0000000000000100
  Attribute         - 0x8000000000004000


ValidateSetVariable - Variable (605DAB50-E046-4300-ABB6-3DD810DD8B23:ShimRetainProtocol) returning Success.
InstallProtocolInterface: 605DAB50-E046-4300-ABB6-3DD810DD8B23 5FDFCE60
InstallProtocolInterface: 4006C0C1-FCB3-403E-996D-4A6C8724E06D 5F7C1A10
InstallProtocolInterface: 09576E91-6D3F-11D2-8E39-00A0C969723B 5F7C1A20
!!!! X64 Exception Type - 0D(#GP - General Protection)  CPU Apic ID - 00000000 !!!!
ExceptionData - 0000000000000000
RIP  - 000000005C99DD20, CS  - 0000000000000038, RFLAGS - 0000000000210202
RAX  - 1C1C488766FFBC35, RCX - 000000005C9DB87C, RDX - 0000000000000000
RBX  - 000000005BB372FA, RSP - 00000000057C98C8, RBP - 000000005BB37332
RSI  - 0000000000000007, RDI - 000000000000000B
R8   - 0000000000000035, R9  - 0004380A01C200CB, R10 - 0004380A01C20024
R11  - 00000000000000AB, R12 - 000000005BB37331, R13 - 000000005BB37302
R14  - 0004380A01C200C8, R15 - 000000000000007F
DS   - 0000000000000030, ES  - 0000000000000030, FS  - 0000000000000030
GS   - 0000000000000030, SS  - 0000000000000030
CR0  - 0000000080010013, CR2 - 0000000000000000, CR3 - 0000000005201000
CR4  - 0000000000000668, CR8 - 0000000000000000
DR0  - 0000000000000000, DR1 - 0000000000000000, DR2 - 000000006363A020
DR3  - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 000000000D0F0400
GDTR - 0000000063417000 0000000000000047, LDTR - 0000000000000000
IDTR - 0000000062EA6018 0000000000000FFF,   TR - 0000000000000000
FXSAVE_STATE - 00000000057C9520
[PeCoffSearchImageBase] in /home/memristor/Documents/coreboot/payloads/external/edk2/workspace/mrchromebox/MdePkg/Library/BasePeCoffGetEntryPointLib/PeCoffGetEntryPoint.c, started - memristor.
[PeCoffLoaderGetEntryPoint] in /home/memristor/Documents/coreboot/payloads/external/edk2/workspace/mrchromebox/MdePkg/Library/BasePeCoffGetEntryPointLib/PeCoffGetEntryPoint.c, started - memristor.
!!!! Find image based on IP(0x5C99DD20) [PeCoffLoaderGetPdbPointer] in /home/memristor/Documents/coreboot/payloads/external/edk2/workspace/mrchromebox/MdePkg/Library/BasePeCoffGetEntryPointLib/PeCoffGetEntryPoint.c, started - memristor.
(No PDB)  (ImageBase=000000005BB32000, EntryPoint=000000005C9C5BFA) !!!!

Sent with Proton Mail secure email.

_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#121146) | | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_