Skip to content

airoha: add support for Gemtek XR1710G - #26296

Merged
openwrt-bot merged 3 commits into
openwrt:mainfrom
akorshun:airoha-gemtek-xr1710g
Nov 24, 2026
Merged

openwrt-bot merged 3 commits into
openwrt:mainfrom
akorshun:airoha-gemtek-xr1710g

Conversation

@akorshun

@akorshun akorshun commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Gemtek XR1710G, sold by Brightspeed: Airoha AN7581, MT7996 (BE19000), 2x 10 GbE (RTL8261BE) + 2x 1 GbE.

This picks up #22397 by @hurrian, which has been inactive since April. The board uses the Gemtek W1700K "layout 2.0": the signed vendor bootloader stays, an OpenWrt U-Boot chainloader goes into the vendor chainloader partition (0x600000), everything else lives in UBI, and the vendor BMT pool at the end of flash is left alone. The hardware spec, UART pinout, install steps and MAC layout are in the device commit.

Commits:

  1. move the Gemtek W1700K DTS into a common dtsi: the XR1710G differs from the W1700K only in the switch PHY LEDs and the label MAC, so both boards share an7581-gemtek-common.dtsi. The W1700K DTB is unchanged apart from the wan_mac cell, two node names and the order of the red/white status LED nodes (now sorted by GPIO).
  2. uboot-airoha: add chainloader for Gemtek XR1710G: the W1700K configuration with the names changed, plus:
    • CONFIG_PINCTRL_AIROHA_AN7581 instead of CONFIG_PINCONF, so U-Boot sees the reset button and the status LEDs;
    • reset held while the chainloader starts boots the recovery image via TFTP from 192.168.1.254, so a unit can be recovered without a serial console;
    • the default entry runs boot_ubi: production, then the recovery volume, then TFTP until a server answers;
    • as on the Nokia boards, a ubi partition that does not attach is formatted, missing ubootenv, ubootenv2 and factory (static, empty) volumes are created and the environment is saved once, so fw_printenv/fw_setenv work (CONFIG_ENV_SIZE matches uboot-envtools, MMC is disabled so the first saveenv goes to UBI);
    • the installer entries of the W1700K are dropped.
  3. airoha: add support for Gemtek XR1710G: DTS, image and base-files. If factory is missing or has no valid EEPROM/MACs, sysupgrade rebuilds it from the vendor partition (MACs, fan_id and serial number from the DSD block, EEPROM with the 0x7990 magic) before writing the firmware. Nothing is written if the serial number does not match the board or the data looks wrong. This replaces the third-party UBI installer.

The W1700K itself is not changed apart from the DTS move: its U-Boot environment and installer are left for its owners to update and test.

Tested on a retail unit, with a build of this PR plus the out-of-tree PCS/PHY fixes listed under Known issues:

  • install from the stock firmware following the steps in the device commit: the vendor bootloader writes the chainloader and erases the stock UBI, the chainloader creates the volumes and saves its env, the TFTP recovery comes up with network (random MACs), sysupgrade fills factory byte-identical to the one the installer used to write, and the first boot has the real MACs and the Wi-Fi calibration
  • loading the chainloader with loady (YMODEM) instead of tftpboot in the vendor bootloader, the fallback the install steps mention for when its TFTP keeps failing
  • a zeroed ubi partition: the chainloader formats it and goes on as above
  • fw_printenv in the recovery and after sysupgrade, with no "Bad CRC"
  • sysupgrade between builds keeping the config, fit_check_image rejects a non-FIT file
  • reset button in the chainloader: TFTP recovery boot into RAM; without fit and recovery it keeps retrying TFTP
  • factory volume MACs on wan/lan and on the three radios; 2.4/5/6 GHz APs come up, MT7996 NPU offload firmware loads
  • fan control (NCT7802), status LEDs, lan3/lan4 PHY LEDs
  • wan at 2.5G with DHCP, lan2 at 5G, lan3/lan4 at 1G

@pameruoso also tested plain main + this PR with 10G link partners: wan and lan2 come up at 10G and 2.5G and survive replugs and warm reboots, and routed traffic with flow offloading reaches 9.37 Gbit/s from lan2 to wan.

