From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ma1-aaemail-dr-lapp03.apple.com (ma1-aaemail-dr-lapp03.apple.com [17.171.2.72]) by mx.groups.io with SMTP id smtpd.web12.2022.1588652343159628933 for ; Mon, 04 May 2020 21:19:03 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=e2Vt46Nd; spf=pass (domain: apple.com, ip: 17.171.2.72, mailfrom: afish@apple.com) Received: from pps.filterd (ma1-aaemail-dr-lapp03.apple.com [127.0.0.1]) by ma1-aaemail-dr-lapp03.apple.com (8.16.0.42/8.16.0.42) with SMTP id 0454Fre6012594; Mon, 4 May 2020 21:19:01 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=from : message-id : content-type : mime-version : subject : date : in-reply-to : cc : to : references; s=20180706; bh=Havqye6h5NaCyNsfyMEJSrvvj2zribl7JL2gcR8Inqg=; b=e2Vt46NdEfcJxMhRYm11gX5Rpm3BHbyZN4r3rdeyMohk26v5Nzf27FITK2N+dh5b1qaS EVy/SzRVLCyEqPSKUU/wFlAfxp9nmeyDGbzvu+8rOmf8ePa7r+C+CdUsxaPRi3DnX9YS okhrvuHKHO7X/n14zJcz8buVkAUkodTn/I8TWNSRP1q8N+hVHPxd1gwVCN8Vy3H5sKz4 c3ImLlAaHQdl9aEYkYsg55rxCo6zHEJ8QAVFB/CTFlmEW6JstMzdj68zCIrt6aN4AEbA 9CmjcRse+SA8qVr7k71DkfLuj0H5lmyXGGiyCIjmy2z0VXRmdMdoiriOgGLWlLdlAYyZ Zg== Received: from rn-mailsvcp-mta-lapp01.rno.apple.com (rn-mailsvcp-mta-lapp01.rno.apple.com [10.225.203.149]) by ma1-aaemail-dr-lapp03.apple.com with ESMTP id 30s7uuc7pw-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 04 May 2020 21:19:01 -0700 Received: from rn-mailsvcp-mmp-lapp01.rno.apple.com (rn-mailsvcp-mmp-lapp01.rno.apple.com [17.179.253.14]) by rn-mailsvcp-mta-lapp01.rno.apple.com (Oracle Communications Messaging Server 8.1.0.5.20200312 64bit (built Mar 12 2020)) with ESMTPS id <0Q9U00ZGPBZK6510@rn-mailsvcp-mta-lapp01.rno.apple.com>; Mon, 04 May 2020 21:18:56 -0700 (PDT) Received: from process_milters-daemon.rn-mailsvcp-mmp-lapp01.rno.apple.com by rn-mailsvcp-mmp-lapp01.rno.apple.com (Oracle Communications Messaging Server 8.1.0.5.20200312 64bit (built Mar 12 2020)) id <0Q9U00A00B2UHG00@rn-mailsvcp-mmp-lapp01.rno.apple.com>; Mon, 04 May 2020 21:18:56 -0700 (PDT) X-Va-A: X-Va-T-CD: 678bf7de5df0d9ff994f556fd1b44182 X-Va-E-CD: d4c7c6e3762481b6cd7766453bfedc96 X-Va-R-CD: 76f3ebbb5cc1a343b182c258d58351cc X-Va-CD: 0 X-Va-ID: ebdf7634-a49d-4128-b0a1-528600fce592 X-V-A: X-V-T-CD: 678bf7de5df0d9ff994f556fd1b44182 X-V-E-CD: d4c7c6e3762481b6cd7766453bfedc96 X-V-R-CD: 76f3ebbb5cc1a343b182c258d58351cc X-V-CD: 0 X-V-ID: e29b15ee-4da5-4c71-b69a-89570f484e34 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-05-04_13:2020-05-04,2020-05-04 signatures=0 Received: from [17.235.61.106] (unknown [17.235.61.106]) by rn-mailsvcp-mmp-lapp01.rno.apple.com (Oracle Communications Messaging Server 8.1.0.5.20200312 64bit (built Mar 12 2020)) with ESMTPSA id <0Q9U00PJHBZGZY00@rn-mailsvcp-mmp-lapp01.rno.apple.com>; Mon, 04 May 2020 21:18:53 -0700 (PDT) From: "Andrew Fish" Message-id: MIME-version: 1.0 (Mac OS X Mail 13.0 \(3594.4.17\)) Subject: Re: [edk2-devel] Trying to get Logo to display in uEFI boot Date: Mon, 04 May 2020 21:18:52 -0700 In-reply-to: <160C06C09799D47E.10955@groups.io> Cc: jim.slaughter@sage-micro.com To: devel@edk2.groups.io, Andrew Fish References: <160C06C09799D47E.10955@groups.io> X-Mailer: Apple Mail (2.3594.4.17) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-05-04_13:2020-05-04,2020-05-04 signatures=0 Content-type: multipart/alternative; boundary="Apple-Mail=_798C2A07-86B2-47F3-83E0-6D51D1295532" --Apple-Mail=_798C2A07-86B2-47F3-83E0-6D51D1295532 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Oh and ImageHandle and *SystemTable are passed into every EFI Driver and Ap= p when it is loaded and this is how the Driver gets access to EFI services,= and can figured the location it was loaded from.=20 Thanks, Andrew Fish > On May 4, 2020, at 9:16 PM, Andrew Fish via groups.io wrote: >=20 > Jim, >=20 > Looks like InitializeLogo() [1] is the entry point to a DXE driver. The = INF file for the driver gets parsed and used to construct the makefile. The= entry point for thee driver is an application and there is some auto gener= ated code that calls all the library constructors and the entry, thus the e= ntry point to the driver can have an arbitrary name.=20 >=20 > To build this driver you add the path to the INF fileto your platform DS= C file [2] to put it in your ROM you add it to the platform FDF file [2].= =20 >=20 > [1] $ git grep InitializeLogo > MdeModulePkg/Logo/Logo.c:95:InitializeLogo ( > MdeModulePkg/Logo/LogoDxe.inf:19: ENTRY_POINT =3D In= itializeLogo >=20 > [2] $ git grep LogoDxe.inf -- *.dsc *.fdf > ArmVirtPkg/ArmVirtQemu.dsc:427: MdeModulePkg/Logo/LogoDxe.inf > ArmVirtPkg/ArmVirtQemuKernel.dsc:366: MdeModulePkg/Logo/LogoDxe.inf > EmulatorPkg/EmulatorPkg.dsc:338: MdeModulePkg/Logo/LogoDxe.inf > EmulatorPkg/EmulatorPkg.fdf:182:INF MdeModulePkg/Logo/LogoDxe.inf > MdeModulePkg/MdeModulePkg.dsc:212: MdeModulePkg/Logo/LogoDxe.inf > OvmfPkg/OvmfPkgIa32.dsc:736: MdeModulePkg/Logo/LogoDxe.inf > OvmfPkg/OvmfPkgIa32.fdf:294:INF MdeModulePkg/Logo/LogoDxe.inf > OvmfPkg/OvmfPkgIa32X64.dsc:749: MdeModulePkg/Logo/LogoDxe.inf > OvmfPkg/OvmfPkgIa32X64.fdf:295:INF MdeModulePkg/Logo/LogoDxe.inf > OvmfPkg/OvmfPkgX64.dsc:746: MdeModulePkg/Logo/LogoDxe.inf > OvmfPkg/OvmfPkgX64.fdf:295:INF MdeModulePkg/Logo/LogoDxe.inf > OvmfPkg/OvmfXen.dsc:557: MdeModulePkg/Logo/LogoDxe.inf > OvmfPkg/OvmfXen.fdf:370:INF MdeModulePkg/Logo/LogoDxe.inf >=20 >=20 > Thanks, >=20 > Andrew Fish >=20 >> On May 4, 2020, at 9:05 PM, jim slaughter > wrote: >>=20 >> Hello, >>=20 >> I am trying to display a logo during the uEFI boot. >> Found logo.c file. New to this code base. >> I assume I must call: >> InitializeLogo ( >> IN EFI_HANDLE ImageHandle, >> IN EFI_SYSTEM_TABLE *SystemTable >> ) >> "entrypoint of this module" is in the commenting block. >>=20 >> Where do I find ImageHandle and SystemTable values??? >> What am I missing here? >>=20 >> I cannot find where InitializeLogo is called, as an example. >> When I search for EFI_HANDLE I get a lot of hits. >> Any help please. Thanks. >>=20 >> --=20 >> Jim Slaughter >=20 >=20 --Apple-Mail=_798C2A07-86B2-47F3-83E0-6D51D1295532 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Oh and ImageHandle and= *SystemTable are passed into every EFI Driver and App when it is loaded an= d this is how the Driver gets access to EFI services, and can figured the l= ocation it was loaded from. 

Thanks,

Andrew Fish

On May 4, 2020, at 9:16 PM, Andrew Fish via groups.io <afish=3Dapple.com@groups.io> wro= te:

Jim= ,

Looks like InitializeLogo() [1] is t= he entry point to a DXE driver. The INF file for the driver gets parsed and= used to construct the makefile. The entry point for thee driver is an appl= ication and there is some auto generated code that calls all the library co= nstructors and the entry, thus the entry point to the driver can have an ar= bitrary name. 

To build this driver y= ou add the path to the INF fileto your platform DSC file [2] to put it in y= our ROM you add it to the platform FDF file [2]. 

[1] git grep In= itializeLogo
MdeModulePkg/Logo/Logo.c:<= span class=3D"" style=3D"font-variant-ligatures: no-common-ligatures;">95:Ini= tializeLogo (
<= span class=3D"" style=3D"font-variant-ligatures: no-common-ligatures;">MdeM= odulePkg/Logo/LogoDxe.inf:19:  ENTRY_POINT         = ;           =3D InitializeLogo

[2] git grep LogoDxe.inf -- *.dsc *.fdf
ArmVirtPkg/ArmVirtQem= u.dsc:427:<= /span>  MdeModulePkg/Logo/Logo= Dxe.inf
ArmVirtPkg/ArmVirtQemuKernel.dsc:<= /span>366:  MdeModulePkg/Logo/LogoDxe.inf
EmulatorPkg/EmulatorPkg.= dsc:338:  MdeModulePkg/Logo/LogoDx= e.inf
EmulatorPkg/EmulatorPkg.fdf:<= span class=3D"" style=3D"font-variant-ligatures: no-common-ligatures;">182<= /span>:INF  MdeModulePkg/Logo/LogoDxe.inf
MdeModulePkg/MdeModulePkg.dsc<= /span>:212:= &nb= sp; MdeModulePkg/Logo/LogoDxe.in= f
OvmfPkg/OvmfPkgIa32.dsc:736:  MdeModulePkg/Logo/LogoDxe.inf
OvmfPkg/OvmfPkgIa32.fdf:294:INF MdeModulePkg/Lo= go/LogoDxe.inf
<= div class=3D"" style=3D"font-style: normal; font-variant-caps: normal; font= -weight: normal; letter-spacing: normal; text-align: start; text-indent: 0p= x; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-te= xt-stroke-width: 0px; text-decoration: none; margin: 0px; font-stretch: nor= mal; font-size: 11px; line-height: normal; font-family: Menlo;">OvmfPkg/OvmfP= kgIa32X64.dsc:749:  MdeModulePkg/Logo/LogoDxe.inf
OvmfPkg/OvmfPkgIa32X64.fdf:295:INF MdeModulePkg/Logo/= LogoDxe.inf
OvmfPkg/OvmfPkgX64.dsc= :746:&n= bsp; MdeModulePkg/Logo/LogoDxe.i= nf
OvmfPkg/OvmfPkgX64.fdf:295:INF MdeModulePkg/Logo/LogoDxe.inf
OvmfPkg/OvmfXen.dsc:557:  MdeModulePkg/Logo= /LogoDxe.inf
OvmfPkg/OvmfX= en.fdf:370INF MdeModulePkg/Logo/Log= oDxe.inf


Thanks,

Andrew Fish
<= div class=3D"">
On May 4, 2020, at 9:05 PM, jim slaughter <jim.slaughter@sage-micro.com> = wrote:

Hello,

I am trying to display a logo during the uEFI boot.
Found logo.c file. New to this code base.
I ass= ume I must call:
InitializeLogo (
 = IN EFI_HANDLE               ImageHandle= ,
  IN EFI_SYSTEM_TABLE         *Sys= temTable
  )
 "= entrypoint of this module" is in the commenting block.
<= /div>

Where do I find I= mageHandle and SystemTable values???
What am I missing= here?

I cannot f= ind where InitializeLogo is called, as an example.
When I search for EFI_HANDLE I get a lot of hits.
An= y help please. Thanks.

-- 
Jim Slaughter

--Apple-Mail=_798C2A07-86B2-47F3-83E0-6D51D1295532--