From cd78713bfd7daa41ea19e63be9201e3ad9ca1ca6 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Tue, 7 Jul 2026 22:56:38 -0700 Subject: [PATCH] raspberry-pi/common: enable UART by default for U-Boot --- raspberry-pi/common/config-txt-defaults.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/raspberry-pi/common/config-txt-defaults.nix b/raspberry-pi/common/config-txt-defaults.nix index af19249e..d52af85f 100644 --- a/raspberry-pi/common/config-txt-defaults.nix +++ b/raspberry-pi/common/config-txt-defaults.nix @@ -18,6 +18,14 @@ arm_boost = lib.mkDefault true; dtparam = lib.mkDefault [ "audio=on" ]; dtoverlay = lib.mkDefault [ "vc4-kms-v3d" ]; + # U-Boot needs the UART enabled to boot (see arch/arm/mach-bcm283x/Kconfig + # in the U-Boot tree). Without it U-Boot hangs on the Pi 4. + enable_uart = lib.mkDefault true; + }; + # The Pi 5 has a dedicated debug UART. Leaving the mini UART on feeds ghost + # input into boot, so turn it back off. + pi5 = { + enable_uart = lib.mkDefault false; }; cm4 = { otg_mode = lib.mkDefault true;