r/openwrt • • 6h ago

Recovering a bricked Xiaomi AX9000 without UART

Post image
8 Upvotes

I own a Xiaomi Ax9000 which has been running OpenWrt for months. It was first converted from stock over UART, long before this incident, and after that it was kept current with plain sysupgrade, so the serial console was never needed again.

The brick was self-inflicted. The build in use was an NSS snapshot whose low 5 GHz radio (QCN9024) would not accept a single client, so an upstream OpenWrt snapshot was built with the ImageBuilder, fully configured, and forced with sysupgrade -n. The image itself was valid and the flash completed, but it carried the target's default FIT load address (0x41000000) while this unit's u-boot only boots a FIT loaded at 0x43000000. After the reboot the board came up in a loop: no DHCP, no SSH, no web UI, nothing.

At that point there was no 1.8 V USB-TTL adapter at hand. The console pads on this board are 1.8 V, so a 3.3 V or 5 V adapter was not an option (it would take the SoC with it), and the case was not going to be opened. Everything below was done with the router plugged into a PC over Ethernet, and it ends with persistent OpenWrt on the NAND and no Xiaomi firmware left.

Procedure verified in November 2026 on an international AX9000.

The Xiaomi firmware installed in phase 1 is only a bridge to get a shell. It is wiped in phase 4.

Warning: this is for your own hardware. It voids the warranty, it can kill the router for good and there is no safety net if you pick the wrong partition. Everything below was done with the router connected to a PC over Ethernet, without opening anything.

Index

1. Summary

PhaseWhat it doesOutcome
1Recovery TFTPBack to stock, SSH closed
2xmir-patcher exploitRoot shell over SSH on stock
3OpenWrt initramfsOpenWrt in RAM, nothing written to flash
4Patched sysupgradePersistent OpenWrt on the NAND
5VerificationKernel, overlay, radios

2. How the brick presents itself

  • The router powers on and the LED does something, but there is no DHCP and it answers neither on 192.168.31.1 (stock) nor on 192.168.1.1 (OpenWrt).
  • The PC does not get an IP over cable on either network.
  • ping to 192.168.31.1 and to 192.168.1.1: no reply.
  • Without UART you cannot see the boot loop, so you diagnose by elimination.

Cause in this case, an empirical finding rather than something traced at bootloader level because there was no console: the factory u-boot on this unit would not boot the OpenWrt FIT with the default load address. It only booted when the FIT kernel node carried:

load  = 0x43000000
entry = 0x43000000

and, on top of that, the bootloader environment had atf=1. Setting atf=1 only in the stock /etc/config was not enough. It had to be written to the NAND (bdata) and committed with nvram commit.

Checking those addresses inside an image:

fdtdump initramfs-0x43000000.itb | grep -E "load|entry"
load = <0x43000000>
entry = <0x43000000>

3. Requirements

  • A Linux PC, an Ethernet cable and a free port.
  • dnsmasq built with TFTP support.
  • International stock firmware for the AX9000 (3.0.40 INT in this case).
  • xmir-patcher.
  • python3 with venv.
  • An OpenWrt image for xiaomi_ax9000 with the FIT at 0x43000000, in two formats: initramfs and sysupgrade.
  • Patience: expect waits of 2 to 10 minutes between phases.

Directory layout used for this procedure:

<workdir>/tftp-recovery/
    stock-xiaomi-3.0.40_INT.bin
    C0A81F01.img ... C0A81F04.img   (renamed copies)
<workdir>/xmir-patcher/
<workdir>/ax9000-intl/
    initramfs-0x43000000-factory.ubi
    sysupgrade-ib-0x43000000.bin

4. Phase 1: back to stock over TFTP

The Xiaomi u-boot has boot_wait enabled and, on boot, brings up 192.168.31.1 and requests a file over TFTP whose name is an IP address in hexadecimal. That is why the image has to be served under that exact name.

4.1 Prepare the PC

Put the PC interface on 192.168.31.2 and connect the cable to a LAN port on the router.

ip addr add 192.168.31.2/24 dev eth0
ip link set eth0 up

4.2 Prepare the TFTP directory

The file is served under the hex name of the IP involved. Here it worked with the copies for .1 through .4. Also keep the .100 one in case your unit uses a different serverip.

cd /path/to/tftp-recovery
cp stock-xiaomi-3.0.40_INT.bin C0A81F01.img
cp stock-xiaomi-3.0.40_INT.bin C0A81F02.img
cp stock-xiaomi-3.0.40_INT.bin C0A81F03.img
cp stock-xiaomi-3.0.40_INT.bin C0A81F04.img
cp stock-xiaomi-3.0.40_INT.bin C0A81F64.img

4.3 Start dnsmasq in TFTP mode

Reference config, adjust the interface and the path:

sudo dnsmasq --no-daemon \
  --port=0 \
  --interface=eth0 --bind-interfaces \
  --dhcp-range=192.168.31.2,192.168.31.2,255.255.255.0,1h \
  --dhcp-option=3,192.168.31.2 \
  --dhcp-option=6,192.168.31.2 \
  --enable-tftp --tftp-root=/path/to/tftp-recovery \
  --log-dhcp

4.4 Power on the router

With dnsmasq in the foreground, plug in the power. The log must show the TFTP request for the .img file. If nothing shows up within 2 minutes, power off, recheck the PC IP and the file name, and repeat.

Once the transfer starts, do not touch anything. It takes several minutes and the router reboots by itself. At the end it is back on stock:

http://192.168.31.1

This step only exists to get a system with the vulnerable SSH. The stock firmware is wiped completely in phase 4.

4.5 Stop the TFTP server

sudo pkill -x dnsmasq

And remove the temporary IP from the PC once it is no longer needed.

5. Phase 2: open SSH with xmir-patcher

International stock 3.0.40 carries the exploit that xmir-patcher uses. No need to open the router or solder anything.

git clone https://github.com/openwrt-xiaomi/xmir-patcher
cd xmir-patcher
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
./run.sh

In the menu:

OptionWhat it does
1Set IP-address to 192.168.31.1
2Connect to device, installs the exploit
3Read full device info, confirms model and partitions
4Create full backup, full dump, store it somewhere outside
6Install permanent SSH, SSH that survives reboots

Before flashing anything, write down the partition table from option 3 (name, address and size of rootfs and rootfs_1). That is what lets you go back if something goes wrong.

