How to change uboot splash image: Difference between revisions

From RidgeRun Developer Wiki
No edit summary
mNo edit summary
Line 9: Line 9:
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)
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/
6- Then save this file (changing the file extension from .c to .h) to
 
$DEVDIR/bootloader/uboot.*/src/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.
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.

Revision as of 15:19, 23 June 2011

1- Get image that you want to show in resolution smaller than 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 (changing the file extension from .c to .h) to

$DEVDIR/bootloader/uboot.*/src/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.