From 5780f0a8843b3eb26f36e40536e456225a51fe75 Mon Sep 17 00:00:00 2001 From: Konsta Date: Wed, 15 Nov 2023 17:35:39 +0200 Subject: [PATCH] boot: enable serial console on gpio * To use the new serial port on Raspberry Pi 5 adjust cmdline to use ttyAMA10 for console. --- BoardConfig.mk | 2 +- boot/config.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index bb096c0..601b902 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -45,7 +45,7 @@ BOARD_MESA3D_VULKAN_DRIVERS := broadcom # Kernel BOARD_CUSTOM_BOOTIMG := true BOARD_CUSTOM_BOOTIMG_MK := $(DEVICE_PATH)/mkbootimg.mk -BOARD_KERNEL_CMDLINE := console=ttyS0,115200 no_console_suspend root=/dev/ram0 rootwait androidboot.hardware=rpi5 +BOARD_KERNEL_CMDLINE := console=ttyAMA0,115200 no_console_suspend root=/dev/ram0 rootwait androidboot.hardware=rpi5 # Manifest DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := $(DEVICE_PATH)/framework_compatibility_matrix.xml diff --git a/boot/config.txt b/boot/config.txt index 3f42f04..37ec6bd 100644 --- a/boot/config.txt +++ b/boot/config.txt @@ -34,6 +34,7 @@ dtoverlay=vc4-kms-v3d # Serial console enable_uart=1 +dtparam=uart0=on # SPI #dtparam=spi=on