5.1 The atf patch

The bootloader environment had to carry atf=1 written to NAND. It was added to install_fw.py, in the block that prepares the nvram, before the commit:

cmd.append("nvram set bootdelay=3")
cmd.append("nvram set boot_wait=on")
cmd.append("nvram set ssh_en=1")
cmd.append("nvram set uart_en=1")
cmd.append("nvram set atf=1")      # added
...
nvram commit

Without it, the FIT was written correctly but the router would not boot from flash.

6. Phase 3: OpenWrt in RAM

Goal: boot OpenWrt without touching the good partition, so the sysupgrade can be launched from a system that is already OpenWrt.

6.1 Copy the initramfs

scp initramfs-0x43000000-factory.ubi root@192.168.31.1:/tmp/

6.2 Write it to the opposite rootfs

With xmir-patcher this is option 7 (Install firmware) pointing at the firmware/ directory, with the initramfs inside. The program locates rootfs and rootfs_1 and writes to the one not currently in use.

By hand, the pattern is:

cat /proc/mtd
mtd -e rootfs_1 write /tmp/initramfs-0x43000000-factory.ubi rootfs_1

6.3 Tell the bootloader which partition to boot

Stock is A/B and uses flag_boot_rootfs. If you wrote to rootfs_1:

nvram set flag_boot_rootfs=1
nvram set flag_last_success=1
nvram set flag_boot_success=1
nvram set flag_try_sys1_failed=0
nvram set flag_try_sys2_failed=0
nvram commit
reboot

6.4 Check

Within 2 or 3 minutes it answers on 192.168.1.1 with OpenWrt in RAM. The configuration does not persist: reboot here and you are back on stock. That is why phase 4 is done right away, without powering off.

ssh root@192.168.1.1
ubus call system board
ip -4 addr show br-lan
df -h /

7. Phase 4: persistent sysupgrade

This is where OpenWrt is actually written to the NAND, with the FIT at 0x43000000.

7.1 Send the image

cat sysupgrade-ib-0x43000000.bin | ssh root@192.168.1.1 "cat > /tmp/fw.bin"

7.2 Verify the hash before flashing

ssh root@192.168.1.1 "sha256sum /tmp/fw.bin"

Compare it with the local sha256. If they differ, stop.

7.3 Flash

ssh root@192.168.1.1 "sysupgrade -n /tmp/fw.bin"

The -n is mandatory: without it, sysupgrade tries to keep the previous system configuration and you end up with leftovers that do not fit.

7.4 Wait

Between 2 and 5 minutes. The router reboots by itself and comes back on 192.168.1.1. Do not cut the power.

8. Phase 5: verification

ssh root@192.168.1.1 "ubus call system board"
ssh root@192.168.1.1 "ip -4 addr show | grep -E 'inet |pppoe'"
ssh root@192.168.1.1 "cat /proc/mtd"
ssh root@192.168.1.1 "mount | grep -i ubi"
ssh root@192.168.1.1 "df -h /overlay"
ssh root@192.168.1.1 "iw dev"

What you need to see:

  • An OpenWrt kernel, not the Xiaomi one.
  • Overlay mounted on UBI (/dev/ubi0_1 on this unit), with free space.
  • All four AX9000 radios present.
  • PPPoE or WAN holding an IP if fibre is connected.

Real persistence test: change something, reboot and confirm it is still there. If stock comes back, flag_boot_rootfs did not stick.

9. AX9000 pitfalls under OpenWrt

These cost hours and have nothing to do with flashing.

9.1 bss_transition takes the whole WiFi down

The UCI option bss_transition comes from GL.iNet firmware and the OpenWrt hostapd does not know it. A single invalid option makes hostapd reject the entire radio file:

unknown configuration item 'bss_transition'
1 errors found in configuration file
hostapd.add_iface failed for phy phy2 ifname=phy2-ap0

Symptom: the interface shows up in ubus but with Channel 0, Tx-Power 0 dBm and zero clients.

uci delete wireless.default_radio2.bss_transition
uci delete wireless.default_radio3.bss_transition
uci commit wireless
wifi reload

The correct way for 802.11v is ieee80211v=1, which is a different option.

9.2 The QCN9024 BDF

The board-2.bin shipped by ipq-wifi-xiaomi_ax9000 does not accept clients on the low 5 GHz radio: it beacons and drops associations without logging a single attempt. Replace it with CodeLinaro's official BDF at /lib/firmware/ath11k/QCN9074/hw1.0/board-2.bin:

ItemValue
SourceQCN9074/hw1.0/WLAN.HK.2.9.0.1-01977-QCAHKSWPL_SILICONZ-1/board-2.bin
Size811180 bytes
SHA-2562379460b1f9d44bb2d23d50712d6acf04cd067b5fd748043aeba3554190a84e9

9.3 Never 160 MHz

It breaks the AX9000 radios. Use 80 MHz (ch36 on the low 5 GHz radio).

9.4 802.11r

There is a history of disconnections with 802.11r on this model. If you see drops, ieee80211r is the first suspect: try without it and stay on 802.11k/v.

9.5 There is no /etc/init.d/wifi in recent snapshots

That is normal: netifd starts the radios. If WiFi does not come up, the problem is in the hostapd configuration, not in a missing init script.

10. What did not work

  • UART: ruled out. The AX9000 console is 1.8 V. With 3.3 or 5 V you kill the SoC, and there was no adapter and no way to open the case.
  • atf=1 only in the stock /etc/config: not enough, the bootloader reads its environment from NAND. You need nvram set plus commit.
  • Official image without touching the FIT: the router would not boot with the default load address (0x41000000). It needs a FIT loaded at 0x43000000.
  • Recovering the old overlay from the NAND dump: the rootfs_data volume was corrupt (broken node at LEB 373) and ubireader could not extract it. The configuration was rebuilt by hand from uci-export.txt, which was complete.
  • Installing apk packages built for a different architecture: apk 3.0 rejects them. The architecture must be aarch64_cortex-a53.

11. Going back to stock

Rescue only. The image you go back to must have the FIT with the address this u-boot accepts, or you repeat the brick.

cat previous-build-xiaomi_ax9000-sysupgrade.bin | \
  ssh root@192.168.1.1 "cat > /tmp/back.bin"

