public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Andrew Fish" <afish@apple.com>
To: devel@edk2.groups.io, jim.slaughter@sage-micro.com
Subject: Re: [edk2-devel] Trying to get Logo to display in uEFI boot
Date: Mon, 04 May 2020 21:16:27 -0700	[thread overview]
Message-ID: <1A8642FF-E46A-4B7A-AE22-1ABD351655C6@apple.com> (raw)
In-Reply-To: <CAP1zt87mT54vYB-+kddbJjr0QE5pmV+cnBawcT-Vkfqw4m1FxA@mail.gmail.com>

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

Jim,

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 generated code that calls all the library constructors and the entry, thus the entry point to the driver can have an arbitrary name. 

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]. 

[1] $ git grep InitializeLogo
MdeModulePkg/Logo/Logo.c:95:InitializeLogo (
MdeModulePkg/Logo/LogoDxe.inf:19:  ENTRY_POINT                    = InitializeLogo

[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 <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 (
>   IN EFI_HANDLE               ImageHandle,
>   IN EFI_SYSTEM_TABLE         *SystemTable
>   )
>  "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.
> 
> -- 
> Jim Slaughter
> 


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

  reply	other threads:[~2020-05-05  4:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-05  4:05 Trying to get Logo to display in uEFI boot jim slaughter
2020-05-05  4:16 ` Andrew Fish [this message]
     [not found] ` <160C06C09799D47E.10955@groups.io>
2020-05-05  4:18   ` [edk2-devel] " Andrew Fish

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1A8642FF-E46A-4B7A-AE22-1ABD351655C6@apple.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox