diff --git a/patch/u-boot/u-boot-sun50i-dev/h5-boot-splash.patch b/patch/u-boot/u-boot-sun50i-dev/h5-boot-splash.patch new file mode 100644 index 0000000000..0009acff41 --- /dev/null +++ b/patch/u-boot/u-boot-sun50i-dev/h5-boot-splash.patch @@ -0,0 +1,44 @@ +diff --git a/u-boot/include/config_distro_bootcmd.h b/u-boot/include/config_distro_bootcmd.h +old mode 100644 +new mode 100755 +index 3a360ca4..0423c08 +--- a/u-boot/include/config_distro_bootcmd.h ++++ b/u-boot/include/config_distro_bootcmd.h +@@ -186,6 +186,9 @@ + BOOTENV_SHARED_SCSI \ + BOOTENV_SHARED_IDE \ + "boot_prefixes=/ /boot/\0" \ ++ "splashpos=m,m\0" \ ++ "splashimage=66000000\0" \ ++ "loadsplash=ext4load mmc 0 ${splashimage} /boot/boot.bmp || fatload mmc 0 ${splashimage} boot.bmp; bmp d ${splashimage}\0" \ + "boot_scripts=boot.scr.uimg boot.scr\0" \ + "boot_script_dhcp=boot.scr.uimg\0" \ + BOOTENV_BOOT_TARGETS \ +@@ -243,7 +245,7 @@ + "done\0" + + #ifndef CONFIG_BOOTCOMMAND +-#define CONFIG_BOOTCOMMAND "run distro_bootcmd" ++#define CONFIG_BOOTCOMMAND "run loadsplash; run distro_bootcmd" + #endif + + #endif /* _CONFIG_CMD_DISTRO_BOOTCMD_H */ +diff --git a/u-boot/include/configs/sunxi-common.h b/u-boot/include/configs/sunxi-common.h +old mode 100644 +new mode 100755 +index 2d6b815..33a7b86 +--- a/u-boot/include/configs/sunxi-common.h ++++ b/u-boot/include/configs/sunxi-common.h +@@ -10,6 +10,12 @@ + * SPDX-License-Identifier: GPL-2.0+ + */ + ++#ifdef CONFIG_VIDEO ++#define CONFIG_SPLASH_SCREEN ++#define CONFIG_SPLASH_SCREEN_ALIGN ++#define CONFIG_CMD_BMP ++#define CONFIG_VIDEO_BMP_RLE8 ++#endif + #ifndef _SUNXI_COMMON_CONFIG_H + #define _SUNXI_COMMON_CONFIG_H +