We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2c5377e + 4a68f78 commit c6aaee2Copy full SHA for c6aaee2
board/raspberrypi/post-image.sh
@@ -19,6 +19,17 @@ __EOF__
19
fi
20
21
22
+if [ ! "x${BLUETOOTH}" = "x" ]; then
23
+ if ! grep -qE '^enable_uart=1' "${BINARIES_DIR}/rpi-firmware/config.txt"; then
24
+ echo "Adding serial console to /dev/ttyS0 to config.txt."
25
+ sed -i 's/ttyAMA0/ttyS0/g' "${BINARIES_DIR}/rpi-firmware/cmdline.txt"
26
+ cat << __EOF__ >> "${BINARIES_DIR}/rpi-firmware/config.txt"
27
+# Fixes rpi3 ttyS0 serial console
28
+enable_uart=1
29
+__EOF__
30
+ fi
31
+fi
32
+
33
for arg in "$@"
34
do
35
case "${arg}" in
0 commit comments