Skip to content

Commit f713434

Browse files
committed
board: rpi4: Enable splashscreen
1 parent e2cfbaf commit f713434

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ dtoverlay=rpi-env
1414
dtoverlay=infix-key
1515
dtoverlay=vc4-kms-v3d-pi4
1616
dtoverlay=vc4-kms-dsi-7inch,rotation=180
17-
#dtoverlay=vc4-kms-dsi-7inch
18-
#lcd_rotate=2
17+
disable_splash=0
18+
19+
20+
# Prevent console on DSI
21+
console=map:0
1922

2023
# To use an external initramfs file
2124
#initramfs rootfs.cpio.gz
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
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_SPLASH_SCREEN=y
6+
CONFIG_SPLASH_SCREEN_ALIGN=y
7+
CONFIG_BMP=y
8+
CONFIG_BMP_24BPP=y
9+
#CONFIG_VIDEO_BMP_GZIP=y
10+
CONFIG_VIDEO=y
11+
CONFIG_VIDEO_BMP_RLE8=y
12+
#CONFIG_SILENT_CONSOLE=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+
splashimage = "0x10000000";
21+
bootcmd = "fatload mmc 0:1 ${splashimage} ${splashfile}; bmp display ${splashimage}; run ixboot";
1522

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

0 commit comments

Comments
 (0)