Key takeaways
- Choose the SoC by the upstream status of its Wi-Fi driver first; vendor-SDK-only chipsets lock you to an old kernel for the life of the product.
- Size flash and RAM for five or more years of updates, not for the first image. 16 MB NOR and 128 MB RAM is a floor, not a target.
- Security is now partly a legal question: unique credentials, signed updates, a vulnerability process and a stated support period are expected in several markets.
- Manufacturing data (calibration, MAC addresses, serials) lives outside the firmware image and must survive every upgrade.
- GPL compliance and an OTA plan are part of the product, not paperwork after launch.
OpenWrt gets you a working router on a development board in a weekend. Getting from there to a product that passes certification, survives a factory line and still receives security updates in year five is a different job. This is the path we walk OEM teams through, in the order the decisions actually bite.
SoC and chipset selection
The single most consequential decision is the chipset, and the question to ask is not "does OpenWrt run on it?" but "is the Wi-Fi driver upstream in mac80211, and is the SoC supported by an OpenWrt target on a current kernel?"
There are broadly two paths:
- Upstream-supported silicon. MediaTek parts using the mt76 driver family (for example the Filogic platforms in the
mediatektarget) and Qualcomm parts using ath9k, ath10k or ath11k are the common choices. You inherit kernel updates, security fixes and the community's testing with every OpenWrt release. - Vendor SDK silicon. Some chipsets are only usable with the vendor's own OpenWrt-derived SDK, which typically pins an older kernel and ships proprietary Wi-Fi drivers. You may get newer radio features or offload engines earlier, but you also get a fork that diverges further from upstream every month, and security backports become your problem.
For a product that must be maintained for years, we generally recommend upstream-supported silicon unless a specific feature is unavailable there. If you do choose a vendor SDK, budget for the maintenance explicitly and get written commitments on SDK updates from the silicon vendor or ODM.
Also check the Ethernet side. Switches handled through DSA give you clean per-port interfaces and VLAN configuration in UCI; older swconfig-only switches are a legacy path. Check hardware NAT or flow offload support if you need gigabit routing on a modest CPU.
BOM, flash and RAM sizing
Memory is where cost pressure quietly kills a product's update lifetime. OpenWrt images grow over time as the kernel, drivers and userspace grow, and your own management agent, VPN stack and LuCI additions add to that. Devices with 4 MB flash or 32 MB RAM are no longer supported by current releases, and 8/64 devices are increasingly marginal.
| Component | Practical minimum | Comfortable for 5+ years |
|---|---|---|
| Flash | 16 MB SPI-NOR | 128 MB+ SPI-NAND with UBI, or eMMC |
| RAM | 128 MB | 256 to 512 MB, more for VPN or containers |
| Image layout | Single firmware partition | Dual (A/B) firmware partitions |
NAND makes A/B images practical, which in turn makes unattended OTA much safer: a failed boot falls back to the previous image instead of becoming a field return. The extra BOM cost is usually smaller than the cost of one bricked batch.
BSP and porting
Even on supported silicon, your board needs its own support: a device tree (DTS) describing flash partitions, GPIOs, LEDs, buttons, switch ports and radios; a device definition in target/linux/<target>/image/*.mk; and board scripts that set default network roles and LEDs. We cover this step by step in the OpenWrt hardware porting process.
The key discipline is to keep the board port as close to upstream as possible, ideally upstreamed. Every out-of-tree patch is something you will rebase at every release.
Feature set and branding
Decide the feature set as a package list plus default configuration, not as edits to the source tree. Typically that means:
- A product feed with your own packages (management agent, LuCI theme, any proprietary daemons).
- A
files/overlay and/etc/uci-defaults/scripts for first-boot defaults such as hostname, SSID scheme and timezone. - A pinned build configuration (a diffconfig) checked into version control.
The tooling for this is described in OpenWrt SDK customisation explained, and the branding side in white-label router firmware development.
Security by design
Regulation has caught up with consumer and small-business networking gear. The UK PSTI regime already prohibits universal default passwords and expects a vulnerability disclosure route and a published support period. The EU Cyber Resilience Act's vulnerability-reporting obligations apply from September 2026 and its main requirements from December 2027, covering secure-by-default configuration, vulnerability handling and security updates for the support period. EU radio equipment also faces cybersecurity requirements under the Radio Equipment Directive. Read the actual texts with your compliance adviser; the engineering implications are consistent, though:
- No shared default credentials. Either force the user to set a password at first login, or provision a unique per-device password at the factory and print it on the label. Stock OpenWrt ships with an empty root password, which is fine for enthusiasts and not acceptable for a product.
- Signed firmware. Sign images and packages and verify before flashing. OpenWrt signs package indexes (usign for opkg on 24.10 and earlier, ECDSA keys for apk from 25.12) and can attach signed metadata to sysupgrade images; your OTA path should refuse unsigned images.
- Secure boot where the SoC supports it. Verified boot is SoC-specific (eFuse key hashes, signed bootloader stages, signed FIT images in U-Boot). It is irreversible once fused, so prototype it on sacrificial units and keep key custody procedures tight.
- Minimal attack surface. Disable services you do not need, bind management to LAN or a management VLAN, and keep the firewall (fw4/nftables on 22.03 and later) default-deny on WAN.
- A vulnerability process. Track upstream OpenWrt security advisories and kernel CVEs against your shipped versions, and keep an SBOM for each release.
Warning: Burning secure-boot fuses on production units without a tested key recovery and signing workflow can permanently brick hardware. Treat fusing as a manufacturing step with sign-off, not a developer convenience.
Regulatory and RF certification
RF certification (FCC, CE/RED, WPC in India and others) is done with an accredited test lab, not in-house. Your engineering job is to make the device testable and to make sure the shipped firmware stays within what was certified:
- Lock or constrain the regulatory domain for each SKU. The country code in
/etc/config/wirelessdrives wireless-regdb limits, so decide whether users may change it and enforce that. - Get correct per-board calibration and power tables from the module or ODM; transmit power limits come from those plus the regulatory database.
- Provide the lab with a test firmware or commands to set fixed channels, rates and continuous transmit. These are often vendor tools and must not ship enabled.
- Handle DFS channels properly in 5 GHz, which labs will test.
Manufacturing
Production needs its own firmware flow, separate from developer builds:
- Factory images. Either pre-programmed flash from the distributor, or a factory image written via the bootloader on the line. The factory image differs from the sysupgrade image in format and sometimes in content.
- Calibration data. Each unit's radio calibration is written to a dedicated partition, commonly
arton Qualcomm designs orfactoryon MediaTek designs, by the ODM's calibration station. OpenWrt reads it through NVMEM cells and must never overwrite it. - MAC addresses. Allocate from your own IEEE block, write the base MAC per unit, and derive interface MACs consistently. The label MAC must match what the device reports.
- Test mode. A production test daemon or boot mode for LEDs, buttons, ports and radio sanity checks, disabled after the unit passes.
- Per-unit secrets. Unique passwords, device certificates for cloud enrolment, and serial numbers are written at the same station and logged against the MAC.
OTA and long-term maintenance
Plan updates before launch. Decide the channel (staged rollouts from a cloud controller, or a pull-based update check), what /etc/sysupgrade.conf preserves across upgrades, and how you will handle a release that changes configuration format. Test the upgrade from every version you have shipped, not just the previous one.
# Typical lab check before releasing an image
sysupgrade -T /tmp/firmware-sysupgrade.bin # validate image for this board
sysupgrade /tmp/firmware-sysupgrade.bin # upgrade, keeping settings
sysupgrade -n /tmp/firmware-sysupgrade.bin # upgrade, discarding settings
Rebase your product onto each OpenWrt stable release while it is maintained, and follow the point releases. A product on an end-of-life branch with no kernel fixes is hard to defend to customers or regulators.
Licence compliance
OpenWrt contains GPL-2.0 code (the Linux kernel, BusyBox and many others) alongside LGPL, MIT, Apache-2.0 and proprietary firmware blobs. Shipping it obliges you to provide the complete corresponding source for GPL components, including your modifications and the build scripts, either with the product or via a written offer. Keep a per-release source archive that actually rebuilds the image, include licence notices in the documentation or web UI, and have counsel review any proprietary kernel modules. The PKG_LICENSE fields in package Makefiles help generate an inventory, but do not replace a review.
How CloudWRT helps
Our R&D and OEM engineering team works on exactly these stages: chipset evaluation, BSP and board bring-up, custom OpenWrt builds and packages, kernel drivers, security hardening and performance optimisation, through to end-to-end product development.
Once devices ship, the CloudWRT Platform provides scheduled firmware and configuration rollouts with rollback, monitoring and configuration templates, and it works with OpenWrt-compatible hardware from many ODMs (see bring your own hardware). You can start a free trial or send us a project brief.
Frequently asked questions
Can we use the ODM's vendor SDK instead of upstream OpenWrt?
Yes, and many products do. The trade-off is maintenance: vendor SDKs usually pin an older kernel, so security fixes must be backported by you or the vendor. Get those commitments in writing before you commit to the chipset.
Is 16 MB of flash enough for a commercial router?
It is enough for a lean image today, but leaves little room for growth or for A/B partitions. If the product must be supported for several years with a cloud agent and VPN, NAND or eMMC is the safer choice.
Do we need secure boot?
It depends on your threat model, market and SoC support. Signed update images and no default passwords are the baseline; secure boot adds protection against persistent tampering but requires careful key management.
Who handles RF certification?
An accredited test lab performs it. The firmware team supplies test modes, correct calibration handling and a locked-down regulatory configuration so the shipped product matches what was tested.