Procedure#
- Take a backup (System -> Backup)
- Get the sysupgrade image
cd /tmp && wget https://downloads.openwrt.org/releases/25.12.0/targets/mediatek/filogic/openwrt-25.12.0-mediatek-filogic-bananapi_bpi-r4-squashfs-sysupgrade.itb- Flash the new firmware, reset config:
sysupgrade -v -n openwrt-25.12.0-mediatek-filogic-bananapi_bpi-r4-squashfs-sysupgrade.itb - Wait for reboot
- Fix /etc/resolv.conf (broken from https-dns-proxy)
apk updateapk add luci-app-https-dns-proxy https-dns-proxy tailscale avahi-dbus-daemon luci-app-sqm luci-app-ddns- reboot
tailscale update (package version is very outdated)reboottailscale up --advertise-routes=192.168.40.0/24,192.168.41.0/24,192.168.42.0/24 --accept-dns=false --accept-routes=false --advertise-exit-node --netfilter-mode=off --sshtailscale serve -bg https+insecure://localhost:443
Overlayfs fix#
- apk update && apk add fdisk
- fdisk /dev/mmcblk0
- create new partition (if does not exist) and write changes
- reboot
- mkfs.ext4 /dev/mmcblk0p1
- mkdir -p /mnt
- mount /dev/mmcblk0p1 /mnt
- tar -C /overlay -cf - . | tar -C /mnt -xf -
- umount /mnt
- apk update && apk add block-mount
- block detect > /etc/config/fstab
uci set fstab.overlay="mount"
uci set fstab.overlay.device="/dev/mmcblk0p1"
uci set fstab.overlay.target="/overlay"
uci set fstab.overlay.fstype="ext4"
uci set fstab.overlay.options="rw,noatime"
uci set fstab.overlay.enabled="1"
uci commit fstab
- ensure its present in /etc/config/fstab
- reboot
Avahi Daemon Config#
[server]
use-ipv4=yes
use-ipv6=yes
check-response-ttl=no
use-iff-running=no
[publish]
publish-addresses=yes
publish-hinfo=yes
publish-workstation=no
publish-domain=yes
[reflector]
enable-reflector=yes
reflect-ipv=no
[rlimits]
#rlimit-as=
rlimit-core=0
rlimit-data=4194304
rlimit-fsize=0
rlimit-nofile=30
rlimit-stack=4194304
rlimit-nproc=3