External Wifi Antenna
To improve the WiFi signal quality, you can add an external antenna.
After adding the external antenna, you need to tell the Raspberry Pi CM4 to use the external antenna instead of the built-in one.
Terminal Cast
How to edit the antenna configuration
Instructions
You can do this by:
- Run
sudo nano /boot/firmware/config.txt - Scroll Down to the
[cm4]section and:- Comment
# dtparam=ant1 - Uncomment
dtparam=ant2
- Comment
- Save CTRL + O and Exit Nano CTRL + X
- Reboot the OS by running
sudo reboot
Last modified December 4, 2025: Added guide for switching to external WiFi antenna (3e4cbf5)