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 468DF780091 for ; Wed, 14 May 2025 14:22:48 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Cpr5jjaB/9yEcDYQDGDQ6lKvfhgLkbs3w5RgVWEalJ4=; 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; s=20240830; t=1747232567; v=1; x=1747491765; b=jbOTacsZ8zVn/NZZf0XQ3K7vCe+LTxyS/6fscaEnUCvrkUgHG20qnyBFQRoO4w6HQCq7EY2N StnPaYT9wplZaFdZl51ZPtvhp7v1hkxiCvRd4jlBNuxxVUCDmCgC+oRpkMrQh6dZSaQv4AfPkEt I+SJhaSQEA99zrSvdmVb2q0JWexf+GdiSpwrLUtHOqGUYnU7CKyV/3MQ81SwcQ/dCehs0XZCzX7 6p3ybzPM/w33Foyep2lRYnOr3XVqjjPpvOrHfR6YHAjLYu4JMk//O8UrgnSzqlZTt3pCTbn8saH 49WDpQjZ+bskNBducVPOYvZZUbTMraHDVDqmP7W9lagJQ== X-Received: by 127.0.0.2 with SMTP id PWCtYY7687511xuauFNFYY3m; Wed, 14 May 2025 07:22:45 -0700 X-Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) by mx.groups.io with SMTP id smtpd.web11.103780.1747232564950996244 for ; Wed, 14 May 2025 07:22:45 -0700 X-Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-ad243b49ef1so815762766b.0 for ; Wed, 14 May 2025 07:22:44 -0700 (PDT) X-Gm-Message-State: Lhef8UKk5pJfp2KB1q5wTqdwx7686176AA= X-Gm-Gg: ASbGnctG5SWWCcALWI0maJ/TXH5pnigKPFIirFy2+F2EP+hYNaVBUXj6XsQeEYcoQ/D SaR2lyvTAx7F1NwZSS826dV1HZ9WxTtuKOv5SgUzUSSC8x7/ZDtkVLGQx0gia3UtYXPDXkdkjkn pYvKkaECoPVzuZYCWSV/SOYcy30/cKkWVAcDTOxNqBwvHtiefCuKjp/tCjVgA2YgPLhA== X-Google-Smtp-Source: AGHT+IHQVOCtwhznnJz0fJLj9uyzgHZva8QIybEqJ70c+230L2MJ0ih0unIUAg9FwlQBgaS7+NFlTAKm5bqgWI358Nw= X-Received: by 2002:a17:907:7206:b0:ad2:43be:6f04 with SMTP id a640c23a62f3a-ad4f752efc1mr373058066b.51.1747232562669; Wed, 14 May 2025 07:22:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Alireza Banejad via groups.io" Date: Wed, 14 May 2025 17:52:29 +0330 X-Gm-Features: AX0GCFvhqsu-tLuPPjD927k5r2djNAV5qf5DY_Mk0Xjf-5e6zM8_fAk1o4_0QvU Message-ID: Subject: Re: [edk2-devel] UefiPayload dont load linux (ubuntu) and windows. To: devel@edk2.groups.io, radio-fan 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: Wed, 14 May 2025 07:22:45 -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: multipart/alternative; boundary="0000000000003cf00006351948ca" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240830 header.b=jbOTacsZ; 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 --0000000000003cf00006351948ca Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Stephan, 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 Wed, May 14, 2025, 2:50=E2=80=AFPM Stepan via groups.io wrote: > Hello EDKII community, > > We build ELF UefiPayload for custom Alder Lake S board (we load UEFI by > SBL). This payload boots GRUB2 (and another efi programs, such as > memtest) successfully. We tried load Win10, but we didn't get boot > visibility. After the load attempt, the following messages were added to > the log. > > > XhcClearBiosOwnership: called to clear BIOS ownership > SmmInstallProtocolInterface: 296EB418-C4C8-4E05-AB59-39E8AF56F00A 0 > CpuDxe: 5-Level Paging =3D 0 > > Surprisingly, the Win7 starts booting in safe mode but stops at one of > the drivers (This also happens on the factory bios. Most likely, Win7 doe= s > not support our hardware). > Ubuntu booting is also interrupted before first kernel printk. We build > kernel for debugging, but kernel debugging starts too late. I attach logs > of loading by EDKII (fail) and default loading by the factory bios (only > kernel messages). > We don't understand how to deal with this situation. Can anyone > help/suggest ? > > P.S. While I was writing, I thought what if I put a breakpoint on the > XhcClearBiosOwnership function in EDK II and check it out. >=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 (#121340): https://edk2.groups.io/g/devel/message/121340 Mute This Topic: https://groups.io/mt/113106248/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- --0000000000003cf00006351948ca Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Stephan,
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 ca= n 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 pr= ocessor.
2. Try to check the memory map passed from = SBL to EDK2 as a HOB is
completely correct.

Best,
Ali= reza

<= div dir=3D"ltr" class=3D"gmail_attr">On Wed, May 14, 2025, 2:50=E2=80=AFPM = Stepan via groups.io <radio-fan=3Dmail.ru@groups.io> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">
Hello EDKII community,

We build ELF UefiPayload for custom Alder Lake S board (we load UE= FI by SBL). This payload boots = GRUB2 (and another efi programs, such as memtest) successfully. We tried lo= ad Win10, but we didn't get boot visibility. After the load attempt, the following messages were added= to the log.
=C2=A0
XhcClearBiosOwnership: called to clear BIOS ownership
SmmInstallProtocolInterface: 296EB418-C4C8-4E05-AB59-39E8AF56F00A 0
CpuDxe: 5-Level Paging =3D 0
Surprisingly, the Win7 starts boo= ting in safe mode but stops at one of the drivers (This also happens= on the factory bios. Most likely, Win7 does not support our hardware).
Ubuntu booting is also interrupted before first kernel printk. We bui= ld kernel for debugging, but kernel debugging starts too late. I attach log= s of loading by EDKII (fail) and default loading by the factory bios (only = kernel messages).
We don't understand how to deal with this situation. Can anyone he= lp/suggest ?
=C2=A0
P.S. While I was writing, I thought what if= I put a breakpoint on the Xhc= ClearBiosOwnership function in EDK II and check= it out.

_._,_._,_

Groups.io Links:

=20 You receive all messages sent to this group. =20 =20

View/Reply Online (#121340) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--0000000000003cf00006351948ca--