How to change uboot splash image

From RidgeRun Developer Wiki
Revision as of 20:12, 30 March 2010 by Lmendez (talk | contribs)

1- Get image that you want to show in resolution more little that your display resolution.

2- Open the image using GIMP graphic application.

3- Save the image using "save as" option.

4- In the select box "Select File Type (by Extension)" select the format "c source code"

5- Then you will get one windows with some options, in this window deselect all options (Use glibs types, use macros instead of struct, Use 1 byte run-length-encoding, Save alpha channel)

6- Then save this file on <devdir root>/bootloader/uboot.x.x/src/davinci/board/davinci/common/

7- Change the variable value "CONFIG_SPLASH_LOGO_FILE" with the name of file that you want to show, this variable is located in file <devdir root>/bootloader/uboot.x.x/src/include/configs/davinci_dvevm.h in "Splash Screen" section.

8- Clean and compile the bootloader

The form of the image-file must be similar to:


/* GIMP RGB C-Source image dump (image.c) */

static const struct {
  unsigned int          width;
  unsigned int          height;
  unsigned int          bytes_per_pixel; /* 3:RGB, 4:RGBA */ 
  unsigned char         pixel_data[200 * 100 * 3 + 1];
} gimp_image = {
  200, 100, 3,
  "(\237\306(\237\306(\237\306(\237\306(\237\306(\237\306(\237\306(\237\306"
  "(\237\306(\237\306(\237\306(\237\306(\237\306(\237\306(\237\306(\237\306"
  "(\237\306(\237\306(\237\306(\237\306(\237\306(\237\306(\237\306(\237\306"
  "(\237\306(\237\306(\237\306(\237\306(\237\306(\237\306(\237\306(\237\306"

Remember that normally the bootloader modifications are made using patches.