public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Boot Logo Questions
@ 2018-07-18  6:01 Sven Auhagen
  2018-07-18 20:51 ` Andrew Fish
  0 siblings, 1 reply; 3+ messages in thread
From: Sven Auhagen @ 2018-07-18  6:01 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

Hi,

Is there a way to add a text/ascii boot logo to the splash screen?
Is there any example for this?

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Boot Logo Questions
  2018-07-18  6:01 Boot Logo Questions Sven Auhagen
@ 2018-07-18 20:51 ` Andrew Fish
  2018-07-20  5:15   ` Sven Auhagen
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Fish @ 2018-07-18 20:51 UTC (permalink / raw)
  To: Sven Auhagen; +Cc: edk2-devel@lists.01.org



> 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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Boot Logo Questions
  2018-07-18 20:51 ` Andrew Fish
@ 2018-07-20  5:15   ` Sven Auhagen
  0 siblings, 0 replies; 3+ messages in thread
From: Sven Auhagen @ 2018-07-20  5:15 UTC (permalink / raw)
  To: Andrew Fish; +Cc: edk2-devel@lists.01.org

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-20  5:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox