Create and add a Boot Logo (AN11): Difference between revisions

From conga-wiki
mNo edit summary
No edit summary
 
Line 180: Line 180:


[[Category:Application Notes]]
[[Category:Application Notes]]
[[Category:FAQ]]

Latest revision as of 03:41, 22 November 2024

Affected Products All congatec x86 products

Preface

This application note is intended to demonstrate how an OEM BIOS Boot Logo and OEM POST Logo can be created and added to a congatec embedded BIOS using the congatec System Utility (CGUTIL).

Terminology

Term Description
BIOS Basic Input Output System
UEFI Unified Extensible Firmware Interface
POST Power-on Self Test. A diagnostic testing sequence run by a computer’s BIOS when the computer’s power is initially turned on.
CGUTIL congatec System Utility. Universal tool for BIOS updates and BIOS modifications.
CGOS congatec Operating System API. Software driver for the congatec Embedded Features.

Introduction

congatec embedded BIOSes offer the 'Quiet Boot' or 'Splash Screen' function for systems that require that the BIOS POST messages not be displayed during the boot process. If enabled in the BIOS Setup, the BIOS POST messages are covered by a black boot logo. This default boot logo, that is included in all congatec BIOSes, can be replaced by a customized boot logo called an OEM Boot Logo.

It is not possible to insert an image (JPEG or BMP file) directly into the BIOS. The image must first be converted to a 'BIOS Boot Logo' module.

The following sections will demonstrate examples of how to create and insert this OEM 'BIOS Boot Logo' module within the BIOS using the congatec System Utility (CGUTIL). The CGUTIL is compatible for all congatec x86 CPU modules and single board computers and available as a Windows GUI (CGUTLGUI.exe) and DOS command line (CGUTLCMD.exe) utility.

Requirements

For detailed information about the congatec System Utility consult the CGUTIL User's Guide. This Guide can be found on the www.congatec.com

The congatec System Utility requires a CGOS API driver that can also be found on the congatec web page in the 'Cgos.zip' file on the www.congatec.com This driver is only necessary if the Windows GUI version of CGUTIL is used.

The below information is for all newer congatec products featuring UEFI firmware. For older products running on Legacy BIOS please contact your local congatec support.

The following example shows how an OEM BIOS Boot Logo module can be created and added to the BIOS when working directly on a congatec module or single board computer.

In this example, the BIOS in the flash memory chip of the congatec CPU module or single board computer is modified directly. Another possibility is to download the current congatec standard BIOS and work in “BIN File” mode using a development PC.

‘BIOS Boot Logo’ Requirements

congatec’s embedded BIOS supports .jpg, .gif and .bmp images for OEM boot logos. It is recommended to use a .jpg image with the same resolution as the native resolution of the used display device. Especially when using LVDS flat panels.

BMP logos are supported as 16 color, 256 color and 24bit color BMP images. Monochrome images and 32bit color with compression type 0 is also supported.

GIF logos must be 24bit color and can even be animated.

JPEG images supported are YUV122 and YUV111 color component sampling and the X‑density/Y-density should be 1:1.

Note that not all JPEG formats and markers are supported. Contact your local congatec support in case your JPEG image is not working.

Using the Windows GUI version of CGUTL

The method described below is useful for evaluating and testing the OEM customization feature offered by the congatec system utility. Working on the target system allows for an immediate check of the BIOS changes. Another possibility is to work in 'BIN File' mode using a host PC. Whenever a new OEM BIOS Binary file should be created, use 'BIN File' mode instead of 'Board (CGOS)' mode.

  • Open the "congatec System Utility"
  • Select "Board (CGOS)" as operation target
Create and add Bootlogo (001).png
  • Push the button "BIOS Module Modification"
Create and add Bootlogo (Ergänzung).png
  • Click on the "Create Module" button.
Create and add Bootlogo (003).png
  • Browse for your boot logo file (in this example "congatecLogo.jpg")
Create and add Bootlogo (Ergänzung1).png
  • Choose "BIOS Boot logo" from the "Module Type" drop down list
  • Leave the Module ID and Module Revision field unchanged
  • Once this is completed, click on the "Create Module" button
Create and add Bootlogo (005).png
  • Choose your designated module file name (in this example "BootLogo.mod").
Create and add Bootlogo (Ergänzung2).png
  • Click on "Add Module" button.
Create and add Bootlogo (007).png
  • Choose your designated module file name (in this example "BootLogo.mod").
