TS-4710 splash: Difference between revisions

From embeddedTS Manuals
(Created page with "The default image does not include a splash screen, but the hooks are available to display a custom image very early in the startup. The Imagemagick utility can take a splash...")
 
No edit summary
Line 1: Line 1:
The default image does not include a splash screen, but the hooks are available to display a custom image very early in the startup.  The Imagemagick utility can take a splash image and convert it to a PPM which is required by fbsplash.
The default image includes a splash image that displays the TS logo.  You can replace this with your own logo by replacing the files in /ts/splash/, or disable the splash screen by removing these files.  The fbsplash utility that displays the splash logo in a ppm format.  You can use graphics applications such as [http://www.gimp.org/ Gimp] which can export to ppm, or you can use imagemagick in Linux to convert another file to ppm:


<source lang=bash>
<source lang=bash>
Line 5: Line 5:
</source>
</source>


Some editors such as [http://www.gimp.org/ Gimp] support outputting directly to a ppm file.  The image resolution usually should match the screen, but otherwise it will be aligned to the upper left corner.
The image resolution usually should match the screen, but otherwise it will be aligned to the upper left corner.  If the system is configured to automatically boot to Debian it will display the splash screen until X11 is started.
 
The initramfs contains a hook to run applications during startup by creating a script in /ts/ called "init".  Place the splash.ppm in /ts/, and create a script called init with these contents:
<source lang=bash>
#!/bin/sh
 
# the Debian root is at /mnt/root/
fbsplash -s /mnt/root/ts/splash.ppm -d /dev/fb0
</source>
 
Make sure the file also has execution permission:
<source lang=bash>
chmod a+x /ts/init
</source>
 
During the next boot this will be executed and output the splash.  If the system is configured to automatically boot to Debian it will display the splash screen until X11 is started.

Revision as of 11:24, 7 August 2013

The default image includes a splash image that displays the TS logo. You can replace this with your own logo by replacing the files in /ts/splash/, or disable the splash screen by removing these files. The fbsplash utility that displays the splash logo in a ppm format. You can use graphics applications such as Gimp which can export to ppm, or you can use imagemagick in Linux to convert another file to ppm:

convert splash.png splash.ppm

The image resolution usually should match the screen, but otherwise it will be aligned to the upper left corner. If the system is configured to automatically boot to Debian it will display the splash screen until X11 is started.