git clone -b openwrt-one https://github.com/openwrt-meshtastic/openwrt.git
cd openwrt
./scripts/feeds update -a
./scripts/feeds install -a
cp openwrt-one .config
make oldconfig
make -j$(nproc)
tee -a /etc/apk/keys/meshtastic-apk.pem<<EOF
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEM53kxQgA40hjnpavBMS8o1IgNUVE
5+T2JAVtEod+OB7b/3Nb5zHXKr+J7joIPdDUyUjCY2AQaYAxWBABboQVAA==
-----END PUBLIC KEY-----
EOF
echo "https://meshtastic.github.io/openwrt-repo/main/$(cat /etc/apk/arch)/packages.adb" > /etc/apk/repositories.d/meshtastic.list
apk update
apk add meshtasticd
You now require to set either MACAddress or MACAddressSource
On OpenWRT you can use the br-lan for MACAddressSource
right at the bottom (uncomment and change to br-lan)
# MACAddressSource: eth0
change MAC source from eth0 to br-lan
MACAddressSource: br-lan
nano /etc/meshtasticd/config.d/OpenWRT-One-mikroBUS-LR-IOT-CLICK.yaml
## https://www.mikroe.com/lr-iot-click
Lora:
Module: lr1110 # OpenWRT ONE mikroBUS
# CS: 25
IRQ: 10
Busy: 12
# Reset: 2
spidev: spidev2.0
DIO3_TCXO_VOLTAGE: 1.6
nano /etc/meshtasticd/config.d/OpenWRT-One-mikroBUS-sx1262.yaml
Lora:
Module: sx1262 # OpenWRT ONE mikroBUS
## CS: 25
IRQ: 10
Busy: 12
## Reset: 2
spidev: spidev2.0
DIO2_AS_RF_SWITCH: true
DIO3_TCXO_VOLTAGE: true
Set your OpenWRT ONE dip switch to boot from NAND (not NOR) Flash (located on back next to 2.5G / PoE Port Connect you USB-C console cable to the front of the OpenWRT One
Acccess the serial console screen below
Download the image folder onto your computer and extract it in your tftp server folder
( ( ( OpenWrt ) ) ) [SPI-NAND] U-Boot 2024.10-OpenWrt-r27893-b6bb
1. Run default boot command.
2. Boot system via TFTP.
3. Boot production system from NAND.
4. Boot recovery system from NAND.
5. Load production system via TFTP then write to NAND.
6. Load recovery system via TFTP then write to NAND.
7. Load BL31+U-Boot FIP via TFTP then write to NAND.
8. Load BL2 preloader via TFTP then write to NAND.
9. Reboot.
a. Reset all settings to factory defaults.
0. Exit
Press UP/DOWN to move, ENTER to select, ESC to quit
Press '2' to Boot system via TFTP or '5' Load production system via TFTP then write to NAND.
The OpenWRT will only boot from a TFTP server with an ip address of 192.168.11.23
#https://openwrt.org/toh/mikrotik/common
#!/bin/bash
USER=user
#IFNAME=eno1
IFNAME=enx000ec6817901
/sbin/ip addr replace 192.168.11.0/24 dev $IFNAME
/sbin/ip link set dev $IFNAME up
/usr/sbin/dnsmasq --user=$USER \
--no-daemon \
--listen-address 192.168.11.23 \
--bind-interfaces \
-p0 \
--dhcp-authoritative \
--dhcp-range=192.168.11.11,192.168.11.22 \
--bootp-dynamic \
--dhcp-boot=https://downloads.openwrt.org/snapshots//targets/mediatek/filogic/openwrt-mediatek-filogic-openwrt_one-nor-factory.bin \
--log-dhcp \
--enable-tftp \
--tftp-root=$(pwd)