Create and add Bootlogo (008).png
  • The following error message will appear on the screen if the module size exceeds the available module storage size in the BIOS
  • Delete the previously created BootLogo.mod module
  • Choose a jpg file with a smaller size
  • Repeat the steps on how to create a module and add the new smaller BootLogo.mod module
Create and add Bootlogo (Ergänzung3).png
  • The designated BIOS Boot Logo module must be visible in the list of modules
  • Click on "Apply" to save the changes into the onboard BIOS of the congatec CPU module or single board computer
  • "Changes successfully applied" will be displayed in red letters in the text box above the "Apply" button.
Create and add Bootlogo (010).png
  • To display the OEM BIOS Boot Logo during POST you have to launch the BIOS setup (press the <Del> key during the boot process) and change the 'Quiet Boot' setting in the Boot menu to [Enabled]. Save and exit the BIOS setup program. The system will reboot and the OEM BIOS Boot logo will be displayed. Since today's computers boot quite quickly the logo will be shown for only a short period of time.

Using the CGUTLCMD tool

The method described here is helpful for updating the congatec BIOS on the production line using the command lines from steps 4 and 5 in a simple DOS batch script. All example names used in the steps below may be changed. Only the DOS naming convention of an 8 character name and 3 character extensions, separated by a dot, must be adhered to.

  1. After you've booted DOS on the congatec product, store the JPEG file (in our example "oemLogo.jpg") in the same folder where the congatec System Utility (CGUTLCMD.exe) is stored.
  2. The JPEG file can only be inserted into the congatec BIOS after it has been converted to a 'BIOS Boot logo' module. To do this, switch to the folder where the "CGUTLCMD.exe' tool and JPEG file are stored and enter the command line:
cgutlcmd module /ot:board /create /if:oemLogo.jpg /of:BootLogo.mod /T:6
  1. Now the created 'BIOS Boot Logo' module can be inserted into the BIOS. Enter the command line:
cgutlcmd module /ot:board /add /if:BootLogo.mod
  1. Give your customized BIOS an explicit designator with a revision number to allow revision tracking (in our example the 'OEM BIOS Version' is 'OEM1R001'). The 'OEM BIOS Version' will be displayed during the BIOS Post and in the BIOS Setup program.
cgutlcmd module /ot:board /OEM:OEM1R001
  1. To display the OEM 'BIOS Boot Logo' during POST, you have to enter the system BIOS again and change the 'Quiet Boot' setting to [Enabled] in the 'Boot Settings Configuration' menu (see also the last step of the previous section). Save and exit the BIOS setup program. The system will reboot and the OEM 'BIOS Boot Logo' will be displayed.


Note:

The same scripting can also be done in the UEFI shell using the UEFI version of CGUTIL.

The method below describes how to create and insert a POST Logo into a BIOS Binary file by using the congatec System Utility. Whenever a new OEM BIOS Binary file should be created, use “BIN File” mode instead of 'Board (CGOS)' mode. Another possibility is to work in “Board (CGOS)” and working on the target system.

Create and add Bootlogo (Ergänzung5).png
  • Open the "congatec System Utility"
  • Select "BIOS File" as operation target
  • Push the button "Select Input BIOS File"
  • Select the BIOS to be used as base for the OEM BIOS
  • CGUTIL then prompts you for the file name of the new BIOS you are going to create. Name the BIOS OEM1R001.BIN for this example.
Create and add Bootlogo (Ergänzung4).png
  • Click on the ''BIOS Module Modification" button.
Create and add Bootlogo (Ergänzung6).png
  • Click on the "Create Module" button.
Create and add Bootlogo (014).png
  • Browse for your POST logo file (in this example" congatecPostLogo.jpg")
Create and add Bootlogo (Ergänzung7).png
  • Choose "POST Logo Left" from the "Module Type" drop down list
  • Leave the Module ID and Module Revision field unchanged
  • Once this is completed, click on "Create Module" button
Create and add Bootlogo (017).png
  • Choose your designated module file name (in this example "PostLogoLeft.mod")
Create and add Bootlogo (Ergänzung8).png
  • Click on "Add Module" button
Create and add Bootlogo (Ergänzung9).png
  • The designated POST Logo Left module must be visible in the list of modules
  • Click on "Add Module" button
  • "Changes successfully applied" will be displayed in red letters in the text box above the "Apply" button

Additional Information:

Document Source
CGUTIL Users Guide www.congatec.com
CGOS API driver www.congatec.com