Skip to content

Commit 0102932

Browse files
committed
board: rpi4: Add splashscreen on boot
Show splash in uboot.
1 parent 0477446 commit 0102932

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

board/common/uboot/splash.bmp

0 Bytes
Binary file not shown.

src/board/raspberry-pi-4/config.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ device_tree=bcm2711-rpi-4-b.dtb
1313
dtoverlay=rpi-env
1414
dtoverlay=infix-key
1515
dtoverlay=vc4-kms-v3d-pi4
16-
dtoverlay=vc4-kms-dsi-7inch
16+
lcd_rotate=2
1717

18-
#ignore_lcd=0
18+
19+
# Prevent console on DSI
20+
console=map:0
1921

2022
# To use an external initramfs file
2123
#initramfs rootfs.cpio.gz
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
# CONFIG_MMC_PCI is not set
22
CONFIG_OF_OVERLAY_LIST="rpi-env infix-key"
33
# CONFIG_ENV_IS_IN_FAT is not set
4+
CONFIG_CMD_BMP=y
5+
CONFIG_CMD_RPI_DISPLAY=y
6+
CONFIG_SPLASH_SCREEN=y
7+
CONFIG_SPLASH_SCREEN_ALIGN=y
8+
CONFIG_BMP=y
9+
CONFIG_BMP_24BPP=y
10+
CONFIG_VIDEO=y
11+
CONFIG_VIDEO_BMP_RLE8=y

src/board/raspberry-pi-4/uboot/rpi-env.dtso

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@
1111
bootmenu_delay = "10";
1212
boot_targets = "mmc0";
1313
ethprime = "eth0";
14-
bootcmd = "run ixboot";
14+
15+
stdout = "serial";
16+
stderr = "serial";
17+
stdin = "serial";
18+
splashpos = "m,m";
19+
splashfile = "splash.bmp";
20+
checkdisplay = "if testrpidisplay; then; setenv fdtfile broadcom/bcm2711-rpi-4-b-dsi.dtb; else; setenv fdtfile broadcom/bcm2711-rpi-4-b.dtb; fi";
21+
bootcmd = "fatload mmc 0:1 ${loadaddr} ${splashfile}; bmp display ${loadaddr}; run checkdisplay; run ixboot";
1522

1623
ixpreboot = /incbin/("scripts/ixpreboot.sh");
1724
ixbtn-devmode = "setenv dev_mode yes; echo Enabled";

0 commit comments

Comments
 (0)