Skip to content

Commit 7ed130f

Browse files
Merge pull request #480 from Mausy5043/no-uart
Disable UART by default
2 parents e45eac1 + 346ebef commit 7ed130f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ The format of the _installer-config.txt_ file and the current defaults:
167167
# undesirable.
168168
enable_watchdog=0 # loads up the hardware watchdog module and configures systemd to use it. Set to
169169
# "1" to enable this functionality.
170+
enable_uart=0 # Set to "1" to enable the UART. Disabled by default.
170171
gpu_mem= # specify the amount of RAM in MB that should be reserved for the GPU
171172

172173
The timeserver parameter is only used during installation for _rdate_ which is used as fallback when setting the time with `ntpdate` fails.

scripts/etc/init.d/rcS

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ final_action=reboot
4444
hardware_versions=detect
4545
hwrng_support=1
4646
enable_watchdog=0
47+
enable_uart=0
4748
gpu_mem=
4849

4950
# these shouldn't really be changed unless auto-detection fails
@@ -1316,11 +1317,12 @@ do
13161317
echo "#device_tree="
13171318
fi
13181319
if [ "${hv}" = "3" ] ; then
1319-
# we should probably add a config parameter for uart purpose
1320-
# as the statements below disables bluetooth which various/most
1321-
# people will prefer over the serial console
1322-
echo "# enable the serial console for the installed system"
1323-
echo "enable_uart=1"
1320+
# Only enable UART if the user explicitly sets that option.
1321+
# Enabled UART may break the bootprocess / bluetooth support.
1322+
if [ "${enable_uart}" = "1" ]; then
1323+
echo "# enable the serial console for the installed system"
1324+
echo "enable_uart=1"
1325+
fi
13241326
fi
13251327
} >> /rootfs/boot/config.txt
13261328

0 commit comments

Comments
 (0)