MX53 u-boot Splash Screen support

cancel
Showing results for 
Search instead for 
Did you mean: 

MX53 u-boot Splash Screen support

8,553 Views
JohnBirch
NXP Employee
NXP Employee

The folowing is from uboot_mx5x.pdf (in BSP MX53-L2.6.35_11.05.01_ER)

 

 5.5 Splash screen support

Splash screen is off by default. If need to show a splash screen on lcd panel, you should add it yourself.
1. In config file, enable splash screen.

Add:
#define CONFIG_SPLASH_SCREEN
then splash screen feature is now enabled.

2.How to change splash image.
Currently, we use converted image in board/freescale/common/fsl_bmp_600x400.c.


In order to change splash image, user need to:
•Prepare an bmp image for display, better to be 600x400. Other resolutions need to modify more source.
•Convert it to .c file. Pls ask us for bin2txt.py.
•Put converted bmp.c to board/freescale/common/fsl_bmp_600x400.c.
•Modify Makefile to build it.
e.g.
COBJS-${CONFIG_VIDEO_MX5} += my_bmp.o

Tags (1)
24 Replies

755 Views
pardeepksingla
Contributor I

Hi John,

I have one doubt. On my side I am able to display splash screen but it is totally revers means 180 degree.

Please Can you let me know why your default code image name is fsl_revered. Is there something which I am missing?

Please guide me.

Thanks & Regards,

Pardeep Singla

0 Kudos

770 Views
pardeepksingla
Contributor I

Hi John,

I am working on IMX6Q SabreSD. I am working on splash screen on LCD display.

I have already enabled all the required macros and define the environment variables .

Please guide me what steps I should follow to make it working.

You can contact me on my mail id b45784@freescale.com

Thanks 7 Regards,

Pardeep Singla

0 Kudos

770 Views
JohnBirch
NXP Employee
NXP Employee

Did you see the following thread regarding the MX6 splash screen?

https://community.freescale.com/message/320514#320514

Best Regards,

John

0 Kudos

770 Views
pardeepksingla
Contributor I

Yeah I looked into it but it did not help. It will be better for me  if you will give me the steps which i should follow to make it working.

Thanks & Regards,

Pardeep Singla

0 Kudos

755 Views
fabio_estevam
NXP Employee
NXP Employee

Pardeep,

I suggest you to use U-boot 2013.04, which has splash screen support working for mx6qsabrelite, mx6 nitrogen , mx51evk and mx53qsb.

By using these boards as reference you can make the required changes to add support for mx6qsabresd.

Then please send your patches to the U-boot list.

Regards,

Fabio Estevam

0 Kudos

755 Views
pardeepksingla
Contributor I

Hi Fabio,

Thank you very much. I looked into splash screen code of v2013.04 mx6qsabrelite. It is very much different from v2009.08.

I will look into it and will let you know . Thanks a lot

Regards,

Pardeep Singla

0 Kudos

755 Views
fabio_estevam
NXP Employee
NXP Employee

Hi Pardeep,

Yes, correctly. My suggestion is not to use 2009.08 at all and go with 2013.04.

Please have a try with 2013.04 and I will be glad to assist you to add splash screen support with this version of U-boot.

Regards,

Fabio Estevam

0 Kudos

770 Views
JohnBirch
NXP Employee
NXP Employee

I haven’t personally gone through this, actually.

What did you try?

Did you do the following, as described in section 5.4 of the uboot_mc6x.pdf?

5.4 Splash screen support

Splash screen is off by default. If need to show a splash screen on lcd panel, you should add it yourself.

1.In config file, enable splash screen.

Add:

#define CONFIG_SPLASH_SCREEN

then splash screen feature is now enabled.

2.Boot into u-boot console and set splash screen enviroment variables.

setenv splashimage ‘0x97c90000’

setenv splashpos ‘0,0’

setenv lvds_num 1

Note:

splashimage is the image address that will be loaded.

splashpos is the image position that will be displayed.

If you want to use lvds0, then set lvds_num to 0.

3.How to change splash image.

Currently, we use converted image in board/freescale/common/fsl_bmp_600x400.c.

In order to change splash image, user need to:

•Prepare an bmp image for display, better to be 600x400. Other resolutions need to modify more source.

