Neanderfunk 2025.1.3: Packages and patches to take along

Our stable 26101610sta runs on Gluon v2025.1.x. Here is everything we add to Gluon „out of the ordinary,“ in full, organized by functional area: our own packages, forks of community packages, and patches.
Intended for anyone who builds Gluon for their community and wants to see whether anything in here is useful to them.

Regarding the Upstream line for packages: this refers to freifunk-gluon/community-packages or the original repo, not Gluon core, unless stated otherwise.

Setup: Setup Mode and Config Mode

neanderfunk-setup-mode and neanderfunk-config-mode-theme

  • Function: Setup mode on a single page: the wizard at the top, below it every form of the advanced settings as a collapsed group, and a „Save & Restart“ button. In Gluon’s setup mode, you lose your entries when switching from the wizard to the advanced settings.
  • The forms remain those of Gluon and the packages. A package with its own model() appears automatically as an additional group. Only what has been changed is written, and only if all forms are valid.
  • Theme: responsive without width-based media queries, dark mode according to browser settings, everything local (no web fonts, no external links), replaces Gluon’s theme via PROVIDES gluon-config-mode-theme
  • Further: Setup mode ends automatically after 24 h (save and restart); the map only loads tiles once the position is enabled; setting coordinates checks the box „Publish node position“; texts in de/fr
  • Integration: '-gluon-config-mode-theme' in the package list, otherwise the image build aborts (both provide view/theme/layout.html)
  • Limits: tested in QEMU (x86-64)
  • Package: neanderfunk-setup-mode, neanderfunk-config-mode-theme

neanderfunk-setup-wifi

  • Function: WLAN setup.gluon_<MAC> in setup mode, setup without a network cable. site.conf setup_mode.wifi with start (button, off, boot), security (open, wpa2), timeout.
  • Captive portal: every probe host (Apple, Android, Windows, Firefox, Linux desktops, and others) resolves via DNS to the node, uhttpd answers every unknown path with 302 to the wizard. The phone reports „Sign in to network“ and opens it. In the setup WLAN 198.51.100.0/24 (TEST-NET-2), because Android does not open its sign-in window when the probe host resolves to an RFC 1918 address.
  • Button: a short press in setup mode switches the setup WLAN on. The LED then blinks quickly (200/60 ms) instead of the setup-mode rhythm (1000/300 ms).
  • Remains a patch: setup-mode-network/setup-mode-wifi.sh, setup-mode-network/setup-mode-captive.sh, setup-mode-network/setup-mode-hostnames.sh. S60dnsmasq and cgi-bin/portal belong to Gluon packages, and two packages cannot own the same file.
  • Limits: captive portal tested on Android 16 and iOS 27 (under Gluon 2023.2); the other systems are listed, but their effect is not verified. Devices with a capacitive WPS surface (Genexis Pulse EX400) can trigger the open setup WLAN without a finger.
  • Package: neanderfunk-setup-wifi

Setup mode over https

  • setup-mode-network/setup-mode-tls.sh: config mode in setup mode additionally on port 443, with a self-signed certificate from px5g, generated in /tmp. Otherwise, browsers set to „HTTPS only“ show an error page instead of a certificate warning.
  • Limits: only with the feature tls, pulls in px5g-mbedtls. Tested in QEMU (x86-64) and on the WDR3600.

neanderfunk-default-hostname

  • Function: new nodes are named <hostname_prefix><model>-<last 4 of node_id>, for example dias-WDR3600-1b8c; model name taken from the Gluon image name
  • Remains a patch: hostname/default-hostname.sh lets gluon.util.default_hostname() ask the package
  • Limits: existing nodes keep their name
  • Package: neanderfunk-default-hostname

neanderfunk-ap-timer

  • Function: client WLAN switched on and off according to a schedule (daily or weekly), with a page in config mode; switches all client radios and the OWE BSS along with it
  • Origin: ff-ap-timer and ff-web-ap-timer (community-packages), merged into one package
  • Dependencies: CONFLICTS ff-ap-timer, ff-web-ap-timer
  • Package: neanderfunk-ap-timer

