public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] OS hangs at Exit Boot Services
@ 2025-03-20 12:27 Mounika via groups.io
  2025-03-27 13:46 ` Alireza Banejad via groups.io
  0 siblings, 1 reply; 2+ messages in thread
From: Mounika via groups.io @ 2025-03-20 12:27 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 2208 bytes --]

We are trying to boot RTOS on TGL platform with SBL+UEFI payload.
We discussed with our OS vendor, and we started booting OS with default payload and we were able to boot OS, but when we tried switching to UEFI payload, OS didn't boot
and it got stuck at below prints.

XhcClearBiosOwnership: called to clear BIOS ownership
FPDT: -ResetEnd                = 339000000
FPDT: -OsLoaderLoadImageStart  = 15095000000
FPDT: -OsLoaderStartImageStart = 15126000000
FPDT: -ExitBootServicesEntry   = 24262000000
FSP NotifyPhase EndOfFirmware Success.
gAddPerfRecordProtocolGuid - Locate protocol failed
SmmInstallProtocolInterface: 296EB418-C4C8-4E05-AB59-39E8AF56F00A 0
CpuDxe: 5-Level Paging = 0
MpInitChangeApLoopCallback() done!
SetUefiImageMemoryAttributes - 0x00000000759CC000 - 0x000000000000A000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x00000000759C2000 - 0x000000000000A000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x00000000759B8000 - 0x000000000000A000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x00000000759AE000 - 0x000000000000A000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x00000000759A5000 - 0x0000000000009000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x0000000075999000 - 0x000000000000C000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x000000007598C000 - 0x000000000000D000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x0000000075983000 - 0x0000000000009000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x000000007597A000 - 0x0000000000009000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x0000000075970000 - 0x000000000000A000 (0x0000000000000008)

We just want some clarifications regarding exit boot services, whether EFI boot services succeeded or failed and where to add debug prints to identify the issue?


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121225): https://edk2.groups.io/g/devel/message/121225
Mute This Topic: https://groups.io/mt/111930976/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



[-- Attachment #2: Type: text/html, Size: 2825 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [edk2-devel] OS hangs at Exit Boot Services
  2025-03-20 12:27 [edk2-devel] OS hangs at Exit Boot Services Mounika via groups.io
@ 2025-03-27 13:46 ` Alireza Banejad via groups.io
  0 siblings, 0 replies; 2+ messages in thread
From: Alireza Banejad via groups.io @ 2025-03-27 13:46 UTC (permalink / raw)
  To: devel, mounika.a

Hello Mounika,
I have had the same issue with my platform and had the OS stuck for
different reasons. These are the things you can do to see if you are
making any progress:
1. I had the OS stuck at the same place you are stuck because of the
PROGRESS CODE reports and the DEBUG logs sending data through the
serial port. Try to disable these logs and see if you can get any
further.
The reason is that the hardware should completely be within the OS's
possession at this point, so calls to the serial port at further
stages, such as the RunTime Stage, may crash the processor.
2. Try to check the memory map passed from SBL to EDK2 as a HOB is
completely correct.

Best,
Alireza


On Thu, Mar 27, 2025 at 7:38 AM Mounika via groups.io
<mounika.a=coreel.com@groups.io> wrote:
>
> We are trying to boot RTOS on TGL platform with SBL+UEFI payload.
> We discussed with our OS vendor, and we started booting OS with default payload and we were able to boot OS, but when we tried switching to UEFI payload, OS didn't boot
> and it got stuck at below prints.
>
> XhcClearBiosOwnership: called to clear BIOS ownership
> FPDT: -ResetEnd                = 339000000
> FPDT: -OsLoaderLoadImageStart  = 15095000000
> FPDT: -OsLoaderStartImageStart = 15126000000
> FPDT: -ExitBootServicesEntry   = 24262000000
> FSP NotifyPhase EndOfFirmware Success.
> gAddPerfRecordProtocolGuid - Locate protocol failed
> SmmInstallProtocolInterface: 296EB418-C4C8-4E05-AB59-39E8AF56F00A 0
> CpuDxe: 5-Level Paging = 0
> MpInitChangeApLoopCallback() done!
> SetUefiImageMemoryAttributes - 0x00000000759CC000 - 0x000000000000A000 (0x0000000000000008)
> SetUefiImageMemoryAttributes - 0x00000000759C2000 - 0x000000000000A000 (0x0000000000000008)
> SetUefiImageMemoryAttributes - 0x00000000759B8000 - 0x000000000000A000 (0x0000000000000008)
> SetUefiImageMemoryAttributes - 0x00000000759AE000 - 0x000000000000A000 (0x0000000000000008)
> SetUefiImageMemoryAttributes - 0x00000000759A5000 - 0x0000000000009000 (0x0000000000000008)
> SetUefiImageMemoryAttributes - 0x0000000075999000 - 0x000000000000C000 (0x0000000000000008)
> SetUefiImageMemoryAttributes - 0x000000007598C000 - 0x000000000000D000 (0x0000000000000008)
> SetUefiImageMemoryAttributes - 0x0000000075983000 - 0x0000000000009000 (0x0000000000000008)
> SetUefiImageMemoryAttributes - 0x000000007597A000 - 0x0000000000009000 (0x0000000000000008)
> SetUefiImageMemoryAttributes - 0x0000000075970000 - 0x000000000000A000 (0x0000000000000008)
>
> We just want some clarifications regarding exit boot services, whether EFI boot services succeeded or failed and where to add debug prints to identify the issue?
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121230): https://edk2.groups.io/g/devel/message/121230
Mute This Topic: https://groups.io/mt/111930976/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-03-27 13:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-20 12:27 [edk2-devel] OS hangs at Exit Boot Services Mounika via groups.io
2025-03-27 13:46 ` Alireza Banejad via groups.io

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox