U-Boot Logo startup process and modification

One: U-Boot Logo process

1. The coordinate position can be modified by setting splashpos by command

2. Modify the function video_logo(void)

For detailed code modification, please refer to this blog: https://www.cnblogs.com/yuanguanghui/p/12590771.html

Two: Logo modification

1: Logo storage address: \tools\logos

2: Specify the picture as the display logo

Refurbishment \ tools \ Makefile

# Generic logo
ifeq ($(LOGO_BMP),)
LOGO_BMP= $(srctree)/$(src)/logos/denx.bmp

# Use board logo and fallback to vendor
ifneq ($(wildcard $(srctree)/$(src)/logos/$(BOARD).bmp),)
LOGO_BMP= $(srctree)/$(src)/logos/$(BOARD).bmp
else
ifneq ($(wildcard $(srctree)/$(src)/logos/$(VENDOR).bmp),)
LOGO_BMP= $(srctree)/$(src)/logos/$(VENDOR).bmp
endif
endif

3: Bmp format picture conversion

(1) Prepare pictures in JPG format

(2) ubuntu installation conversion tool

sudo apt-get install netpbm 

(3) Convert to 8bit bmp format picture

jpegtopnm xxx.jpg | ppmquant 31 | ppmtobmp -bpp 8 > freescale.bmp

4: clean uboot, recompile uboot

Guess you like

Origin blog.csdn.net/qq_34968572/article/details/105120897