From 1f6445febaa85cc09e99479c11b141f1aee4010b Mon Sep 17 00:00:00 2001 From: Lluis Campos Date: Thu, 25 Mar 2021 13:10:19 +0100 Subject: [PATCH] [raspberrypi_config] MEN-4567: Enable UART in U-Boot config.txt This is required for U-Boot to operate correctly, see https://source.denx.de/u-boot/u-boot/-/blob/master/arch/arm/mach-bcm283x/Kconfig Changelog: Title Signed-off-by: Lluis Campos (cherry picked from commit 860ac136e81c97026f81e4b2f9872bf62766128e) --- configs/raspberrypi_config | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configs/raspberrypi_config b/configs/raspberrypi_config index e467289..eac2a29 100644 --- a/configs/raspberrypi_config +++ b/configs/raspberrypi_config @@ -99,4 +99,13 @@ function platform_modify() { run_and_log_cmd "sudo unlink work/rootfs/etc/rc3.d/S01resize2fs_once" fi run_and_log_cmd "sudo rm -f work/rootfs/etc/init.d/resize2fs_once" + + # Enable UART. This is required for U-Boot to operate correctly, see + # https://source.denx.de/u-boot/u-boot/-/blob/master/arch/arm/mach-bcm283x/Kconfig + log_info "Enabling UART in U-Boot configuration" + cat <<- EOF >> work/boot/config.txt + +# Enable UART +enable_uart=1 +EOF }