Platform Builder: Creating a CEPC Splash Screen

<< Platform Builder: Setting up a USB Key to Run BIOSLoader | Home | C#: Deleting a Registry Key >>

The CEPC BIOSLoader is capable of displaying a splash screen while it loads the OS. The splash screen is a picture that you can create. 

The picture is a Windows bitmap file with a.BMP file extension, or a compressed Windows BMP file with a.BMX extension. The compressed Windows bitmap file is created by first creating the BMP file and then running bincompress to create the BMP file.   I don’t know the advantages of using a BMX vs BMP file for the splash screen.

BIOSLoader loads the splash screen based on the following:

·         Video=on is set in boot.ini

·         To display the splash screen correctly the display settings must be set in boot.ini

·         A splash.bmx exists in the root folder of the boot storage device

o   If a splash.bmx does not exist, a splash.bmp must exist

·         The BMP file that is used either for display or to create the BMX file:

o   Must be less than 64 KB in size, the temporary buffer used for the file is 64 KB.

o   I found that the BMP file should be 256 colors. Others either don’t display or don’t display correctly.

Certainly, if any of the restrictions above don’t satisfy your requirements, you can modify the code. The size limit seems arbitrary and could be changed with some caution because changing it will require modifying the memory map of other things also. The code for handling BMP files could also be modified using sample code easily found on the internet.

To create the splash.bmx file:

1.       Create the BMP file and save it as a 256 colors file. This is simple enough to do with Windows Paint, although there are probably better picture file editors available.

2.       Open a build window (Platform Builder: Build Tools, Opening a Build Window)

3.       Run “bincompress /C splash.bmp splash.bmx”

Bincompress can also be used to uncompress a BMX file using the /D flag – “bincompress /D splash.bmx splash.bmp”

Copyright © 2009 – Bruce Eitman

All Rights Reserved

Sunday, July 12, 2009 6:38 PM

This article is part of the GWB Archives. Original Author: Bruce Eitman

New on Geeks with Blogs

  • We Won The One Award I Actually Care About

    Full Scale made the Inc. 5000 for the fifth year straight, the 12th listing across my three companies. Here is why the one award you cannot buy is worth stopping for.

  • Your Customers Build the Features Now

    I let a tool I liked sit dead for a year rather than build the features I wanted. An MCP server meant I never had to, and your customers can do the same to your product.

  • Get the Size of a Directory in Linux the Easy Way

    du -sh for the quick answer, ncdu for the cleanup, df for the disk itself: every command for checking directory size in Linux, plus why du and df never agree.

  • Vim Search and Replace: The Ultimate Guide

    One :%s command replaces every match in a file before a find dialog would even open. The Vim substitute patterns worth the muscle memory: flags, ranges, capture groups, and multi-file edits.