Skip to content
项目

关于

OpenWrt 23.05 backport for Raspberry Pi 5 with Morse Micro HaLow support, kernel 6.6, mesh networking, and prebuilt firmware images.

设计与媒体

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

OpenWrt Morse HaLow Firmware for Raspberry Pi 5

OpenWrt 23.05 Kernel 6.6 Raspberry Pi 5 Morse Micro HaLow Build walkthrough

Haven Pi 5 — Raspberry Pi 5 with Morse Micro HaLow radio, UPS HAT, and battery stack

OpenWrt-based Morse Micro HaLow firmware targeting the Raspberry Pi 5. Brings sub-GHz long-range 802.11ah (HaLow) Wi-Fi to the Pi 5 via Morse Micro radios.

This repo is a community backport. The Morse Micro OpenWrt SDK ships on OpenWrt 23.05 (kernel 5.15) and supports Pi 4. The bcm2712/RP1 hardware definitions from upstream OpenWrt 24.10 (kernel 6.6) have been vendored back so the same Morse SDK can build for Pi 5.

Just want to flash? Download the pre-built Raspberry Pi 5 image from the Releases section — no build required.

Field notes & test results: The Haven Guide has real-world range tests, hardware setup notes, and deployment tips from building with this firmware. Not required to build or flash — just useful if you want to go deeper.

Note: This repo exists as a bridge. When Morse Micro releases their OpenWrt 24.x SDK — which is expected to include native Raspberry Pi 5 support — this repo will likely be superseded by the official upstream fork. Until that happens, this backport is the way to get HaLow running on Pi 5.

Software Specifications

  • Morse Micro OpenWrt SDK, 23.05.5 base
  • Linux kernel 6.6 (vendored from openwrt-24.10)
  • mac80211 backports 6.12.61
  • Morse Micro driver 1.16.4

About

This firmware is part of Build with Parallel, a project focused on practical off-grid communications, resilient mesh networking, and field-ready Raspberry Pi builds.

Project Links

Link What it is
Releases Pre-built Raspberry Pi 5 firmware images
Build walkthrough video End-to-end source build, customization, and SD-card flashing
Haven Guide Field notes, hardware setup, range tests, and deployment notes
Haven mesh setup scripts Gate/point node setup scripts for the wider Haven mesh topology
Build with Parallel Project site and broader Haven updates
Data Slayer on YouTube Build videos, demos, and field updates
Data Slayer on X Short-form updates and project notes

Supported Hardware

HaLow radios

Device Chip Interface Status
Seeed Studio HaLow HAT MM6108 SPI Does not bind yet
Gateworks MM8108 MM8108 USB (HAT-to-Pi) Working

The original goal is the Seeed Studio HaLow HAT on Pi 5 over SPI — that path is still open. The DesignWare SPI / RP1 DMA / Morse SPI overlay are in place but the MM6108 chip isn't binding yet on Pi 5. As a working alternative, the MM8108 currently runs on Pi 5 via a USB cable from the HaLow board to the Pi.

Regular Wi-Fi

Device Chip Interface Status
Pi 5 onboard Wi-Fi BCM43455 SDIO Included
Panda Wireless USB dongle Ralink RT5370 USB Included

Drivers and firmware for both are in the build (kmod-brcmfmac + cypress-firmware-43455-sdio for onboard, kmod-rt2800-usb for the dongle). Configure them at runtime via LuCI or /etc/config/wireless.

Included Add-Ons

Beyond the base Morse HaLow stack, this build ships a curated set of extras ready to use out of the box:

  • Mesh networking — batman-adv + batctl Layer-2 mesh with LuCI integration, plus mesh11sd for 802.11s
  • VPN — WireGuard (kernel module + LuCI proto) and Tailscale client/daemon (compatible with Headscale for off-grid use)
  • ADS-B aircraft tracking — RTL-SDR library, dump1090 decoder, and Python 3 with cryptography for adsbcot (Cursor-on-Target feed)
  • LoRa / Reticulum sidecar — Python 3 with pyserial and netifaces; USB-ACM and USB-serial drivers for:
    • Heltec V1 (nRF52) / V4 (ESP32-S3)
    • RAK4631 (nRF52840)
    • Seeed Xiao ESP32-S3
    • Walter (ESP32-S3)
    • Muzi Works Base Duo
    • Null Hop Mesh Toad (CH341)
  • Network debugging — tcpdump, iperf3, mtr, nmap, full iw, lsusb
  • Web UI — LuCI with Morse Argon theme, first-boot setup wizard, WireGuard and batman-adv config UIs
  • General utilities — Bash, curl (TLS + CA bundle), nano, htop, screen, mDNS (umdns)

