From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 9ABDD9418C4 for ; Thu, 27 Mar 2025 13:46:29 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=tW9HYvs5thbG7979LYgu39bbBa9Xx9hrn2+pJA32jyc=; c=relaxed/simple; d=groups.io; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20240830; t=1743083189; v=1; x=1743342388; b=pYZ0PBKyOanR2jvpXAbVt6Gc/HStu0XgV/MXLgfQLRFYYxeD5bFrnqfSLKsZPpFpf2fHyNIE fbI4KOT9LzZP2OzDru00YvGF71615TioPE7RDf6zrS8h9osQbh3LOD1qsTagPFuT/JKON6dnn+p IJk9ayV51GRcTQykrnWRBKElu56cK7QRwfW8ZRb1qV4TF53ZyXG0//CnSUwNPmLtbJQuXE7S6Ug kazLSBtqrsj48RNoDgZ/lWyGtN1Q6Z4gFJ0moQ/E3WUcaJeaWxySSCo8eSJL4QGmA0jRmv8QUU/ UCGAa7UzVEKUOBPFG0n4vRCqCwTkCDANV2FR7z+LFlaNA== X-Received: by 127.0.0.2 with SMTP id 62Y1YY7687511xZkQwrrDnAF; Thu, 27 Mar 2025 06:46:28 -0700 X-Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) by mx.groups.io with SMTP id smtpd.web11.50189.1743083187212704027 for ; Thu, 27 Mar 2025 06:46:27 -0700 X-Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-ac2a9a74d9cso186703366b.1 for ; Thu, 27 Mar 2025 06:46:26 -0700 (PDT) X-Gm-Message-State: 0eb4KerqNTUZUVhaJV2TzFZ2x7686176AA= X-Gm-Gg: ASbGncuLqQ9ZiyXMnQJr/PbEsbjMf74QlfM5YejdT8CPGMqAI+O3rln1L2ekwZlvamU G/rxCF4l6aFUiMR9avK5NGIcfEjmjeCIthnfHjoGGztjP+ZUt96HGnsr+7VuBP89/pCVuAK9jcJ wRyoq8+OJAnFV8Rd6mhdIIji1tEXUE X-Google-Smtp-Source: AGHT+IHZ6x3VFqJMxqG6rHUA8RxrNTwZWj6xYwwXBcu1K9fonfua9Wlk8zk680riQEzwCzuPMV1YRylN/CwvW2OCE6A= X-Received: by 2002:a17:907:86ac:b0:ac3:25d7:6950 with SMTP id a640c23a62f3a-ac6faec918amr318483166b.20.1743083184594; Thu, 27 Mar 2025 06:46:24 -0700 (PDT) MIME-Version: 1.0 References: <3WBl.1742473664078056470.oYUB@groups.io> In-Reply-To: <3WBl.1742473664078056470.oYUB@groups.io> From: "Alireza Banejad via groups.io" Date: Thu, 27 Mar 2025 17:16:12 +0330 X-Gm-Features: AQ5f1JqP5xiPLEPcXFiXqZ9D-q5xUhiRMboqx9UalHfg87LVbSM5fbm2z98yAAs Message-ID: Subject: Re: [edk2-devel] OS hangs at Exit Boot Services To: devel@edk2.groups.io, mounika.a@coreel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Thu, 27 Mar 2025 06:46:27 -0700 Resent-From: alibanejad1376@gmail.com Reply-To: devel@edk2.groups.io,alibanejad1376@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240830 header.b=pYZ0PBKy; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io 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=E2=80=AFAM Mounika via 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 p= ayload and we were able to boot OS, but when we tried switching to UEFI pay= load, OS didn't boot > and it got stuck at below prints. > > XhcClearBiosOwnership: called to clear BIOS ownership > FPDT: -ResetEnd =3D 339000000 > FPDT: -OsLoaderLoadImageStart =3D 15095000000 > FPDT: -OsLoaderStartImageStart =3D 15126000000 > FPDT: -ExitBootServicesEntry =3D 24262000000 > FSP NotifyPhase EndOfFirmware Success. > gAddPerfRecordProtocolGuid - Locate protocol failed > SmmInstallProtocolInterface: 296EB418-C4C8-4E05-AB59-39E8AF56F00A 0 > CpuDxe: 5-Level Paging =3D 0 > MpInitChangeApLoopCallback() done! > SetUefiImageMemoryAttributes - 0x00000000759CC000 - 0x000000000000A000 (0= x0000000000000008) > SetUefiImageMemoryAttributes - 0x00000000759C2000 - 0x000000000000A000 (0= x0000000000000008) > SetUefiImageMemoryAttributes - 0x00000000759B8000 - 0x000000000000A000 (0= x0000000000000008) > SetUefiImageMemoryAttributes - 0x00000000759AE000 - 0x000000000000A000 (0= x0000000000000008) > SetUefiImageMemoryAttributes - 0x00000000759A5000 - 0x0000000000009000 (0= x0000000000000008) > SetUefiImageMemoryAttributes - 0x0000000075999000 - 0x000000000000C000 (0= x0000000000000008) > SetUefiImageMemoryAttributes - 0x000000007598C000 - 0x000000000000D000 (0= x0000000000000008) > SetUefiImageMemoryAttributes - 0x0000000075983000 - 0x0000000000009000 (0= x0000000000000008) > SetUefiImageMemoryAttributes - 0x000000007597A000 - 0x0000000000009000 (0= x0000000000000008) > SetUefiImageMemoryAttributes - 0x0000000075970000 - 0x000000000000A000 (0= x0000000000000008) > > We just want some clarifications regarding exit boot services, whether EF= I boot services succeeded or failed and where to add debug prints to identi= fy the issue? >=20 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- 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] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-