Known issues

  • 10 GbE ports (wan, lan2): the link may not come up, or may drop. The AN7581 USXGMII PCS sometimes fails RX calibration (No FBCK Lock) against the RTL8261BE (also reported in airoha: add support for Gemtek XR1710G #22397). This is a platform PCS/PHY issue that affects every AN7581 board, not just this one, so the candidate fixes are not part of this PR: PCS RX calibration crossing search, USXGMII rate adaptation on link-up, and an RTL8261 SerDes re-patch after copper autonegotiation.
  • Offloaded traffic from wan to lan2 tops out at about 4.6 Gbit/s in @pameruoso's tests, while lan2 to wan runs at line rate. It is not specific to this board as far as I can tell and is being looked into.
  • Installation needs a serial console, as on the W1700K.
  • Reverting to the stock firmware is not documented.

The LED mode fix that this board's lan3/lan4 amber LEDs need goes in a separate PR: #26297.

🤖 Generated with Claude Code

@openwrt openwrt Bot added core packages pull request/issue for core (in-tree) packages target/airoha pull request/issue for airoha target labels Oct 29, 2026
@akorshun
akorshun force-pushed the airoha-gemtek-xr1710g branch from 9391832 to d04ed18 Compare October 29, 2026 10:12
@akorshun
akorshun force-pushed the airoha-gemtek-xr1710g branch from d04ed18 to d618778 Compare October 29, 2026 11:07
@akorshun
akorshun force-pushed the airoha-gemtek-xr1710g branch from d618778 to 026b57d Compare October 29, 2026 21:13
@akorshun
akorshun force-pushed the airoha-gemtek-xr1710g branch from 026b57d to 93b34d6 Compare October 29, 2026 21:55
@akorshun
akorshun requested a review from abajk October 30, 2026 11:18
@pameruoso

pameruoso commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

hi @akorshun I am giving this a try.

I am currently running this chainloader: https://github.com/YYH2913/http-uboot/releases/tag/xr1710g_260805
this image: https://github.com/YYH2913/openwrt/releases/tag/xr1710g_260831

after compiling main + this pull request, when flashing i get this warning related to v2.0 an 1.0 ubi.
image

can you advise on what happens if one wants to switch to mainline openwrt in this case?

i have couple of 10gbit devices at home and wanted to give some feedback on 10gbit and 2,5gbit partner negotiation for these phys

@akorshun

Copy link
Copy Markdown
Contributor Author

can you advise on what happens if one wants to switch to mainline openwrt in this case?

It appears you are using an outdated partition layout. The main README file for the Http U-Boot bootloader (which u use) contains all the instructions for migrating to the new layout.

If you would like to test the stability of the 10Gbps link, please use this image, which includes the necessary fixes:
https://github.com/akorshun/openwrt/releases/tag/xr1710g-r8-kmods

I have also created a few small tools:

Please note that I have not tested these tools on the older partition layouts, so you may want to test them yourself.

@OpenWRT-fanboy

Copy link
Copy Markdown

Nice update to chainloader! Please send up PR for new functions for W1700k.

@akorshun
akorshun force-pushed the airoha-gemtek-xr1710g branch from 93b34d6 to bd61681 Compare October 30, 2026 22:07
@pameruoso

pameruoso commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

So, here are my tests with main + this pull request only.

bootlog:

root@OpenWrt:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.18.55 (pietro@fedora) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 14.4.0 toolchain-c0e63334e4) 14.4.0, GNU ld (GNU Binutils) 2.46.1) #0 SMP Fri Oct 30 11:33:01 2026
[    0.000000] Machine model: Gemtek XR1710G (UBI)
[    0.000000] earlycon: ns16550 at MMIO32 0x000000001fbf0000 (options '115200n8')
[    0.000000] printk: legacy bootconsole [ns16550] enabled
[    0.000000] OF: reserved mem: 0x0000000080000000..0x00000000801fffff (2048 KiB) nomap non-reusable atf@80000000
[    0.000000] OF: reserved mem: 0x0000000084000000..0x00000000849fffff (10240 KiB) nomap non-reusable npu-binary@84000000
[    0.000000] OF: reserved mem: 0x0000000087000000..0x0000000088ffffff (32768 KiB) nomap non-reusable qdma0-buf@87000000
[    0.000000] OF: reserved mem: 0x0000000089000000..0x0000000089ffffff (16384 KiB) nomap non-reusable qdma1-buf@89000000
[    0.000000] OF: reserved mem: 0x000000008a000000..0x000000008cbfffff (45056 KiB) nomap non-reusable npu-pkt@8a000000
[    0.000000] OF: reserved mem: 0x000000008cc00000..0x0000000090bfffff (65536 KiB) nomap non-reusable npu-txpkt@8cc00000
[    0.000000] OF: reserved mem: 0x0000000090c00000..0x0000000090c067ff (26 KiB) nomap non-reusable npu-txbufid@90c00000
[    0.000000] OF: reserved mem: 0x0000000090c06800..0x0000000090e067ff (2048 KiB) nomap non-reusable npu-ba@90c06800
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x00000000801fffff]
[    0.000000]   node   0: [mem 0x0000000080200000-0x0000000083ffffff]
[    0.000000]   node   0: [mem 0x0000000084000000-0x00000000849fffff]
[    0.000000]   node   0: [mem 0x0000000084a00000-0x0000000086ffffff]
[    0.000000]   node   0: [mem 0x0000000087000000-0x0000000090e05fff]
[    0.000000]   node   0: [mem 0x0000000090e07000-0x00000000ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000] On node 0, zone DMA: 1 pages in unavailable ranges
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 20 pages/cpu s43352 r8192 d30376 u81920
[    0.000000] pcpu-alloc: s43352 r8192 d30376 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GICv3 CPU interface
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: console=ttyS0,115200 earlycon ubi.block=0,fit root=/dev/fit0 rootwait
[    0.000000] printk: log buffer data + meta data: 131072 + 458752 = 589824 bytes
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] software IO TLB: SWIOTLB bounce buffer size adjusted to 2MB
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x00000000ff6cb000-0x00000000ff8cb000] (2MB)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 524287
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 256 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: GICD_CTLR.DS=0, SCR_EL3.FIQ=0
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000009080000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.000000] arch_timer: cp15 timer running at 25.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x5c40939b5, max_idle_ns: 440795202646 ns
[    0.000000] sched_clock: 56 bits at 25MHz, resolution 40ns, wraps every 4398046511100ns
[    0.008972] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.020353] pid_max: default: 32768 minimum: 301
[    0.028178] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.036314] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.051550] rcu: Hierarchical SRCU implementation.
[    0.056851] rcu:     Max phase no-delay instances is 1000.
[    0.062793] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.071997] smp: Bringing up secondary CPUs ...
[    0.077390] Detected VIPT I-cache on CPU1
[    0.077492] GICv3: CPU1: found redistributor 1 region 0:0x00000000090a0000
[    0.077527] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.078048] Detected VIPT I-cache on CPU2
[    0.078141] GICv3: CPU2: found redistributor 2 region 0:0x00000000090c0000
[    0.078170] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.078677] Detected VIPT I-cache on CPU3
[    0.078770] GICv3: CPU3: found redistributor 3 region 0:0x00000000090e0000
[    0.078796] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.078879] smp: Brought up 1 node, 4 CPUs
[    0.140693] SMP: Total of 4 processors activated.
[    0.145849] CPU: All CPU(s) started at EL2
[    0.150343] CPU features: detected: 32-bit EL0 Support
[    0.155981] CPU features: detected: CRC32 instructions
[    0.161659] alternatives: applying system-wide alternatives
[    0.167921] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.177684] Memory: 1864272K/2097148K available (8704K kernel code, 824K rwdata, 2440K rodata, 448K init, 285K bss, 229212K reserved, 0K cma-reserved)
[    0.197416] posixtimers hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.205644] futex hash table entries: 1024 (65536 bytes on 1 NUMA nodes, total 64 KiB, linear).
[    0.215270] 29552 pages in range for non-PLT usage
[    0.215275] 521072 pages in range for PLT usage
[    0.222119] pinctrl core: initialized pinctrl subsystem
[    0.234444] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.241374] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.249197] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.257728] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.266718] thermal_sys: Registered thermal governor 'step_wise'
[    0.266813] ASID allocator initialised with 65536 entries
[    0.281525] /soc/interrupt-controller@9000000: Fixed dependency cycle(s) with /soc/interrupt-controller@9000000
[    0.295058] /soc/pcie@1fc00000: Fixed dependency cycle(s) with /soc/pcie@1fc00000/interrupt-controller
[    0.305519] /soc/pcie@1fc40000: Fixed dependency cycle(s) with /soc/pcie@1fc40000/interrupt-controller
[    0.332365] clocksource: Switched to clocksource arch_sys_counter
[    0.341967] NET: Registered PF_INET protocol family
[    0.347508] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.357985] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.367396] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.375922] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.384732] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[    0.393268] TCP: Hash tables configured (established 16384 bind 16384)
[    0.400792] MPTCP token hash table entries: 2048 (order: 4, 49152 bytes, linear)
[    0.409142] UDP hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.416583] UDP-Lite hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.424922] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.431174] PCI: CLS 0 bytes, default 64
[    0.436970] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.449967] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.456395] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.473287] Serial: 8250/16550 driver, 5 ports, IRQ sharing enabled
[    0.473521] mtk-pcie-gen3 1fc00000.pcie: host bridge /soc/pcie@1fc00000 ranges:
[    0.473521] mtk-pcie-gen3 1fc40000.pcie: host bridge /soc/pcie@1fc40000 ranges:
[    0.473559] mtk-pcie-gen3 1fc00000.pcie:      MEM 0x0020000000..0x0023ffffff -> 0x0020000000
[    0.481358] printk: legacy console [ttyS0] disabled
[    0.488265] mtk-pcie-gen3 1fc40000.pcie:      MEM 0x0028000000..0x002bffffff -> 0x0028000000
[    0.520238] 1fbf0000.serial: ttyS0 at MMIO 0x1fbf0000 (irq = 15, base_baud = 115200) is a 16550
[    0.529856] printk: legacy console [ttyS0] enabled
[    0.539913] printk: legacy bootconsole [ns16550] disabled
[    0.552930] random: crng init done
[    0.558163] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.563545] spi-nand spi0.0: 512 MiB, block size: 128 KiB, page size: 2048, OOB size: 128
[    0.572217] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.578864] Creating 4 MTD partitions on "spi0.0":
[    0.583689] 0x000000000000-0x000000600000 : "vendor"
[    0.601250] 0x000000600000-0x000000700000 : "chainloader"
[    0.609358] 0x000000700000-0x00001be00000 : "ubi"
[    0.859796] mtk-pcie-gen3 1fc40000.pcie: PCI host bridge to bus 0002:00
[    0.866445] pci_bus 0002:00: root bus resource [bus 00-ff]
[    0.871938] pci_bus 0002:00: root bus resource [mem 0x28000000-0x2bffffff]
[    0.878848] pci 0002:00:00.0: [14c3:6899] type 01 class 0x060400 PCIe Root Port
[    0.886169] pci 0002:00:00.0: BAR 0 [mem 0x00000000-0x00007fff 64bit]
[    0.892620] pci 0002:00:00.0: PCI bridge to [bus 00]
[    0.897589] pci 0002:00:00.0:   bridge window [io  0x0000-0x0fff]
[    0.903685] pci 0002:00:00.0:   bridge window [mem 0x00000000-0x000fffff]
[    0.910472] pci 0002:00:00.0:   bridge window [mem 0x00000000-0x000fffff 64bit pref]
[    0.918251] pci 0002:00:00.0: PME# supported from D0 D3hot D3cold
[    0.925953] pci 0002:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.934101] pci 0002:01:00.0: [14c3:7991] type 00 class 0x028000 PCIe Endpoint
[    0.941372] pci 0002:01:00.0: BAR 0 [mem 0x00000000-0x001fffff 64bit pref]
[    0.948260] pci 0002:01:00.0: BAR 2 [mem 0x00000000-0x00007fff 64bit]
[    0.954812] pci 0002:01:00.0: PME# supported from D0 D3hot D3cold
[    0.960964] pci 0002:01:00.0: 4.000 Gb/s available PCIe bandwidth, limited by 5.0 GT/s PCIe x1 link at 0002:00:00.0 (capable of 15.752 Gb/s with 8.0 GT/s PCIe x2 link)
[    0.992385] pci 0002:01:00.0: ASPM: default states L0s L1
[    0.997825] pci_bus 0002:01: busn_res: [bus 01-ff] end is updated to 01
[    1.004474] pci 0002:00:00.0: bridge window [mem 0x28000000-0x281fffff 64bit pref]: assigned
[    1.012924] pci 0002:00:00.0: bridge window [mem 0x28200000-0x282fffff]: assigned
[    1.020409] pci 0002:00:00.0: BAR 0 [mem 0x28300000-0x28307fff 64bit]: assigned
[    1.027729] pci 0002:01:00.0: BAR 0 [mem 0x28000000-0x281fffff 64bit pref]: assigned
[    1.035482] pci 0002:01:00.0: BAR 2 [mem 0x28200000-0x28207fff 64bit]: assigned
[    1.042799] pci 0002:00:00.0: PCI bridge to [bus 01]
[    1.047761] pci 0002:00:00.0:   bridge window [mem 0x28200000-0x282fffff]
[    1.054555] pci 0002:00:00.0:   bridge window [mem 0x28000000-0x281fffff 64bit pref]
[    1.062302] pci_bus 0002:00: resource 4 [mem 0x28000000-0x2bffffff]
[    1.068572] pci_bus 0002:01: resource 1 [mem 0x28200000-0x282fffff]
[    1.074838] pci_bus 0002:01: resource 2 [mem 0x28000000-0x281fffff 64bit pref]
[    1.082245] pcieport 0002:00:00.0: enabling device (0000 -> 0002)
[    1.089857] pcieport 0002:00:00.0: PME: Signaling with IRQ 19
[    1.095949] pcieport 0002:00:00.0: AER: enabled with IRQ 19
[    1.500738] ubi0: attaching mtd2
[    1.822501] mtk-pcie-gen3 1fc00000.pcie: PCI host bridge to bus 0000:00
[    1.829132] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.834634] pci_bus 0000:00: root bus resource [mem 0x20000000-0x23ffffff]
[    1.841565] pci 0000:00:00.0: [14c3:6899] type 01 class 0x060400 PCIe Root Port
[    1.848900] pci 0000:00:00.0: BAR 0 [mem 0x00000000-0x00007fff 64bit]
[    1.855345] pci 0000:00:00.0: PCI bridge to [bus 00]
[    1.860306] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    1.866405] pci 0000:00:00.0:   bridge window [mem 0x00000000-0x000fffff]
[    1.873202] pci 0000:00:00.0:   bridge window [mem 0x00000000-0x000fffff 64bit pref]
[    1.880986] pci 0000:00:00.0: PME# supported from D0 D3hot D3cold
[    1.888737] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.896938] pci 0000:01:00.0: [14c3:7990] type 00 class 0x028000 PCIe Endpoint
[    1.904213] pci 0000:01:00.0: BAR 0 [mem 0x00000000-0x001fffff 64bit pref]
[    1.911096] pci 0000:01:00.0: BAR 2 [mem 0x00000000-0x00007fff 64bit]
[    1.917623] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    1.942385] pci 0000:01:00.0: ASPM: default states L0s L1
[    1.947833] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.954474] pci 0000:00:00.0: bridge window [mem 0x20000000-0x201fffff 64bit pref]: assigned
[    1.962916] pci 0000:00:00.0: bridge window [mem 0x20200000-0x202fffff]: assigned
[    1.970400] pci 0000:00:00.0: BAR 0 [mem 0x20300000-0x20307fff 64bit]: assigned
[    1.977723] pci 0000:01:00.0: BAR 0 [mem 0x20000000-0x201fffff 64bit pref]: assigned
[    1.985481] pci 0000:01:00.0: BAR 2 [mem 0x20200000-0x20207fff 64bit]: assigned
[    1.992798] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.997761] pci 0000:00:00.0:   bridge window [mem 0x20200000-0x202fffff]
[    2.004553] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x201fffff 64bit pref]
[    2.012293] pci_bus 0000:00: resource 4 [mem 0x20000000-0x23ffffff]
[    2.018563] pci_bus 0000:01: resource 1 [mem 0x20200000-0x202fffff]
[    2.024830] pci_bus 0000:01: resource 2 [mem 0x20000000-0x201fffff 64bit pref]
[    2.032236] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    2.039846] pcieport 0000:00:00.0: PME: Signaling with IRQ 22
[    2.045946] pcieport 0000:00:00.0: AER: enabled with IRQ 22
[    3.212284] ubi0: scanning is finished
[    3.263092] ubi0: attached mtd2 (name "ubi", size 439 MiB)
[    3.268613] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.275515] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.282299] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.289270] ubi0: good PEBs: 3512, bad PEBs: 0, corrupted PEBs: 0
[    3.295370] ubi0: user volume: 5, internal volumes: 1, max. volumes count: 128
[    3.302590] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
[    3.310936] ubi0: available PEBs: 0, total reserved PEBs: 3512, PEBs reserved for bad PEB handling: 80
[    3.320250] ubi0: background thread "ubi_bgt0d" started, PID 206
[    3.320748] block ubiblock0_0: created from ubi0:0(fit)
[    3.332399] 0x00001be00000-0x000020000000 : "reserved_bmt"
[    3.613847] i2c_dev: i2c /dev entries driver
[    3.618604] i2c-mt7621 1fbf8000.i2c0: clock 100 kHz
[    3.637159] cpufreq: cpufreq_policy_online: ->get() failed
[    3.642794] cpufreq: cpufreq_policy_online: ->get() failed
[    3.648401] cpufreq: cpufreq_policy_online: ->get() failed
[    3.653988] cpufreq: cpufreq_policy_online: ->get() failed
[    3.659512] cpufreq-dt cpufreq-dt: failed register driver: -19
[    3.666366] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    3.673181] airoha_eth 1fb50000.ethernet: Failed to create device link (0x180) with supplier 1fa10000.spi:nand@0:partitions:partition@700000:volumes:ubi-volume-factory:nvmem-layout for /soc/ethernet@1fb50000/ethernet@1
[    3.692649] airoha_eth 1fb50000.ethernet: Failed to create device link (0x180) with supplier 1fa10000.spi:nand@0:partitions:partition@700000:volumes:ubi-volume-factory:nvmem-layout for /soc/ethernet@1fb50000/ethernet@4
[    3.712062] airoha_eth 1fb50000.ethernet: Failed to create device link (0x180) with supplier 1fa10000.spi:nand@0:partitions:partition@700000:volumes:ubi-volume-factory:nvmem-layout for /soc/ethernet@1fb50000/ethernet@2
[    3.731826] NET: Registered PF_INET6 protocol family
[    3.738031] Segment Routing with IPv6
[    3.741734] In-situ OAM (IOAM) with IPv6
[    3.745767] NET: Registered PF_PACKET protocol family
[    3.751066] 8021q: 802.1Q VLAN Support v1.8
[    3.766909] FIT: Detected U-Boot 2026.07-00766-g53b73174c0fc
[    3.772608] FIT: Selected configuration: "config-1" (OpenWrt gemtek_xr1710g-ubi)
[    3.780013] FIT:           kernel sub-image 0x00001000..0x00568c94 "kernel-1" (ARM64 OpenWrt Linux-6.18.55)
[    3.790068] FIT:          flat_dt sub-image 0x00569000..0x00570394 "fdt-1" (ARM64 OpenWrt gemtek_xr1710g-ubi device tree blob)
[    3.801571] FIT:       filesystem sub-image 0x00571000..0x00d99fff "rootfs-1" (ARM64 OpenWrt gemtek_xr1710g-ubi rootfs)
[    3.812935] block ubiblock0_0: mapped 1 uImage.FIT filesystem sub-image as /dev/fit0
[    4.662629] mt7530-mmio 1fb58000.switch: configuring for fixed/internal link mode
[    4.670265] mt7530-mmio 1fb58000.switch lan3 (uninitialized): PHY [mt7530-0:09] driver [Airoha AN7581 PHY] (irq=48)
[    4.680773] mt7530-mmio 1fb58000.switch: Link is Up - 10Gbps/Full - flow control rx/tx
[    4.690066] mt7530-mmio 1fb58000.switch lan4 (uninitialized): PHY [mt7530-0:0a] driver [Airoha AN7581 PHY] (irq=49)
[    4.701842] airoha_eth 1fb50000.ethernet eth0: entered promiscuous mode
[    4.708583] DSA: tree 0 setup
[    4.713393] clk: Disabling unused clocks
[    4.717336] PM: genpd: Disabling unused power domains
[    4.722619] check access for rdinit=/init failed: -2, ignoring
[    4.732186] VFS: Mounted root (squashfs filesystem) readonly on device 259:0.
[    4.739533] Freeing unused kernel memory: 448K
[    4.744043] Run /sbin/init as init process
[    4.748133]   with arguments:
[    4.748136]     /sbin/init
[    4.748140]   with environment:
[    4.748143]     HOME=/
[    4.748147]     TERM=linux
[    5.055695] init: Console is alive
[    5.059240] init: - watchdog -
[    5.062337] init: WDT failed to set timeout 30s: Invalid argument
[    5.454659] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.488377] RTL8261BE 10Gbps PHY mt7530-0:05: PMA low-power suspend disabled
[    5.517728] RTL8261BE 10Gbps PHY mt7530-0:08: PMA low-power suspend disabled
[    5.537980] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    5.548687] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.563107] init: - preinit -
[    5.802521] airoha-npu 1e900000.npu: NPU fw version: 0.1111
[    5.919389] airoha_eth 1fb50000.ethernet tmp0: renamed from eth1
[    5.927791] airoha_eth 1fb50000.ethernet tmp1: renamed from eth2
[    5.936743] airoha_eth 1fb50000.ethernet wan: renamed from tmp0
[    5.944978] airoha_eth 1fb50000.ethernet lan2: renamed from tmp1
[    6.892414] airoha_eth 1fb50000.ethernet lan2: PHY [mt7530-0:05] driver [RTL8261BE 10Gbps PHY] (irq=POLL)
[    6.902108] airoha_eth 1fb50000.ethernet lan2: configuring for inband/usxgmii link mode
[   11.537804] airoha_eth 1fb50000.ethernet lan2: Link is Up - 2.5Gbps/Full - flow control rx/tx
[   11.544517] UBIFS (ubi0:4): Mounting in unauthenticated mode
[   11.552115] UBIFS (ubi0:4): background thread "ubifs_bgt0_4" started, PID 913
[   11.582749] UBIFS (ubi0:4): recovery needed
[   11.689758] UBIFS (ubi0:4): recovery completed
[   11.694301] UBIFS (ubi0:4): UBIFS: mounted UBI device 0, volume 4, name "rootfs_data"
[   11.702134] UBIFS (ubi0:4): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   11.712055] UBIFS (ubi0:4): FS size: 415592448 bytes (396 MiB, 3273 LEBs), max 3288 LEBs, journal size 20824064 bytes (19 MiB, 164 LEBs)
[   11.724317] UBIFS (ubi0:4): reserved for root: 4952683 bytes (4836 KiB)
[   11.730928] UBIFS (ubi0:4): media format: w5/r0 (latest is w5/r0), UUID 40890F7A-999D-4725-8A29-E7C6E0602AD3, small LPT model
[   11.747656] mount_root: switching to ubifs overlay
[   11.758275] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[   11.773434] urandom-seed: Seeding with /etc/urandom.seed
[   11.878698] airoha_eth 1fb50000.ethernet lan2: Link is Down
[   12.096541] procd: - early -
[   12.099507] procd: - watchdog -
[   12.102738] procd: WDT failed to set timeout 30s: Invalid argument
[   12.649374] procd: - watchdog -
[   12.653137] procd: - ubus -
[   12.707404] procd: - init -
[   13.207992] kmodloader: loading kernel modules from /etc/modules.d/*
[   13.245341] urngd: v1.0.2 started.
[   13.358559] Loading modules backported from Linux version v7.2-0-g8d3ae59288f1
[   13.365823] Backport generated by backports.git v5.15.58-1-198-g2580fa90cb79
[   13.458859] mt7996e_hif 0002:01:00.0: enabling device (0000 -> 0002)
[   13.465554] mt7996e 0000:01:00.0: enabling device (0000 -> 0002)
[   13.582899] mt7996e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20260721003041a
[   13.582899]
[   13.936257] mt7996e 0000:01:00.0: WM Firmware Version: ____000000, Build Time: 20260721003035
[   13.981668] mt7996e 0000:01:00.0: DSP Firmware Version: ____000000, Build Time: 20260721002848
[   14.063000] mt7996e 0000:01:00.0: WA Firmware Version: ____000000, Build Time: 20260721002917
[   14.505460] mt7996e 0000:01:00.0: NPU version: 0.1111
[   14.526153] mt7996e 0000:01:00.0: registering led 'mt76-phy0'
[   14.600612] PPP generic driver version 2.4.2
[   14.606569] NET: Registered PF_PPPOX protocol family
[   14.619945] kmodloader: done loading kernel modules from /etc/modules.d/*
[   18.292435] airoha_eth 1fb50000.ethernet lan2: PHY [mt7530-0:05] driver [RTL8261BE 10Gbps PHY] (irq=POLL)
[   18.302145] airoha_eth 1fb50000.ethernet lan2: configuring for inband/usxgmii link mode
[   18.764349] br-lan: port 1(lan2) entered blocking state
[   18.769596] br-lan: port 1(lan2) entered disabled state
[   18.774876] airoha_eth 1fb50000.ethernet lan2: entered allmulticast mode
[   18.781761] airoha_eth 1fb50000.ethernet lan2: entered promiscuous mode
[   18.797416] airoha_eth 1fb50000.ethernet eth0: configuring for fixed/internal link mode
[   18.808830] airoha_eth 1fb50000.ethernet eth0: Link is Up - 10Gbps/Full - flow control rx/tx
[   18.813049] mt7530-mmio 1fb58000.switch lan3: configuring for phy/internal link mode
[   18.827005] br-lan: port 2(lan3) entered blocking state
[   18.832255] br-lan: port 2(lan3) entered disabled state
[   18.837575] mt7530-mmio 1fb58000.switch lan3: entered allmulticast mode
[   18.844255] airoha_eth 1fb50000.ethernet eth0: entered allmulticast mode
[   18.851286] mt7530-mmio 1fb58000.switch lan3: entered promiscuous mode
[   18.860543] mt7530-mmio 1fb58000.switch lan4: configuring for phy/internal link mode
[   18.869390] br-lan: port 3(lan4) entered blocking state
[   18.874705] br-lan: port 3(lan4) entered disabled state
[   18.879977] mt7530-mmio 1fb58000.switch lan4: entered allmulticast mode
[   18.886960] mt7530-mmio 1fb58000.switch lan4: entered promiscuous mode
[   19.372389] airoha_eth 1fb50000.ethernet wan: PHY [mt7530-0:08] driver [RTL8261BE 10Gbps PHY] (irq=POLL)
[   19.381997] airoha_eth 1fb50000.ethernet wan: configuring for inband/usxgmii link mode
[   19.548324] br-lan: port 4(wan) entered blocking state
[   19.553535] br-lan: port 4(wan) entered disabled state
[   19.558719] airoha_eth 1fb50000.ethernet wan: entered allmulticast mode
[   19.565652] airoha_eth 1fb50000.ethernet wan: entered promiscuous mode
[   22.953363] airoha_eth 1fb50000.ethernet lan2: Link is Up - 2.5Gbps/Full - flow control rx/tx
[   32.041423] br-lan: port 1(lan2) entered blocking state
[   32.046723] br-lan: port 1(lan2) entered forwarding state

i tested plugging and replugging the cable in both 2,5 and 10gbit interfaces on my switch and with warm reboot i didn't get any pcs/phy detection issues.

root@OpenWrt:~# ethtool lan2
Settings for lan2:
        Supported ports: [  ]
        Supported link modes:   100baseT/Half 100baseT/Full
                                1000baseT/Full
                                10000baseT/Full
                                2500baseT/Full
                                5000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  100baseT/Half 100baseT/Full
                                1000baseT/Full
                                10000baseT/Full
                                2500baseT/Full
                                5000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
                                             2500baseT/Full
        Link partner advertised pause frame use: Symmetric
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 2500Mb/s
        Duplex: Full
        Auto-negotiation: on
        Port: Twisted Pair
        PHYAD: 5
        Transceiver: external
        MDI-X: Unknown
        Link detected: yes
root@OpenWrt:~# iperf3 -c 10.10.1.5 -R
Connecting to host 10.10.1.5, port 5201
Reverse mode, remote host 10.10.1.5 is sending
[  4] local 10.10.1.2 port 39188 connected to 10.10.1.5 port 5201
[ ID] Interval           Transfer     Bitrate
[  4]   0.00-1.00   sec   250 MBytes  2.09 Gbits/sec
[  4]   1.00-2.00   sec   250 MBytes  2.09 Gbits/sec
[  4]   2.00-3.00   sec   249 MBytes  2.09 Gbits/sec
[  4]   3.00-4.00   sec   250 MBytes  2.10 Gbits/sec
[  4]   4.00-5.00   sec   249 MBytes  2.09 Gbits/sec
[  4]   5.00-6.00   sec   248 MBytes  2.08 Gbits/sec
[  4]   6.00-7.00   sec   250 MBytes  2.10 Gbits/sec
[  4]   7.00-8.00   sec   248 MBytes  2.08 Gbits/sec
[  4]   8.00-9.00   sec   250 MBytes  2.10 Gbits/sec
[  4]   9.00-10.00  sec   249 MBytes  2.09 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  4]   0.00-10.00  sec  2.44 GBytes  2.09 Gbits/sec  101            sender
[  4]   0.00-10.00  sec  2.43 GBytes  2.09 Gbits/sec                  receiver

iperf Done.
root@OpenWrt:~# dmesg | grep RTL
[    5.488377] RTL8261BE 10Gbps PHY mt7530-0:05: PMA low-power suspend disabled
[    5.517728] RTL8261BE 10Gbps PHY mt7530-0:08: PMA low-power suspend disabled
[    6.892414] airoha_eth 1fb50000.ethernet lan2: PHY [mt7530-0:05] driver [RTL8261BE 10Gbps PHY] (irq=POLL)
[   18.292435] airoha_eth 1fb50000.ethernet lan2: PHY [mt7530-0:05] driver [RTL8261BE 10Gbps PHY] (irq=POLL)
[   19.372389] airoha_eth 1fb50000.ethernet wan: PHY [mt7530-0:08] driver [RTL8261BE 10Gbps PHY] (irq=POLL)
root@OpenWrt:~# ethtool lan2
Settings for lan2:
        Supported ports: [  ]
        Supported link modes:   100baseT/Half 100baseT/Full
                                1000baseT/Full
                                10000baseT/Full
                                2500baseT/Full
                                5000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  100baseT/Half 100baseT/Full
                                1000baseT/Full
                                10000baseT/Full
                                2500baseT/Full
                                5000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  1000baseT/Full
                                             10000baseT/Full
                                             2500baseT/Full
                                             5000baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 10000Mb/s
        Duplex: Full
        Auto-negotiation: on
        Port: Twisted Pair
        PHYAD: 5
        Transceiver: external
        MDI-X: Unknown
        Link detected: yes

I did an iperf to an internet speedtest server where I am 100% sure i have full 2200mbit bandwidth througputh
and I believe there is something weird going on with download speeds. if I test on my main router (Ex5601-t0) i get 2200 in download all the time.

root@OpenWrt:~# iperf3 -c it3.speedtest.aruba.it -R
Connecting to host it3.speedtest.aruba.it, port 5201
Reverse mode, remote host it3.speedtest.aruba.it is sending
[  4] local 10.10.1.2 port 56292 connected to 217.61.40.76 port 5201
[ ID] Interval           Transfer     Bitrate
[  4]   0.00-1.00   sec   195 MBytes  1.64 Gbits/sec
[  4]   1.00-2.00   sec   216 MBytes  1.81 Gbits/sec
[  4]   2.00-3.01   sec   228 MBytes  1.89 Gbits/sec
[  4]   3.01-4.00   sec   213 MBytes  1.81 Gbits/sec
[  4]   4.00-5.00   sec   212 MBytes  1.78 Gbits/sec
[  4]   5.00-6.00   sec   213 MBytes  1.79 Gbits/sec
[  4]   6.00-7.00   sec   209 MBytes  1.75 Gbits/sec
[  4]   7.00-8.00   sec   215 MBytes  1.80 Gbits/sec
[  4]   8.00-9.00   sec   219 MBytes  1.83 Gbits/sec
[  4]   9.00-10.00  sec   218 MBytes  1.83 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  4]   0.00-10.01  sec  2.16 GBytes  1.85 Gbits/sec  4368            sender
[  4]   0.00-10.00  sec  2.09 GBytes  1.79 Gbits/sec                  receiver

root@OpenWrt:~# ethtool wan
Settings for wan:
        Supported ports: [  ]
        Supported link modes:   100baseT/Half 100baseT/Full
                                1000baseT/Full
                                10000baseT/Full
                                2500baseT/Full
                                5000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  100baseT/Half 100baseT/Full
                                1000baseT/Full
                                10000baseT/Full
                                2500baseT/Full
                                5000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Full
                                             100baseT/Full
                                             1000baseT/Full
                                             10000baseT/Full
                                             2500baseT/Full
                                             5000baseT/Full
        Link partner advertised pause frame use: Symmetric
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 10000Mb/s
        Duplex: Full
        Auto-negotiation: on
        Port: Twisted Pair
        PHYAD: 8
        Transceiver: external
        MDI-X: off (auto)
        Link detected: yes

Now the wan port is connected to my truenas with 10gbit interface and running iperf both as client and server shows as anticipated weird thing on the receiving side.

root@OpenWrt:~# iperf3 -c 10.10.2.2
Connecting to host 10.10.2.2, port 5201
[  4] local 10.10.2.1 port 49366 connected to 10.10.2.2 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  4]   0.00-1.00   sec   745 MBytes  6.24 Gbits/sec    0   1.14 MBytes
[  4]   1.00-2.00   sec   754 MBytes  6.32 Gbits/sec    0   1.14 MBytes
[  4]   2.00-3.00   sec   755 MBytes  6.33 Gbits/sec    0   1.14 MBytes
[  4]   3.00-4.00   sec   763 MBytes  6.40 Gbits/sec    0   1.42 MBytes
[  4]   4.00-5.00   sec   760 MBytes  6.37 Gbits/sec    0   1.66 MBytes
[  4]   5.00-6.00   sec   771 MBytes  6.47 Gbits/sec    0   2.47 MBytes
[  4]   6.00-7.00   sec   774 MBytes  6.49 Gbits/sec    0   2.47 MBytes
[  4]   7.00-8.00   sec   759 MBytes  6.36 Gbits/sec    0   2.82 MBytes
[  4]   8.00-9.00   sec   755 MBytes  6.34 Gbits/sec    0   2.82 MBytes
[  4]   9.00-10.00  sec   773 MBytes  6.48 Gbits/sec    0   3.26 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  4]   0.00-10.00  sec  7.43 GBytes  6.38 Gbits/sec    0            sender
[  4]   0.00-10.00  sec  7.43 GBytes  6.38 Gbits/sec                  receiver

iperf Done.
root@OpenWrt:~# iperf3 -c 10.10.2.2 -R
Connecting to host 10.10.2.2, port 5201
Reverse mode, remote host 10.10.2.2 is sending
[  4] local 10.10.2.1 port 50176 connected to 10.10.2.2 port 5201
[ ID] Interval           Transfer     Bitrate
[  4]   0.00-1.00   sec   220 MBytes  1.85 Gbits/sec
[  4]   1.00-2.00   sec   220 MBytes  1.85 Gbits/sec
[  4]   2.00-3.00   sec   220 MBytes  1.85 Gbits/sec
[  4]   3.00-4.00   sec   221 MBytes  1.85 Gbits/sec
^C[  4]   4.00-4.58   sec   127 MBytes  1.85 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  4]   0.00-4.58   sec  0.00 Bytes  0.00 bits/sec                  sender
[  4]   0.00-4.58   sec  1009 MBytes  1.85 Gbits/sec                  receiver
iperf3: interrupt - the client has terminated by signal Interrupt(2)
root@OpenWrt:~# iperf3 -c 10.10.2.2 -R -P 3
Connecting to host 10.10.2.2, port 5201
Reverse mode, remote host 10.10.2.2 is sending
[  4] local 10.10.2.1 port 56564 connected to 10.10.2.2 port 5201
[  6] local 10.10.2.1 port 56574 connected to 10.10.2.2 port 5201
[  8] local 10.10.2.1 port 56576 connected to 10.10.2.2 port 5201
[ ID] Interval           Transfer     Bitrate
[  4]   0.00-1.00   sec  45.4 MBytes   380 Mbits/sec
[  6]   0.00-1.00   sec  49.1 MBytes   412 Mbits/sec
[  8]   0.00-1.00   sec   106 MBytes   886 Mbits/sec
[SUM]   0.00-1.00   sec   200 MBytes  1.68 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   1.00-2.00   sec  64.8 MBytes   543 Mbits/sec
[  6]   1.00-2.00   sec  53.4 MBytes   448 Mbits/sec
[  8]   1.00-2.00   sec  81.2 MBytes   682 Mbits/sec
[SUM]   1.00-2.00   sec   199 MBytes  1.67 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   2.00-3.00   sec  66.9 MBytes   561 Mbits/sec
[  6]   2.00-3.00   sec  56.2 MBytes   472 Mbits/sec
[  8]   2.00-3.00   sec  76.2 MBytes   640 Mbits/sec
[SUM]   2.00-3.00   sec   199 MBytes  1.67 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   3.00-4.00   sec  73.6 MBytes   618 Mbits/sec
[  6]   3.00-4.00   sec  60.8 MBytes   510 Mbits/sec
[  8]   3.00-4.00   sec  64.6 MBytes   542 Mbits/sec
[SUM]   3.00-4.00   sec   199 MBytes  1.67 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   4.00-5.00   sec  76.8 MBytes   644 Mbits/sec
[  6]   4.00-5.00   sec  70.0 MBytes   587 Mbits/sec
[  8]   4.00-5.00   sec  52.8 MBytes   442 Mbits/sec
[SUM]   4.00-5.00   sec   200 MBytes  1.67 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   5.00-6.00   sec  65.8 MBytes   552 Mbits/sec
[  6]   5.00-6.00   sec  62.4 MBytes   523 Mbits/sec
[  8]   5.00-6.00   sec  71.0 MBytes   596 Mbits/sec
[SUM]   5.00-6.00   sec   199 MBytes  1.67 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   6.00-7.00   sec  57.1 MBytes   479 Mbits/sec
[  6]   6.00-7.00   sec  64.8 MBytes   543 Mbits/sec
[  8]   6.00-7.00   sec  76.6 MBytes   643 Mbits/sec
[SUM]   6.00-7.00   sec   198 MBytes  1.67 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   7.00-8.00   sec  65.8 MBytes   551 Mbits/sec
[  6]   7.00-8.00   sec  67.9 MBytes   569 Mbits/sec
[  8]   7.00-8.00   sec  65.0 MBytes   545 Mbits/sec
[SUM]   7.00-8.00   sec   199 MBytes  1.67 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   8.00-9.00   sec  86.5 MBytes   726 Mbits/sec
[  6]   8.00-9.00   sec  63.4 MBytes   532 Mbits/sec
[  8]   8.00-9.00   sec  49.4 MBytes   414 Mbits/sec
[SUM]   8.00-9.00   sec   199 MBytes  1.67 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   9.00-10.00  sec  53.4 MBytes   448 Mbits/sec
[  6]   9.00-10.00  sec  94.2 MBytes   791 Mbits/sec
[  8]   9.00-10.00  sec  51.2 MBytes   430 Mbits/sec
[SUM]   9.00-10.00  sec   199 MBytes  1.67 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  4]   0.00-10.00  sec   658 MBytes   552 Mbits/sec  126            sender
[  4]   0.00-10.00  sec   656 MBytes   550 Mbits/sec                  receiver
[  6]   0.00-10.00  sec   644 MBytes   540 Mbits/sec  103            sender
[  6]   0.00-10.00  sec   642 MBytes   539 Mbits/sec                  receiver
[  8]   0.00-10.00  sec   696 MBytes   584 Mbits/sec  117            sender
[  8]   0.00-10.00  sec   694 MBytes   582 Mbits/sec                  receiver
[SUM]   0.00-10.00  sec  1.95 GBytes  1.68 Gbits/sec  346             sender
[SUM]   0.00-10.00  sec  1.95 GBytes  1.67 Gbits/sec                  receiver

iperf Done.


root@OpenWrt:~# iperf3 -s
-----------------------------------------------------------
Server listening on 5201 (test #1)
-----------------------------------------------------------
Accepted connection from 10.10.2.2, port 58294
[  5] local 10.10.2.1 port 5201 connected to 10.10.2.2 port 58298
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   217 MBytes  1.82 Gbits/sec
[  5]   1.00-2.00   sec   214 MBytes  1.79 Gbits/sec
[  5]   2.00-3.00   sec   218 MBytes  1.82 Gbits/sec
[  5]   3.00-4.00   sec   210 MBytes  1.76 Gbits/sec
[  5]   4.00-5.00   sec   218 MBytes  1.83 Gbits/sec
[  5]   5.00-6.00   sec   218 MBytes  1.83 Gbits/sec
[  5]   6.00-7.00   sec   218 MBytes  1.83 Gbits/sec
[  5]   6.00-7.00   sec   218 MBytes  1.83 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-7.00   sec  1.60 GBytes  1.97 Gbits/sec                  receiver
iperf3: the client has terminated
-----------------------------------------------------------
Server listening on 5201 (test #2)
-----------------------------------------------------------
Accepted connection from 10.10.2.2, port 44572
[  5] local 10.10.2.1 port 5201 connected to 10.10.2.2 port 44586
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   800 MBytes  6.71 Gbits/sec    0   1.45 MBytes
[  5]   1.00-2.00   sec   789 MBytes  6.62 Gbits/sec    0   1.45 MBytes
[  5]   2.00-3.00   sec   783 MBytes  6.57 Gbits/sec    0   1.75 MBytes
[  5]   3.00-4.00   sec   776 MBytes  6.51 Gbits/sec    0   1.75 MBytes
[  5]   4.00-5.00   sec   781 MBytes  6.55 Gbits/sec    0   1.75 MBytes
[  5]   5.00-6.00   sec   774 MBytes  6.49 Gbits/sec    0   2.04 MBytes
[  5]   5.00-6.00   sec   774 MBytes  6.49 Gbits/sec    0   2.04 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-6.00   sec  4.70 GBytes  6.72 Gbits/sec    0            sender
iperf3: the client has terminated
-----------------------------------------------------------
Server listening on 5201 (test #3)
-----------------------------------------------------------

HW Offload enabled. Nothing else running on the router.
Didn't test wifi yet but to me is good to merge...

@akorshun I don't think the PCS thing mentioned at the beginning of the post affects download speeds or is there something else sent upstream that could potentially fix this?

while running iperf in upload
image

while running iperf in download
Screenshot 2026-10-31 162455

@akorshun

Copy link
Copy Markdown
Contributor Author

@pameruoso thanks a lot for testing! Good to see the 10G and 2.5G links come up and survive replugs and warm reboots with plain main + this PR.

The PCS issue is about whether the link comes up at all. Once it’s up at 10G, the PCS doesn’t limit throughput, so it doesn’t explain these numbers, and I’m not aware of anything pending upstream that would change them.

I think what you’re seeing is the CPU. In all of these tests iperf3 runs on the router itself, so every packet goes through the network stack on the Cortex-A53 cores, and HW offload (PPE) doesn’t apply to traffic the router terminates. Receiving is the heavier direction. I see the same thing on lan2 at 5G: iperf3 on the router does about 3.7 Gbit/s TX and 1.85 Gbit/s RX, with the CPU maxed out.

To measure what the router can actually route, run iperf3 between two hosts through it, e.g. the client behind a LAN port and the server (or the internet speedtest) behind wan, with flow offloading on. Several streams (-P 4) also help. If downloads are still below 2.2 Gbit/s that way, I’d be very interested in the numbers and in top during the test.

@pameruoso

pameruoso commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

@pameruoso thanks a lot for testing! Good to see the 10G and 2.5G links come up and survive replugs and warm reboots with plain main + this PR.

The PCS issue is about whether the link comes up at all. Once it’s up at 10G, the PCS doesn’t limit throughput, so it doesn’t explain these numbers, and I’m not aware of anything pending upstream that would change them.

I think what you’re seeing is the CPU. In all of these tests iperf3 runs on the router itself, so every packet goes through the network stack on the Cortex-A53 cores, and HW offload (PPE) doesn’t apply to traffic the router terminates. Receiving is the heavier direction. I see the same thing on lan2 at 5G: iperf3 on the router does about 3.7 Gbit/s TX and 1.85 Gbit/s RX, with the CPU maxed out.

To measure what the router can actually route, run iperf3 between two hosts through it, e.g. the client behind a LAN port and the server (or the internet speedtest) behind wan, with flow offloading on. Several streams (-P 4) also help. If downloads are still below 2.2 Gbit/s that way, I’d be very interested in the numbers and in top during the test.

that is my suspect too. i will find time to do r4-pro-8x >lan2 10g - xr1710g -wan10g- > truenas 10g
here it is:

lan2 is connected to r4-pro-8x and wan is connected to truenas

root@OpenWrt:~# ethtool lan2
Settings for lan2:
        Supported ports: [  ]
        Supported link modes:   100baseT/Half 100baseT/Full
                                1000baseT/Full
                                10000baseT/Full
                                2500baseT/Full
                                5000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  100baseT/Half 100baseT/Full
                                1000baseT/Full
                                10000baseT/Full
                                2500baseT/Full
                                5000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  100baseT/Full
                                             1000baseT/Full
                                             10000baseT/Full
                                             2500baseT/Full
                                             5000baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 10000Mb/s
        Duplex: Full
        Auto-negotiation: on
        Port: Twisted Pair
        PHYAD: 5
        Transceiver: external
        MDI-X: on (auto)
        Link detected: yes
root@OpenWrt:~# ethtool wan
Settings for wan:
        Supported ports: [  ]
        Supported link modes:   100baseT/Half 100baseT/Full
                                1000baseT/Full
                                10000baseT/Full
                                2500baseT/Full
                                5000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  100baseT/Half 100baseT/Full
                                1000baseT/Full
                                10000baseT/Full
                                2500baseT/Full
                                5000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Full
                                             100baseT/Full
                                             1000baseT/Full
                                             10000baseT/Full
                                             2500baseT/Full
                                             5000baseT/Full
        Link partner advertised pause frame use: Symmetric
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 10000Mb/s
        Duplex: Full
        Auto-negotiation: on
        Port: Twisted Pair
        PHYAD: 8
        Transceiver: external
        MDI-X: off (auto)
        Link detected: yes
root@OpenWrt:~#
image
root@r4-pro-8x:~# iperf3 -c 10.10.2.2  -P 3
Connecting to host 10.10.2.2, port 5201
[  4] local 10.10.2.3 port 39492 connected to 10.10.2.2 port 5201
[  6] local 10.10.2.3 port 39496 connected to 10.10.2.2 port 5201
[  8] local 10.10.2.3 port 39504 connected to 10.10.2.2 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  4]   0.00-1.00   sec   106 MBytes   890 Mbits/sec  287    448 KBytes
[  6]   0.00-1.00   sec  76.6 MBytes   642 Mbits/sec  117    346 KBytes
[  8]   0.00-1.00   sec   102 MBytes   858 Mbits/sec  180    441 KBytes
[SUM]   0.00-1.00   sec   285 MBytes  2.39 Gbits/sec  584
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   1.00-2.00   sec   101 MBytes   849 Mbits/sec  208    452 KBytes
[  6]   1.00-2.00   sec  82.6 MBytes   693 Mbits/sec  145    387 KBytes
[  8]   1.00-2.00   sec  96.9 MBytes   813 Mbits/sec  135    440 KBytes
[SUM]   1.00-2.00   sec   281 MBytes  2.36 Gbits/sec  488
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   2.00-3.00   sec  97.8 MBytes   820 Mbits/sec   49    437 KBytes
[  6]   2.00-3.00   sec  90.6 MBytes   760 Mbits/sec   34    406 KBytes
[  8]   2.00-3.00   sec  93.1 MBytes   781 Mbits/sec  197    430 KBytes
[SUM]   2.00-3.00   sec   282 MBytes  2.36 Gbits/sec  280
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   3.00-4.00   sec   104 MBytes   876 Mbits/sec  173    488 KBytes
[  6]   3.00-4.00   sec  83.8 MBytes   703 Mbits/sec  219    356 KBytes
[  8]   3.00-4.00   sec  85.1 MBytes   714 Mbits/sec  192    354 KBytes
[SUM]   3.00-4.00   sec   273 MBytes  2.29 Gbits/sec  584
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   4.00-5.00   sec   111 MBytes   929 Mbits/sec  301    471 KBytes
[  6]   4.00-5.00   sec  85.0 MBytes   713 Mbits/sec   90    372 KBytes
[  8]   4.00-5.00   sec  84.8 MBytes   711 Mbits/sec   98    376 KBytes
[SUM]   4.00-5.00   sec   280 MBytes  2.35 Gbits/sec  489
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   5.00-6.00   sec  95.5 MBytes   801 Mbits/sec   99    434 KBytes
[  6]   5.00-6.00   sec   104 MBytes   872 Mbits/sec   91    472 KBytes
[  8]   5.00-6.00   sec  82.4 MBytes   691 Mbits/sec  100    387 KBytes
[SUM]   5.00-6.00   sec   282 MBytes  2.36 Gbits/sec  290
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   6.00-7.00   sec  90.9 MBytes   762 Mbits/sec  339    362 KBytes
[  6]   6.00-7.00   sec  99.2 MBytes   833 Mbits/sec  198    385 KBytes
[  8]   6.00-7.00   sec  84.5 MBytes   709 Mbits/sec   91    342 KBytes
[SUM]   6.00-7.00   sec   275 MBytes  2.30 Gbits/sec  628
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   7.00-8.00   sec  97.1 MBytes   815 Mbits/sec   28    400 KBytes
[  6]   7.00-8.00   sec   102 MBytes   854 Mbits/sec   40    410 KBytes
[  8]   7.00-8.00   sec  81.2 MBytes   682 Mbits/sec   31    294 KBytes
[SUM]   7.00-8.00   sec   280 MBytes  2.35 Gbits/sec   99
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   8.00-9.00   sec   102 MBytes   854 Mbits/sec   89    477 KBytes
[  6]   8.00-9.00   sec   102 MBytes   860 Mbits/sec   71    481 KBytes
[  8]   8.00-9.00   sec  78.0 MBytes   654 Mbits/sec    1    392 KBytes
[SUM]   8.00-9.00   sec   282 MBytes  2.37 Gbits/sec  161
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   9.00-10.00  sec  97.1 MBytes   814 Mbits/sec  177    385 KBytes
[  6]   9.00-10.00  sec  97.4 MBytes   817 Mbits/sec  344    386 KBytes
[  8]   9.00-10.00  sec  83.1 MBytes   697 Mbits/sec  223    342 KBytes
[SUM]   9.00-10.00  sec   278 MBytes  2.33 Gbits/sec  744
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  4]   0.00-10.00  sec  1003 MBytes   841 Mbits/sec  1750            sender
[  4]   0.00-10.01  sec  1000 MBytes   838 Mbits/sec                  receiver
[  6]   0.00-10.00  sec   924 MBytes   775 Mbits/sec  1349            sender
[  6]   0.00-10.01  sec   921 MBytes   772 Mbits/sec                  receiver
[  8]   0.00-10.00  sec   872 MBytes   731 Mbits/sec  1248            sender
[  8]   0.00-10.01  sec   869 MBytes   728 Mbits/sec                  receiver
[SUM]   0.00-10.00  sec  2.73 GBytes  2.35 Gbits/sec  4347             sender
[SUM]   0.00-10.01  sec  2.73 GBytes  2.34 Gbits/sec                  receiver

iperf Done.
root@r4-pro-8x:~# iperf3 -c 10.10.2.2  -P 3 -R
Connecting to host 10.10.2.2, port 5201
Reverse mode, remote host 10.10.2.2 is sending
[  4] local 10.10.2.3 port 58468 connected to 10.10.2.2 port 5201
[  6] local 10.10.2.3 port 58470 connected to 10.10.2.2 port 5201
[  8] local 10.10.2.3 port 58486 connected to 10.10.2.2 port 5201
[ ID] Interval           Transfer     Bitrate
[  4]   0.00-1.00   sec  78.0 MBytes   654 Mbits/sec
[  6]   0.00-1.00   sec  31.9 MBytes   267 Mbits/sec
[  8]   0.00-1.00   sec   165 MBytes  1.38 Gbits/sec
[SUM]   0.00-1.00   sec   275 MBytes  2.30 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   1.00-2.00   sec  84.4 MBytes   708 Mbits/sec
[  6]   1.00-2.00   sec  59.8 MBytes   501 Mbits/sec
[  8]   1.00-2.00   sec   137 MBytes  1.15 Gbits/sec
[SUM]   1.00-2.00   sec   281 MBytes  2.36 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   2.00-3.00   sec  84.6 MBytes   710 Mbits/sec
[  6]   2.00-3.00   sec  75.9 MBytes   636 Mbits/sec
[  8]   2.00-3.00   sec   111 MBytes   933 Mbits/sec
[SUM]   2.00-3.00   sec   272 MBytes  2.28 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   3.00-4.00   sec  84.4 MBytes   708 Mbits/sec
[  6]   3.00-4.00   sec  93.1 MBytes   781 Mbits/sec
[  8]   3.00-4.00   sec   102 MBytes   860 Mbits/sec
[SUM]   3.00-4.00   sec   280 MBytes  2.35 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   4.00-5.00   sec  86.2 MBytes   724 Mbits/sec
[  6]   4.00-5.00   sec  96.5 MBytes   810 Mbits/sec
[  8]   4.00-5.00   sec   100 MBytes   839 Mbits/sec
[SUM]   4.00-5.00   sec   283 MBytes  2.37 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   5.00-6.00   sec  88.8 MBytes   744 Mbits/sec
[  6]   5.00-6.00   sec  95.1 MBytes   798 Mbits/sec
[  8]   5.00-6.00   sec  99.2 MBytes   833 Mbits/sec
[SUM]   5.00-6.00   sec   283 MBytes  2.38 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   6.00-7.00   sec  90.0 MBytes   755 Mbits/sec
[  6]   6.00-7.00   sec  95.0 MBytes   797 Mbits/sec
[  8]   6.00-7.00   sec  97.0 MBytes   814 Mbits/sec
[SUM]   6.00-7.00   sec   282 MBytes  2.37 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   7.00-8.00   sec  91.8 MBytes   770 Mbits/sec
[  6]   7.00-8.00   sec  94.0 MBytes   789 Mbits/sec
[  8]   7.00-8.00   sec  96.5 MBytes   810 Mbits/sec
[SUM]   7.00-8.00   sec   282 MBytes  2.37 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   8.00-9.00   sec  92.0 MBytes   772 Mbits/sec
[  6]   8.00-9.00   sec  94.2 MBytes   791 Mbits/sec
[  8]   8.00-9.00   sec  95.9 MBytes   804 Mbits/sec
[SUM]   8.00-9.00   sec   282 MBytes  2.37 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   9.00-10.00  sec  93.9 MBytes   788 Mbits/sec
[  6]   9.00-10.00  sec  94.5 MBytes   793 Mbits/sec
[  8]   9.00-10.00  sec  93.6 MBytes   785 Mbits/sec
[SUM]   9.00-10.00  sec   282 MBytes  2.37 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  4]   0.00-10.00  sec   877 MBytes   735 Mbits/sec  1200            sender
[  4]   0.00-10.00  sec   874 MBytes   733 Mbits/sec                  receiver
[  6]   0.00-10.00  sec   833 MBytes   699 Mbits/sec  1031            sender
[  6]   0.00-10.00  sec   830 MBytes   696 Mbits/sec                  receiver
[  8]   0.00-10.00  sec  1.08 GBytes   924 Mbits/sec  1943            sender
[  8]   0.00-10.00  sec  1.07 GBytes   921 Mbits/sec                  receiver
[SUM]   0.00-10.00  sec  2.75 GBytes  2.36 Gbits/sec  4174             sender
[SUM]   0.00-10.00  sec  2.74 GBytes  2.35 Gbits/sec                  receiver

iperf Done.

not amazing... can provide more tests in next days.

Lan2 and wan are both in a single bridge. R4pro is 10.10.2.3, xr1710g is 10.10.2.1 and Truenas is 10.10.2.2. Maybe need to do real routing and not bridge because looks like npu is not kicking in yet.

@akorshun

Copy link
Copy Markdown
Contributor Author

not amazing

Thanks! Yes, with lan2 and wan in one bridge the traffic is bridged by the CPU, and flow offloading only kicks in for routed traffic. With wan in its own subnet and flow_offloading/flow_offloading_hw enabled in the firewall, the numbers should look quite different.

@akorshun
akorshun force-pushed the airoha-gemtek-xr1710g branch from bd61681 to 3ca649b Compare November 1, 2026 10:49
@pameruoso

pameruoso commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

not amazing

Thanks! Yes, with lan2 and wan in one bridge the traffic is bridged by the CPU, and flow offloading only kicks in for routed traffic. With wan in its own subnet and flow_offloading/flow_offloading_hw enabled in the firewall, the numbers should look quite different.

so now r4pro is 10.10.1.4 - lan2 10.10.1.2 xr1710g wan 10.10.2.1 - truenas 10.10.2.2

root@r4-pro-8x:~# iperf3 -c 10.10.2.2 -R -P3
Connecting to host 10.10.2.2, port 5201
Reverse mode, remote host 10.10.2.2 is sending
[  4] local 10.10.1.4 port 45554 connected to 10.10.2.2 port 5201
[  6] local 10.10.1.4 port 45570 connected to 10.10.2.2 port 5201
[  8] local 10.10.1.4 port 45580 connected to 10.10.2.2 port 5201
[ ID] Interval           Transfer     Bitrate
[  4]   0.00-1.00   sec   313 MBytes  2.62 Gbits/sec
[  6]   0.00-1.00   sec  31.0 MBytes   260 Mbits/sec
[  8]   0.00-1.00   sec   197 MBytes  1.65 Gbits/sec
[SUM]   0.00-1.00   sec   541 MBytes  4.53 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   1.00-2.00   sec   368 MBytes  3.08 Gbits/sec
[  6]   1.00-2.00   sec  32.5 MBytes   273 Mbits/sec
[  8]   1.00-2.00   sec   149 MBytes  1.25 Gbits/sec
[SUM]   1.00-2.00   sec   550 MBytes  4.61 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   2.00-3.00   sec   419 MBytes  3.52 Gbits/sec
[  6]   2.00-3.00   sec  41.4 MBytes   347 Mbits/sec
[  8]   2.00-3.00   sec  90.2 MBytes   757 Mbits/sec
[SUM]   2.00-3.00   sec   551 MBytes  4.62 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   3.00-4.00   sec   407 MBytes  3.41 Gbits/sec
[  6]   3.00-4.00   sec  45.9 MBytes   385 Mbits/sec
[  8]   3.00-4.00   sec  97.6 MBytes   819 Mbits/sec
[SUM]   3.00-4.00   sec   550 MBytes  4.62 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   4.00-5.00   sec   397 MBytes  3.33 Gbits/sec
[  6]   4.00-5.00   sec  63.1 MBytes   529 Mbits/sec
[  8]   4.00-5.00   sec  91.0 MBytes   763 Mbits/sec
[SUM]   4.00-5.00   sec   551 MBytes  4.62 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   5.00-6.00   sec   343 MBytes  2.88 Gbits/sec
[  6]   5.00-6.00   sec  87.5 MBytes   734 Mbits/sec
[  8]   5.00-6.00   sec   109 MBytes   916 Mbits/sec
[SUM]   5.00-6.00   sec   540 MBytes  4.53 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   6.00-7.00   sec   322 MBytes  2.70 Gbits/sec
[  6]   6.00-7.00   sec  98.2 MBytes   824 Mbits/sec
[  8]   6.00-7.00   sec   116 MBytes   969 Mbits/sec
[SUM]   6.00-7.00   sec   535 MBytes  4.49 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   7.00-8.00   sec   306 MBytes  2.57 Gbits/sec
[  6]   7.00-8.00   sec   110 MBytes   927 Mbits/sec
[  8]   7.00-8.00   sec   128 MBytes  1.07 Gbits/sec
[SUM]   7.00-8.00   sec   544 MBytes  4.57 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   8.00-9.00   sec   296 MBytes  2.48 Gbits/sec
[  6]   8.00-9.00   sec   118 MBytes   987 Mbits/sec
[  8]   8.00-9.00   sec   131 MBytes  1.10 Gbits/sec
[SUM]   8.00-9.00   sec   544 MBytes  4.57 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   9.00-10.00  sec   287 MBytes  2.41 Gbits/sec
[  6]   9.00-10.00  sec   121 MBytes  1.02 Gbits/sec
[  8]   9.00-10.00  sec   136 MBytes  1.15 Gbits/sec
[SUM]   9.00-10.00  sec   545 MBytes  4.57 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  4]   0.00-10.00  sec  3.38 GBytes  2.90 Gbits/sec  1238            sender
[  4]   0.00-10.00  sec  3.38 GBytes  2.90 Gbits/sec                  receiver
[  6]   0.00-10.00  sec   753 MBytes   632 Mbits/sec  145            sender
[  6]   0.00-10.00  sec   749 MBytes   628 Mbits/sec                  receiver
[  8]   0.00-10.00  sec  1.22 GBytes  1.05 Gbits/sec  1331            sender
[  8]   0.00-10.00  sec  1.22 GBytes  1.04 Gbits/sec                  receiver
[SUM]   0.00-10.00  sec  5.33 GBytes  4.58 Gbits/sec  2714             sender
[SUM]   0.00-10.00  sec  5.32 GBytes  4.57 Gbits/sec                  receiver

iperf Done.
root@r4-pro-8x:~# iperf3 -c 10.10.2.2
Connecting to host 10.10.2.2, port 5201
[  4] local 10.10.1.4 port 52430 connected to 10.10.2.2 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  4]   0.00-1.00   sec  1.09 GBytes  9.34 Gbits/sec    0   2.71 MBytes
[  4]   1.00-2.00   sec  1.09 GBytes  9.38 Gbits/sec    0   2.71 MBytes
[  4]   2.00-3.00   sec  1.09 GBytes  9.34 Gbits/sec    0   2.71 MBytes
[  4]   3.00-4.00   sec  1.09 GBytes  9.37 Gbits/sec    0   2.71 MBytes
[  4]   4.00-5.00   sec  1.09 GBytes  9.39 Gbits/sec    0   2.71 MBytes
[  4]   5.00-6.00   sec  1.09 GBytes  9.37 Gbits/sec    0   2.71 MBytes
[  4]   6.00-7.00   sec  1.09 GBytes  9.38 Gbits/sec    0   2.71 MBytes
[  4]   7.00-8.00   sec  1.09 GBytes  9.38 Gbits/sec    0   2.71 MBytes
[  4]   8.00-9.00   sec  1.09 GBytes  9.35 Gbits/sec    0   2.71 MBytes
[  4]   9.00-10.00  sec  1.09 GBytes  9.39 Gbits/sec    0   2.71 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  4]   0.00-10.00  sec  10.9 GBytes  9.37 Gbits/sec    0            sender
[  4]   0.00-10.00  sec  10.9 GBytes  9.37 Gbits/sec                  receiver

iperf Done.
root@r4-pro-8x:~#

cpu usage stays 0 during iperf in download and upload... still wondering why so much difference between upload and download.
image

if one uses this as access points... theoretically the wifi-to lan dumb ap bridge config will be going through NPU or CPU like the lan2 - wan bridge?
What is the status of wed for this airoha/mt76 couple?

@akorshun
akorshun force-pushed the airoha-gemtek-xr1710g branch from 3ca649b to 0e639d0 Compare November 1, 2026 21:52
@akorshun

akorshun commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

@pameruoso thanks, these numbers are very useful. With routing and HW offload the CPU stays at 0 in both directions, so both flows are offloaded, and the difference comes from the hardware path, not from the CPU.

On this board the two 10G ports are not switch ports: wan is GDM2 and lan2 is GDM4, each with its own USXGMII PCS and RTL8261BE. lan2 → wan (GDM4 → GDM2) runs at line rate with no retransmits, while wan → lan2 (GDM2 → GDM4) tops out at ~4.6 Gbit/s with retransmits, so packets get dropped somewhere on the way to GDM4. I can't reproduce it here (I have no 10G hosts on both sides), so I can't say yet whether it is the PPE/QDMA path towards GDM4 or flow control on that link. If you have time, these would help narrow it down:

  • ethtool -S wan and ethtool -S lan2 before and after a -R run, to see which counters grow (drops, pause frames);
  • cat /sys/kernel/debug/ppe/entries during the test, to confirm both directions are bound;
  • the same -R test with a single stream, and with ethtool -A lan2 rx off tx off and ethtool -A wan rx off tx off, if the driver lets you change it: your two link partners advertise different pause modes.

On the Wi-Fi questions:

  • Dumb AP / bridge: bridged traffic goes through the CPU. Flow offloading (PPE, and the NPU for Wi-Fi) only handles routed flows, and the airoha target has no bridge offload (no bridger as on mediatek/filogic). The same applies to wan and lan2 in one bridge, as you saw earlier.
  • WED: the AN7581 has no WED. Its equivalent is the NPU: with an MT7996 the NPU takes over the Wi-Fi DMA rings, and routed flows between Ethernet and Wi-Fi can be offloaded through the flowtable. This is already active on the XR1710G with plain main: the NPU firmware for the MT7996 is installed and loaded (mt7996e ...: NPU version: 0.1111 in dmesg). I haven't measured Wi-Fi offload throughput myself yet.

@YYH2913

YYH2913 commented Nov 2, 2026

Copy link
Copy Markdown

Could we consider keeping the kernel-assigned eth1 and eth2 names for the two standalone 10GbE MAC interfaces on the XR1710G, while retaining the standard DSA label properties for the two 1GbE switch ports?

The rationale is to avoid unnecessary OpenWrt-specific interface renaming and keep the network interface naming closer to the default Linux behavior.

Relevant upstream references:

Currently, openwrt,netdev-name causes an additional interface rename through [OpenWrt's Airoha preinit script](https://github.com/openwrt/openwrt/blob/main/target/linux/airoha/base-files/lib/preinit/04_set_netdev_label).

For the XR1710G, I would suggest retaining the current kernel-assigned names:

  • eth0: DSA conduit
  • eth1: 10GbE WAN (GDM2)
  • eth2: 10GbE LAN (GDM4)
  • lan2 / lan3: 1GbE DSA user ports

The default network configuration could then remain:

ucidef_set_interfaces_lan_wan "eth2 lan2 lan3" "eth1"

@YYH2913

YYH2913 commented Nov 7, 2026

Copy link
Copy Markdown

Can you share the link to the branch please? Hope this gets merged soon so we can maybe procee d with mainstreaming the rest

https://github.com/YYH2913/openwrt/tree/xr1710g-6.18-integration

@akorshun
akorshun force-pushed the airoha-gemtek-xr1710g branch from 4ecb356 to 16bbb33 Compare November 13, 2026 16:33
@akorshun

Copy link
Copy Markdown
Contributor Author

Rebased onto current main. 7a783bc (Turris 1.x) had already taken uboot-tools to PKG_RELEASE:=3, so the bump in the device commit now goes to 4.

A note on #26508, which swaps the AN7581 phyN_led0/phyN_led1 pin groups to match the SCU register layout: with current main, the XR1710G lan3/lan4 LEDs need phy1_led0 on gpio33 and phy1_led1 on gpio43 (likewise for phy2, gpio34/gpio44). Once #26508 is merged, the two pins swap places, and the same register bits get programmed. Whichever of the two PRs lands second has to swap the pins in an7581-gemtek_xr1710g-ubi.dts, and I'm happy to do that here if #26508 goes in first.

akorshun added a commit to akorshun/openwrt that referenced this pull request Nov 13, 2026
The shared dtsi is now an7581-gemtek-common.dtsi and the XR1710G board
DTS an7581-gemtek_xr1710g-ubi.dts, as agreed in openwrt#26296.

Assisted-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Andrey Korshunov <[email protected]>
genshanxinli added a commit to genshanxinli/xr1710g-openwrt that referenced this pull request Nov 14, 2026
Record what the xr1710g tree already has, what open PRs openwrt#26296 and openwrt#26297 carry, and what is local only. The table covers the DTS, PCIe and HIF2, 10G/2.5G PCS/PHY fixes, LEDs, fan, netwatchdog, NPU firmware and driver patches, mt76 patches, wifi-scripts, U-Boot, image entry and upgrade path, and the local lab tooling.

No code or build changes.

Signed-off-by: genshanxinli <[email protected]>
genshanxinli added a commit to genshanxinli/xr1710g-openwrt that referenced this pull request Nov 14, 2026
Record what the xr1710g tree already has, what open PRs openwrt#26296 and openwrt#26297 carry, and what is local only. The table covers the DTS, PCIe and HIF2, 10G/2.5G PCS/PHY fixes, LEDs, fan, netwatchdog, NPU firmware and driver patches, mt76 patches, wifi-scripts, U-Boot, image entry and upgrade path, and the local lab tooling.

No code or build changes.

Signed-off-by: genshanxinli <[email protected]>
genshanxinli added a commit to genshanxinli/xr1710g-openwrt that referenced this pull request Nov 14, 2026
Record what the xr1710g tree already has, what open PRs openwrt#26296 and openwrt#26297 carry, and what is local only. The table covers the DTS, PCIe and HIF2, 10G/2.5G PCS/PHY fixes, LEDs, fan, netwatchdog, NPU firmware and driver patches, mt76 patches, wifi-scripts, U-Boot, image entry and upgrade path, and the local lab tooling.

No code or build changes.

Signed-off-by: genshanxinli <[email protected]>
genshanxinli added a commit to genshanxinli/xr1710g-openwrt that referenced this pull request Nov 15, 2026
…45ee7f1

docs: add OpenWrt PR openwrt#26296 convergence checklist
@akorshun
akorshun force-pushed the airoha-gemtek-xr1710g branch from 16bbb33 to 1b981ab Compare November 15, 2026 21:56
akorshun added a commit to akorshun/openwrt that referenced this pull request Nov 15, 2026
The shared dtsi is now an7581-gemtek-common.dtsi and the XR1710G board
DTS an7581-gemtek_xr1710g-ubi.dts, as agreed in openwrt#26296.

Assisted-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Andrey Korshunov <[email protected]>
@akorshun
akorshun requested a review from achterin November 22, 2026 14:51

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 3 new commits; no new issues found beyond the inline nit.


Generated by Claude Code

@akorshun
akorshun force-pushed the airoha-gemtek-xr1710g branch from 1b981ab to 28c7d10 Compare November 22, 2026 17:58
@itdoginfo

Copy link
Copy Markdown

Tested on my XR1710G. Everything works as expected, though I can't test speeds above 2.5 Gbps. Thanks for your work!

@vladido

vladido commented Nov 23, 2026 •

Copy link
Copy Markdown

I use a Gemtek XR1710G as my main router and would like to see official OpenWrt support for it. PPPoE, Wi-Fi, and both 10 GbE ports are important in my setup. Thanks for working on this!

The Gemtek XR1710G is a close relative of the W1700K and shares almost
all of its device tree: flash layout and UBI volumes, MAC addresses,
Wi-Fi, Ethernet, the 10G PHYs, the reset button and the status LEDs.
Move these parts into an7581-gemtek-common.dtsi and keep only
what is specific to the W1700K in its DTS: the GPIO driven lan3/lan4
LEDs, the 10G PHY LEDs and the UARTs of the Bluetooth/Zigbee radio and
the GPS.

While at it, reference the wan_mac cell without an argument: it is a
plain cell, not a "mac-base" one with #nvmem-cell-cells, so the
trailing 0 was invalid and only worked because the nvmem core ignores
it for index 0. Also use generic node names for the Wi-Fi and the BMT
partition, and sort the status LEDs by GPIO (white 20 before red 29),
which swaps the led-2 and led-3 node names. The resulting devicetree
is otherwise unchanged.

Assisted-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Andrey Korshunov <[email protected]>
Link: openwrt#26296
Signed-off-by: Robert Marko <[email protected]>
The Gemtek XR1710G (Brightspeed XR1710G) runs the same AXON vendor
bootloader as the Gemtek W1700K, including its Airoha BMT/BBT
handling, so it needs the same chainloader: the vendor bootloader only
loads this U-Boot from the "chainloader" partition, and all OpenWrt data
lives in UBI, which does its own bad block management.

The parts of the board U-Boot uses (UART, reset button, status LEDs,
SPI-NAND and the flash layout) match the W1700K, so the configuration is
the W1700K one with the names changed, plus:

- CONFIG_PINCONF is replaced by CONFIG_PINCTRL_AIROHA_AN7581, as for the
  AN7581 reference board. The W1700K configuration lacks the pin
  controller driver, so U-Boot finds neither the reset button nor the
  status LEDs there ("LED 'status:red' not found (err=-19)").
- The reset button is read when the chainloader starts. If it is held,
  the blue status LED lights up and the recovery image
  (openwrt-airoha-an7581-gemtek_xr1710g-ubi-initramfs-recovery.itb) is
  booted via TFTP from 192.168.1.254, retrying until a server answers.
  This allows recovery without a serial console. The button has to be
  pressed after power is applied: held at power-on, it makes the AN7581
  boot ROM wait for a UART download instead. The chainloader starts about
  15 s after power-on.
- The default menu entry runs boot_ubi instead of boot_production, so a
  broken production volume falls back to the recovery volume, and when
  neither boots the recovery image is loaded via TFTP until a server
  answers. boot_recovery only runs bootm after the recovery volume was
  read, so a warm reset cannot boot a stale image left in RAM.
- As on the Nokia boards, a ubi partition that does not attach is
  formatted, missing ubootenv, ubootenv2 and factory volumes are
  created, and the environment is saved once, so fw_printenv and
  fw_setenv work. CONFIG_ENV_SIZE is set to the ubootenv volume size
  that uboot-envtools uses. The factory volume holds the Wi-Fi EEPROM
  and the MAC addresses and is filled by sysupgrade from the vendor
  partition. Created empty here, it lets the kernel fall back to random
  MAC addresses instead of deferring the Ethernet probe, so the recovery
  image has a working network.
- MMC support is disabled, as on the Nokia boards. The board has no
  eMMC, and with the environment in MMC or UBI the saveenv right after a
  format went to MMC: when no location holds an environment yet,
  env_load() selects the first one.
- The installer variables and menu entry of the W1700K are dropped: the
  device is installed by booting the recovery image and running
  sysupgrade.
- CONFIG_CMD_ASKENV is enabled, as on the Nokia boards: the TFTP and
  recovery menu entries wait for Enter with askenv when they fail. The
  W1700K configuration lacks it, so there they print "Unknown command
  'askenv'" and return to the menu at once.

Based on the XR1710G chainloader by Kenneth Kasilag.

Assisted-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Andrey Korshunov <[email protected]>
Link: openwrt#26296
Signed-off-by: Robert Marko <[email protected]>
Gemtek XR1710G, sold by Brightspeed, is an AN7581 Wi-Fi 7 gateway.
It is a close relative of the Gemtek W1700K: the Silabs
Bluetooth/Zigbee radio and the Airoha GPS are gone, and the LEDs of
the two 1 GbE ports are driven by the internal switch PHYs instead of
GPIOs. The device tree shares an7581-gemtek-common.dtsi with
the W1700K and only adds these LEDs and the label MAC.

Specification:

- SoC       : Airoha AN7581GT, 4x Cortex-A53
- RAM       : 2 GiB DDR4-2666 (ESMT M16U8G16512A)
- Flash     : 512 MiB SPI-NAND (Winbond W25N04KV)
- WLAN      : MediaTek MT7996 (BE19000) on PCIe
  - 2.4 GHz : 4x4, MT7976GN
  - 5 GHz   : 4x4, MT7977BN
  - 6 GHz   : 4x4, MT7977AN
- Ethernet  : 2x 10 GbE (Realtek RTL8261BE, wan and lan2),
              2x 1 GbE (AN7581 internal switch, lan3 and lan4)
- LEDs      : 1x status, red/green/blue/white (GPIO),
              2x2 lan3/lan4 green/amber (switch PHY)
- Button    : reset
- Fan       : PWM controlled by a Nuvoton NCT7802 on I2C
- UART      : 5-pin header next to the case screw, 115200n8
  - pinout  : TX, GND, VCC, N/C, RX, starting at the screw
- Power     : 12 VDC, 5 A, barrel jack, center positive
- Bootloader: U-Boot 2014.04-rc1 "AXON 1.6", signed, vendor BMT/BBT

The vendor bootloader verifies the image it boots by default and uses
Airoha BMT/BBT for bad block management, which Linux does not know
about. As on the W1700K, a U-Boot chainloader is therefore placed into
the "chainloader" partition (the start of the first vendor firmware
bank), which the vendor bootloader writes and loads, and everything
else lives in UBI, which handles bad blocks itself. The vendor
bootloader and its 66 MiB BMT pool at the end of flash are left alone.

The factory UBI volume holds the MT7996 EEPROM and the MAC addresses.
All of it comes from the vendor partition, which OpenWrt never writes:
the DSD block at 0x400000 holds the MACs, fan_id and the serial number
as text, the EEPROM is in the first good block from 0x405000. When the
volume is missing or holds no valid EEPROM and MACs, as on a new
install, sysupgrade builds it from there before writing the firmware.
The serial number has to match the board, and nothing is written when
the vendor data does not look right.

Installation (via serial console):

1. Open the case: there is a Torx T10 screw under the QR code label,
   then pry the grey and white halves apart starting at the ports.
2. Connect to the UART header and interrupt the vendor bootloader with
   any key.
3. Make the vendor bootloader boot the chainloader from flash, write
   the chainloader with TFTP (server 192.168.1.254), and erase the rest
   of the stock firmware. The vendor Ethernet driver is flaky, the
   tftpboot may need a few attempts:

     setenv serverip 192.168.1.254
     setenv ipaddr 192.168.1.1
     tftpboot 0x89000000 openwrt-airoha-an7581-gemtek_xr1710g-ubi-chainload-uboot.itb
     setenv one flash read 0x600000 0x100000 \$loadaddr
     setenv two "; bootm"
     setenv bootcmd "$one$two"
     saveenv
     flash erase 0x600000 0x100000
     flash write 0x600000 0x100000 0x89000000
     flash erase 0x700000 0x1b700000
     reset

   The last erase matters: the stock firmware keeps its own UBI in this
   area, which the chainloader would otherwise attach and keep.

   If tftpboot keeps failing, load the chainloader over the serial
   console instead: run "loady 0x89000000" in place of the tftpboot,
   send the file with YMODEM (about 30 s at 115200 baud), then go on
   with the setenv commands.

4. The chainloader creates UBI in the erased ubi partition with the
   ubootenv, ubootenv2 and an empty factory volume, and saves its
   environment. With nothing to boot, it lights the blue LED and loads
   openwrt-airoha-an7581-gemtek_xr1710g-ubi-initramfs-recovery.itb via
   TFTP from 192.168.1.254 until a server answers.
5. In the recovery system (192.168.1.1), copy over the sysupgrade.itb
   image and run sysupgrade. It fills the factory volume with the Wi-Fi
   calibration data and the MAC addresses from the vendor partition and
   installs OpenWrt. The recovery volume is optional; without it, the
   chainloader falls back to TFTP when the system does not boot.
6. Further updates use the sysupgrade.itb image.

Reverting to the stock firmware is not documented: the stock firmware
needs an ISP account to be useful.

MAC addresses ("factory" UBI volume):

- WAN     : 0x5000           xx:xx:xx:xx:xx:xx
- LAN     : 0x6000           xx:xx:xx:xx:xx:xx
- 2.4 GHz : 0x6000 + 1
- 5 GHz   : 0x6000 + 2
- 6 GHz   : 0x6000 + 3

Known issues:

- The 10 GbE ports (wan and lan2) may come up without link or lose
  link: the AN7581 USXGMII PCS sometimes fails RX calibration ("No
  FBCK Lock") with the RTL8261BE. The PCS and PHY fixes are being
  worked on separately.

Based on the XR1710G support by Kenneth Kasilag (openwrt#22397).

Assisted-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Andrey Korshunov <[email protected]>
Link: openwrt#26296
Signed-off-by: Robert Marko <[email protected]>
@robimarko
robimarko force-pushed the airoha-gemtek-xr1710g branch from 28c7d10 to 980a740 Compare November 24, 2026 10:00
@openwrt-bot
openwrt-bot merged commit 980a740 into openwrt:main Nov 24, 2026
@robimarko

Copy link
Copy Markdown
Contributor

Thanks! Rebased on top of main and merged!

hnt510-great pushed a commit to hnt510-great/openwrt-systemd-host that referenced this pull request Nov 26, 2026
The Gemtek XR1710G is a close relative of the W1700K and shares almost
all of its device tree: flash layout and UBI volumes, MAC addresses,
Wi-Fi, Ethernet, the 10G PHYs, the reset button and the status LEDs.
Move these parts into an7581-gemtek-common.dtsi and keep only
what is specific to the W1700K in its DTS: the GPIO driven lan3/lan4
LEDs, the 10G PHY LEDs and the UARTs of the Bluetooth/Zigbee radio and
the GPS.

While at it, reference the wan_mac cell without an argument: it is a
plain cell, not a "mac-base" one with #nvmem-cell-cells, so the
trailing 0 was invalid and only worked because the nvmem core ignores
it for index 0. Also use generic node names for the Wi-Fi and the BMT
partition, and sort the status LEDs by GPIO (white 20 before red 29),
which swaps the led-2 and led-3 node names. The resulting devicetree
is otherwise unchanged.

Assisted-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Andrey Korshunov <[email protected]>
Link: openwrt/openwrt#26296
Signed-off-by: Robert Marko <[email protected]>

GitLab-source: fefe6d88c328fa387850961cd9bbbfb4f102ff64
Source delta sanitized for publication; author attribution preserved.
hnt510-great pushed a commit to hnt510-great/openwrt-systemd-host that referenced this pull request Nov 26, 2026
The Gemtek XR1710G (Brightspeed XR1710G) runs the same AXON vendor
bootloader as the Gemtek W1700K, including its Airoha BMT/BBT
handling, so it needs the same chainloader: the vendor bootloader only
loads this U-Boot from the "chainloader" partition, and all OpenWrt data
lives in UBI, which does its own bad block management.

The parts of the board U-Boot uses (UART, reset button, status LEDs,
SPI-NAND and the flash layout) match the W1700K, so the configuration is
the W1700K one with the names changed, plus:

- CONFIG_PINCONF is replaced by CONFIG_PINCTRL_AIROHA_AN7581, as for the
  AN7581 reference board. The W1700K configuration lacks the pin
  controller driver, so U-Boot finds neither the reset button nor the
  status LEDs there ("LED 'status:red' not found (err=-19)").
- The reset button is read when the chainloader starts. If it is held,
  the blue status LED lights up and the recovery image
  (openwrt-airoha-an7581-gemtek_xr1710g-ubi-initramfs-recovery.itb) is
  booted via TFTP from 192.168.1.254, retrying until a server answers.
  This allows recovery without a serial console. The button has to be
  pressed after power is applied: held at power-on, it makes the AN7581
  boot ROM wait for a UART download instead. The chainloader starts about
  15 s after power-on.
- The default menu entry runs boot_ubi instead of boot_production, so a
  broken production volume falls back to the recovery volume, and when
  neither boots the recovery image is loaded via TFTP until a server
  answers. boot_recovery only runs bootm after the recovery volume was
  read, so a warm reset cannot boot a stale image left in RAM.
- As on the Nokia boards, a ubi partition that does not attach is
  formatted, missing ubootenv, ubootenv2 and factory volumes are
  created, and the environment is saved once, so fw_printenv and
  fw_setenv work. CONFIG_ENV_SIZE is set to the ubootenv volume size
  that uboot-envtools uses. The factory volume holds the Wi-Fi EEPROM
  and the MAC addresses and is filled by sysupgrade from the vendor
  partition. Created empty here, it lets the kernel fall back to random
  MAC addresses instead of deferring the Ethernet probe, so the recovery
  image has a working network.
- MMC support is disabled, as on the Nokia boards. The board has no
  eMMC, and with the environment in MMC or UBI the saveenv right after a
  format went to MMC: when no location holds an environment yet,
  env_load() selects the first one.
- The installer variables and menu entry of the W1700K are dropped: the
  device is installed by booting the recovery image and running
  sysupgrade.
- CONFIG_CMD_ASKENV is enabled, as on the Nokia boards: the TFTP and
  recovery menu entries wait for Enter with askenv when they fail. The
  W1700K configuration lacks it, so there they print "Unknown command
  'askenv'" and return to the menu at once.

Based on the XR1710G chainloader by Kenneth Kasilag.

Assisted-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Andrey Korshunov <[email protected]>
Link: openwrt/openwrt#26296
Signed-off-by: Robert Marko <[email protected]>

GitLab-source: b8d878f0b6c2435bfdf3ccfd49a7ea2c0d2cb345
Source delta sanitized for publication; author attribution preserved.
hnt510-great pushed a commit to hnt510-great/openwrt-systemd-host that referenced this pull request Nov 26, 2026
Gemtek XR1710G, sold by Brightspeed, is an AN7581 Wi-Fi 7 gateway.
It is a close relative of the Gemtek W1700K: the Silabs
Bluetooth/Zigbee radio and the Airoha GPS are gone, and the LEDs of
the two 1 GbE ports are driven by the internal switch PHYs instead of
GPIOs. The device tree shares an7581-gemtek-common.dtsi with
the W1700K and only adds these LEDs and the label MAC.

Specification:

- SoC       : Airoha AN7581GT, 4x Cortex-A53
- RAM       : 2 GiB DDR4-2666 (ESMT M16U8G16512A)
- Flash     : 512 MiB SPI-NAND (Winbond W25N04KV)
- WLAN      : MediaTek MT7996 (BE19000) on PCIe
  - 2.4 GHz : 4x4, MT7976GN
  - 5 GHz   : 4x4, MT7977BN
  - 6 GHz   : 4x4, MT7977AN
- Ethernet  : 2x 10 GbE (Realtek RTL8261BE, wan and lan2),
              2x 1 GbE (AN7581 internal switch, lan3 and lan4)
- LEDs      : 1x status, red/green/blue/white (GPIO),
              2x2 lan3/lan4 green/amber (switch PHY)
- Button    : reset
- Fan       : PWM controlled by a Nuvoton NCT7802 on I2C
- UART      : 5-pin header next to the case screw, 115200n8
  - pinout  : TX, GND, VCC, N/C, RX, starting at the screw
- Power     : 12 VDC, 5 A, barrel jack, center positive
- Bootloader: U-Boot 2014.04-rc1 "AXON 1.6", signed, vendor BMT/BBT

The vendor bootloader verifies the image it boots by default and uses
Airoha BMT/BBT for bad block management, which Linux does not know
about. As on the W1700K, a U-Boot chainloader is therefore placed into
the "chainloader" partition (the start of the first vendor firmware
bank), which the vendor bootloader writes and loads, and everything
else lives in UBI, which handles bad blocks itself. The vendor
bootloader and its 66 MiB BMT pool at the end of flash are left alone.

The factory UBI volume holds the MT7996 EEPROM and the MAC addresses.
All of it comes from the vendor partition, which OpenWrt never writes:
the DSD block at 0x400000 holds the MACs, fan_id and the serial number
as text, the EEPROM is in the first good block from 0x405000. When the
volume is missing or holds no valid EEPROM and MACs, as on a new
install, sysupgrade builds it from there before writing the firmware.
The serial number has to match the board, and nothing is written when
the vendor data does not look right.

Installation (via serial console):

1. Open the case: there is a Torx T10 screw under the QR code label,
   then pry the grey and white halves apart starting at the ports.
2. Connect to the UART header and interrupt the vendor bootloader with
   any key.
3. Make the vendor bootloader boot the chainloader from flash, write
   the chainloader with TFTP (server 192.168.1.254), and erase the rest
   of the stock firmware. The vendor Ethernet driver is flaky, the
   tftpboot may need a few attempts:

     setenv serverip 192.168.1.254
     setenv ipaddr 192.168.1.1
     tftpboot 0x89000000 openwrt-airoha-an7581-gemtek_xr1710g-ubi-chainload-uboot.itb
     setenv one flash read 0x600000 0x100000 \$loadaddr
     setenv two "; bootm"
     setenv bootcmd "$one$two"
     saveenv
     flash erase 0x600000 0x100000
     flash write 0x600000 0x100000 0x89000000
     flash erase 0x700000 0x1b700000
     reset

   The last erase matters: the stock firmware keeps its own UBI in this
   area, which the chainloader would otherwise attach and keep.

   If tftpboot keeps failing, load the chainloader over the serial
   console instead: run "loady 0x89000000" in place of the tftpboot,
   send the file with YMODEM (about 30 s at 115200 baud), then go on
   with the setenv commands.

4. The chainloader creates UBI in the erased ubi partition with the
   ubootenv, ubootenv2 and an empty factory volume, and saves its
   environment. With nothing to boot, it lights the blue LED and loads
   openwrt-airoha-an7581-gemtek_xr1710g-ubi-initramfs-recovery.itb via
   TFTP from 192.168.1.254 until a server answers.
5. In the recovery system (192.168.1.1), copy over the sysupgrade.itb
   image and run sysupgrade. It fills the factory volume with the Wi-Fi
   calibration data and the MAC addresses from the vendor partition and
   installs OpenWrt. The recovery volume is optional; without it, the
   chainloader falls back to TFTP when the system does not boot.
6. Further updates use the sysupgrade.itb image.

Reverting to the stock firmware is not documented: the stock firmware
needs an ISP account to be useful.

MAC addresses ("factory" UBI volume):

- WAN     : 0x5000           xx:xx:xx:xx:xx:xx
- LAN     : 0x6000           xx:xx:xx:xx:xx:xx
- 2.4 GHz : 0x6000 + 1
- 5 GHz   : 0x6000 + 2
- 6 GHz   : 0x6000 + 3

Known issues:

- The 10 GbE ports (wan and lan2) may come up without link or lose
  link: the AN7581 USXGMII PCS sometimes fails RX calibration ("No
  FBCK Lock") with the RTL8261BE. The PCS and PHY fixes are being
  worked on separately.

Based on the XR1710G support by Kenneth Kasilag (openwrt/openwrt#22397).

Assisted-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Andrey Korshunov <[email protected]>
Link: openwrt/openwrt#26296
Signed-off-by: Robert Marko <[email protected]>

GitLab-source: 980a7404d781222674d475d06ff44201760701ff
Source delta sanitized for publication; author attribution preserved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core packages pull request/issue for core (in-tree) packages target/airoha pull request/issue for airoha target

Projects

None yet

Development

Successfully merging this pull request may close these issues.