From 1a95484948d74f38e0839a46ba3e6ee9e78eb7b4 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Wed, 3 Dec 2025 12:01:34 +0200 Subject: [PATCH] rpi-config: ENABLE_UART for CM5 IO Board The Raspberry Pi Compute Module 5 IO Board does not include a dedicated UART debug connector like the Raspberry Pi 5. Although the CM5 itself has reserved space for a JST connector, it is not populated. To enable UART on the 40-pin header of the CM 5 IO Board we need to add dtoverlay=uart0 and dtparam=uart0_console to config.txt. This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi --- recipes-bsp/bootfiles/rpi-config_git.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb index 44db0fa..2c21536 100644 --- a/recipes-bsp/bootfiles/rpi-config_git.bb +++ b/recipes-bsp/bootfiles/rpi-config_git.bb @@ -200,6 +200,12 @@ do_deploy() { esac fi + if [ "${ENABLE_UART}" = "1" ] && [ "${MACHINE}" = "raspberrypi-cm5-io-board" ]; then + # Enable UART on the 40-pin header of the CM5 IO Board + echo "dtoverlay=uart0" >>$CONFIG + echo "dtparam=uart0_console" >>$CONFIG + fi + # Infrared support if [ "${ENABLE_IR}" = "1" ]; then echo "# Enable infrared" >>$CONFIG