neanderfunk-button-bind

  • Function: function of the WLAN/WPS button can be selected: WLAN on/off, no function, WLAN reset, night mode (LEDs off, on only while pressed)
  • Origin: ffffm-button-bind (freifunk-ffm/packages), with a bugfix in the upgrade script, texts via i18n
  • Dependencies: CONFLICTS ffffm-button-bind
  • Package: neanderfunk-button-bind

neanderfunk-preserve-wifichannel

  • Function: makes wifi24.preserve_channels from the site.conf the default for Gluon’s uci option gluon.wireless.preserve_channels, also per band; resets the channels once after a site, domain, or outdoor change
  • Upstream: concerns Gluon core, Gluon does not evaluate the site.conf key
  • Package: neanderfunk-preserve-wifichannel

Patches

Controlling and migrating nodes

neanderfunk-nodeplacer

  • Function: moves individual nodes server-side to another domain, controlled via a signed manifest. The trust anchors are the keys and threshold of the autoupdater.
  • site.conf: optional; if not specified, the mirrors, keys, and threshold of the autoupdater branch apply
  • Related, with a different purpose: gluon-scheduled-domain-switch (entire domain, time-controlled), gluon-hoodselector (by coordinates), gluon-config-mode-domain-select (selection by operators)
  • Dependencies: CONFLICTS gluon-hoodselector
  • Limits: only within the same community; at most 3 attempts in 7 days per target; multidomain not yet tested on devices
  • Package: neanderfunk-nodeplacer

neanderfunk-legacy-migrate

  • Function: upgrade scripts for large jumps to 2025.1 from Gluon 2015.1: applies configuration migrations that Gluon has since removed (hwmode to band, mesh on WAN/LAN to roles, VPN switch and bandwidth limit, IBSS mesh, old firewall zones, sysctl.conf, foreign autoupdater branches). On x86, LAN and WAN are bound to the network card instead of ethN.
  • Limits: x86 end-to-end tested with MBR and EFI and real 2021.1 images; 4 MB devices have no path
  • Package: neanderfunk-legacy-migrate

neanderfunk-migrate-updatebranch

