public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Sven Auhagen <sven.auhagen@voleatech.de>
To: Andrew Fish <afish@apple.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: Boot Logo Questions
Date: Fri, 20 Jul 2018 05:15:14 +0000	[thread overview]
Message-ID: <A0F37EF8-D7BC-4DB2-A419-F599B2AA84E1@voleatech.de> (raw)
In-Reply-To: <A4742A0B-6DAC-4EDC-8637-A449FD139279@apple.com>

Andrew,

Great, thank you.
That helps a lot.

Best
Sven

From: <afish@apple.com> on behalf of Andrew Fish <afish@apple.com>
Date: Wednesday, 18. July 2018 at 10:52 PM
To: Sven Auhagen <sven.auhagen@voleatech.de>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: [edk2] Boot Logo Questions



On Jul 17, 2018, at 11:01 PM, Sven Auhagen <sven.auhagen@voleatech.de<mailto: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<mailto: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<mailto:edk2-devel@lists.01.org>
https://lists.01.org/mailman/listinfo/edk2-devel



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.


      reply	other threads:[~2018-07-20  5:15 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
2018-07-20  5:15   ` Sven Auhagen [this message]

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=A0F37EF8-D7BC-4DB2-A419-F599B2AA84E1@voleatech.de \
    --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