Skip to content
Contents
GuidesOpenWrt

Before changing an OpenWrt system

Read pending UCI changes first. A commit writes the configuration to disk. The service still needs to reload it. Compare the saved LAN settings with the address reported by netifd. Save the current configuration and keep wired access before applying a LAN address change.

Read pending UCI changes first. A commit writes the configuration to disk. The service still needs to reload it. Compare the saved LAN settings with the address reported by netifd. Save the current configuration and keep wired access before applying a LAN address change.

Saved settings versus a running interface

Read pending UCI changes first. A commit writes the configuration to disk. The service still needs to reload it. Compare the saved LAN settings with the address reported by netifd. Save the current configuration and keep wired access before applying a LAN address change.

uci changes ; ubus call network.interface.lan status

UCI configuration system · OpenWrt ubus

Did the service fail, restart or run out of memory?

Read the system log around the event before rebooting. Compare service status, process uptime and available memory across repeated samples. procd can supervise a service; a cron entry starts work on a clock. Test the command once with the same environment and absolute paths before relying on its schedule.

ubus call service list ; logread ; cat /proc/meminfo

OpenWrt ubus · OpenWrt source and build instructions

The router responds but the management service does not

From a wired LAN client test the actual management address and port. A refused TCP connection is different from a timeout. At a local console check listening sockets and service logs. When moving to SSH keys, prove a second key-authenticated session works before disabling password access. RPC calls also require the appropriate ACL.

logread ; ubus list ; ss -lnt

Dropbear SSH · OpenWrt ubus

Where did the free space go?

On a squashfs installation the base is read-only and changes consume space in a writable overlay. Deleting a file from the base can merely hide it. Inspect the mount containing the actual path before choosing extroot. On the ext4 lab image the root itself was writable.

mount ; df -h

Overlay filesystem

Whose kernel is running?

A container shares the host kernel. Installing an OpenWrt kernel module in an LXC or ordinary Docker root filesystem cannot replace that kernel. Our Docker container runs QEMU with a separate OpenWrt disk, so uname, module loading and apk run inside the guest. For routing experiments use isolated virtual NICs and record which shell owns each command.

Which package manager and feed belong here?

OpenWrt on x86 · OpenWrt source and build instructions

Identify the disk that will be replaced

For a VM attach the OpenWrt disk to a new guest and keep its LAN on an isolated virtual switch for first boot. For physical media identify the destination by capacity and serial before imaging. Match BIOS or EFI to the boot mode. At the console, map each virtual NIC to its MAC address before connecting WAN.

OpenWrt on x86

New package list or new kernel?

For an existing profile and published packages start with Firmware Selector or ImageBuilder. An SDK builds packages for its matching target and ABI. Kernel, board or driver changes need an appropriate source tree. Preserve the profile, release, package list and checksums so another build can be identified later.

OpenWrt build system · OpenWrt source and build instructions · Firmware Selector

Before using a serial header or changing partitions

Get the diagram for this board revision and confirm the UART voltage and pinout. Start with receive-only boot logs. Identify the bootloader, flash type and actual partition map. UBI manages volumes on flash; a filesystem backup alone omits bootloader and calibration partitions. Require a proven recovery path for this board before proposing a layout change.

cat /proc/mtd

OpenWrt Table of Hardware · OpenWrt source and build instructions

Provision one spare router before a whole fleet

Record board ID and approved image hash. On a spare device verify that first boot assigns a unique identity, obtains its management address and reaches the controller. Apply the same desired configuration twice and check for drift. Then disconnect the controller and test local recovery before scheduling a rollout.

UCI configuration system · OpenWrt ubus

Which name will appear in which screen?

UCI stores configuration, ubus exposes current service state, and netifd applies network settings. A bridge groups layer-two ports; DSA exposes switch ports through Linux networking. A route answers where to send an IP packet; a firewall zone groups interfaces for policy. Follow one LAN address from the saved settings to the interface status before changing it.

UCI configuration system · OpenWrt ubus · Ethernet Bridging

Why do old guides mention LEDE?

OpenWrt began in January 2004 using the GPL sources for the Linksys WRT54G. LEDE and OpenWrt reunited in January 2018. When using an old guide, read its release number as well as its project name: a working command on an archived image may refer to a different switch driver or package manager today.

OpenWrt version history · Archive of historical OpenWrt wiki

The binary exists, so why does it not start?

A dynamically linked executable needs the right instruction set, ELF interpreter and libraries. Inspect its ELF header and program interpreter on the build machine; compare them with the exact OpenWrt target SDK. A glibc executable copied from a desktop can fail on a musl target even with the same CPU family. For a script also check the interpreter named on its first line.

musl FAQ · OpenWrt build system

What has to work again at renewal?

Choose HTTP-01 if the validation path reaches the web server on TCP port 80, or DNS-01 if you can publish the challenge TXT record. Use the staging directory to test issuance. After renewal check the certificate the service actually presents from a separate client; replacing files on disk may require a reload. Keep DNS credentials restricted to the required zone.

Challenge types

References and media

Type Attachment Source Language Version or date
Document UCI configuration system OpenWrt en —
Document OpenWrt ubus OpenWrt en —
Document OpenWrt source and build instructions OpenWrt en —
Document Dropbear SSH Dropbear en —
Document Overlay filesystem Linux kernel en —
Diagram Which package manager and feed belong here? GeeksMeta en 2026-11-27
Document OpenWrt on x86 OpenWrt en —
Document OpenWrt build system OpenWrt en —
Document Firmware Selector OpenWrt en —
Document OpenWrt Table of Hardware OpenWrt en —
Document Ethernet Bridging Linux kernel en —
Document OpenWrt version history OpenWrt en —
Document Archive of historical OpenWrt wiki OpenWrt en —
Document musl FAQ musl project en —
Document Challenge types Let's Encrypt en —
Reference

Check the model, region and hardware revision on the label before selecting firmware.

Explore hardware

Comments