Repository navigation
Building
The images are built by the GitHub workflow on branch nec-um310r. To build them yourself you need Linux (or a case-sensitive file system), the usual OpenWrt build dependencies, about 30 GB of disk and a few hours of CPU time.
git clone -b nec-um310r https://github.com/nunnun/openwrt-nec-um310r.git
cd openwrt-nec-um310r
nec-um310r/build.sh
The images end up in nec-um310r/out/.
build.sh runs three passes:
-
factory: the full configuration, but with ModemManager and the LTE helper packages built only as modules, so that the RAM image fits the stock firmware slot. The result is wrapped for the stock web UI (
nec-um310r/tools/mkum310r_factory.py). The plainbin/targets/ath79/generic/openwrt-ath79-generic-nec_um310r-initramfs-kernel.binfrom this pass is the one to boot over TFTP. -
full: the full configuration →
…-tailscale-squashfs-sysupgrade.bin. -
full without Tailscale:
tailscale-tinyturned into a module and only the image rebuilt (under a minute) →…-squashfs-sysupgrade.bin.kmod-tunstays in both images, since kernel modules from the OpenWrt servers do not match this kernel.
| Path | What |
|---|---|
nec-um310r/config/full.diffconfig |
the configuration (packages) |
nec-um310r/config/factory-modules |
packages left out of the factory image |
nec-um310r/files/ |
board files: LTE card power, external watchdog, RTC update, first-boot network settings |
nec-um310r/build.sh |
the build script |
.github/workflows/nec-um310r.yml |
the workflow |
To add packages, add CONFIG_PACKAGE_<name>=y lines to full.diffconfig. Keep the sysupgrade images (the Tailscale one is the larger) under the 15040 KiB limit.
The LTE helper and the LuCI LTE page come from a separate package feed; build.sh adds it. Set UM310R_FEED to a local directory or git URL to use another copy.
Every week the workflow rebases the branch onto the latest OpenWrt main and builds it. A failure there means an upstream change broke the device support. Those builds are kept as workflow artifacts only; releases are made from tags (nec-um310r-v*).
OpenWrt for the NEC uM310R