public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Andrew Fish <afish@apple.com>
To: Sven Auhagen <sven.auhagen@voleatech.de>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: Boot Logo Questions
Date: Wed, 18 Jul 2018 13:51:51 -0700	[thread overview]
Message-ID: <A4742A0B-6DAC-4EDC-8637-A449FD139279@apple.com> (raw)
In-Reply-To: <A38C084E-4259-40C9-A798-DBC816958C46@voleatech.de>



> On Jul 17, 2018, at 11:01 PM, Sven Auhagen <sven.auhagen@voleatech.de> wrote:
> 
> Hi,
> 
> Is there a way to add a text/ascii boot logo to the splash screen?
> Is there any example for this,
> 

Sven,

UEFI Spec "Protocols -- Console Support"  chapter - "Simple Text Out Protocol" section is the Console abstraction for text (terminal emulation) and graphics. It supports 16-bit Unicode, attributes, and curser position.  Basically anything you could do with a PCANSI terminal you should be able to do with EFI. Note the terminal emulation you use could limit some of the features [1]. This is the same API the EFI Shell uses, so it can go to Graphics and serial too. 

The edk2 definition is here: https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Protocol/SimpleTextOut.h

The UefiLib has CreatePopUp(). That is probably a little more focused on a traditional BIOS Setup UI, but might give you some ideas, and it is trying to be pedantic from a Unicode point of view. 
https://github.com/tianocore/edk2/blob/master/MdePkg/Library/UefiLib/Console.c#L397

The CustomDisplayLib has a PrintAt() function that may also be useful. 
https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLibInternal.c#L968

[1] - As you can see there is some box draw support in the terminal driver, assuming your terminal supports it:  https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConOut.c#L24 This is done by sending a BOXDRAW Unicode character to SimpleTextOut->OutputString(). 

Thanks,

Andrew Fish

> I am on an aarch64 platform and only have a serial console on my device.
> 
> Best and thank you
> Sven
> 
> Beste Grüße/Best Regards
> 
> Sven Auhagen
> Dipl. Math. oec., M.Sc.
> 
> Voleatech GmbH
> HRB: B 754643
> USTID: DE303643180
> Grathwohlstr. 5
> 72762 Reutlingen
> Tel: +49 7121539550
> Fax: +49 7121539551
> E-Mail: sven.auhagen@voleatech.de
> 
> www.voleatech.de<https://www.voleatech.de>
> Diese Information ist ausschließlich für den Adressaten bestimmt und kann vertraulich oder gesetzlich geschützte Informationen enthalten. Wenn Sie nicht der bestimmungsgemäße Adressat sind, unterrichten Sie bitte den Absender und vernichten Sie diese Mail. Anderen als dem bestimmungsgemäßen Adressaten ist es untersagt, diese E-Mail zu lesen, zu speichern, weiterzuleiten oder ihren Inhalt auf welche Weise auch immer zu verwenden. Für den Adressaten sind die Informationen in dieser Mail nur zum persönlichen Gebrauch. Eine Weiterleitung darf nur nach Rücksprache mit dem Absender erfolgen. Wir verwenden aktuelle Virenschutzprogramme. Für Schäden, die dem Empfänger gleichwohl durch von uns zugesandte mit Viren befallene E-Mails entstehen, schließen wir jede Haftung aus.
> 
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel



  reply	other threads:[~2018-07-18 20:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-18  6:01 Boot Logo Questions Sven Auhagen
2018-07-18 20:51 ` Andrew Fish [this message]
2018-07-20  5:15   ` Sven Auhagen

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=A4742A0B-6DAC-4EDC-8637-A449FD139279@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