Patch

  • targets/x86-mbr-sysupgrade.sh: x86-generic, -legacy, and -64 additionally build the MBR image as images/other/…-mbr-sysupgrade.img.gz. Otherwise, old x86 nodes up to Gluon 2021.1 lose their configuration when jumping to the EFI image (Gluon #2967).

Mesh and network

neanderfunk-port-roles

  • Function: config-mode page „Ports“: role per network port (uplink, mesh, client, none) on DSA switches and separate interfaces, plus VLANs per port. Only takes effect if a port is set differently from its group (own section gluon.iface_<port>).
  • Origin: new development
  • Limits: ports behind swconfig keep one role per group. VLAN sub-interfaces on the device not yet tested.
  • Package: neanderfunk-port-roles

Patches

  • bugfixes/wired-hop-penalty.sh: gluon_wired does not announce hop_penalty as an option. Since Gluon #3454, the hop penalty on the wired mesh does not reach batman-adv and stays at 0. WLAN and VPN are not affected.
  • security/batman-adv-fixes.sh: four fixes from batman-adv upstream for 2024.3 that are missing from the routing feed openwrt-24.10: TT race, BLA lasttime only on change, BLA double free after failed backbone creation, no WARN_ON on allocation error in orig_ifinfo. No CVE.
  • bugfixes/tunneldigger-reinit-backoff.sh: mesh VPN on, no WAN: reinit without a pause, two modprobe calls per reinit, on the WDR3600 115 modprobe calls in 30 s at 0% idle. Now with a pause.
  • package-fixes/add-gluon-airtime-plausible.sh: respondd-module-airtime omits values where busy, rx, or tx is greater than active. mt76 reports underflowed survey counters, otherwise maps show utilization far above 100%.

Display and monitoring

neanderfunk-respondd

Status page

  • status-page/: additional MACs and Gluon version, SSID and HT mode per radio, offline SSID including counters, CPU type and cores, Ethernet speed and role per port, live values from neanderfunk-respondd, dark mode, SSID of OWE and private WLAN, gateway with hostname, next-node addresses as links, clients per band only for existing bands, distance only for WLAN neighbors, more compact layout, CSS/JS with ?v=<release> against old browser cache
  • Package for it: neanderfunk-status-page with the translation catalog and cgi-bin/dyn/gateway-name. Without the package, the lines fall back to English; without the patches, the package has no effect.
  • Patch instead of package, because Gluon’s status page has no extension point. The patches are individual, so you can pick the lines you want.
  • Package: neanderfunk-status-page

neanderfunk-banner

  • Function: login banner with node status (nodestatus), plus portrole (role and hop penalty per interface), channel (prefers channels 36 to 48 on 5 GHz, DFS only as a fallback), and routername
  • Note: queries DNS at asn.cymru.com for the ASN display
  • Dependencies: CONFLICTS ffmuc-custom-banner
  • Package: neanderfunk-banner

neanderfunk-node-whisperer

  • Function: node data in WLAN beacons (vendor IE), readable without a connection
  • Different from the original: -ENODATA instead of wrong values, gateway TQ via BATADV_CMD_GET_GATEWAYS, each originator counted once, disabled in any spelling. Plus four fixes from upstream that community-packages does not yet have at our pin.
  • Origin: fork of ffda-node-whisperer
  • Upstream: community-packages#182 reports Error collecting Information for id=4 name=domain code=-1. Our patch 0001 addresses exactly this message: on single-domain firmware, gluonutil_get_domain() returns NULL.
  • Dependencies: CONFLICTS ffda-node-whisperer
  • Limits: 1.5 MB RSS (TL-WR1043ND v2), therefore not on 64 MB devices in our setup
  • Package: neanderfunk-node-whisperer

Devices

  • Backports from OpenWrt 25.12, not in 24.10 and not in Gluon: Aruba AP-324/325 (client AP only, no 802.11s), Zyxel NWA90AX and NWA90AX Pro, Cudy AP3000 Wall v1, Cudy WR3000U v1, TP-Link EAP620 HD v1, Cudy M3000 v2 with YT8821. Each device has a directory under devices/, list with the original commits: devices/neue-geraete-2026-10.md. Not all have been tested on the device.
  • Profiles from OpenWrt 24.10 that Gluon 2025.1 does not build: TP-Link EAP225 Wall v2, Zyxel NBG6616, MikroTik mAP lite and wAP G-5HacT2HnD, ZTE MF286R, FRITZ!Repeater 3000, Linksys EA8300, MikroTik wAP ac, ASUS RT-AX59U, Cudy WR3000P v1, GL.iNet GL-MT6000, Mercusys MR80X v3, Cudy M1800, TP-Link EAP613 v1, MikroTik RB750Gr3, Netgear WAX218: targets/additionaltargets.sh. In addition, our own scripts for NanoPi R2C, FRITZ!Box 3390, Cudy AP3000 v1, and TR3000 256MB v1 under devices/, primary MACs in network/interfaces-patch.sh.
  • devices/dlink-aquila-odm-mac.sh: D-Link AQUILA PRO AI M30/M60, the nvmem layout parser reads the base MAC from the partition Odm instead of the fixed cell 0x81. Devices from multi-packs (M60-2, M30/CP) have the entry further back and otherwise received a wrong MAC. Upstream open: openwrt/openwrt#24967. Verified on two M60 from the twin pack and one M30.
  • devices/remove-dlink-m30-recovery.sh: M30 without recovery image, like Gluon #3816 (only in main)
  • device-fixes/fix-xiaomi-ax6s-bootflags.sh and device-fixes/fix-xiaomi-ax6s-compat-version.sh: Redmi AX6S confirms the boot flags, otherwise the A/B bootloader falls back to the stock firmware after a few reboots; compat_version 2.0 already at initial installation, otherwise a node switched via factory receives no update
  • devices/zbit-zb25vq128.sh: Totolink X5000R with Zbit flash ZB25VQ128 (devices from 2022 onward), patch by Daniel Palmer (2021), never merged, ported to 6.6. Untested on the device.
  • kernel/mpc85xx-simpleimage-loader/: BR200-WP, HiveAP-330, WS-AP3715i: link the simpleImage loader at the address named by the uImage header (0x3000000). WS-AP3715i-sysupgrade has not booted since 24.10, nor has WS-AP3825i-initramfs. Upstream open: openwrt/openwrt#25257, backport #25541. WS-AP3825i verified on the device, the others only on the image.

64 MB RAM

The package selection depends on two hand-maintained device lists in image-customization.lua (dual-band and single-band).

  • Image: zram-swap added, without procd-ujail (on the TL-WR1043ND v2, 3.7 MB RSS for dnsmasq, hostapd, and ntpd), without node-whisperer. Dual-band additionally without the feature tls and web-cellular; single-band without wireless-encryption-wpa3 and without ffda-gluon-usteer.
  • lowmem/kernel-swap.sh: re-enables KERNEL_SWAP on ath79-generic, ramips-mt76x8, and ramips-mt7620. Gluon 2025.1 disables it in targets/generic, so zram-swap runs into nothing. TL-WR1043ND v2: without swap, a refault storm after 17 MB of additional tmpfs; with zram, only at 39 MB. Cost 7.6 KB of kernel.
  • lowmem/sysctl-64m-min-free.sh: makes Gluon’s 64 MB sysctl effective (in v2025.1.x the file is called .sysctl instead of .conf and compares bytes instead of kB; the fix c6ac8914 is only in Gluon main) and omits vm.min_free_kbytes=2048 in the process: this broke ath10k on the Archer C25 (qca9887) under WLAN load („rx ring became corrupted: -5“), but 8192 runs without errors.
  • lowmem/sysctl-no-watermark-boost-64mb.sh: vm.watermark_boost_factor=0 up to 64 MB. Archer C25: OOM panic at 11.5 MB free; the Normal zone watermarks were each 4096 kB above the target value.
  • lowmem/state-check-shell.sh, lowmem/tunneldigger-watchdog-shell.sh: gluon-state-check and tunneldigger-watchdog as shell instead of Lua, because the Lua runtime was being loaded from flash every minute or every five minutes on 64 MB devices. They replace files of foreign packages, which is why there is no package. tunneldigger-watchdog-shell requires the community-packages as a feed.
  • kernel/ag71xx-rx-ring-no-bug.sh: no panic when refilling the RX ring fails under RAM pressure; the driver has a fallback via oom_timer. OpenWrt main had that section unchanged at our last check.

Security and build

Kernel and drivers

  • kernel/mt7915-ps-aql/: power-save/AQL set for mt7915/mt798x from Gluon #3673 (merged into main, not into v2025.1.x), against TX stalls for clients in power save (openwrt/mt76#1009). Effect in the field not yet evaluated.
  • kernel/rtl8221b-skip-mmd30.sh: do not read MMD 30 of the RTL8221B during the C45 PHY scan, otherwise the 2.5G port is dead if a cable is plugged in at boot (Cudy TR3000, WR3000H). OpenWrt 88dcd8c303, only in main.
  • kernel/mt7530-phy-disable-eee.sh: EEE disabled on the MT7530 PHY (MT7621 switch), reimplementation of openwrt/openwrt#25058. Built, but the effect on the device has not been specifically measured.

Stability

neanderfunk-hotfix

  • Function: state checks via micrond (healthcheck, IfNoWificlient, WLAN firmware, eth_tx_stall, and others) that restart WLAN or reboot. A watchdog monitors micrond itself.
  • Different from the original: uptime thresholds (check_uptime_min, reboot_uptime_min); the original could reboot two minutes after boot; no reboot while the autoupdater is running.
  • Origin: eulenfunk/packages, contains and replaces ffac-mt7915-hotfix
  • Dependencies: neanderfunk-common, micrond; CONFLICTS ffac-mt7915-hotfix
  • Limits: eth_tx_stall by default only logs (dry_run). The underlying cause is openwrt/openwrt#17505.
  • Package: neanderfunk-hotfix

neanderfunk-linkcheck

  • Function: checks WLAN and batman neighbors, mesh unicast per WLAN radio, and gateway reachability (also via anycast <prefix>::ac1); first WLAN restart, then reboot
  • Origin: eulenfunk/packages
  • Dependencies: neanderfunk-common, micrond
  • Limits: no_gateway only applies if a gateway has been seen at least once since boot. If the gateway flaps, a reboot loop is possible; reboot_uptime_min only delays it. A node that never had a gateway stays calm.
  • Package: neanderfunk-linkcheck

neanderfunk-wifi-blackout

  • Function: no associated client on any radio for blackoutwait (default 171 min), then WLAN restart; if that does not help, reboot
  • Origin: FreifunkHochstift, via eulenfunk-ath9kblackout; renamed because the fault is not ath9k-specific. Timestamps based on uptime instead of clock time.
  • Dependencies: neanderfunk-common, micrond; CONFLICTS eulenfunk-ath9kblackout, gluon-ath9kblackout, neanderfunk-ath9kblackout
  • What counts: the node as a whole. A station on any interface, client or mesh peer, is sufficient. Only interfaces that are enabled in uci along with their radio and whose netdev is up are counted. Devices without WLAN, nodes with client and mesh WLAN both off, and radios that never come up are left alone by the check.
  • Deliberately not armed: the other checks only take effect once they have seen the healthy state at least once since boot. A radio that is deaf from the start is therefore never seen by them, but this check does see it.
  • uci: wifi_blackout.settings.disabled=1 disables it per node; restarts_before_reboot (default 1) WLAN restarts before the reboot. The times come from the site.conf.
  • Limits: a node with WLAN switched on where no station legitimately ever connects, i.e. without clients and without a WLAN mesh partner (mesh only via cable), will restart periodically. For such nodes, disabling it via uci is intended.
  • Package: neanderfunk-wifi-blackout

neanderfunk-weeklyreboot

  • Function: reboot on Thursdays between 3:15 and about 6:00 (random), skipped while the autoupdater is working (flock on the autoupdater lock, plus pgrep sysupgrade for the flash itself)
  • Without a set clock, the reboot depends on uptime instead of the weekday: without an RTC, the clock after boot sits at the most recent timestamp under /etc; earlier versions then rebooted again after every boot. If the ntp marker is missing, the Thursday run only reboots after seven days of uptime.
  • Origin: counterpart to ffac-weeklyreboot; the second stage and the ntp protection are not present there
  • Dependencies: neanderfunk-common; CONFLICTS ffac-weeklyreboot, gluon-weeklyreboot
  • Limits: fixed schedule; other times only via a changed cron line
  • Package: neanderfunk-weeklyreboot

neanderfunk-ssid-changer

  • Function: switches the client SSID to an offline SSID when no gateway is reachable, and back
  • Different from the original: shell instead of Lua; counters since boot (offline SSID, gateway losses) as respondd values; gwofflinemaxcount from the site.conf; when switching back, only the node’s own uci delta is discarded
  • Origin: fork of ffac-ssid-changer
  • Upstream: open for the original: community-packages#180 (offline SSID with a larger switch_timeframe). The bug there does not affect our version.
  • Dependencies: neanderfunk-common; CONFLICTS ffac-ssid-changer, gluon-ssid-changer
  • Limits: TQ limits do not work with BATMAN_V
  • Package: neanderfunk-ssid-changer

neanderfunk-common

  • Function: shared helpers for hotfix, linkcheck, weeklyreboot, ssid-changer, and wifi-blackout: reboot log that keeps the most recent reboot reasons across restarts, reboot that does not depend on sync, uci boolean evaluation in any spelling, shared WLAN lock
  • Package: neanderfunk-common

Adopting

  • Feed in site/modules: PACKAGES_NEANDERFUNK_REPO=https://github.com/Neanderfunk/packages.git, _BRANCH=v2025.1.x, _COMMIT=bf0f1c21e8fe545d8d86b6bf0962f1525db3aeaf
  • CONFLICTS are listed per package above; the original must be removed from the package list.
  • Package and patch belong together for setup-wifi (setup-mode-network/), default-hostname (hostname/), and status-page (status-page/).
  • Patches individually: copy the script, its patch files, and lib-patch.sh one level up, run from the Gluon directory. Phase (pre-update or post-update) and order are specified in apply.sh of the respective repo. The scripts are idempotent.
  • Whole repos: pinned like Gluon’s modules; for us in templates/common/patchrepos (GitHub - Neanderfunk/FirmwareConfigs: Firmware build tools for Neanderfunk Gluon firmwares · GitHub). For each repo apply.sh pre-update, make update, apply.sh post-update.

Questions welcome here in the thread.

1 Like