PKGBUILDs/alarm/uboot-raspberrypi/0002-fix-serial-console.patch

37 lines
1.1 KiB
Diff
Raw Normal View History

From 3ced0f1608d6ded3d8474ea4a98aec00ae67fe9e Mon Sep 17 00:00:00 2001
From: Maulik Patel <maulikp163@gmail.com>
Date: Mon, 10 Jun 2024 18:32:25 +0530
Subject: [PATCH] disable uart for u-boot
---
board/raspberrypi/rpi/rpi.env | 2 ++
configs/rpi_4_defconfig | 5 +++++
2 files changed, 7 insertions(+)
diff --git a/board/raspberrypi/rpi/rpi.env b/board/raspberrypi/rpi/rpi.env
index 30228285ed..44a427512c 100644
--- a/board/raspberrypi/rpi/rpi.env
+++ b/board/raspberrypi/rpi/rpi.env
@@ -3,6 +3,8 @@
/* environment for Raspberry Pi boards */
dhcpuboot=usb start; dhcp u-boot.uimg; bootm
+bootdelay=-2
+silent=1
/* Environment */
stdin=serial,usbkbd
diff --git a/configs/rpi_4_defconfig b/configs/rpi_4_defconfig
index 2541b83a3d..a5dc879d6a 100644
--- a/configs/rpi_4_defconfig
+++ b/configs/rpi_4_defconfig
@@ -65,3 +65,8 @@ CONFIG_SYS_WHITE_ON_BLACK=y
CONFIG_VIDEO_BCM2835=y
CONFIG_CONSOLE_SCROLL_LINES=10
CONFIG_PHYS_TO_BUS=y
+CONFIG_BOOTDELAY=-2
+CONFIG_SILENT_CONSOLE=y
+CONFIG_SYS_DEVICE_NULLDEV=y
+CONFIG_SILENT_CONSOLE_UPDATE_ON_SET=y
+CONFIG_SILENT_U_BOOT_ONLY=y