2022-12-26 08:01:32 -07:00
# Amateur Radio Emergency Data Network AREDN® Firmware
2018-03-23 01:39:07 -06:00
2022-12-26 08:01:32 -07:00
https://www.arednmesh.org
2018-03-23 01:39:07 -06:00
2022-12-26 08:01:32 -07:00
## About AREDN®
2018-11-19 16:45:05 -07:00
2022-12-26 08:01:32 -07:00
AREDN® wireless networks are deployed by licensed Amateur Radio operators, Technician Class or higher, under FCC Part 97 allocations adjacent to FCC part 15, unlicensed, WIFI, allocations. They are configured as adhoc nodes to form mesh networks. The firmware created below enables the effective use of valuable and dedicated frequencies for communication services to government and private relief organizations in times of disaster or other emergencies.
2018-11-19 16:45:05 -07:00
2022-12-26 08:01:32 -07:00
This firmware enables 802.11 wireless networks to be created and expanded with little to no IT expertise. A user can deploy a 'node' anywhere to connect to and extend an AREDN® network. Device hardware options exist to provide sector coverage, build point-to-point links, and connect end point services to the network. High speed link rates are routinely achieved over long distances, e.g. 60Mbps+ on 10MHz channels over 80km links.
2018-11-20 09:55:01 -07:00
2022-12-26 08:01:32 -07:00
For further information on obtaining an Amateur Radio Technician Class license, please refer to https://www.arrl.org/getting-your-technician-license
2018-11-19 16:45:05 -07:00
2018-09-20 23:16:29 -06:00
## Usage Information
2018-03-23 01:39:07 -06:00
2018-06-15 20:11:49 -06:00
### What to know about the images built with the instructions below
2022-12-26 08:01:32 -07:00
This is the active 'main' branch with latest AREDN® code. The Amateur Radio community is encouraged to participate in loading the images produced from a "nightly build" and run the AREDN® firmware in a variety of environments. Given new features may not yet be documented, participants should already have a basic knowledge of Linux and networking to understand and provide useful feedback to the Developer submitting the code.
2022-08-29 09:52:53 -06:00
2022-12-26 08:01:32 -07:00
The goal of participation is to obtain confidence that new features and the overall mesh node is stable. The more participation, the earlier an issue is found, the faster an enhancement will be turned into a release.
2022-08-29 09:52:53 -06:00
2022-12-26 08:01:32 -07:00
Please refer to https://github.com/aredn/aredn/issues for a list of outstanding defects.
2022-08-29 09:52:53 -06:00
2018-06-21 23:28:23 -06:00
### Images built
2022-12-22 13:22:49 -07:00
Device | Target | Image | RAM | Stability
------ | ------ | ----- | --- | ---------
AirGrid XM | ath79 | ubnt_bullet-m-ar7241 | 32MB | untested sunset
AirGrid XW | ath79 | ubnt_bullet-m-xw | 32MB | untested sunset
AirRouter | ath79 | ubnt_airrouter | 32MB | untested sunset
AirRouter HP | ath79 | ubnt_airrouter | 32MB | untested sunset
Bullet M2Ti/M5/M5Ti | ath79 | - | 32MB | untested sunset
Bullet M2 | ath79 | ubnt_bullet-m-ar7241 | 32MB | stable sunset
Bullet M2 XW | ath79 | ubnt_bullet-m-xw | 64MB | untested
LiteBeam AC5 Gen2 | ath79 | ubnt_litebeam-ac-gen2 | 64MB | stable new
LiteBeam M5 | ath79 | - | 64MB | untested
NanoBeam AC 5 | ath79 | ubnt_nanobeam-ac | 64MB | untested new
NanoBeam AC 5 Gen 2 | ath79 | ubnt_nanobeam-ac-gen2 | 128MB | stable new
NanoBeam M2-13/M5-16/M5-19 | ath79 | - | 32MB | untested sunset
NanoBridge 2G18 | ath79 | ubnt_nanobridge-m | 32MB | untested sunset
NanoBridge 5G22/25 | ath79 | ubnt_nanobridge-m | 32MB | untested sunset
NanoBridge M9 | ath79 | ubnt_nanobridge-m | 32MB | untested sunset
2022-12-24 22:18:52 -07:00
NanoStation AC 5 | ath79 | ubnt_nanostation-ac | 64MB | stable new
2022-12-22 13:22:49 -07:00
NanoStation Loco M2/M5/M9 XM | ath79 | ubnt_nanostation-loco-m | 32MB | untested sunset
NanoStation Loco M2 XW | ath79 | ubnt_nanostation-loco-m-xw | 64MB | untested
NanoStation Loco M5 XW | ath79 | ubnt_nanostation-loco-m-xw | 64MB | stable
NanoStation M2/M3/M5 XM | ath79 | ubnt_nanostation-m | 32MB | stable sunset
NanoStation M2/M5 XW | ath79 | ubnt_nanostation-m-xw | 64MB | stable
PicoStation M2 | ath79 | ubnt_picostation-m | 32MB | untested sunset
PowerBeam AC 5 500 | ath79 | ubnt_powerbeam-5ac-500 | 128MB | stable new
PowerBeam-M2-400 | ath79 | ubnt_powerbeam-m2-xw | 64MB | untested
PowerBeam-M5-300 | ath79 | ubnt_powerbeam-m5-300 | 64MB | stable
PowerBeam-M5-400/400ISO/620 | ath79 | ubnt_powerbeam-m5-xw | 64MB | stable
PowerBridge | ath79 | ubnt_powerbridge-m | 64MB | untested
Rocket AC Lite 5 | ath79 | ubnt_rocket-5ac-lite | 128MB | stable new
Rocket M9/M2/M3/M5/M5GPS XM | ath79 | ubnt_rocket-m | 64MB | stable
Rocket M2/M5 XM with USB port | ath79 | ubnt_rocket-m | 64MB | untested
Rocket M2 XW | ath79 | ubnt_rocket-m-xw | 64MB | untested
Rocket M5 XW | ath79 | ubnt_rocket-m-xw | 64MB | stable
Rocket M2 Titanium TI | ath79 | - | 64MB | untested
Rocket M2 Titanium XW | ath79 | ubnt_rocket-m-xw | 64MB | untested
Rocket M5 Titanium TI | ath79 | - | 64MB | untested
Rocket M5 Titanium XW | ath79 | ubnt_rocket-m-xw | 64MB | stable
TPLink CPE210 v1.X | ath79 | tplink_cpe210-v1 | 64MB | stable
TPLink CPE210 v2.0 | ath79 | tplink_cpe210-v2 | 64MB | stable
TPLink CPE210 v3.0 | ath79 | tplink_cpe210-v3 | 64MB | untested
TPLink CPE220 v2.0 | ath79 | tplink_cpe220-v2 | 64MB | untested
TPLink CPE220 v3.0 | ath79 | tplink_cpe220-v3 | 64MB | untested
TPLink CPE510 v1.X | ath79 | tplink_cpe510-v1 | 64MB | untested
TPLink CPE510 v2.0 | ath79 | tplink_cpe510-v2 | 64MB | stable
TPLink CPE510 v3.0 | ath79 | tplink_cpe510-v3 | 64MB | stable
TPLink CPE605 v1.0 | ath79 | tplink_cpe605-v1 | 64MB | untested
TPLink CPE610 v1.0 | ath79 | tplink_cpe610-v1 | 64MB | untested
TPLink CPE610 v2.0 | ath79 | tplink_cpe610-v2 | 64MB | untested
TPLink CPE710 v1.0 | ath79 | tplink_cpe710-v1 | 128MB | stable new
TPLink WBS210 v1.0 | ath79 | tplink_wbs210-v1 | 64MB | untested
TPLink WBS210 v2.0 | ath79 | tplink_wbs210-v2 | 64MB | untested
TPLink WBS510 v1.0 | ath79 | tplink_wbs510-v1 | 64MB | untested
TPLink WBS510 v2.0 | ath79 | tplink_wbs510-v2 | 64MB | untested
Mikrotik Basebox RB912UAG-2HPnD | ath79 | mikrotik_routerboard-912uag-2hpnd | 64MB | untested
Mikrotik Basebox RB912UAG-5HPnD | ath79 | - | 64MB | untested
Mikrotik hAP ac lite 952Ui-5ac2nD | ath79 | mikrotik_routerboard-952ui-5ac2nd | 64MB | stable
Mikrotik RBLHG-2nD(-XL) | ath79 | mikrotik_routerboard-lhg-2nd | 64MB | stable
Mikrotik RBLHG-5nD | ath79 | mikrotik_routerboard-lhg-5nd | 64MB | stable
Mikrotik RBLHG-5HPnD(-XL) | ath79 | mikrotik_routerboard-lhg-5nd | 64MB | stable
MikroTik RBLHGG-5acD(-XL) | ipq40xx | mikrotik_lhgg-5acd | 256MB | stable new
Mikrotik RBLDF-2nD | ath79 | - | 64MB | untested
Mikrotik RBLDF-5nD | ath79 | - | 64MB | untested
Mikrotik QRT5 RB911G-5HPnD-QRT | ath79 | - | 64MB | untested
Mikrotik mANTBox RB911G-2HPnD | ath79 | - | 64MB | untested
Mikrotik mANTBox RB911G-5HPnD | ath79 | - | 64MB | untested
Mikrotik mANTBox RB912UAG-2HPnD | ath79 | mikrotik_routerboard-912uag-2hpnd | 128MB | untested
2022-12-22 22:34:43 -07:00
Mikrotik mANTBox RB912UAG-5HPnD | ath79 | mikrotik_routerboard-912uag-5hpnd | 128MB | stable
2022-12-22 13:22:49 -07:00
Mikrotik mANTBox RB921GS-5HPacD 15s | ath79 | mikrotik_routerboard-921gs-5hpacd-15s | 128MB | stable new
Mikrotik mANTBox RB921GS-5HPacD 19s | ath79 | mikrotik_routerboard-921gs-5hpacd-19s | 128MB | stable new
Mikrotik SXTsq 5HPnD | ath79 | mikrotik_routerboard-sxt-5nd | 64MB | stable
Mikrotik SXTsq 5nD | ath79 | mikrotik_routerboard-sxt-5nd | 64MB | stable
Mikrotik SXTsq 2nD | ath79 | - | 64MB | untested
MikroTik RouterBOARD D52G-5HacD2HnD | ipq40xx | mikrotik_hap-ac2 | 128MB | stable new
MikroTik RouterBOARD D53iG-5HacD2HnD | ipq40xx | mikrotik_hap-ac3 | 256MB | stable new
MikroTik RouterBOARD SXTsqG-5acD | ipq40xx | mikrotik_sxtsq-5-ac | 256MB | stable new
GL.iNet GL-AR150 | ath79 | glinet_gl-ar150 | 64MB | stable
GL.iNet GL-USB150 | ath79 | glinet_gl-usb150 | 64MB | stable
GL.iNet GL-AR300M16 | ath79 | glinet_gl-ar300m | 64MB | stable
GL.iNet GL-AR300M w/ 128MB NAND | ath79 | - | 64MB | untested
GL.iNet GL-AR750 | ath79 | glinet_gl-ar750 | 128MB | stable
Meraki MR-16 | ath79 | - | 64MB | brick
#### Stability
* *brick* - this image has been tested and will currently brick your hardware. Avoid for now.
* *untested* - this image has not been tested on hardware. It may or may not work.
* *stable* - this image has been tested on hardware. There may still be bugs.
* *sunset* - this device has been sunsetted and support will be deprecated at some point.
* *new* - this device is newly supported.
2020-01-22 18:37:27 -07:00
2020-12-11 10:19:54 -07:00
The 'target' is a directory to find the image on at http://downloads.arednmesh.org
2018-06-21 23:28:23 -06:00
2022-12-26 08:01:32 -07:00
Latest installation instructions are found at: https://docs.arednmesh.org/en/latest/
2018-11-19 16:45:05 -07:00
### Ethernet Port usage
2022-12-26 08:01:32 -07:00
The standard Ethernet port of an AREDN® device uses the following vlan tags. An 802.1Q switch is necessary to utilize the vlan tagged networks:
2018-11-19 16:45:05 -07:00
2018-11-22 10:57:44 -07:00
* untagged: LAN devices - laptop, ipcam, voip phone, etc.
2022-12-26 08:01:32 -07:00
* vlan 1: WAN - gateway to connect AREDN® network to home network and/or internet (some devices support changing this vlan to an alternate value)
* vlan 2: DtDLink (device to device) - AREDN® network routing between nodes, typically cross band
2018-11-19 16:45:05 -07:00
2022-12-26 08:01:32 -07:00
The following devices have enhanced Ethernet port usage. A single cat5 to the device could be plugged into ether the 'main' or 'secondary' port with standard port functionality. Both ports can be used interchangeably and simultaneously with LAN devices on both ports at the same time.
2020-02-25 22:15:15 -07:00
2022-12-26 08:01:32 -07:00
If the device's hardware supports POE (Power Over Ethernet) pass-through from main port to secondary port, an Advanced Setting option will show to turn on/off. This is useful to power ipCams or other mesh nodes by daisy chaining the network cable from one device to another. Then only one network cable may be needed to reach 2 or 3 devices on the tower. Be sure to check the power capacity in the vendor specifications to not exceed. The first device in the chain will provide the DHCP address to all LAN devices on all nodes (because it powers up first).
2018-11-19 16:45:05 -07:00
* NanoStation M2 XW
2020-02-25 22:15:15 -07:00
* NanoStation M5 XW
2018-11-22 10:57:44 -07:00
* NanoStation M2 XM
* NanoStation M3 XM
* NanoStation M5 XM
2020-04-28 21:29:37 -06:00
* TP-Link CPE210 v1/v1.1
* TP-Link CPE220 v2
2020-02-25 22:15:15 -07:00
* TP-Link CPE220 v3
2020-04-28 21:29:37 -06:00
* TP-Link CPE510 v1/v1.1
2020-05-01 08:30:39 -06:00
* TP-Link WBS210 v1
* TP-Link WBS210 v2
* TP-Link WBS510 v1
* TP-Link WBS510 v2
2018-11-22 10:57:44 -07:00
2019-03-21 15:44:14 -06:00
The Mikrotik hAP AC Lite, Ubiquiti AirRouter, and AirRouter HP are pre-configured with the following VLANs:
* Port 1: WAN Port - Packets in/out of this port are expected to be untagged. The node is (by default) configured to receive a DHCP assigned address from a home network, internet, or other foreign network.
* Port 5: DtDLink Port Mesh Routing -- Connect to another mesh node or 8021.q switch. Packets in/out of this port must be vlan 2 tagged, other packets are ignored.
* Ports 2-4: LAN devices -- Packets in/out of this port are expected to be untagged. The mesh node will (default) DHCP assign an IP address to your computer, ipCam, voip phone, etc. connected to these ports.
2019-07-02 16:40:22 -06:00
2019-05-17 20:03:02 -06:00
The GL.iNet GL-AR150 and GL-AR300M16 are pre-configured with the following VLANS:
2019-04-30 19:55:09 -06:00
2022-12-26 08:01:32 -07:00
* Port labeled "WAN": untagged = AREDN® WAN
* Port labeled "LAN": untagged = AREDN® LAN, vlan 2 = DtDLink (device to device)
2019-04-30 19:55:09 -06:00
2019-05-26 16:27:49 -06:00
The GL.iNet GL-AR750 is pre-configured with the following ports, left to right:
* Left Port with internet globe icon: WAN (untagged)
2020-04-14 20:57:37 -06:00
* Middle Port with "< .. > " icon: DtDLink (vlan 2)
* Right Port with "< .. > " icon: LAN (untagged)
2019-07-02 16:40:22 -06:00
2022-12-26 08:01:32 -07:00
IMPORTANT: For Gl.iNet devices, when initially installing AREDN® on OpenWRT, you *MUST* uncheck the "Keep Settings" checkbox.
2018-09-20 23:16:29 -06:00
## Submitting Bug Reports
2022-12-26 08:01:32 -07:00
Please submit all issues to https://github.com/aredn/aredn/issues
2018-09-20 23:16:29 -06:00
## Developer Only Information
2022-12-26 08:01:32 -07:00
The AREDN® firmware is based on OpenWrt with additional packages and patches. A Makefile automates the entire process to create firmware images.
2018-09-20 23:16:29 -06:00
2018-07-06 09:05:16 -06:00
### Building with Docker
Installing the Docker environment on your windows/linux/mac machine is a pre-requisite. A docker 'container' has been pre-configured with an aredn linux build environment. Alternative instructions are below if you wish to setup your linux install with the compiler pre-requisites necessary to do the build.
To build with docker:
```
docker pull arednmesh/builder
docker run -it --name builder arednmesh/builder
```
To pull an image (or any other file) out of the docker container:
```
2022-12-22 13:22:49 -07:00
docker cp builder:/opt/aredn/aredn/firmware/targets/ath79/generic/< image > .bin < local directory >
2018-07-06 09:05:16 -06:00
```
2018-06-21 23:28:23 -06:00
2018-03-23 01:39:07 -06:00
### Build Prerequisites
2022-12-26 08:01:32 -07:00
Please take a look at the [OpenWrt documentation ](https://openwrt.org/docs/guide-developer/build-system/install-buildsystem ) for a complete and up to date list of packages for your operating system.
2018-03-23 01:39:07 -06:00
On Ubuntu/Debian:
```
apt-get install git subversion build-essential libncurses5-dev \
zlib1g-dev gawk unzip libxml-perl flex wget gettext quilt \
python libssl-dev shellcheck lua5.1
```
On openSUSE:
```
zypper install --type pattern devel_basis
zypper install git subversion ncurses-devel zlib-devel gawk unzip \
perl-libxml-perl flex wget gettext-runtime quilt python \
libopenssl-devel shellcheck lua51
```
2019-03-18 09:47:20 -06:00
On Arch:
```
pacman -S base-devel subversion zlib unzip perl-xml-libxml wget \
quilt openssl shellcheck lua51 git
```
2018-03-23 01:39:07 -06:00
### Building firmware images
To obtain the source and build the firmware locally use:
2019-03-18 09:47:20 -06:00
```
bash
2020-12-15 16:08:37 -07:00
git clone https://github.com/aredn/aredn.git
cd aredn
2018-03-23 01:39:07 -06:00
vi config.mk # enter your callsign, etc.
2022-12-22 13:22:49 -07:00
# build default legacy ath79 target ubnt and tplink images
2018-05-19 23:39:51 -06:00
make
2022-12-22 13:22:49 -07:00
# build and add legacy ath79 target mikrotik images
2018-05-19 23:39:51 -06:00
make SUBTARGET=mikrotik
2020-01-22 18:37:27 -07:00
# build and add ath79 target (latest linux kernel) ubnt, tplink, and gl images
make MAINTARGET=ath79
2018-03-23 01:39:07 -06:00
```
2022-12-26 08:01:32 -07:00
Building the images may take minutes or hours depending on the machine. For more details see [build options ](https://openwrt.org/docs/guide-developer/build-system/use-buildsystem ).
Review the build options in config.mk: `-j <nuMBer of cores + 1>` .
2018-03-23 01:39:07 -06:00
`V=s` will give more verbose error messages.
2022-12-26 08:01:32 -07:00
An internet connection is required during the build process. A good internet connection can improve the build time.
2018-03-23 01:39:07 -06:00
2018-03-31 09:13:16 -06:00
You need approximately 10GB of space for the build.
2018-03-23 01:39:07 -06:00
2022-12-26 08:01:32 -07:00
### How to build prior builds of AREDN®
2018-06-15 20:11:49 -06:00
2022-12-26 08:01:32 -07:00
Prior AREDN® images can be rebuilt. Replace one of the following after
2020-12-15 16:08:37 -07:00
the "cd aredn" command above:
2018-06-15 20:11:49 -06:00
2022-12-26 08:01:32 -07:00
AREDN® release 3.22.12.0
2022-12-22 13:22:49 -07:00
```
git checkout 3.22.12.0
```
2022-12-26 08:01:32 -07:00
AREDN® release 3.22.8.0
2022-12-21 09:43:36 -07:00
```
git checkout 3.22.8.0
```
2022-12-26 08:01:32 -07:00
AREDN® release 3.22.6.0
2022-08-24 13:02:12 -06:00
```
git checkout 3.22.6.0
```
2022-12-26 08:01:32 -07:00
AREDN® release 3.22.1.0
2022-12-22 13:22:49 -07:00
```
git checkout 3.22.1.0
```
2022-12-26 08:01:32 -07:00
AREDN® release 3.21.4.0
2021-04-10 08:58:45 -06:00
```
git checkout 3.21.4.0
```
2022-12-26 08:01:32 -07:00
AREDN® release 3.20.3.1
2020-07-06 09:10:11 -06:00
```
git checkout 3.20.3.1
```
2022-12-26 08:01:32 -07:00
AREDN® release 3.20.3.0
2020-03-25 18:57:56 -06:00
```
git checkout 3.20.3.0
```
2022-12-26 08:01:32 -07:00
AREDN® release 3.19.3.0
2019-03-22 12:44:41 -06:00
```
git checkout 3.19.3.0
```
2022-12-26 08:01:32 -07:00
AREDN® release 3.18.9.0
2018-09-27 22:11:47 -06:00
```
git checkout 3.18.9.0
```
2022-12-26 08:01:32 -07:00
AREDN® release 3.16.2.0
2018-09-05 21:32:57 -06:00
```
git checkout 3.16.2.0
```
2022-12-26 08:01:32 -07:00
AREDN® release 3.16.1.1
2018-07-27 13:42:11 -06:00
```
git checkout 3.16.1.1-make
```
2022-12-26 08:01:32 -07:00
AREDN® build 176
2018-06-15 20:11:49 -06:00
```
git checkout 91ee867
```
Return to most current changes
```
2021-01-26 20:34:14 -07:00
git checkout main
2018-06-15 20:11:49 -06:00
```
2018-03-23 01:39:07 -06:00
### Directory Layout
```
Included in the git Repo:
config.mk < - build settings
openwrt.mk < - which openwrt repo and branch / tag / commit to use
feeds.conf/ < - custom package feeds ( edit to point to your clone of aredn_packages )
2022-12-26 08:01:32 -07:00
files/ < - file system in AREDN ® created images , most customizations go here
patches/ < - patches to openwrt go here
scripts/ < - tests and other scripts called from the build
2018-03-23 01:39:07 -06:00
configs/ < - definitions of features in the devices ' kernel and what packages to include
Makefile < - the build definition
README.md < - this file
Created by the build:
openwrt/ < - cloned openwrt repository
firmware/ < - the build will place the images here
results/ < - code checks and other test results in jUnit xml format
```
### Patches with quilt
2022-12-26 08:01:32 -07:00
The patches directory contains quilt patches applied on top of the openwrt git repo defined in config.mk.
2018-03-23 01:39:07 -06:00
If a patch is not yet included upstream, it can be placed in the `patches` directory with
2022-12-26 08:01:32 -07:00
the `quilt` tool. Please configure `quilt` as described in [OpenWrt Quilt ](https://openwrt.org/docs/guide-developer/build-system/use-patches-with-buildsystem ).
2018-03-23 01:39:07 -06:00
#### Add, modify or delete a patch
Switch to the openwrt directory:
```bash
cd openwrt
```
Now you can use the `quilt` commands.
##### Example: add a patch
```bash
quilt push -a # apply all patches
quilt new 008-awesome.patch # tell quilt to create a new patch
quilt edit somedir/somefile1 # edit files
quilt edit somedir/somefile2
quilt refresh # creates/updates the patch file
```
2022-12-26 08:01:32 -07:00
## Submitting new features and patches to AREDN®
2018-03-23 01:39:07 -06:00
2020-12-15 16:08:37 -07:00
The high level steps to submit to this repository https://github.com/aredn/aredn are:
2018-03-23 01:39:07 -06:00
1) create a github account and 'fork' this repo
2022-12-26 08:01:32 -07:00
2) git commit a change into your fork, e.g. https://github.com/ae6xe/aredn
3) create a pull request for https://github.com/aredn/aredn to consider your change