Skip to content

Commit 2c646d2

Browse files
leon-anaviagherzan
authored andcommitted
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>
1 parent 32b7746 commit 2c646d2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

recipes-bsp/bootfiles/rpi-config_git.bb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ do_deploy() {
202202
esac
203203
fi
204204

205+
if [ "${ENABLE_UART}" = "1" ] && [ "${MACHINE}" = "raspberrypi-cm5-io-board" ]; then
206+
# Enable UART on the 40-pin header of the CM5 IO Board
207+
echo "dtoverlay=uart0" >>$CONFIG
208+
echo "dtparam=uart0_console" >>$CONFIG
209+
fi
210+
205211
# Infrared support
206212
if [ "${ENABLE_IR}" = "1" ]; then
207213
echo "# Enable infrared" >>$CONFIG

0 commit comments

Comments
 (0)