Building

The v0.4.0-alpha images were built on a Google Compute Engine VM running Ubuntu 22.04.5 LTS (x86_64), with 96 vCPUs, approximately 94 GiB of usable RAM, and a 500 GiB Extreme persistent disk for fast read/write operations during compilation. These are the tested build host specifications, not minimum requirements. make -j$(nproc) uses every available vCPU; reduce parallelism on machines with less RAM.

For a visual walkthrough of the full process, including building the OpenWrt Morse Micro firmware from source, applying customization, and flashing the resulting image to an SD card, see the build and flash video.

1. Install build dependencies

sudo apt update
sudo apt install build-essential clang flex g++ gawk gcc-multilib g++-multilib git gettext \
  libncurses5-dev libssl-dev python3-setuptools rsync unzip zlib1g-dev swig file wget \
  libnl-3-dev libnl-genl-3-dev pkg-config

2. Clone

git clone -b rpi5-mm-23.05 https://github.com/buildwithparallel/openwrt-morse-rpi5.git
sudo chown -R $USER:$USER openwrt-morse-rpi5
cd openwrt-morse-rpi5

The chown ensures every file in the cloned tree is owned by your user. OpenWrt's build system refuses to run as root and trips over root-owned files, so this avoids permission errors later.

3. Update and install feeds

./scripts/feeds update -a
./scripts/feeds install -a
./scripts/apply-build-fixes.sh

This pulls the Morse HaLow, OpenWrt, and LuCI package feeds (defined in feeds.conf.default) and registers their packages with the build system.

The Morse, LuCI, and prpl feeds are pinned to matching 2.9-dev snapshots, including Morse driver/firmware 1.16.4. The fix script adapts the driver and LuCI to this SDK and removes two unused prpl UPnP forks that cause Kconfig dependency loops. Run the script again after updating feeds; repeated runs are safe.

The Rust recipe is maintained in-tree at package/lang/rust/ and is automatically preferred over the packages feed recipe. It builds LLVM from the hash-verified Rust release sources, avoiding the expired Rust CI LLVM download without a manual patch. The first build takes longer; subsequent builds reuse the compiled toolchain. Do not force-install the feed's Rust package with ./scripts/feeds install -f rust, since that overrides this fix. For existing checkouts, the fix script removes the old Rust feed link so the in-tree recipe is used.

4. Drop in the Pi 5 config

cp boards/ekh-bcm2712/target_diffconfig .config
make defconfig

target_diffconfig selects the rpi-5 device, the Morse HaLow driver/firmware/CLI, the S1G hostapd/wpa_supplicant stack, mesh, and LuCI apps. make defconfig expands it into a full .config, filling in defaults.

5. Download sources

make -j$(nproc) download

6. Build

set -o pipefail
make -j$(nproc) V=sc 2>&1 | tee log.txt

V=sc enables verbose compile output; tee log.txt captures it for troubleshooting.

When the build finishes, the image is at:

bin/targets/bcm27xx/bcm2712/openwrt-bcm27xx-bcm2712-rpi-5-squashfs-factory.img.gz

Flash to an SD card with Raspberry Pi Imager (choose "Use custom" and select the .img.gz) and boot the Pi 5.

First boot

The node does not use 192.168.1.1. That address collides with a typical home router. Like an OpenMANET fresh flash, first-boot LAN is:

  • Address: 10.41.254.1
  • Subnet: 10.41.254.0/24
  • DHCP: the node hands out 10.41.254.100–10.41.254.249

Connect your computer directly to the Pi 5 Ethernet jack (do not put the node on your existing LAN). Set the computer to obtain an IP automatically — it should get a 10.41.254.x lease. Then open LuCI at http://10.41.254.1 or SSH as [email protected] (blank password).

If you plug the node into a home router instead, your computer stays on 192.168.1.x and cannot reach 10.41.254.1 without a static route.

Open LuCI and use Wizard in the top bar. Set a root password from the yellow banner first, then run the wizard to pick region and mode.

Setting the Region

Go to Network → Wireless, click Edit on each radio, ensure the correct Country Code is selected, and click Save. Then return to the main Wireless page and click Save & Apply to apply the settings for all radios. The country code warning should then clear.

Upstream sources

探索相关项目

加载中…