From fb6028e8bd5f4cce3eb5f762375c3ffcb65cb5ce Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Wed, 17 Dec 2025 20:49:49 +0200 Subject: [PATCH] u-boot: Disable interrupt timeout for Raspberry Pi 5 Disable U-Boot interrupt timeout for Raspberry Pi 5 to avoid boot issues without a connected debug UART. This is a known U-Boot issue discussed in: https://bugzilla.opensuse.org/show_bug.cgi?id=1251192 https://lists.denx.de/pipermail/u-boot/2025-January/576305.html The issue affects Raspberry Pi 5 with U-Boot version 2025.04 from branch scarthgap/u-boot of layer meta-lts-mixins. This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi --- recipes-bsp/u-boot/u-boot_%.bbappend | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/recipes-bsp/u-boot/u-boot_%.bbappend b/recipes-bsp/u-boot/u-boot_%.bbappend index e575569..e990879 100644 --- a/recipes-bsp/u-boot/u-boot_%.bbappend +++ b/recipes-bsp/u-boot/u-boot_%.bbappend @@ -9,6 +9,17 @@ SRC_URI:append:raspberrypi4 = " file://maxsize.cfg" DEPENDS:append:rpi = " u-boot-default-script" +do_configure:append:raspberrypi5() { + # Remove any existing CONFIG_BOOTDELAY= lines + sed -i '/^CONFIG_BOOTDELAY=/d' "${B}/.config" + # Disable U-Boot interrupt timeout to avoid + # boot issues without a connected debug UART + # This is a known U-Boot issue discussed in: + # https://bugzilla.opensuse.org/show_bug.cgi?id=1251192 + # https://lists.denx.de/pipermail/u-boot/2025-January/576305.html + echo "CONFIG_BOOTDELAY=-2" >> ${B}/.config +} + do_install:append:rpi () { install -d ${D}${sysconfdir} install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config