ssh root@192.168.1.1 "sha256sum /tmp/back.bin"
# expected: dbfa774ac4cd055ab45b13beccd1a8bd972726059853753f80044348652a2412

ssh root@192.168.1.1 "sysupgrade -n /tmp/back.bin"

If the router no longer answers over SSH either, go back to phase 1 (TFTP).

12. File inventory

Keep a durable copy of these files outside the working directory, for example in a backup folder on another disk.

FileWhat it isSHA-256
stock-xiaomi-3.0.40_INT.binBridge firmware-
pre-migration-config-backup.tar.gzPrevious config backup-
uci-export.txtFull exported configuration-
nand-dump/NAND dump-
previous-build-xiaomi_ax9000-sysupgrade.binEarlier NSS builddbfa774ac4cd055ab45b13beccd1a8bd972726059853753f80044348652a2412
openwrt-official-r38574-full-xiaomi_ax9000-sysupgrade.binOfficial OpenWrt plus packages06ee75197e624905fadef860bbcdd8f9f64a90898de33a4d40821e502326178b
bdf-qcn9074-codelinaro-WLAN.HK.2.9.0.1-01977.binGood BDF for the QCN90242379460b1f9d44bb2d23d50712d6acf04cd067b5fd748043aeba3554190a84e9
FLASH-OFFICIAL.mdNotes on the official flash-

Working artifacts, temporary:

<workdir>/ax9000-intl/initramfs-0x43000000-factory.ubi
<workdir>/ax9000-intl/initramfs-0x43000000.itb
<workdir>/ax9000-intl/sysupgrade-ib-0x43000000.bin
<workdir>/xmir-patcher/          with patched install_fw.py
<workdir>/tftp-recovery/         C0A81F0*.img images

Working artifacts older than a few days tend to get wiped by cleanup jobs. If you need to repeat this, rebuild the initramfs and the sysupgrade from the ImageBuilder and patch the FIT back to 0x43000000.

13. Real timings

PhaseTime
1, TFTP to stock10-20 min, mostly waiting
2, exploit and backup10 min
3, initramfs5-10 min
4, persistent sysupgrade5 min
5, verification10 min
Total with surprisesan afternoon

If you repeat this, change the interface names and the paths, but do not change the FIT addresses or atf=1 without understanding why they are there.

14. Where this ended

The NSS fork is gone. The router now runs upstream OpenWrt main, which means no more waiting on a frozen fork to fix a radio, and it is measurably healthier than it ever was on the NSS build: both 5 GHz radios serve clients, the wired side is offloaded through the PPE with the CPU close to idle, and temperatures sit well below the fan trip point.

On top of that, NetGrip gives it a simple web UI for day to day management, so checking clients, radios, channels or pending updates no longer means SSHing in and remembering UCI paths.


r/openwrt • • 4h ago

Where to find Zyxel EX5601-T0

2 Upvotes

Hello,
I'm looking to upgrade my OpenWRT router to the Zyxel EX5601-T0. I want to get the T0 model to be able to use a GPON SFP ONT (my ISP allowes me to do it, I already checked that), but it seems it's nowhere to be found. For people who have bought it, where did you find it ? I just want to precise that I live in Europe.


r/openwrt • • 1d ago

