Difference between revisions of "How to change uboot splash image"

From RidgeRun Developer Connection
Jump to: navigation, search
Line 17: Line 17:
 
   
 
   
 
<pre>
 
<pre>
test
+
 
 +
/* 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"
 +
 
 
</pre>
 
</pre>
 +
 +
"""""Remember that normally the bootloader modifications are made using patches."""""

Revision as of 14:59, 30 March 2010

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.

The form of the 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."""""