Skip to content

Commit 1a95484

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 <[email protected]>
1 parent 4ea079d commit 1a95484

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
@@ -200,6 +200,12 @@ do_deploy() {
200200
esac
201201
fi
202202

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

0 commit comments

Comments
 (0)