-
Notifications
You must be signed in to change notification settings - Fork 0
Software Installation and Configuration
William Buddenberg edited this page Jun 8, 2025
·
4 revisions
TODO: Step-by-step instructions to get Pi OS Lite running, how to connect to it, install the relevant software, and configuration.
- You're able to SSH into your Pi
- Run
sudo apt updateandsudo apt upgrade -yto ensure your Pi is up to date
sudo apt install gpsd gpsd-clients- TODO: Disable USB-auto and hard-code the GPS device file
- TODO: gpspipe
sudo makefifo /dev/gpsd-out - Make sure your GPS antenna has a fix or things will be weird
- Run
cgpsto see the raw data
Currently the apt version is working. A newer version exists, but it has to be built from source and I've not had luck getting it working properly.
- Install from apt
sudo apt install direwolf- TODO: Probably just copy direwolf.conf from the repo
- TODO: ALSA shenanigans 3: TODO: Radio-specific changes 4: TODO: APRS-specific changes
Some AX.25 stations don't support the latest version and it'll let you know in the logs when you connect to them. In the case of KM4BLG-10 it prefers version 2.0 so, I've added the following line to the bottom of direwolf.conf to speed up the initial handshake
V20 KM4BLG-10
- Navigate to pat releases and find the link to the latest version labeled
(Raspberry Pi 64-bit)- As of writing, pat_0.17.0_linux_arm64.deb - On your Pi, run
wget https://github.com/la5nta/pat/releases/download/v0.17.0/pat_0.17.0_linux_arm64.deb(or whatever link you ended up with) sudo dpkg -i pat_0.17.0_linux_arm64.deb
-
pat configure(then close) wget https://github.com/wabudd1/EmCommPi/raw/refs/heads/main/pat/config.json- Edit config.json and set your call sign, WinLink passcode, and MaidenHead locator
mv config.json ./.config/pat/config.json- TODO: systemd service unit
- Activate SPI interface on your Pi with the following commands:
sudo raspi-config nonint set_config_var dtparam=spi on /boot/firmware/config.txt # Enable SPI
# Ensure dtoverlay=spi0-0cs is set in /boot/firmware/config.txt without altering dtoverlay=vc4-kms-v3d or dtparam=uart0
sudo sed -i -e '/^\s*#\?\s*dtoverlay\s*=\s*vc4-kms-v3d/! s/^\s*#\?\s*(dtoverlay|dtparam\s*=\s*uart0)\s*=.*/dtoverlay=spi0-0cs/' /boot/firmware/config.txt
# Insert dtoverlay=spi0-0cs after dtparam=spi=on if not already present
if ! sudo grep -q '^\s*dtoverlay=spi0-0cs' /boot/firmware/config.txt; then
sudo sed -i '/^\s*dtparam=spi=on/a dtoverlay=spi0-0cs' /boot/firmware/config.txt
fi- Enable I2C on your Pi
sudo raspi-config nonint set_config_var dtparam=i2c_arm on /boot/firmware/config.txt # Enable i2c_arm- Add the
alpharelease channel to your apt sources (beta probably works, but is missing a lot of features)
echo 'deb http://download.opensuse.org/repositories/network:/Meshtastic:/alpha/Raspbian_12/ /' | sudo tee /etc/apt/sources.list.d/network:Meshtastic:beta.list
curl -fsSL https://download.opensuse.org/repositories/network:Meshtastic:alpha/Raspbian_12/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/network_Meshtastic_alpha.gpg > /dev/null- Do install
sudo apt update && sudo apt install meshtasticd -y- Enable the Adafruit LoRa module configuration
sudo cp /etc/meshtasticd/available.d/lora-Adafruit-RFM9x.yaml /etc/meshtasticd/config.d- TODO: config.yaml edits (or just copy the one in this repo)