Hardware Mod: Upgrading my Cudy WR3000 NOR flash from 16MB to 64MB (OpenWrt + VLESS/AWG + Grafana monitoring

Thumbnail gallery
99 Upvotes

In a few photos, I’ll show how I replicated a hardware mod from a 4PDA forum member and upgraded the NOR flash on my budget Cudy WR3000 router from 16MB to 64MB.

This extra space allowed me to run VLESS and AmneziaWG (AWG) VPNs directly on the router (which is super relevant for bypassing restrictions in Russia and China), as well as forward metrics and logs to an external monitoring server (logger + stunnel + Grafana Alloy + Loki + Grafana).

Next up, I plan to set up log collection for LuCI and SSH logins (including failed attempts), Wi-Fi connection attempts, and bandwidth utilization metrics for WAN, LAN, and Wi-Fi—broken down per client and more.


r/openwrt • • 1d ago

I got OpenWrt on the HH4000 (Bell Home Hub 4000)

Thumbnail gallery
72 Upvotes

Yeah, so I got the HH4000 for free from someone and wanted to use it for my homelab. Naturally, I searched for OpenWrt, and no one's done it! Some guy may have gotten temporary root at one point, but nothing came of it as far as I could find. So I decided to do it instead.

GitHub: https://github.com/rikka-chunibyo/HH4000-OpenWrt

Just keep in mind, this is very experimental. Works great for me, but that doesn't mean it'll work for everyone or even that it's stable. Also, PON has not been implemented. Drivers are present if anyone wants to make a PR with working PON, but I don't actually use Bell so I had nothing to test PON with. If you are looking for PON bypass, this isn't there yet, but it may greatly help in researching Bell's PON stack, as you can extract PON firmware and drivers through this. I imagine adding PON support wouldn't be that hard if you actually have Bell. Currently it works great as an extra router though!

The bootloaders

BEFORE ANYTHING: Note that reflashing bootloaders is risky. Depending on which stage fails, it could be as simple as a backup bootloader taking over, or as bad as needing to restore the flash with external hardware.

The HH4000 uses 3 bootloaders (kinda). The first one is nothing special, but the second and third ones have signature verification. What a pain. There's also a bug in the installed version of U-Boot where it selects the "nowhere" environment backend and falls back to the default environment instead of loading the saved variables. This means permanent root just isn't feasible through the normal boot configuration (as far as I can tell). The solution was to patch the second and third bootloaders.

Getting OpenWrt running

After reflashing the bootloaders, you can modify both the userspace of the stock OS and the kernel.

I considered using a newer kernel, but Sagemcom's hardware is very proprietary. Doing so would mean either creating compatibility layers for the existing proprietary drivers or reverse-engineering and porting a significant portion of Broadcom's platform-specific code. Neither sounded particularly fun, and maintaining it would be another project in itself.

Instead, I decided to keep the stock kernel, retain the original drivers, and adapt OpenWrt userspace to work with them. Obviously, running an older kernel has its disadvantages, particularly regarding security and long-term maintainability, but my initial goal was to get a functional OpenWrt system running on hardware that otherwise had no publicly available port.

I also made an integration for LuCI that allows you to script the display/front panel with Python.

This project made extensive use of AI coding agents. However, even AI needed to be pointed in the right direction throughout the process. Plus, there's the hardware side of things: opening up the router, soldering to the UART pads, and creating a custom Arduino shield with a voltage divider (5V TX to 3.3V RX) and a relay so Codex could control the router's power by itself.

The Arduino shield

Originally, I was going to use a USB-to-TTL board, but it died a while ago and I simply forgot. When I realized it was dead, I programmed an Arduino Mega to act as one.

I measured the HH4000's TX pin, which read 3.3V. The Arduino Mega uses 5V logic, so I simply made a voltage divider with a 1kΩ and 2kΩ resistor on a tiny breadboard to bring the Arduino's TX voltage down to 3.3V.

It was pretty messy, and I had to control the power to the router myself, which sucked whenever Codex requested a reboot (I was only testing temporary root at that point). Eventually, I added a relay because I was getting fed up with manually replugging the router every few minutes.

The setup was still messy, and I wanted an easy way to control the router's power whenever I was working on it myself. I decided to solder everything onto an Arduino prototyping shield to make it a more permanent solution.

It's a simple circuit, containing just a voltage divider, a relay, a button, and a diode. Technically, you shouldn't drive a relay directly from GPIO, and I'd probably add a proper relay driver and flyback diode if I were making it again. Since I used NC on the relay, it only needed to be activated for a few seconds at a time to power-cycle the router.

For some reason, I decided to implement the button entirely in hardware instead of through the Arduino firmware. The button supplies 5V directly to the relay coil, while a diode between the Arduino's control pin and the relay coil prevents backfeeding into the GPIO pin when the button is pressed. This allows both the Arduino and the physical button to independently control the router's power. Yeah, idk why I did it in hardware, but it works.

The Arduino's firmware allows for direct UART communication, as well as control over the router's power. I also inverted the relay controls because I used the NC (normally closed) terminal, meaning the router stays powered by default. This was done to prevent the router from unnecessarily restarting whenever I reflashed the Arduino.

With this setup, Codex could interact with the router's serial console, interrupt the boot process, execute commands, power-cycle the router, and inspect the resulting boot logs without requiring me to manually intervene every few minutes.

Oh btw here are what the pins are:

T11 - PWR - leave disconnected

T9 - Router RX

T10 - Router TX

T13 - GND

RX/TX have 3.3V logic. UART at 115200 (8N1).

UART jig if you don't want to open up the HH4000 and solder (risk of cracking the display to reach a hidden screw behind it to get easier access to the pins).

Someone has to play Doom and Bad Apple on the display now 💀

SIDE NOTE: There is a possibility of Z-Wave support! This guy has documented the hardware very well. From that, I found this image! It seems Bell completely disables the Z-Wave antenna in their software, but looks like we could possibly get the drivers for it working if present, and set up a Docker container for Home Assistant on the router. I don't know if the antenna is actually present on retail units, and I also don't have any devices that support Z-Wave so I can't do anything with that at the moment. PRs are welcome, and if I ever get a Z-Wave device, I will attempt to get it working if a PR hasn't already been made (and if it's even present).

HostnameHH4000-OpenWrt
ModelSagemcom FAST5689 (HH4000)
ArchitectureARMv8 Processor rev 0
Target Platformarmsr/armv8
Firmware VersionOpenWrt 24.10.4 r28959-29397011cc / LuCI openwrt-24.10 branch 25.292.66247~75e41cb
Kernel Version4.1.52-5.02L.07

I originally posted here.

If anyone knows whether releasing the raw firmware dumps and also my version of the firmware can screw me over, please let me know. I've held off on releasing it for now, so it has to be dumped once then built for each install. Thanks!


r/openwrt • • 1d ago

Somebody got OpenWRT running on a Bell Home Hub

Thumbnail reddit.com
3 Upvotes

r/openwrt • • 1d ago

adblock-lean-plus: a lighter AdGuard Home replacement for OpenWrt (1.4M domains in ~115 MB RAM, LuCI, DoH)

37 Upvotes

I took two projects, adblock-lean (dnsmasq-based blocking) and the community LuCI app for it, merged them, fixed a few bugs and added what I was missing from AdGuard Home. For my use the result works better than AdGuard Home, mostly because of memory.

Repo: https://github.com/d1-m4ss/adblock-lean-plus

What it adds

  • Uses lists in AdGuard syntax directly (AdGuard DNS filter, popup hosts, AdGuard's list catalog), exceptions included
  • Optional filtering from the first second after a reboot
  • Scripts and settings are registered to be kept by sysupgrade
  • LuCI pages: subscriptions you can switch off, status, memory use, backup/import
  • Three DoH upstreams; the DNS settings are rolled back if DNS stops working
  • One command to install, one to update, one to uninstall
  • A few upstream parsing bugs fixed (BOM, header lines, NRD/DGA lists)

Numbers (GL.iNet Flint 2, 1 GB RAM, OpenWrt 25.12)

Same seven blocklists in both:

AdGuard Homeadblock-lean-plus
Memory162–244 MB~52 MB
Cached answer, median3 ms2 ms
Blocked domain, median3–4 ms2 ms
2,011 test domainsreferenceidentical result

Memory is AdGuard Home 1.0.0; latencies come from runs of 0.107.80 and 1.0.0.

In daily use with 1.4M domains (including the full HaGeZi threat list): about 113 MB for DNS, blocking and DoH together, 686 MB still available. A full list update takes about 45 seconds with the optional GNU gawk/sed/sort, about 1.5 minutes without.

What you give up

No query log, no statistics, no per-client rules. If you need those, stay with AdGuard Home.

Install (on the router)

wget -qO /tmp/get.sh https://raw.githubusercontent.com/d1-m4ss/adblock-lean-plus/main/get.sh && sh /tmp/get.sh

The installer looks at the router, asks about each part, shows the plan and changes nothing before you confirm.

Status: tested only on my own router (Flint 2, OpenWrt 25.12, apk). Older releases, opkg and a real firmware upgrade are untested, so keep a backup. Much of the code was written with an AI assistant; I tested install, update, uninstall and restore on real hardware.

Credits

All credit for the building blocks goes to:

This project is GPL-2.0. Blocklists keep their own licences.

Feedback and bug reports are welcome, especially from other routers.


r/openwrt • • 1d ago

Adtran SDG-8612 Router: Stalled boot and no shell access

Thumbnail gallery
1 Upvotes

Hi all - complete newb here playing around with some networking stuff and hardware hacking, doing my best to learn.

**boot log images attached!!**

I've got an Adtran SDG-8612 router leftover from a couple moves ago. I'm trying to flash it with the current stable OpenWRT (following openwrt's hardware-specific documentation) release via TFTP, but I'm getting stuck in the boot sequence and all my internet troubleshooting is leading me in circles. Laptop is connected to device UART via USB to TTL cable.

What's happening:

connect devices via USB/TTL cable

power on router

boot sequence starts right away

unable to interrupt bootloader with 'st' as per openwrt documentation

"Starting kernel ..." message

boot log stops at "Moving boot and FLASH mounts".

If I leave it untouched for long enough it reboots on its own and stalls out at the same place again.

I've looked into glitching the flash, but am hoping I'm just glazing over something obvious before digging into figuring out how to do that.

Looking for advice/insight as to what's going wrong, whether it's fixable, and how to fix it.

Any/all help is greatly appreciated!


r/openwrt • • 2d ago

Running line-rate OpenWrt on MediaTek Filogic 830 with 5G Standalone WAN, 464XLAT CLAT & IMS Voice

3 Upvotes

Hi everyone,

Sharing our implementation for running OpenWrt on the Sercomm JIDU6401 (MediaTek Filogic 830 MT7986) on an ISP-locked 5G Standalone (SA) connection (Reliance Jio AirFiber).

Over the past few weeks, we did a deep dive into reverse-engineering the Jio AirFiber 5G setup (Sercomm JIDU6401 / MediaTek Filogic 830 MT7986) to make OpenWrt work with line-rate dual-stack performance and voice telephony.

If you flash vanilla OpenWrt onto this hardware, you will notice that internet does not work out-of-the-box. Here is why and how we solved it:

  1. VLAN 1015 Requirement: Untagged WAN only handles ODU TR-069 management. Public internet strictly requires 802.1Q tagged VLAN 1015.
  2. Factory WAN MAC: Jio's 5G BNG binds your session to the factory WAN MAC on the router's bottom sticker.
  3. 464XLAT CLAT: Jio 5G SA is pure IPv6 with no DHCPv4 on the WAN. We set up RFC 6877 464XLAT (using Jio's NAT64 prefix 64:ff9b::/96) to restore full IPv4 connectivity (games, banking, legacy servers).
  4. MediaTek WED Offloading: Line-rate 1 Gbps+ throughput at <2% CPU utilization using hardware flow offloading.
  5. Landline Telephony (VLAN 406): Voice is routed over dedicated VLAN 406, enabling calls on home Wi-Fi via the official JioJoin app, standard SIP softphones, or a cloud Asterisk PBX.

We published everything open-source with 1-line automated installers and manual SSH guides:
• Master Handbook: https://github.com/marufagul/unlock-jio-router
• 5G WAN & Wi-Fi Engine: https://github.com/marufagul/jio-airfiber-openwrt-5g-wan• Local Voice Gateway: https://github.com/marufagul/openwrt-jiofiber-voice-lan• Global Asterisk PBX: https://github.com/marufagul/jiofiber-asterisk-global-pbx

Hope this helps anyone dealing with pure IPv6 cellular ISPs or MediaTek Filogic hardware!

Tested and working on OpenWrt 23.05, 24.10, and 25.x SNAPSHOT. Feedback and contributions are welcome!


r/openwrt • • 3d ago

uapi: v4, an MCP server for AI agents, and a package PR for OpenWrt

6 Upvotes

Three months ago I posted uapi 3.0 here.

uapi is a REST API for OpenWrt. It runs as a uhttpd-mod-ucode handler and maps HTTP to ubus and uci, with no extra daemon.

I recently released new major v4 which targets next OpenWRT major release. It is also compatible with current snapshot.

What changed in v4:

  • A read gives the value that netifd, fw4, dnsmasq, wifi-scripts or mwan3 applies, and each field reads one type. For example, the disabled option of an interface reads true for a stored true, as netifd reads it.
  • A write is refused while its section holds a value that the daemon refuses, as LuCI refuses a save. A stored value that the daemon accepts does not block a write.
  • The API moves to /api/v4. The endpoints of uapi itself move under /uapi/: tokens, batch, metrics and diagnostics. POST /batch is now POST /uapi/batch.
  • On OpenWrt main, the openvpn package runs a tunnel as a netifd protocol. So openvpn becomes a proto of network/interfaces.
  • dhcp/leases gives the DHCPv4 and the DHCPv6 leases, and reads the DHCPv6 leases from odhcpd over ubus.
  • sqm/queues models the options of the LuCI SQM form.
  • POST /uapi/services/{name}/recover starts a service again after procd gave up on it.

These are breaking changes. The migration guide lists each change and what a client must do: https://github.com/openwrt-iac/uapi/blob/main/docs/migration-v3-to-v4.md

The current version is 4.0.1.

Why 4.x needs OpenWrt main:

On OpenWrt main, netifd accepts true for the disabled option of an interface. The netifd of 25.12 does not. uapi 4.x reads that option the way the netifd of main reads it, so the package depends on netifd 2026.07.17 or later. Today that means snapshots. The next stable release, cut from main, will have it too.

On 25.12, the feed keeps 3.5.0. Install it with apk add 'uapi<4'. apk does not fall back to an older version on its own, so a plain apk add uapi fails there.

The provider follows the same major. Version 4.0.0 is on both registries, under the same name, openwrt-iac/uapi. Its endpoint now ends with /api/v4.

terraform {
  required_providers {
    uapi = {
      source  = "openwrt-iac/uapi"
      version = "~> 4.0"
    }
  }
}

The new member of the family: uapi-mcp

uapi-mcp is an MCP server. It lets an AI agent, such as Claude Code or OpenCode, read and change a router through uapi.

  • It has one tool per endpoint and method, 258 in all. A generator makes them from the OpenAPI specification of uapi, so the tools follow the API.
  • It does not expose /raw/. Raw payloads use the option names of uci and have no stability promise across OpenWrt releases.
  • A write returns what uci holds now, with the X-Reload-* and X-Kernel-* headers of uapi. If a write leaves a daemon down, the agent sees it, and the instructions of the server tell it what to do.
  • An error returns the error envelope of uapi field by field, so the agent can correct all fields in one round trip.
  • It is one Go binary for Linux, macOS, Windows and FreeBSD. It reads three environment variables: UAPI_ENDPOINT, UAPI_TOKEN and UAPI_INSECURE.

Give it a token with only the scopes that the agent needs. uapi-token create --name agent --scope '*:ro' makes a token that can read and cannot write. uapi-mcp 4.x needs uapi 4.x. For a router on 3.5.0, use uapi-mcp 3.5.

uapi in OpenWrt:

I opened a PR to add uapi to openwrt/packages and one to add luci-app-uapi to openwrt/luci. A packages maintainer tested an earlier version with good results, and the PR now carries 4.0.1. It is not merged yet, but I expect uapi to be in the official feed of the next stable release. Then apk add uapi will work with no third-party feed and no extra key.

4.x will be the first major of uapi in the official feed. From there, I will maintain the major of uapi that each supported OpenWrt release carries.

To install it on your router now:

Requirements: OpenWrt main for 4.x, or OpenWrt 25.12 for 3.5.0. The package is architecture independent.

uclient-fetch -qO /etc/apk/keys/uapi-feed.pub.pem \
    https://openwrt-iac.github.io/feed/uapi-feed.pub.pem
echo 'https://openwrt-iac.github.io/feed/packages/all/uapi/packages.adb' \
    > /etc/apk/repositories.d/uapi.list
apk update
apk upgrade uhttpd uhttpd-mod-ubus uhttpd-mod-ucode uhttpd-mod-lua
apk add uapi        # OpenWrt main
apk add 'uapi<4'    # OpenWrt 25.12

uhttpd and its plugins must come from the same build, and the package feed of OpenWrt is newer than the image. This is why the apk upgrade line is there. luci-app-uapi is in the same feed.

Source and documentation: https://github.com/openwrt-iac/uapi

Thanks for your attention.


r/openwrt • • 2d ago

[Help] Porting OpenWrt to JH1200 V1.2 (MT7621AT + MT7603EN + MT7612EN / Tomate MWI-008 / OPTFOCUS OFS-DR1200A) — looking for OEM root SSH/Telnet credentials or stock firmware

1 Upvotes

Hi everyone,

I'm working on porting mainline OpenWrt to my Tomate MWI-008 router (an OEM white-label board that appears to be identical to the OPTFOCUS OFS-DR1200A / Ausek JH1200 — FCC ID 2BCMP-JH1200, OEM likely Huizhou Guangshijia Communication Technology).

Confirmed hardware (from opening the unit)

  • Board silkscreen: JH1200 V1.2
  • SoC: MediaTek MT7621AT (MIPS 1004Kc, dual-core 880 MHz)
  • 2.4 GHz Wi-Fi: MediaTek MT7603EN
  • 5 GHz Wi-Fi: MediaTek MT7612EN
  • RAM: Nanya NT5CC64M16 (likely 128 MB DDR3L, still to be confirmed)
  • Ports: 4× LAN + 1× WAN (Gigabit)
  • UART: Unpopulated 4-pin header J4 clearly labeled 3.3V | RX | GND | TX

Stock firmware findings (over Ethernet)

  • Admin IP / Domain: 192.168.10.1 / home.to
  • Hostname: DGR4E
  • Firmware version: 20260326_b6babe4b
  • Web UI: Customized LuCI (dynaform) with Phicomm / LeeHome / LeeWiFi references (/luci-static/images/phicomm.png, leehome.com, POST /data API). No SSH toggle or config export in the UI.
  • Open ports:

    • 22/tcp: SSH-2.0-dropbear_2014.63 (OpenWrt 14.07/15.05 era)
    • 23/tcp: Telnet with stock OpenWrt banner (Use 'passwd' to set your login password / DGR4E login:)
    • 53/tcp, 80/tcp

What I already tested

  • Web admin password and blank password are rejected on SSH/Telnet (root password is clearly separate from the web UI password, likely a fixed OEM default).
  • OpenWrt Failsafe and bootloader Ethernet recovery: did a full L2 packet capture on Ethernet during both normal boot and power-on holding RESET (5s). Zero UDP 4919 broadcasts, zero TFTP/ARP recovery packets — the router stays completely silent at L2 until normal Linux comes up on 192.168.10.1.

What I'm looking for

Before ordering a 3.3V USB-TTL adapter to hook up to J4:

  1. Does anyone recognize this Phicomm / LeeHome / DGR4E / JH1200 OEM firmware and know the factory default SSH/Telnet root password?
  2. Does anyone have a stock firmware .bin, flash dump, or MTD layout for the JH1200 V1.2 / OFS-DR1200A?
  3. Any known OpenWrt device with a very close layout (so far huasifei,ws1208v2 looks like the closest MT7621AT + MT7603EN + MT7612EN reference)?

I want to dump the full stock flash (including Wi-Fi calibration/EEPROM) before attempting any initramfs test. Thanks in advance!


r/openwrt • • 4d ago

Fixed the Aliexpress Router and Opensourced the UI - AW1000 Ultra 5G Modem

Thumbnail github.com
76 Upvotes

Hey All, with the help of Opencode (AI) I have fixed the ui and added many tools to the popular AW1000 Ultra 5G Modem from Aliexpress

Live Demo of Router:

https://disclosurez.github.io/AW1000Ultra-OpenWRT/

Features:

WiFi 6
5G SIM Failover
OpenWRT
1x 2.5gb WAN/LAN port
4x 1gb LAN port
2GB RAM
32GB SSD

Features I Added:

Cleaner Easier to understand and use UI
Descriptions on configuration
Simple WiFi Setup
Cloudflare DDNS
Cloudflare Tunnels
SIM Failover
Guest Wifi LAN
Captive Portal
Parental Control
DNS Logging
SIEM Integration
Inbuilt Opencode UI
Inbuilt Webproxy
VPN Split Tunneling
Wireguard Implementation

I use this router as my main router for the past 2 weeks, I am using WAN via my ISP and then using the SIM card installed as a failover (automatically) to maintain internet access.

This is A practical customisation for the AW1000_Ultra 5G CPE running the vendor MediaTek OpenWrt 19.07.7 firmware: a cleaner LuCI console, guest Wi-Fi with a captive portal, parental controls, DNS and service logs, ISP/5G failover, and optional Cloudflare, SIEM and on-router tools.

https://github.com/disclosurez/AW1000Ultra-OpenWRT/

https://www.aliexpress.com/item/1005012788735244.html?spm=a2g0o.order_list.order_list_main.57.21ef1802xapy1X

Hope this can help someone.


r/openwrt • • 4d ago

Update: Mbed TLS maintenance to continue beyond April 2027, led by Linaro, with help from NXP and Espressif.

Thumbnail lists.trustedfirmware.org
72 Upvotes

r/openwrt • • 4d ago

OpenWRT router as Wireless AP and WAN connection

2 Upvotes

I have a 4G OpenWRT router (ZTE MF289F) connected with an ethernet cable to a LAN port of a FritzBox 7590. The ZTE is used as the main router, and the FritzBox is in the same subnet (connected to a LAN port) to have a working analog phone connected to the RJ11 port.

Now, I'd like to use the FritzBox as my main router, and use the ZTE just to provide Internet connection and act as a Wireless AP. For this, I'd connect the ZTE to the WAN (instead of a LAN) port of the FritzBox.

With this configuration, If I connect my smartphone to the ZTE WiFi, could I see the devices connected to the FritzBox LAN?

Now, my config is this:

ZTE MF289F:

- IP address: 192.168.1.1;

- DHCP: enabled (from 192.168.1.100 to 192.168.1.150):

FritzBox 7590:

- IP address: 192.168.1.250 (static).

- DHCP; disabled.


r/openwrt • • 5d ago

Make AdGuardHome retain static leases?

2 Upvotes

Hello,

I have disabled dnsmasq and instead installed adguardhome on my openwrt (I am using ext4 instead of squashfs)

For some reason, it cannot retain static leases. Every time it reboots the static leases are gone.

Is there a solution for this? I don't even know if it's openwrt or adguard problem.

Openwrt stores all adguardhome config /var/lib/adguardhome/data including the leases.


r/openwrt • • 5d ago

Ubiquiti UAP-AC-M with UMA-D external antenna on OpenWrt: Does it work out of the box or need special settings?

1 Upvotes

I have a Ubiquiti UAP-AC-M paired with the external UMA-D directional antenna.

On the stock UniFi firmware, simply attaching the UMA-D to the RP-SMA connectors isn't enough,you have to explicitly enable the UMA-D antenna option in the controller settings, otherwise it behaves as if only the default small antennas are connected.

I'm planning to install OpenWrt on this UAP-AC-M, and I want to make sure before proceeding:

  1. Once OpenWrt is installed, does the UMA-D antenna work immediately through the RP-SMA ports without any special switch?
  2. Is there any specific configuration needed in OpenWrt (such as setting the Antenna Gain for 2.4GHz and 5GHz) to get proper TX power and full performance from the UMA-D?
  3. Has anyone here actually run a UAP-AC-M + UMA-D setup on OpenWrt? Any issues with signal or stability?

Thanks in advance!


r/openwrt • • 6d ago

Need help with vlan on openwrt

Post image
45 Upvotes

Solved! My config for vlan interfaces were incomplete, I've add the required ones and it's working now

Hi!

My setup is as you see in the picture.

ISP router - Tp-Link Archer BE3600

Main router - mikrotik RB750Gr3

Managed switch - Tp-Link TL-SG2210P V5

AP - Tp-Link Archer C6 with Openwrt

I turned AP into a dumb AP, by disabling DHCP, NAT, etc

So this is what I want it to do

I have vlan 30 for main wireless and 40 for guest wireless. I intend to bind vlan30 to 5ghz ssid(main), vlan40 to 2.4ghz ssid(guest).

the firmware version and the hardware has no DSA, so only legacy method.

I have configured the port to the switch, to be trunk(30,40,99), as well as on the switch side. I also have bind the desire vlan on ssid

but it's not working, I don't know why

I have setup the AP's IP to be of vlan 99.


r/openwrt • • 6d ago

Ubiquiti UAP-AC-M with UMA-D external antenna on OpenWrt: Does it work immediately or need special settings?

Thumbnail gallery
6 Upvotes

I have a Ubiquiti UAP-AC-M paired with the external UMA-D directional antenna.

On the stock UniFi firmware, simply attaching the UMA-D to the RP-SMA connectors isn't enough, you have to explicitly enable the UMA-D antenna option in the controller settings, otherwise it behaves as if only the default small antennas are connected.

I'm planning to install OpenWrt on this UAP-AC-M, and I want to make sure before proceeding:

  1. Once OpenWrt is installed, does the UMA-D antenna work immediately through the RP-SMA ports without any special switch?
  2. Is there any specific configuration needed in OpenWrt (such as setting the Antenna Gain for 2.4GHz and 5GHz) to get proper TX power and full performance from the UMA-D?
  3. Has anyone here actually run a UAP-AC-M + UMA-D setup on OpenWrt? Any issues with signal or stability?

Thanks in advance!


r/openwrt • • 6d ago

Having trouble with network config changes not applying properly - moving ports to another bridge via luci disables them?

2 Upvotes

As per title, I'm having difficulties with openwrt/luci not applying config changes properly :-

I configured a second bridge via LUCI and added WiFi APs and some LAN ports to it, but openwrt doesn't bring the LAN ports up or add them to the bridge after applying changes or rebooting - I have to ssh in and do that manually each time.

It also doesn't apply the gateway setting to the bridge's routing table and I have to do that manually too.

I've poked around in /etc/config/network but I didn't spot any obvious (to me) issues :-

root@OpenWrt:~# cat /etc/config/network
# [… irrelevant entries trimmed …]

config device
		option name 'br-lan'
		option type 'bridge'
		list ports 'lan1'
		option bridge_empty '1'

config interface 'lan'
		option device 'br-lan'
		option proto 'static'
		option ip6assign '60'
		option multipath 'off'
		list ipaddr '192.168.4.1/24'

# [… br-lan and lan1 work fine …]

config interface 'vpn'
		option proto 'static'
		option ipaddr '192.168.5.1'
		option netmask '255.255.255.0'
		option multipath 'off'
		option gateway '192.168.4.112'
		option ip4table 'vpn2lan'
		option type 'bridge'
		list dns '192.168.4.112'
		option device 'br-vpn'

config route
		option interface 'vpn'
		option target '0.0.0.0/0'
		option gateway '192.168.4.112'
		option table 'vpn2lan'

# [… default gateway is not added to vpn2lan table …]

config rule
		option in 'vpn'
		option lookup 'vpn2lan'

config device
		option type 'bridge'
		option name 'br-vpn'
		option bridge_empty '1'
		option ipv6 '0'
		list ports 'lan2'
		list ports 'lan3'
		list ports 'lan4'
		list ports 'lan5'

# [… lan2-5 are not brought up, and not added to br-vpn …]

(config generated by luci web interface, I haven't edited it manually)

and I can't find those LAN ports mentioned anywhere else in /etc other than the board definition/BSP :-

root@OpenWrt:~# grep -R 'lan[15]' /etc 2>/dev/null | grep -v board
/etc/config/network:    list ports 'lan1'
/etc/config/network:    list ports 'lan5'

After router reboot or applying any configuration changes, I need to manually ssh in and brctl addif br-vpn lan2..5; ip link set lan2..5 up; ip route add table vpn2lan default via 192.168.4.112 because openwrt's systems apparently don't do these steps even though as far as I can tell they should.

I'm familiar with linux networking in general (hence ability to manually fix misconfigurations), but not with how OpenWRT goes about doing things (thus unable to make the changes actually stick and be applied properly)

Where else should I be checking for relevant settings?
Is there somewhere I can temporarily put the commands to fix things that'll automatically get run after network config changes while poking at openwrt's system to do it properly?

Am I encountering some sort of bug here? It seems odd that moving ports to another bridge via web interface disables them, and there's no option in luci web interface to re-enable them…

Are any of these issues fixed in 25.12.6, making an upgrade likely to fix stuff? I didn't see anything relevant in the release notes or changelog

Model: GL.iNet GL-MT6000 Firmware Version: OpenWrt 25.12.5 r33051-f5dae5ece4 / LuCI (HEAD detached at 128a7812) branch 26.180.75667~128a781


r/openwrt • • 7d ago

How do regulatory updates work in openwrt?

10 Upvotes

Hi

Say this recently, and it got me thinking, how do any regulatory updates to allowed WiFi bands work on an open source project like this.

This time it's a loosening of the rules, but it's perfectly possible that they could get tightened, leaving users as criminals :)

I wouldn't mind the extra bands as well

https://www.ofcom.org.uk/spectrum/innovative-use-of-spectrum/consultation-expanding-access-to-the-6-ghz-band-for-commercial-mobile-and-wi-fi-services?utm_source=chatgpt.com


r/openwrt • • 8d ago

Flint 2 vs deco be65 with pi-hole

5 Upvotes

Im going to invest in a router for the first time. It is fibre 1000/1000 internet, 2 floor wooden structure house.

I found openwrt to be interesting but I lack knowledge. Maybe flint 2 with mt-3000 beryl's connected only by wifi to create a mesh or just flint 2 to start to see if it covers full house

Or

Use Raspberry pi 4 and do the pi-hole thing with deco be65 (black friday deal) and use 2 pack and second device would be connected to the pc because it does not have its own wifi receiver.

I just like linux and all the control and features. I hate when companies stop update products. Probably not big on vpn but maybe.

Is flint 2 worth it investing in 2027, is pi-hole good enough? Is deco a bad brand? Any input would be helpful!


r/openwrt • • 7d ago

Who are all those packages for?

0 Upvotes

I can't understand why anyone would need 99% of the packages, are they mostly for security hardening or what is their purpose? I looked through a lot of them and ended up installing like 5 that had obvious benefits but I don't get the other ones. If you use niche packages, what do you use them for? Are there any packages that you feel like people are missing out on?


r/openwrt • • 8d ago

Adguard home on a R6900 v2?

3 Upvotes

So I read that it uses alot of storage and can wear out the router memory if I try to squeeze it onto the onboard.

The router has a usb 3.0 port on it.
Should I figure out about using a usb for it, use an old Patriot Torq 2 64 gb usb 3 adapter ( It's in the parts drawer I know it's bad by today standards 😂 or should I just try out the lite ad block ?

I live in a mobile home and so would be work to try and mount and actual hard drive to the usb port.


r/openwrt • • 9d ago

I missed my Fritz!Box DECT integration so I patched it back

32 Upvotes

Disclaimer #1: I'm an actual developer, with ~20 years experience.

Disclaimer #2: yeah, I made it with an agentic coding enabled IDE, I actually work this way from something more than a year. It's not AI Slop, I know what it is doing, creating, writing, I can read and correct the output, I could have done without it but I did not care enough and not had this amount of spare time, so I never did it before.

Full story.

I have two Fritz!Fon DECT C5 phones. I love them, they are beautiful, have a snappy interface, large screen, and always worked better than my Grandstream cheap DECTs.

I have a full OpenWRT based network, 1x Banana Pi BpiR3 main router, 1x Fritz 7530, 1x Archer C7, 1x Zyxel AX3000. I felt the 7530 wasted after converting it to OpenWRT (mainly a dumb AP for DAWN).

So I fired a Claude Code chat and started looking around for decompilation projects for Fritz routers. I quickly come across to Rockstein2/FRITZ.Box_7530-08.25-kernel-4.4.271-telephony-re/ that sped up the initial process and starting from it I slowly added back more and more DECT functions to my 7530.

I set the path for the coding agent to use non invasive loading (no reflashing), LUCI meta package for big resources already available (like Asterisk) and slowly walked the path up that hill.

  • Currently working: DECT pairing, contacts, call history, outgoing SIP calls with audio, DTMF, router thermometer, English/Italian LuCI. Voicemail and C5 settings pass automated tests.
  • Not implemented: Fax, transfers/conferences, email forwarding, Internet apps, USB recording storage, DECT Eco and RF telemetry.
  • TODO: Physical verification of voicemail, C5 settings and alarms; real incoming SIP test; remaining advanced options.
  • Missing: Analog telephony (won't look into it, not interested actually), firmware flashing, Git repo (using proprietary AVM components ATM, will look into reverse engineering them in the future)

r/openwrt • • 9d ago

OpenWrt switch performance

12 Upvotes

Hi gang,

Just want to see how switching performance & stability compares to vendor firmwares. Looking to soon buy a PoE switch, primarily looking at D-Link switches, but also open to suggestions.

Thanks in advance