Enable splash screen
cover Enable splash screen
To enable splash screen at SPL stage move video driver and splash screen framework at SPL, which will bring up image on display very quickly and thus have early display support in SPL.
Nikhil M Jain (9):
drivers: video: Kconfig: Necessary configs for video at SPL
drivers: video: tidss: Kconfig: Configs to enable TIDSS at SPL
cmd: Kconfig: Add necessary configs for splash screen at SPL
drivers: video: Makefile: Compile video driver files at SPL
drivers: video: tidss: Makefile: Add condition to compile TIDSS at SPL
cmd: Makefile: Add rules to build bmp.c and read.c at SPL
common: splash: Enable splash_display at SPL stage
drivers: video: video-uclass: Disable u-boot logo at SPL
board: ti: am62x: evm: OSPI support for splash screen
board/ti/am62x/evm.c | 6 ++++++ cmd/Kconfig | 17 +++++++++++++++++ cmd/Makefile | 2 ++ common/splash.c | 2 +- drivers/video/Kconfig | 32 ++++++++++++++++++++++++++++---- drivers/video/Makefile | 6 ++++++ drivers/video/tidss/Kconfig | 6 ++++++ drivers/video/tidss/Makefile | 1 + drivers/video/video-uclass.c | 2 +- include/splash.h | 2 +- 10 files changed, 69 insertions(+), 7 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/9 drivers: video: Kconfig: Necessary configs for video at SPL
Add necessary Kconfigs to enable video driver and enable splash screen at spl stage.CONFIG_SPL_VIDEO enables all necessary configs enabled by CONFIG_VIDEO at spl stage.CONFIG_SPL_SYS_WHITE_ON_BLACK allows displaying on black background at spl stage.
These configs are specific to SPL and will allow us to enable the video driver and splash screen at SPL stage only and not at u-boot proper. The existing Kconfigs from u-boot proper were not used to make SPL splash screen independent to them.
Enable BMP_GZIP at SPL stage when SPL_SPLASH_SCREEN or SPL_CMD_BMP are defined.
--- drivers/video/Kconfig | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-)
drivers/video/Kconfig +27 -3
@@ -14,7 +14,17 @@ config VIDEO option compiles in the video uclass and routes all LCD/video access through this. -if VIDEO +config SPL_VIDEO + bool "Enable driver model support for LCD/video" + depends on SPL_DM + help + The video subsystem adds a small amount of overhead to the image. + If this is acceptable and you have a need to use video drivers in + SPL, enable this option. It might provide a cleaner interface to + setting up video within SPL, and allows the same drivers to be + used as U-Boot proper. + +if VIDEO || SPL_VIDEO config VIDEO_LOGO bool "Show the U-Boot logo on the display"
@@ -193,6 +203,14 @@ config SYS_WHITE_ON_BLACK better in low-light situations or to reduce eye strain in some cases. +config SPL_SYS_WHITE_ON_BLACK + bool "Display console as white on a black background" + help + Normally the display is black on a white background, Enable this + option to invert this, i.e. white on a black background at spl stage. + This can be better in low-light situations or to reduce eye strain in + some cases. + config NO_FB_CLEAR bool "Skip framebuffer clear" help
@@ -795,7 +813,13 @@ config SPLASH_SCREEN image data before it is processed and sent to the frame buffer by U-Boot. Define your own version to use this feature. -if SPLASH_SCREEN +config SPL_SPLASH_SCREEN + bool "Show a splash-screen image" + help + If this option is set, the environment is checked for a variable + "splashimage" at spl stage. + +if SPLASH_SCREEN || SPL_SPLASH_SCREEN config SPLASH_SCREEN_ALIGN bool "Allow positioning the splash image anywhere on the display"
@@ -863,7 +887,7 @@ endif # SPLASH_SCREEN config VIDEO_BMP_GZIP bool "Gzip compressed BMP image support" - depends on CMD_BMP || SPLASH_SCREEN + depends on CMD_BMP || SPLASH_SCREEN || SPL_SPLASH_SCREEN || SPL_CMD_BMP help If this option is set, additionally to standard BMP images, gzipped BMP images can be displayed via the
Signature · 1 line
2.34.1
PATCH 2/9 drivers: video: tidss: Kconfig: Configs to enable TIDSS at SPL
In reply to Nikhil M JainTo enable tidss video driver only at SPL stage, add necessary config, CONFIG_SPL_VIDEO_TIDSS.
--- drivers/video/tidss/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/video/tidss/Kconfig +6 -0
@@ -16,3 +16,9 @@ menuconfig VIDEO_TIDSS DPI . This option enables these supports which can be used on devices which have OLDI or HDMI display connected. +config SPL_VIDEO_TIDSS + bool "Enable TIDSS video support in SPL Stage" + depends on SPL_VIDEO + help + This options enables tidss driver in SPL stage. If + you need to use tidssat SPL stage use this config.
Signature · 1 line
2.34.1
PATCH 3/9 cmd: Kconfig: Add necessary configs for splash screen at SPL
In reply to Nikhil M JainCONFIG_CMD_BMP and CONFIG_SPLASH_SCREEN enable's splash display at only u-boot proper. To enable splash display at SPL stage add SPL specific configs, which are SPL_CMD_BMP and SPL_SPLASH_SCREEN.
--- cmd/Kconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
cmd/Kconfig +17 -0
@@ -1415,6 +1415,11 @@ config CMD_READ help Provides low-level access to the data in a partition. +config SPL_CMD_READ + bool "read - Read binary data from a partition" + help + Provides low-level access to the data in a partition at SPL stage. + config CMD_REMOTEPROC bool "remoteproc" depends on REMOTEPROC
@@ -1931,6 +1936,18 @@ config CMD_BMP the image into RAM, then using this command to look at it or display it. +config SPL_CMD_BMP + bool "Enable 'bmp' command" + depends on SPL_VIDEO + help + This provides a way to obtain information about a BMP-format image + and to display it in spl stage.BMP (which presumably stands for BitMaP) is a + file format defined by Microsoft which supports images of various + depths, formats and compression methods. Headers on the file + determine the formats used. This command can be used by first loading + the image into RAM, then using this command to look at it or display + it. + config CMD_BOOTCOUNT bool "bootcount" depends on BOOTCOUNT_LIMIT
Signature · 1 line
2.34.1
PATCH 4/9 drivers: video: Makefile: Compile video driver files at SPL
In reply to Nikhil M JainTo enable splash screen at SPL we need to add video driver at SPL stage. To support video driver and splash display function compile video_uclass.c, video_console.c and video_bmp.c, thus add rules to compile these files at SPL stage when CONFIG_SPL_VIDEO is defined.
--- drivers/video/Makefile | 5 +++++ 1 file changed, 5 insertions(+)
drivers/video/Makefile +5 -0
@@ -68,3 +68,8 @@ obj-$(CONFIG_VIDEO_ZYNQMP_DPSUB) += zynqmp_dpsub.o obj-y += bridge/ obj-y += sunxi/ + +ifdef CONFIG_SPL_BUILD +obj-$(CONFIG_$(SPL_)VIDEO) += video-uclass.o vidconsole-uclass.o +obj-$(CONFIG_$(SPL_)VIDEO) += video_bmp.o +endif
Signature · 1 line
2.34.1
PATCH 5/9 drivers: video: tidss: Makefile: Add condition to compile TIDSS at SPL
In reply to Nikhil M JainTo enable TIDSS driver only at SPL stage add rule to compile the TIDSS video driver, for SPL stage only if CONFIG_SPL_VIDEO_TIDSS is defined.
--- drivers/video/Makefile | 1 + drivers/video/tidss/Makefile | 1 + 2 files changed, 2 insertions(+)
drivers/video/Makefile +1 -0
@@ -72,4 +72,5 @@ obj-y += sunxi/ ifdef CONFIG_SPL_BUILD obj-$(CONFIG_$(SPL_)VIDEO) += video-uclass.o vidconsole-uclass.o obj-$(CONFIG_$(SPL_)VIDEO) += video_bmp.o +<<<<<<< HEAD endif
drivers/video/tidss/Makefile +1 -0
@@ -10,3 +10,4 @@ obj-${CONFIG_VIDEO_TIDSS} = tidss_drv.o +obj-${CONFIG_SPL_VIDEO_TIDSS} = tidss_drv.o
Signature · 1 line
2.34.1
Re: [PATCH 5/9] drivers: video: tidss: Makefile: Add condition to compile TIDSS at SPL
Quoted 17 lines · Nikhil M Jain
To enable TIDSS driver only at SPL stage add rule to compile the TIDSS video driver, for SPL stage only if
CONFIG_SPL_VIDEO_TIDSSis defined.Signed-off-by Nikhil M Jain <[email protected]>Reviewed-by Devarsh Thakkar <[email protected]>--- drivers/video/Makefile | 1 + drivers/video/tidss/Makefile | 1 + 2 files changed, 2 insertions(+)drivers/video/Makefile +0
-0
drivers/video/Makefile obj-y += sunxi/ · line 75
Quoted 4 lines
drivers/video/Makefile +1
-0@@ -72,4 +72,5 @@ obj-y += sunxi/ ifdef CONFIG_SPL_BUILD obj-$(CONFIG_$(SPL_)VIDEO) += video-uclass.o vidconsole-uclass.o obj-$(CONFIG_$(SPL_)VIDEO) += video_bmp.o +<<<<<<< HEAD
I think this artifact is from a bad patch apply and shouldn't be there.
Quoted 14 lines
drivers/video/Makefile +0
-0endifdrivers/video/tidss/Makefile +1
-1@@ -10,3 +10,4 @@ obj-${CONFIG_VIDEO_TIDSS} = tidss_drv.o +obj-${CONFIG_SPL_VIDEO_TIDSS} = tidss_drv.o --2.34.1
PATCH 6/9 cmd: Makefile: Add rules to build bmp.c and read.c at SPL
In reply to Nikhil M JainSplash support requires functions which are in bmp.c and read.c to enable display of bmp image and reading image from boot media. Enable their compilation at SPL stage, using Kconfigs SPL_CMD_BMP, SPL_CMD_READ.
--- cmd/Makefile | 2 ++ 1 file changed, 2 insertions(+)
cmd/Makefile +2 -0
@@ -232,6 +232,8 @@ obj-$(CONFIG_ARCH_MVEBU) += mvebu/ endif # !CONFIG_SPL_BUILD obj-$(CONFIG_$(SPL_)CMD_TLV_EEPROM) += tlv_eeprom.o +obj-$(CONFIG_$(SPL_)CMD_BMP) += bmp.o +obj-$(CONFIG_$(SPL_)CMD_READ) += read.o # core command obj-y += nvedit.o
Signature · 1 line
2.34.1
PATCH 7/9 common: splash: Enable splash_display at SPL stage
In reply to Nikhil M JainCONFIG_SPLASH_SCREEN and CONFIG_CMD_BMP enables splash screen at u-boot proper. To enable splash screen at SPL, separate macros i.e. SPL_SPLASH_SCREEN and SPL_CMD_BMP are used instead. Use CONFIG_IS_ENABLED(#) to check for splash screen and bmp related macros, so that it checks for either u-boot proper or SPl related macros as enabled at u-boot proper or SPL stage respectively.
--- common/splash.c | 2 +- include/splash.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
common/splash.c +1 -1
@@ -157,7 +157,7 @@ void splash_display_banner(void)* Common function to show a splash image if env("splashimage") is set. * For additional details please refer to doc/README.splashprepare. */ -#if defined(CONFIG_SPLASH_SCREEN ) && defined(CONFIG_CMD_BMP ) +#if CONFIG_IS_ENABLED (SPLASH_SCREEN ) &&CONFIG_IS_ENABLED (CMD_BMP )int splash_display (void ) {ulong addr;
include/splash.h +1 -1
@@ -67,7 +67,7 @@ void splash_get_pos(int *x, int *y);static inline void splash_get_pos (int *x,int *y) { }#endif -#if defined(CONFIG_SPLASH_SCREEN ) && defined(CONFIG_CMD_BMP ) +#if CONFIG_IS_ENABLED (SPLASH_SCREEN ) &&CONFIG_IS_ENABLED (CMD_BMP )int splash_display (void );#else static inline int splash_display (void )
Signature · 1 line
2.34.1
PATCH 8/9 drivers: video: video-uclass: Disable u-boot logo at SPL
In reply to Nikhil M JainEnable displaying of u-boot video logo as default at SPL stage to if splash screen is disabled at SPL stage. Use CONFIG_IS_ENABLED for checking on splash screen macro both at SPL stage or u-boot proper depending upon where it is enabled.
--- drivers/video/Kconfig | 2 +- drivers/video/video-uclass.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/video/Kconfig +1 -1
@@ -28,7 +28,7 @@ if VIDEO || SPL_VIDEO config VIDEO_LOGO bool "Show the U-Boot logo on the display" - default y if !SPLASH_SCREEN + default y if !SPLASH_SCREEN || !SPL_SPLASH_SCREEN select VIDEO_BMP_RLE8 help This enables showing the U-Boot logo on the display when a video
drivers/video/video-uclass.c +1 -1
@@ -498,7 +498,7 @@ static int video_post_probe(struct udevice *dev) }if (IS_ENABLED (CONFIG_VIDEO_LOGO ) && - !IS_ENABLED (CONFIG_SPLASH_SCREEN ) && !plat->hide_logo) { + !CONFIG_IS_ENABLED (SPLASH_SCREEN ) && !plat->hide_logo) { ret =show_splash (dev);if (ret) {log_debug ("Cannot show splash screen\n" );
Signature · 1 line
2.34.1
PATCH 9/9 board: ti: am62x: evm: OSPI support for splash screen
In reply to Nikhil M JainAdd ospi boot media support to load splash image from OSPI memory, add offset to read image from ospi and necessary flags defininig type of storage and storage device.
--- board/ti/am62x/evm.c | 6 ++++++ 1 file changed, 6 insertions(+)
board/ti/am62x/evm.c +6 -0
@@ -22,6 +22,12 @@ DECLARE_GLOBAL_DATA_PTR; #ifdef CONFIG_SPLASH_SCREEN static struct splash_location default_splash_locations[] = { + { + .name = "sf", + .storage = SPLASH_STORAGE_SF, + .flags = SPLASH_STORAGE_RAW, + .offset = 0x700000, + }, { .name = "mmc", .storage = SPLASH_STORAGE_MMC,
Signature · 1 line
2.34.1
Hi Nikhil,
Quoted 16 lines · Nikhil M Jain
To enable splash screen at SPL stage move video driver and splash screen framework at SPL, which will bring up image on display very quickly and thus have early display support in SPL.
Nikhil M Jain (9):
drivers: video:Kconfig: Necessary configs for video at SPL
drivers: video: tidss:Kconfig: Configs to enable TIDSS at SPL
cmd:Kconfig: Add necessary configs for splash screen at SPL
drivers: video:Makefile: Compile video driver files at SPL
drivers: video: tidss:Makefile: Add condition to compile TIDSS at SPL
cmd:Makefile: Add rules to buildbmp.candread.cat SPL
common: splash: Enablesplash_displayat SPL stage
drivers: video: video-uclass: Disable u-boot logo at SPL
board: ti: am62x: evm: OSPI support for splash screen
Quoted 11 lines
board/ti/am62x/evm.c | 6 ++++++ cmd/Kconfig | 17 +++++++++++++++++ cmd/Makefile | 2 ++ common/splash.c | 2 +- drivers/video/Kconfig | 32 ++++++++++++++++++++++++++++---- drivers/video/Makefile | 6 ++++++ drivers/video/tidss/Kconfig | 6 ++++++ drivers/video/tidss/Makefile | 1 + drivers/video/video-uclass.c | 2 +- include/splash.h | 2 +- 10 files changed, 69 insertions(+), 7 deletions(-)
I'm not necessarily arguing against this, but what is the need for this? How many milliseconds earlier does the image appear with this patch? What is the bottleneck? We should be able to get to U-Boot proper very quickly.
Regards,
Simon
Hi Simon,
Quoted 31 lines · Simon Glass
Hi Nikhil,
Quoted 16 lines · Nikhil M Jain
To enable splash screen at SPL stage move video driver and splash screen framework at SPL, which will bring up image on display very quickly and thus have early display support in SPL.
Nikhil M Jain (9):
drivers: video:Kconfig: Necessary configs for video at SPL
drivers: video: tidss:Kconfig: Configs to enable TIDSS at SPL
cmd:Kconfig: Add necessary configs for splash screen at SPL
drivers: video:Makefile: Compile video driver files at SPL
drivers: video: tidss:Makefile: Add condition to compile TIDSS at SPL
cmd:Makefile: Add rules to buildbmp.candread.cat SPL
common: splash: Enablesplash_displayat SPL stage
drivers: video: video-uclass: Disable u-boot logo at SPL
board: ti: am62x: evm: OSPI support for splash screenQuoted 11 lines
board/ti/am62x/evm.c | 6 ++++++ cmd/Kconfig | 17 +++++++++++++++++ cmd/Makefile | 2 ++ common/splash.c | 2 +- drivers/video/Kconfig | 32 ++++++++++++++++++++++++++++---- drivers/video/Makefile | 6 ++++++ drivers/video/tidss/Kconfig | 6 ++++++ drivers/video/tidss/Makefile | 1 + drivers/video/video-uclass.c | 2 +- include/splash.h | 2 +- 10 files changed, 69 insertions(+), 7 deletions(-)
Quoted 5 lines
I'm not necessarily arguing against this, but what is the need for this? How many milliseconds earlier does the image appear with this patch? What is the bottleneck? We should be able to get to U-Boot proper very quickly.
There is a significant difference in time, by adding support in SPL splash screen comes up by approx 650ms and at u-boot proper it comes at 2.6s, measured from first print in console as seen on AM62x. Also we plan to skip u-boot proper and load kernel directly.
Quoted 2 lines
Regards,
Simon
Regards,
Nikhil
Hi Nikhil,
Quoted 40 lines · Nikhil M Jain
Hi Simon,
Quoted 31 lines · Simon Glass
Hi Nikhil,
Quoted 16 lines · Nikhil M Jain
To enable splash screen at SPL stage move video driver and splash screen framework at SPL, which will bring up image on display very quickly and thus have early display support in SPL.
Nikhil M Jain (9):
drivers: video:Kconfig: Necessary configs for video at SPL
drivers: video: tidss:Kconfig: Configs to enable TIDSS at SPL
cmd:Kconfig: Add necessary configs for splash screen at SPL
drivers: video:Makefile: Compile video driver files at SPL
drivers: video: tidss:Makefile: Add condition to compile TIDSS at SPL
cmd:Makefile: Add rules to buildbmp.candread.cat SPL
common: splash: Enablesplash_displayat SPL stage
drivers: video: video-uclass: Disable u-boot logo at SPL
board: ti: am62x: evm: OSPI support for splash screenQuoted 11 lines
board/ti/am62x/evm.c | 6 ++++++ cmd/Kconfig | 17 +++++++++++++++++ cmd/Makefile | 2 ++ common/splash.c | 2 +- drivers/video/Kconfig | 32 ++++++++++++++++++++++++++++---- drivers/video/Makefile | 6 ++++++ drivers/video/tidss/Kconfig | 6 ++++++ drivers/video/tidss/Makefile | 1 + drivers/video/video-uclass.c | 2 +- include/splash.h | 2 +- 10 files changed, 69 insertions(+), 7 deletions(-)Quoted 5 lines
I'm not necessarily arguing against this, but what is the need for this? How many milliseconds earlier does the image appear with this patch? What is the bottleneck? We should be able to get to U-Boot proper very quickly.
Quoted 4 lines
There is a significant difference in time, by adding support in SPL splash screen comes up by approx 650ms and at u-boot proper it comes at 2.6s, measured from first print in console as seen on AM62x. Also we plan to skip u-boot proper and load kernel directly.
Yes that really is terrible. It should be under a second for U-Boot proper!
Have you tried using bootstage to report the numbers?
Have you tried using tracing to figure out what is wrong? Is it just slow storage?
Regards,
Simon
Hi Simon,
Quoted 43 lines · Simon Glass
Hi Nikhil,
Quoted 40 lines · Nikhil M Jain
Hi Simon,
Quoted 36 lines · Simon Glass
Hi Nikhil,
Quoted 16 lines · Nikhil M Jain
To enable splash screen at SPL stage move video driver and splash screen framework at SPL, which will bring up image on display very quickly and thus have early display support in SPL.
Nikhil M Jain (9):
drivers: video:Kconfig: Necessary configs for video at SPL
drivers: video: tidss:Kconfig: Configs to enable TIDSS at SPL
cmd:Kconfig: Add necessary configs for splash screen at SPL
drivers: video:Makefile: Compile video driver files at SPL
drivers: video: tidss:Makefile: Add condition to compile TIDSS at SPL
cmd:Makefile: Add rules to buildbmp.candread.cat SPL
common: splash: Enablesplash_displayat SPL stage
drivers: video: video-uclass: Disable u-boot logo at SPL
board: ti: am62x: evm: OSPI support for splash screenQuoted 11 lines
board/ti/am62x/evm.c | 6 ++++++ cmd/Kconfig | 17 +++++++++++++++++ cmd/Makefile | 2 ++ common/splash.c | 2 +- drivers/video/Kconfig | 32 ++++++++++++++++++++++++++++---- drivers/video/Makefile | 6 ++++++ drivers/video/tidss/Kconfig | 6 ++++++ drivers/video/tidss/Makefile | 1 + drivers/video/video-uclass.c | 2 +- include/splash.h | 2 +- 10 files changed, 69 insertions(+), 7 deletions(-)I'm not necessarily arguing against this, but what is the need for this? How many milliseconds earlier does the image appear with this patch? What is the bottleneck? We should be able to get to U-Boot proper very quickly.
Quoted 9 lines
Quoted 4 lines
There is a significant difference in time, by adding support in SPL splash screen comes up by approx 650ms and at u-boot proper it comes at 2.6s, measured from first print in console as seen on AM62x. Also we plan to skip u-boot proper and load kernel directly.
Yes that really is terrible. It should be under a second for U-Boot proper!
Have you tried using bootstage to report the numbers?
No I haven't used the bootstage, I will use it to get the numbers.
Quoted 3 lines
Have you tried using tracing to figure out what is wrong? Is it just slow storage?
U-boot proper comes up in one sec but the splash display is called through stdio_add_devices which is late in the board_init_r sequence defined in board_r.c.
Quoted 2 lines
Regards,
Simon
Thanks
Hi Simon,
Quoted 51 lines · Nikhil M Jain
Hi Simon,
Quoted 48 lines · Simon Glass
Hi Nikhil,
Quoted 44 lines · Nikhil M Jain
Hi Simon,
Quoted 31 lines · Simon Glass
Hi Nikhil,
Quoted 26 lines · Nikhil M Jain
To enable splash screen at SPL stage move video driver and splash screen framework at SPL, which will bring up image on display very quickly and thus have early display support in SPL.
Nikhil M Jain (9):
drivers: video:Kconfig: Necessary configs for video at SPL
drivers: video: tidss:Kconfig: Configs to enable TIDSS at SPL
cmd:Kconfig: Add necessary configs for splash screen at SPL
drivers: video:Makefile: Compile video driver files at SPL
drivers: video: tidss:Makefile: Add condition to compile TIDSS at SPL
cmd:Makefile: Add rules to buildbmp.candread.cat SPL
common: splash: Enablesplash_displayat SPL stage
drivers: video: video-uclass: Disable u-boot logo at SPL
board: ti: am62x: evm: OSPI support for splash screenboard/ti/am62x/evm.c | 6 ++++++
cmd/Kconfig | 17 +++++++++++++++++ cmd/Makefile | 2 ++
common/splash.c | 2 +- drivers/video/Kconfig | 32 ++++++++++++++++++++++++++++---- drivers/video/Makefile | 6 ++++++ drivers/video/tidss/Kconfig | 6 ++++++drivers/video/tidss/Makefile| 1 +drivers/video/video-uclass.c| 2 +-
include/splash.h | 2 +-Quoted 1 line
10 files changed, 69 insertions(+), 7 deletions(-)Quoted 5 lines
I'm not necessarily arguing against this, but what is the need for this? How many milliseconds earlier does the image appear with this patch? What is the bottleneck? We should be able to get to U-Boot proper very quickly.
There is a significant difference in time, by adding support in SPL splash screen comes up by approx 650ms and at u-boot proper it comes at 2.6s, measured from first print in console as seen on AM62x. Also we plan to skip u-boot proper and load kernel directly.
Quoted 6 lines
Quoted 4 lines
Yes that really is terrible. It should be under a second for U-Boot proper!
Have you tried using bootstage to report the numbers?
No I haven't used the bootstage, I will use it to get the numbers.
Boot stage logs
Quoted 8 lines
Quoted 3 lines
Have you tried using tracing to figure out what is wrong? Is it just slow storage?
U-boot proper comes up in one sec but the splash display is called through
stdio_add_deviceswhich is late in theboard_init_rsequence defined inboard_r.c.Quoted 2 lines
Quoted 1 line
Regards,
Simon
Thanks
On AM62x we have multi-stage boot first R5 SPL comes up then A53 SPL and u-boot proper, due to which splash screen at u-boot proper takes over 2 sec. On AM62x we have an aggressive requirement for an early splash screen. Hence we are moving splash screen support to SPL., which will bring splash screen time to approx 600 ms.
We also want to support falcon boot mode from A53 SPL, we have customers who don't want u-boot proper in production boot flow and still require splash screen, the only way to support it is to add splash screen at SPL.
u-boot logs with splash screen timings, measurement through timer_get_boot_us at u-boot proper and SPL.
Thanks,
Nikhil
Hi Nikhil,
Quoted 86 lines · Nikhil M Jain
Hi Simon,
Quoted 54 lines · Nikhil M Jain
Hi Simon,
Quoted 51 lines · Simon Glass
Hi Nikhil,
Quoted 47 lines · Nikhil M Jain
Hi Simon,
Quoted 34 lines · Simon Glass
Hi Nikhil,
Quoted 19 lines · Nikhil M Jain
To enable splash screen at SPL stage move video driver and splash screen
framework at SPL, which will bring up image on display very quickly and
thus have early display support in SPL.Nikhil M Jain (9):
drivers: video:Kconfig: Necessary configs for video at SPL
drivers: video: tidss:Kconfig: Configs to enable TIDSS at SPL
cmd:Kconfig: Add necessary configs for splash screen at SPL
drivers: video:Makefile: Compile video driver files at SPL
drivers: video: tidss:Makefile: Add condition to compile TIDSS
at SPL
cmd:Makefile: Add rules to buildbmp.candread.cat SPL
common: splash: Enablesplash_displayat SPL stage
drivers: video: video-uclass: Disable u-boot logo at SPL
board: ti: am62x: evm: OSPI support for splash screenQuoted 11 lines
board/ti/am62x/evm.c | 6 ++++++ cmd/Kconfig | 17 +++++++++++++++++ cmd/Makefile | 2 ++ common/splash.c | 2 +- drivers/video/Kconfig | 32 ++++++++++++++++++++++++++++---- drivers/video/Makefile | 6 ++++++ drivers/video/tidss/Kconfig | 6 ++++++ drivers/video/tidss/Makefile | 1 + drivers/video/video-uclass.c | 2 +- include/splash.h | 2 +- 10 files changed, 69 insertions(+), 7 deletions(-)Quoted 5 lines
I'm not necessarily arguing against this, but what is the need for this? How many milliseconds earlier does the image appear with this patch? What is the bottleneck? We should be able to get to U-Boot proper very quickly.
There is a significant difference in time, by adding support in SPL splash screen comes up by approx 650ms and at u-boot proper it comes at 2.6s, measured from first print in console as seen on AM62x. Also we plan to skip u-boot proper and load kernel directly.
Quoted 7 lines
Quoted 5 lines
Yes that really is terrible. It should be under a second for U-Boot proper!
Have you tried using bootstage to report the numbers?
No I haven't used the bootstage, I will use it to get the numbers.
Boot stage logs
Quoted 10 lines
Quoted 3 lines
Have you tried using tracing to figure out what is wrong? Is it just slow storage?
U-boot proper comes up in one sec but the splash display is called through
stdio_add_deviceswhich is late in theboard_init_rsequence defined inboard_r.c.Quoted 2 lines
Quoted 1 line
Regards,
Simon
Thanks
On AM62x we have multi-stage boot first R5 SPL comes up then A53 SPL and u-boot proper, due to which splash screen at u-boot proper takes over 2 sec. On AM62x we have an aggressive requirement for an early splash screen. Hence we are moving splash screen support to SPL., which will bring splash screen time to approx 600 ms.
Quoted 7 lines
We also want to support falcon boot mode from A53 SPL, we have customers who don't want u-boot proper in production boot flow and still require splash screen, the only way to support it is to add splash screen at SPL.
u-boot logs with splash screen timings, measurement through
timer_get_boot_usat u-boot proper and SPL.
I think it would be worth looking at what is taking so long. Could you add bootstage in there (which supports SPL as well) and produce a final report? Is BL31 taking a while?You can use bootstage_start()/bootstage_accum() to collect time on MMC loading, etc. even if you don't want to enable CONFIG_TRACE.
This is an important area that will affect a lot of boards. If it takes 2 seconds to get into U-Boot, everyone is going to want to avoid it.
Regards,
Simon