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 <leon.anavi@konsulko.com>
This commit is contained in:
Leon Anavi 2025-12-03 12:01:34 +02:00 committed by Andrei Gherzan
parent 32b7746d66
commit 2c646d2991

View File

@ -202,6 +202,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