diff options
Diffstat (limited to 'meta-unit-graphics/dynamic-layers/raspberrypi/recipes-bsp/u-boot')
3 files changed, 63 insertions, 0 deletions
diff --git a/meta-unit-graphics/dynamic-layers/raspberrypi/recipes-bsp/u-boot/files/0001-tweak-rpi-environment.patch b/meta-unit-graphics/dynamic-layers/raspberrypi/recipes-bsp/u-boot/files/0001-tweak-rpi-environment.patch new file mode 100644 index 0000000..97b07ac --- /dev/null +++ b/meta-unit-graphics/dynamic-layers/raspberrypi/recipes-bsp/u-boot/files/0001-tweak-rpi-environment.patch @@ -0,0 +1,51 @@ +From b4b7380aab0ae3ff590e9627c59fbf5b07f47ef6 Mon Sep 17 00:00:00 2001 +From: unitexe <unitexe70@gmail.com> +Date: Sun, 8 Feb 2026 11:27:08 -0600 +Subject: [PATCH] tweak rpi environment + +- Restrict boot targets to SD card +- Add custom splash support +- Disable stdout & stderr vidconsole so it doesn't write over splash + +Upstream-Status: Inappropriate [embedded-specific] +--- + board/raspberrypi/rpi/rpi.env | 19 ++++++++++++++++--- + 1 file changed, 16 insertions(+), 3 deletions(-) + +diff --git a/board/raspberrypi/rpi/rpi.env b/board/raspberrypi/rpi/rpi.env +index 9ac9d6768ca..b93b731406a 100644 +--- a/board/raspberrypi/rpi/rpi.env ++++ b/board/raspberrypi/rpi/rpi.env +@@ -6,8 +6,8 @@ dhcpuboot=usb start; dhcp u-boot.uimg; bootm + + /* Environment */ + stdin=serial,usbkbd +-stdout=serial,vidconsole +-stderr=serial,vidconsole ++stdout=serial ++stderr=serial + + /* DFU over USB/UDC */ + #ifdef CONFIG_CMD_DFU +@@ -77,4 +77,17 @@ pxefile_addr_r=0x05500000 + fdt_addr_r=0x05600000 + ramdisk_addr_r=0x05700000 + +-boot_targets=mmc usb pxe dhcp ++/* ++ * Not interested in booting from anything but SD card. ++ */ ++boot_targets=mmc ++ ++/* ++ * Custom splash screen. Using 0x05800000 gives ramdisk_add_r ~1MB ++ * before the splash and is well within the bootm_size limit. No ++ * alignment is necessary since image size is the same size as the ++ * target LCD. ++ */ ++splashfile=yocto_project_logo_white_800x480_24bpp.bmp.gz ++splashimage=0x05800000 ++splashsource=mmc_fs +-- +2.43.0 + diff --git a/meta-unit-graphics/dynamic-layers/raspberrypi/recipes-bsp/u-boot/files/splash.cfg b/meta-unit-graphics/dynamic-layers/raspberrypi/recipes-bsp/u-boot/files/splash.cfg new file mode 100644 index 0000000..6420088 --- /dev/null +++ b/meta-unit-graphics/dynamic-layers/raspberrypi/recipes-bsp/u-boot/files/splash.cfg @@ -0,0 +1,8 @@ +CONFIG_CMD_BMP=y +CONFIG_BMP=y +CONFIG_BMP_24BPP=y +CONFIG_HIDE_LOGO_VERSION=y +CONFIG_SPLASH_SCREEN=y +CONFIG_SPLASH_SOURCE=y +CONFIG_VIDEO_BMP_GZIP=y +CONFIG_VIDEO_LOGO_MAX_SIZE=0x120000 diff --git a/meta-unit-graphics/dynamic-layers/raspberrypi/recipes-bsp/u-boot/u-boot_%.bbappend b/meta-unit-graphics/dynamic-layers/raspberrypi/recipes-bsp/u-boot/u-boot_%.bbappend new file mode 100644 index 0000000..0cb8d8b --- /dev/null +++ b/meta-unit-graphics/dynamic-layers/raspberrypi/recipes-bsp/u-boot/u-boot_%.bbappend @@ -0,0 +1,4 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" + +SRC_URI:append = " file://splash.cfg" +SRC_URI:append = " file://0001-tweak-rpi-environment.patch" |