•Convert it to .c file. Pls ask us for bin2txt.py.

•Put converted bmp.c to board/freescale/common/fsl_bmp_600x400.c.

•Modify Makefile to build it.

e.g.

COBJS-$ += my_bmp.o

0 Kudos

765 Views
pardeepksingla
Contributor I

Yeah, I did all these steps but I do not know where is the problem.

Thanks & Regards,

Pardeep Singla

0 Kudos

770 Views
Rooney
Contributor III

Hello John!

Tried to get u-boot splash on my MX53 and it works perfectly!!!

Can you give me the mentioned bin2txt.py script to convert my own splash screen? Is there a limitation of the image size? I use an 1024x768 screen.

Regards,

Rooney

0 Kudos

770 Views
JohnBirch
NXP Employee
NXP Employee

You will find the file here - https://community.freescale.com/docs/DOC-93833

0 Kudos

770 Views
Rooney
Contributor III

Hello John!

Thanks for the script!!!

Can you please explain which format the bmp file need to have? Can't see my own splash screen...

Resolution = 600x400

Colors = ? --> 16 Bit, 24, Bit, 32 Bit, indexed?

Regards,

Rooney

0 Kudos

770 Views
fabio_estevam
NXP Employee
NXP Employee

Rooney,

I suggest you to use the mainline U-boot as it has splashscreen turned on by default for mx53qsb.

If you need to create your own splash screen:

http://www.denx.de/wiki/DULG/UBootBitmapSupport

Regards,

Fabio Estevam

0 Kudos

770 Views
JohnBirch
NXP Employee
NXP Employee

it is eaier to make the image 600x400, other resolutions need to modify more source (see uboot_mx53.pdf section 5.5)

As for the bits per pixel, you should match that to your display, we typically use 16bpp.

0 Kudos

770 Views
erickang
Contributor II

Thanks John,

I confirmed the Splash Screen operation on i.MX25 3Stack board.

When the u-boot was loaded, the Screen displayed the purple color on the full screen.

Is that right?

As the next step, I want to change the display Image.

Could you give me the converting script, bin2txt.py?

And Could you tell me how to use the script?

Best Regards,

Eric.

0 Kudos

770 Views
fabio_estevam
NXP Employee
NXP Employee

Hi Leon,

I have submitted all the mx53qsb framebuffer patches to the U-boot list, but in order to help people to test it I created a branch (u-boot-fb) here:

https://github.com/fabioestevam/u-boot-imx

Currently only CLAA-WVGA panel is supported, but it is possible to extend the support for other panels or VGA output.

Regards,

Fabio Estevam

0 Kudos

770 Views
sidebranch
Contributor II

Fabio,

much appreciated to share your work here.

Regards,

Leon.

0 Kudos

770 Views
fabio_estevam
NXP Employee
NXP Employee

In case you want to use splashscreen on mx53qsb running mainline U-boot, I just posted support for it:

http://marc.info/?l=u-boot&m=133669865032232&w=2

Regards,

Fabio Estevam

0 Kudos

770 Views
G_rio
Contributor III

Hello Jerry,

My question was about config file to put this line

#define CONFIG_SPLASH_SCREEN

I'm using i.MX53-QSB

0 Kudos

770 Views
JerryFat
Contributor I

Hi Eduardo:

Which config file ?

I installed ltib110501 from tarball (./install ./ltib -c) and then installed u-boot:

./ltib -m prep -p u-boot
./ltib -m scbuild -p u-boot
./ltib -m scdeploy -p u-boot

I added #define CONFIG_SPLASH_SCREEN to (u-boot) include/configs/mx51_bbg.h just above line #ifdef CONFIG_SPLASH_SCREEN

to manually build u-boot in ltib freescale uboot ltib board files :

cd /ltib/rpm/BUILD/u-boot2009.08
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- clean
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- mrproper
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- mx53_loco_config OR
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- mx53_evk_config  OR
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- mx51_bbg_config  IS "mx51evk"
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- u-boot.bin
sudo dd if=./u-boot.bin of=./u-boot-no-padding.bin bs=1024 skip=1
sudo dd if=u-boot-no-padding.bin of=/dev/sdc bs=512 seek=2
sync

 

U-boot comes OK up but no splash screens...

 

- Jerry

0 Kudos