How to change uboot splash image: Difference between revisions

From RidgeRun Developer Wiki
No edit summary
mNo edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
1- Get image that you want to show in resolution more little that your display resolution.
<seo title="Change U-Boot Splash Screen Image | GIMP Graphics Program" titlemode="replace" keywords="GStreamer, Linux SDK, Linux BSP,  Embedded Linux, Device Drivers, Nvidia, Xilinx, TI, NXP, Freescale, Embedded Linux driver development, Linux Software development, Embedded Linux SDK, Embedded Linux Application development, GStreamer Multimedia Framework."  description="RidgeRun's Developer Connection provides a step-by-step guide for changing the u-boot splash screen image. Follow the 8 steps in this how-to guide at RidgeRun!"></seo>
 
1- Get image that you want to show in resolution smaller than your display resolution.


2- Open the image using GIMP graphic application.
2- Open the image using GIMP graphic application.
Line 9: Line 11:
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


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.
$DEVDIR/bootloader/uboot.*/src/board/davinci/common
 
7- Change the variable value ''CONFIG_SPLASH_LOGO_FILE'' with the name of file used above.  The ''CONFIG_SPLASH_LOGO_FILE'' configuration setting can be found in the ''Splash Screen'' section in your board file in the directory
 
$DEVDIR/bootloader/uboot.*/src/include/configs


8- Clean and compile the bootloader
8- Clean and compile the bootloader


The form of the image-file must be similar to:
The form of the image-file must be similar to:
<pre>
<pre>
/* GIMP RGB C-Source image dump (image.c) */
/* GIMP RGB C-Source image dump (image.c) */


Line 35: Line 41:


'''''Remember that normally the bootloader modifications are made using patches.'''''
'''''Remember that normally the bootloader modifications are made using patches.'''''
[[Category:HowTo]]

Latest revision as of 03:01, 4 August 2017


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 used above. The CONFIG_SPLASH_LOGO_FILE configuration setting can be found in the Splash Screen section in your board file in the directory

$DEVDIR/bootloader/uboot.*/src/include/configs

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.