From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ma1-aaemail-dr-lapp01.apple.com (ma1-aaemail-dr-lapp01.apple.com [17.171.2.60]) by mx.groups.io with SMTP id smtpd.web12.1995.1588652192010635916 for ; Mon, 04 May 2020 21:16:32 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=kI6RVmxw; spf=pass (domain: apple.com, ip: 17.171.2.60, mailfrom: afish@apple.com) Received: from pps.filterd (ma1-aaemail-dr-lapp01.apple.com [127.0.0.1]) by ma1-aaemail-dr-lapp01.apple.com (8.16.0.42/8.16.0.42) with SMTP id 0454G94Y043552; Mon, 4 May 2020 21:16:29 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=from : content-type : mime-version : subject : date : references : to : in-reply-to : message-id; s=20180706; bh=VC7SWLb4w+kEsO9YxJlj/Jkek2tO51pbVLTRp1aIP6w=; b=kI6RVmxw9SGWduO8d5bxSIhrtpA08/tH65oJ133Y+skUaAXPLZ8XvCJZug3qJUs5Zg9g FXyVkzo+K8V9vFnF1v7OsIkpEZp+h1iKNYBFQ88bRPhK/ACqG3wIIGWsXUYn/B9NvI8h 7n3NSeX2yBJi7jGY/n60V7+jCGUyepDDB41XYwswDeZA2hsfDRy/JG586+xE3o0sArlY G9k7OFoCwHokPgu5MhqX1BJMmMLfryeTo5HO80wmpwa4eU7sgZtU4wKoN454hHF2E2Gx RieVVcUuGs7xrpX6dX3UEbYiTa95232xsGVziUjVCbnb+UrIy0kRY7jAezOGO6lfhHzL Tw== Received: from rn-mailsvcp-mta-lapp02.rno.apple.com (rn-mailsvcp-mta-lapp02.rno.apple.com [10.225.203.150]) by ma1-aaemail-dr-lapp01.apple.com with ESMTP id 30s7h2qnje-14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 04 May 2020 21:16:29 -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-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.5.20200312 64bit (built Mar 12 2020)) with ESMTPS id <0Q9U00B78BVHZ300@rn-mailsvcp-mta-lapp02.rno.apple.com>; Mon, 04 May 2020 21:16:29 -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 <0Q9U00200BJ4XD00@rn-mailsvcp-mmp-lapp01.rno.apple.com>; Mon, 04 May 2020 21:16:29 -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: 1e792322-c88d-4ee9-8ac8-f34c7f21bd4d 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: ce561204-1c60-4bac-8bb8-fe0355626365 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 <0Q9U00PGDBVFZY00@rn-mailsvcp-mmp-lapp01.rno.apple.com>; Mon, 04 May 2020 21:16:28 -0700 (PDT) From: "Andrew Fish" 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:16:27 -0700 References: To: devel@edk2.groups.io, jim.slaughter@sage-micro.com In-reply-to: Message-id: <1A8642FF-E46A-4B7A-AE22-1ABD351655C6@apple.com> 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=_04C973F3-C849-4B92-9835-DCEB88813A6E" --Apple-Mail=_04C973F3-C849-4B92-9835-DCEB88813A6E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Jim, Looks like InitializeLogo() [1] is the entry point to a DXE driver. The IN= F file for the driver gets parsed and used to construct the makefile. The e= ntry point for thee driver is an application and there is some auto generat= ed code that calls all the library constructors and the entry, thus the ent= ry point to the driver can have an arbitrary name.=20 To build this driver you add the path to the INF fileto your platform DSC = file [2] to put it in your ROM you add it to the platform FDF file [2].=20 [1] $ git grep InitializeLogo MdeModulePkg/Logo/Logo.c:95:InitializeLogo ( MdeModulePkg/Logo/LogoDxe.inf:19: ENTRY_POINT =3D Init= ializeLogo [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 Thanks, Andrew Fish > 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 --Apple-Mail=_04C973F3-C849-4B92-9835-DCEB88813A6E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Jim,
Looks like InitializeLogo() [1] is = the entry point to a DXE driver. The INF file for the driver gets parsed an= d used to construct the makefile. The entry point for thee driver is an app= lication and there is some auto generated code that calls all the library c= onstructors and the entry, thus the entry point to the driver can have an a= rbitrary name. 

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

[1] git grep InitializeLogo
MdeModulePkg/Logo/Logo.c:95:Initializ= eLogo (
MdeModulePkg/Logo/LogoDxe.inf:19<= span style=3D"font-variant-ligatures: no-common-ligatures; color: #38b9c7" = class=3D"">:  ENTRY_POINT            =         =3D Initialize= Logo

[= 2] git grep LogoDxe.inf -- *.dsc *.fdf
ArmVirtPkg/ArmVirt= Qemu.dsc:427:  MdeModulePk= g/Logo/LogoDxe.inf
ArmVirtPkg/ArmVirtQem= uKernel.dsc:366:  MdeModu= lePkg/Logo/LogoDxe.inf
EmulatorPkg/Em= ulatorPkg.dsc:338:  MdeMod= ulePkg/Logo/LogoDxe.infEmulatorPkg/Em= ulatorPkg.fdf:182:INF  Mde= ModulePkg/Logo/LogoDxe.inf
MdeModulePkg/= MdeModulePkg.dsc:212:  Mde= ModulePkg/Logo/LogoDxe.inf
OvmfPkg/OvmfP= kgIa32.dsc:736:  MdeModu= lePkg/Logo/LogoDxe.inf
OvmfPkg/OvmfPk= gIa32.fdf:294:INF MdeModuleP= kg/Logo/LogoDxe.inf
OvmfPkg/OvmfPkgIa32X= 64.dsc:749:  MdeModulePkg/= Logo/LogoDxe.inf
OvmfPkg/OvmfPkgIa32X64.= fdf:295:INF MdeModulePkg/Logo/<= /span>LogoDxe.inf
OvmfPkg/OvmfPkgX64.dsc= :746:  MdeModulePkg/Logo/<= span style=3D"font-variant-ligatures: no-common-ligatures; color: #ca3323" = class=3D"">LogoDxe.inf
OvmfPkg/OvmfPkgX64.fdf:295:INF MdeModulePkg/Logo/LogoDxe.inf
OvmfPkg/OvmfXen.dsc:55= 7:  MdeModulePkg/Logo/LogoDxe.inf
OvmfPkg/OvmfXen.fdf:370:INF MdeModulePkg/Logo/LogoDx= e.inf


Thanks,

Andrew = Fish

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 assume I must call:
InitializeLogo (
&= nbsp; IN EFI_HANDLE               ImageH= andle,
  IN EFI_SYSTEM_TABLE        = *SystemTable
  )
&n= bsp;"entrypoint of this module" is in the commenting block.

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

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.

<= div class=3D"">
-- 
Jim Slaughter

--Apple-Mail=_04C973F3-C849-4B92-9835-DCEB88813A6E--