Board version: | Pi 3 B Rev 1.2 |
Memory: | 1 GB |
RPi OS version: | Lite 32-bit |
$ sudo raspi-config
$ sudo nano /boot/config.txt
Add three lines to the bottom of the file:
# turn wifi and bluetooth off
dtoverlay=pi3-disable-wifi
dtoverlay=pi3-disable-bt
disable-bt disables the Bluetooth device and makes the first PL011 (UART0) the primary UART.
You must also disable the system service that initialises the modem, so it does not connect to the UART, using:
# sudo systemctl disable hciuart