Skip to content

Building

Hirotaka Nakajima edited this page Nov 18, 2026 · 2 revisions

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/.

What the build does

build.sh runs three passes:

  1. 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 plain bin/targets/ath79/generic/openwrt-ath79-generic-nec_um310r-initramfs-kernel.bin from this pass is the one to boot over TFTP.
  2. full: the full configuration → …-tailscale-squashfs-sysupgrade.bin.
  3. full without Tailscale: tailscale-tiny turned into a module and only the image rebuilt (under a minute) → …-squashfs-sysupgrade.bin. kmod-tun stays in both images, since kernel modules from the OpenWrt servers do not match this kernel.

Files

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.

Weekly builds

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*).

Clone this wiki locally