]> git.ipfire.org Git - thirdparty/openwrt.git/log
thirdparty/openwrt.git
9 days agoairoha: an7581: add USB nodes
Christian Marangi [Tue, 28 Oct 2025 12:16:18 +0000 (13:16 +0100)] 
airoha: an7581: add USB nodes

Add USB nodes to AN7581 DTSI, disabled by default.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
9 days agoairoha: add pending patch for USB support on AN7581
Christian Marangi [Tue, 28 Oct 2025 12:14:56 +0000 (13:14 +0100)] 
airoha: add pending patch for USB support on AN7581

Add pending patch for USB support on AN7581 SoC. This is also required
to make operational the 3rd PCIe line that use the USB2 Serdes for PCIe
operations.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
9 days agorealtek: rtl838x: fix regression in enable_phy_polling 20549/head
Felix Baumann [Sun, 26 Oct 2025 01:54:14 +0000 (02:54 +0100)] 
realtek: rtl838x: fix regression in enable_phy_polling

Fix regression from back when support for RTL930x was added.
While at it replace 0x8000 by BIT(15).

Fixes: 27029277f98ddd0006175bdc5beec8b0b150f187
Tested-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Signed-off-by: Felix Baumann <felix.bau@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/20549
Signed-off-by: Robert Marko <robimarko@gmail.com>
10 days agowifi-scripts: ucode: fix check for empty crypto object while scanning 20526/head
Leon M. Busch-George [Fri, 24 Oct 2025 09:54:52 +0000 (11:54 +0200)] 
wifi-scripts: ucode: fix check for empty crypto object while scanning

it can be empty

Signed-off-by: Leon M. Busch-George <leon@georgemail.eu>
Link: https://github.com/openwrt/openwrt/pull/20526
Signed-off-by: Robert Marko <robimarko@gmail.com>
10 days agorealtek: dsa,pcs: rtl930x: let PCS driver setup SerDes 20539/head
Jonas Jelonek [Thu, 16 Oct 2025 16:01:11 +0000 (16:01 +0000)] 
realtek: dsa,pcs: rtl930x: let PCS driver setup SerDes

Remove SerDes initialization/configuration calls from the DSA driver in
'rtl93xx_phylink_mac_config' and let our PCS driver setup the SerDes now
that the driver is able to do that.

Adjust some details in rtl93xx_phylink_mac_config to ensure the MAC is
properly disabled MAC before configuring the SerDes. This was done
within the SerDes code before.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20539
Signed-off-by: Robert Marko <robimarko@gmail.com>
10 days agorealtek: pcs: rtl930x: use regmap for register access
Jonas Jelonek [Wed, 22 Oct 2025 08:44:41 +0000 (08:44 +0000)] 
realtek: pcs: rtl930x: use regmap for register access

Use regmap to access registers in the global register space so we don't
have to use the old macros sw_r32/sw_w32 anymore.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20539
Signed-off-by: Robert Marko <robimarko@gmail.com>
10 days agorealtek: pcs: rtl930x: import SerDes setup code from PHY driver
Jonas Jelonek [Mon, 20 Oct 2025 22:06:33 +0000 (22:06 +0000)] 
realtek: pcs: rtl930x: import SerDes setup code from PHY driver

Import SerDes configuration code from PHY driver into the PCS driver.
Only do mandatory adjustments, rename the function to adhere to the
naming scheme, adjust all SerDes access calls.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20539
Signed-off-by: Robert Marko <robimarko@gmail.com>
10 days agoipq40xx: fix sysupgrade image for Netgear LBR20 20558/head
Christoph Krapp [Sun, 26 Oct 2025 20:41:39 +0000 (21:41 +0100)] 
ipq40xx: fix sysupgrade image for Netgear LBR20

This fixes the sysupgrade image generation for the LBR20 as before
updating resulted in a brick which needed to be recovered using
nmrpflash.

UART log of a bricked unit:
Loading DNI firmware for checking...
Loading firmware 1 ...

NAND read: device 0 offset 0xa600000, size 0x20000
 131072 bytes read: OK

NAND read: device 0 offset 0xa600000, size 0x380000
 3670016 bytes read: OK
rootfs imge header corrupted !
Loading firmware 2 ...

NAND read: device 0 offset 0xa600000, size 0x20000
 131072 bytes read: OK

NAND read: device 0 offset 0xa600000, size 0x380000
 3670016 bytes read: OK
rootfs imge header corrupted !

Comparing the partition contents of a bricked and a working unit showed
that on the bricked one the fake uImage header was missing. The UBI
partition also showed significant changes. Both are fixed when the
base DniImage receipt is used.

Signed-off-by: Christoph Krapp <achterin@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20558
Signed-off-by: Robert Marko <robimarko@gmail.com>
10 days agoipq40xx: improve Netgear LBR20 LED config
Christoph Krapp [Sun, 26 Oct 2025 20:16:50 +0000 (21:16 +0100)] 
ipq40xx: improve Netgear LBR20 LED config

This aligns the LED behaviour with other Orbi devices. Orbi devices have
multiple RBG LEDs at the top of the device and two status LEDs at the
back next to the barrel jack.
The current behaviour of other Orbi devices is to use the multi-color
LEDs at the top for status indication and the green/red LEDs at the back
for running/panic-indication. This matches the vendor behaviour except
the color choice.
Other devices use green as running, blue on upgrade, red on failsafe and
white on bootup, so this aligns the LBR20 behaviour to the rest.

Signed-off-by: Christoph Krapp <achterin@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20558
Signed-off-by: Robert Marko <robimarko@gmail.com>
10 days agoipq40xx: remove ethernet0 alias for Netgear LBR20
Christoph Krapp [Sun, 26 Oct 2025 20:08:25 +0000 (21:08 +0100)] 
ipq40xx: remove ethernet0 alias for Netgear LBR20

This will remove the ethernet0 alias and TODO as setting the LAN MAC via
nvmem to gmac0 will set the correct mac to the switch.

Signed-off-by: Christoph Krapp <achterin@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20558
Signed-off-by: Robert Marko <robimarko@gmail.com>
10 days agoairoha: add nodes for 3rd PCIe line for AN7581
Christian Marangi [Mon, 27 Oct 2025 10:08:46 +0000 (11:08 +0100)] 
airoha: add nodes for 3rd PCIe line for AN7581

Some SoC might use the Serdes for the second USB port as a 3rd PCIe
line (with the SSTR register correctly setup).

Add the node for the 3rd PCIe card and enable for the eMMC RFB board.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
10 days agoodhcpd: update to Git HEAD (2025-10-26) 20559/head
Álvaro Fernández Rojas [Sun, 26 Oct 2025 21:33:33 +0000 (22:33 +0100)] 
odhcpd: update to Git HEAD (2025-10-26)

fc27940fe993 dhcpv6: support a configurable DUID
ae16476bcad2 dhcpv6-ia: split reconf_msg struct into partial structs
a3bf57a39958 dhcpv6: split clientid to a separate struct
14da3727ac0c dhcpv6-ia: simplify/fix IID calculations
f49574e42e78 odhcpd: change "-c" cmd line arg to take a dir
0900202c2754 dhcpv4: dhcpv4_lease() - clarify which variables are requests
2c1e6e7c3ebf dhcpv4: dhcpv4_lease() - simplification
48487aedead8 dhcpv4: dhcpv4_lease() - convert to switch statement
3ad54baa4adc dhcpv4: dhcpv4_assign() - explain address assignment
fab8f67818e6 dhcpv6: send timezone only when client requests

https://github.com/openwrt/odhcpd/compare/0d0fac30075f...fc27940fe993

Fixes: 28bb40caafd8 ("odhcpd: update to Git HEAD (2025-10-22)")
Link: https://github.com/openwrt/openwrt/pull/20559
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
10 days agoelfutils: add compatibility with new fortify-headers 20552/head
Hannu Nyman [Sun, 26 Oct 2025 10:29:54 +0000 (12:29 +0200)] 
elfutils: add compatibility with new fortify-headers

Add compatibility with the new fortify-headers 2.3.3 by
disabling two warnings.

Fixes: 6268692bd2bf ("toolchain: fortify-headers: Update to version 2.3.3")
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Link: https://github.com/openwrt/openwrt/pull/20552
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
10 days agotoolchain: fortify-headers: Fix build of some packages 20561/head
Hauke Mehrtens [Sun, 26 Oct 2025 22:38:03 +0000 (23:38 +0100)] 
toolchain: fortify-headers: Fix build of some packages

Fix some warnings and compile errors generated by the new
fortify-headers when compiling some applications like strace.

Fixes: 6268692bd2bf ("toolchain: fortify-headers: Update to version 2.3.3")
Link: https://github.com/openwrt/openwrt/pull/20561
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 days agobmips: fix leds on f@st3864op 20533/head
Hang Zhou [Thu, 23 Oct 2025 20:21:21 +0000 (07:21 +1100)] 
bmips: fix leds on f@st3864op

gpio-leds were not working on F@ST3864OP before  was merged.

This pull request adds definitions for all LEDs, including the previously
non-working WAN LEDs.

Signed-off-by: Hang Zhou <929513338@qq.com>
Link: https://github.com/openwrt/openwrt/pull/20533
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
11 days agorealtek: add 10G_QXGMII serdes mode support for RTL930x 20472/head
Damien Dejean [Tue, 29 Jul 2025 16:25:35 +0000 (18:25 +0200)] 
realtek: add 10G_QXGMII serdes mode support for RTL930x

In Realtek implementation USXGMII is divided in submodes:
 - USXGMII_SX: 10G single link, equivalent of PHY_INTERFACE_MODE_USXGMII
 - USXGMII_DX: 10G two links (2*5G ?),
 - USXGMII_QX: 10G four links, presumably 4*2.5G, used with the RTL8224,
   equivalent of PHY_INTERFACE_MODE_10G_QXGMII.

This CL adds the 10_GQXGMII modes to the RTL930x implementation. In
particular the "mode set" function is extended to support both simple
mode set, and force mode set depending on the mode according to
dal_longan_sds_mode_set [1].

[1] https://github.com/ddejean/dms-1250-oss-release/blob/main/sdk/sdk_rtk_switch/rtk-sdk/src/dal/longan/dal_longan_sds.c#L1746

Signed-off-by: Damien Dejean <dam.dejean@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20472
Signed-off-by: Robert Marko <robimarko@gmail.com>
11 days agorealtek: add serdes patch for 10G_QXGMII
Damien Dejean [Wed, 27 Aug 2025 14:05:39 +0000 (16:05 +0200)] 
realtek: add serdes patch for 10G_QXGMII

Adds the serdes patch sequence [1] and configuration [2] for the
PHY_INTERFACE_MODE_10G_QXGMII mode (aka USXGMII_QX in Realtek sources).
It is required by devices with light bootloaders (ie not u-boot) that
does not initialize the hardware before booting the kernel.

[1] https://github.com/ddejean/dms-1250-oss-release/blob/main/sdk/sdk_rtk_switch/rtk-sdk/src/dal/longan/dal_longan_construct.c#L1075
[2] https://github.com/ddejean/dms-1250-oss-release/blob/main/sdk/sdk_rtk_switch/rtk-sdk/src/dal/longan/dal_longan_construct.c#L1315

Signed-off-by: Damien Dejean <dam.dejean@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20472
Signed-off-by: Robert Marko <robimarko@gmail.com>
11 days agorealtek: add serdes mapping for rtl930x
Damien Dejean [Sat, 18 Oct 2025 15:01:24 +0000 (17:01 +0200)] 
realtek: add serdes mapping for rtl930x

On the RTL930x series the serdes #3 is backed by serdes #10 when pages
0, 1, 2 or 3 are accessed [1]. This changeset modifies the sds mapping
function from a single implementation for the 3 families to one
implementation per chip family. In particular it implements the mapping
required for the rtl930x one.

[1] https://github.com/ddejean/dms-1250-oss-release/blob/main/sdk/sdk_rtk_switch/rtk-sdk/src/dal/longan/dal_longan_sds.c#L624

Signed-off-by: Damien Dejean <dam.dejean@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20472
Signed-off-by: Robert Marko <robimarko@gmail.com>
11 days agobuild: Add _FORTIFY_SOURCE=3 support 20313/head
Hauke Mehrtens [Sun, 5 Oct 2025 21:30:17 +0000 (23:30 +0200)] 
build: Add _FORTIFY_SOURCE=3 support

Add support for _FORTIFY_SOURCE level 3.

This is supported with glibc and with musl libc.

Link: https://github.com/openwrt/openwrt/pull/20313
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 days agotoolchain: fortify-headers: Update to version 2.3.3
Hauke Mehrtens [Sun, 5 Oct 2025 21:29:04 +0000 (23:29 +0200)] 
toolchain: fortify-headers: Update to version 2.3.3

Update to recent fortify-headers version. This version also supports
_FORTIFY_SOURCE=3.

Changes: https://github.com/jvoisin/fortify-headers/compare/1.1...2.3.3

A patch similar to the removed one was applied upstream:
https://github.com/jvoisin/fortify-headers/commit/b40f6d87482f20e968b27470baca042e50cd6792

The root file system is getting a bit bigger.
Without this commit:
5250380 bin/targets/armsr/armv8/openwrt-armsr-armv8-generic-rootfs.tar.gz
4919997 bin/targets/malta/be/openwrt-malta-be-default-rootfs.tar.gz
With this commit:
5263407 bin/targets/armsr/armv8/openwrt-armsr-armv8-generic-rootfs.tar.gz
4930011 bin/targets/malta/be/openwrt-malta-be-default-rootfs.tar.gz

Link: https://github.com/openwrt/openwrt/pull/20313
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
12 days agotools: b43-tools: Update to latest HEAD 20542/head
Hauke Mehrtens [Sat, 25 Oct 2025 15:09:10 +0000 (17:09 +0200)] 
tools: b43-tools: Update to latest HEAD

Add the following changes:
```
12524df b43-asm: fix undefined behavior by using unsigned shift
fa9cb86 Merge pull request #9 from PolynomialDivision/unsinged-fix
5d592cb fwcutter: Fix compiler warning
b96318b dasm: Fix compiler warning
2270cee ssb_sprom: Fix _DEFAULT_SOURCE warning
4781cde ssb_sprom: Fix compiler warning
cce45e3 ssb_sprom: Update .gitignore
5ca416f disassembler: Update .gitignore
44673b6 Update .gitignore
0c8f8b6 assembler: Update .gitignore
1f5b63d fwcutter: Update .gitignore
35fe438 Add README.md
```

Link: https://github.com/openwrt/openwrt/pull/20542
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
12 days agouboot-sifiveu: fix build with swig 4.3.0 20538/head
Hauke Mehrtens [Sat, 25 Oct 2025 12:27:00 +0000 (14:27 +0200)] 
uboot-sifiveu: fix build with swig 4.3.0

Fixes the following error by backporting upstream update:
```
scripts/dtc/pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_next_node’:
scripts/dtc/pylibfdt/libfdt_wrap.c:5581:17: error: too few arguments to function ‘SWIG_Python_AppendOutput’
 5581 |     resultobj = SWIG_Python_AppendOutput(resultobj, val);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~
```

This is the same fix as applied in 4e68103c4eb9 ("uboot-rockchip: fix build with swig 4.3.0")

Link: https://github.com/openwrt/openwrt/pull/20538
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
12 days agovalgrind: Update to version 3.26.0 20537/head
Hauke Mehrtens [Fri, 24 Oct 2025 22:34:04 +0000 (00:34 +0200)] 
valgrind: Update to version 3.26.0

The following patches were removed:
 * 010-486180-Valgrind-MIPS-VexGuestArchState-has-no-member.patch [1]
 * 020-mips-skip-using-shared-syscall-numbers-for-mips32.patch [2]
 * 021-mips-skip-using-shared-syscall-numbers-for-mips64.patch [3]

The License changed from GPLv2 to GPLv3. [4]

RISCV64/Linux is supporterd since version 3.25.0.

[1]: https://sourceware.org/git/?p=valgrind.git;a=commitdiff;h=7214886886bce9029f325214156c02dcfff760d5
[2]: https://sourceware.org/git/?p=valgrind.git;a=commitdiff;h=54d6ad3348fb50f5b972fe9c05d0d8757bfe73ba
[3]: https://sourceware.org/git/?p=valgrind.git;a=commitdiff;h=efaa17e53a750d5f0f4c138b507b1b104729ed67
[4]: https://sourceware.org/git/?p=valgrind.git;a=commitdiff;h=3392155359822c0d4e8bb371862e92425054d02a

Link: https://github.com/openwrt/openwrt/pull/20537
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
12 days agorealtek: fix SFP GPIOs for XikeStor SKS8310-8X 20532/head
Jonas Jelonek [Fri, 24 Oct 2025 21:40:44 +0000 (21:40 +0000)] 
realtek: fix SFP GPIOs for XikeStor SKS8310-8X

Fix the GPIO assignment of RX-LOS and TX-DISABLE for all SFP ports. Both
were actually swapped when adding support for the device. Apparently,
this didn't cause any issues.

Fixes: 62d50fb196
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20532
Signed-off-by: Robert Marko <robimarko@gmail.com>
12 days agokernel: bump 6.6 to 6.6.114 20434/head
Zxl hhyccc [Fri, 24 Oct 2025 15:56:59 +0000 (23:56 +0800)] 
kernel: bump 6.6 to 6.6.114

https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.114

Removed upstreamed:
/target/linux/generic/backport-6.6/540-v6.12-ksmbd-browse-interfaces-list-on-FSCTL_QUERY_INTERFACE_INFO.patch

merged upstream with commit: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.114&id=499089376206f3f7f09d6852b3ec92f2674d24bb

All other patches automatically rebased.

Build system: bcm4908
Build system: bcm53xx

Signed-off-by: Zxl hhyccc <zxlhhy@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20434
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
12 days agokernel: bump 6.6 to 6.6.113
Zxl hhyccc [Mon, 20 Oct 2025 14:57:35 +0000 (22:57 +0800)] 
kernel: bump 6.6 to 6.6.113

https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.113

Manually rebased:

/target/linux/generic/backport-6.6/540-v6.12-ksmbd-browse-interfaces-list-on-FSCTL_QUERY_INTERFACE_INFO.patch

Dropped patch

/target/linux/generic/backport-6.6/541-v6.18-ksmbd-add-max-ip-connections-parameter.patch

merged upstream with commit:  https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.6.y&id=bc718d0bd87e372f7786c0239e340f3577ac94fa

All other patches automatically rebased.

Build system: bcm4908
Build system: bcm53xx

Signed-off-by: Zxl hhyccc <zxlhhy@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20434
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
12 days agokernel: bump 6.6 to 6.6.112
Zxl hhyccc [Fri, 17 Oct 2025 17:55:10 +0000 (01:55 +0800)] 
kernel: bump 6.6 to 6.6.112

https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.112

All patches automatically rebased.

Build system: bcm4908
Build system: bcm53xx

Signed-off-by: Zxl hhyccc <zxlhhy@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20434
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
12 days agokernel: bump 6.6 to 6.6.111
Zxl hhyccc [Fri, 17 Oct 2025 16:24:09 +0000 (00:24 +0800)] 
kernel: bump 6.6 to 6.6.111

https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.111

All patches automatically rebased.

Build system: bcm4908
Build system: bcm53xx

Signed-off-by: Zxl hhyccc <zxlhhy@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20434
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
13 days agokernel: bump 6.12 to 6.12.55 20515/head
John Audia [Thu, 23 Oct 2025 19:00:15 +0000 (15:00 -0400)] 
kernel: bump 6.12 to 6.12.55

Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.55

Removed upstreamed:
generic/backport-6.12/510-v6.18-ksmbd-fix-recursive-locking-in-RPC-handle-list-access.patch[1]

All other patches automatically rebased.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.55&id=4602b8cee1481dbb896182e5cb1e8cf12910e9e7

Build system: x86/64
Build-tested: x86/64-glibc
Run-tested: x86/64-glibc

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/20515
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
13 days agoipq806x: chromium: Pull OnHub caldata directly from VPD 20477/head
Brian Norris [Tue, 21 Oct 2025 05:44:25 +0000 (22:44 -0700)] 
ipq806x: chromium: Pull OnHub caldata directly from VPD

The OnHub bootloader tries to patch the calibration directly into the
device tree, but it uses constant paths that look like this:

  static const char *dt_path = "soc/pci@%8.8x/pcie@0/ath10k@0,0";

  https://chromium.googlesource.com/chromiumos/platform/depthcharge/+/refs/heads/firmware-storm-6315.B/src/board/storm/wifi_calibration.c#69

These paths have changed in recent kernels, so we need to adapte.

The CONFIG_GOOGLE_VPD kernel module (provided by kmod-google-firmware)
is present on OnHub, and provides alternative means to locate this
information, in /sys/firmware/vpd/ro/wifi_base64_calibration{0,1,2}. Use
that instead.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20477
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agoairoha: backport fix for Airoha offload support with airoha_hw_init fail
Christian Marangi [Fri, 24 Oct 2025 10:16:11 +0000 (12:16 +0200)] 
airoha: backport fix for Airoha offload support with airoha_hw_init fail

Backport a patch fixing a kernel panic on airoha_hw_init fail. This
should better handle scenario with NPU load Probe deferring.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
13 days agoairoha: backport cleanup patch for Airoha Ethernet driver
Christian Marangi [Fri, 24 Oct 2025 10:15:27 +0000 (12:15 +0200)] 
airoha: backport cleanup patch for Airoha Ethernet driver

Backport cleanup patch for Airoha Ethernet patch to permit easier
backport in the future.

Automatically refresh all affected patch.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
13 days agoairoha: add pending patch to fix Aeonsemi AS21xxx PHY
Christian Marangi [Fri, 24 Oct 2025 09:51:40 +0000 (11:51 +0200)] 
airoha: add pending patch to fix Aeonsemi AS21xxx PHY

Add pending patch to make address some workaround needed to make the
Aeonsemi AS21xxx PHY working on the Airoha AN7581/AN7583 board.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
13 days agoairoha: an7581: add Aeonsemi AS21xxx PHY to RFB eMMC board
Christian Marangi [Fri, 24 Oct 2025 09:48:13 +0000 (11:48 +0200)] 
airoha: an7581: add Aeonsemi AS21xxx PHY to RFB eMMC board

Airoha AN7581 eMMC RFB board mount 2 Aeonsemi AS21xxx PHY. One is
usually connected to GDM4 and the other is optionally connected to GDM2.
Add the relevant nodes to support the one connected to GDM4.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
13 days agoodhcp6c: change dhcpv6.sh config option "ifaceid" to "ip6ifaceid" 19318/head
Peter Meiser [Sun, 6 Jul 2025 11:04:49 +0000 (13:04 +0200)] 
odhcp6c: change dhcpv6.sh config option "ifaceid" to "ip6ifaceid"

With this change, the interface identifier can be configured via LuCI.

Signed-off-by: Peter Meiser <peter.meiser@gmx.com>
Link: https://github.com/openwrt/openwrt/pull/19318
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agoath79: engenius,eXXX: use nvmem 16231/head
Rosen Penev [Fri, 14 Jun 2024 18:30:31 +0000 (11:30 -0700)] 
ath79: engenius,eXXX: use nvmem

Userspace handling is deprecated.

Move calibration for pcie node out of dtsi. calibration size for ath10k
and ath9k differs.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16231
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agoipq40xx: fix sorting in base-files 20518/head
Christoph Krapp [Thu, 23 Oct 2025 17:45:54 +0000 (19:45 +0200)] 
ipq40xx: fix sorting in base-files

Align the sorting of cases with other targets.

Signed-off-by: Christoph Krapp <achterin@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20518
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agoipq40xx: merge duplicated cases in base-files
Christoph Krapp [Thu, 23 Oct 2025 17:07:20 +0000 (19:07 +0200)] 
ipq40xx: merge duplicated cases in base-files

Merge some identical cases in base-files.

Signed-off-by: Christoph Krapp <achterin@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20518
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agoipq40xx: use tabs instead of spaces in base-files
Christoph Krapp [Thu, 23 Oct 2025 09:08:53 +0000 (11:08 +0200)] 
ipq40xx: use tabs instead of spaces in base-files

This changes the use of spaces to tabs in all base-files to be in line
with other targets.

Signed-off-by: Christoph Krapp <achterin@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20518
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agoipq40xx: remove trailing whitespaces in base-files
Christoph Krapp [Thu, 23 Oct 2025 09:01:44 +0000 (11:01 +0200)] 
ipq40xx: remove trailing whitespaces in base-files

This removes the obsolete trailing whitespaces from all base-files cases
to be in line with other targets.

Signed-off-by: Christoph Krapp <achterin@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20518
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agoairoha: an7581: add BL2 and BL31+U-Boot Artifacts for RFB board
Christian Marangi [Fri, 24 Oct 2025 07:49:57 +0000 (09:49 +0200)] 
airoha: an7581: add BL2 and BL31+U-Boot Artifacts for RFB board

Pack the BL2 and BL31+U-Boot artifacts as Airoha AN7581 is currently
supported in upstream U-Boot and bootloader files can be used for
unfused boards.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agolinux-firmware: update to 20251021 20504/head
John Audia [Wed, 22 Oct 2025 19:44:07 +0000 (15:44 -0400)] 
linux-firmware: update to 20251021

% git log --no-merges --pretty=oneline --abbrev-commit 20251011...20251021
b0b775e5ad10 Revert "linux-firmware: update firmware for MT7922 WiFi device"
d06442f2b6f5 QCA: Update Bluetooth WCN6856 firmware 2.1.0-00653 to 2.1.0-00659
9440754a997a iwlwifi: add Bz/Fm and gl FW for core98-161 release
f2fbfd22d9d1 iwlwifi: update Bz/Hr and Bz/Gf firmwares for core98-161 release
dda8b9b09a1c iwlwifi: update ty/So/Ma firmwares for core98-161 release
822db3708dbc iwlwifi: update cc/Qu/QuZ firmwares for core98-161 release
edc9bbecf0fe intel: qat: Fix missing link
80bca4b3d75e amdgpu: DMCUB updates for various ASICs
7a1a266e22f1 nvidia: add generic bootloader for GSP-enabled systems
2121082a8884 linux-firmware: qcom: sync audioreach firmwares from v1.0.0 build
4ba7ff78711b qcom: vpu: rename firmware binaries
15cb201918e5 Intel IPU7: Update product signed firmware binary
10de40e2bb55 i915: Xe2LPD DMC v2.29
4bda88bd3a9f i915: Xe3LPD DMC v2.32
afae3516d1d8 i915: Xe3LPD_3002 DMC v2.27
bcce0efb5c4a WHENCE: nvidia: rearrange GSP-RM firmware lines
a96c15581a53 linux-firmware: Add ISH firmware file for Intel Pather Lake platform
55d8d2fa006b linux-firmware: Update firmware file for Intel Magnetar core
890cad9f8387 linux-firmware: Update firmware file for Intel BlazarU core
7bbab634ede0 linux-firmware: Update firmware file for Intel BlazarI core

Build system: x86/64
Build-tested: x86/64-glibc
Run-tested: x86/64-glibc

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/20504
Signed-off-by: Nick Hainke <vincent@systemli.org>
2 weeks agorealtek: phy: rtl931x: remove SerDes code from PHY driver 20494/head
Jonas Jelonek [Wed, 22 Oct 2025 07:21:09 +0000 (07:21 +0000)] 
realtek: phy: rtl931x: remove SerDes code from PHY driver

Since ddf94f7489 and 4a5de35dba, a SerDes is configured by the PCS
driver. All code from PHY and DSA related to this has been imported and
adjusted into the PCS driver. Thus, remove the unused code from the PHY
driver now.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20494
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 weeks agoimage: move mkits.sh outside lock section 20492/head
Christian Marangi [Wed, 22 Oct 2025 00:45:50 +0000 (02:45 +0200)] 
image: move mkits.sh outside lock section

As mkits.sh only generates the relevant DTS for mkimage and is
specific for the building image, we can move it outside the locked
section as it doesn't do any operation that can be used concurrently by
others.

This won't have any real impact but clean the code making it clear what
needs to be protected and what can be executed concurrently.

Link: https://github.com/openwrt/openwrt/pull/20492
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agoscripts/mkits.sh: move out .pagesync generation for RootFS blob
Christian Marangi [Thu, 23 Oct 2025 13:31:46 +0000 (15:31 +0200)] 
scripts/mkits.sh: move out .pagesync generation for RootFS blob

It's expected the mkits.sh script to generate only the relevant DTS
entry and have all the blob already prepared to use for mkimage.

This is not the case for the RootFS case where the script generates a
.pagesync with the dd command.

To better handle this, drop the dd command and instead error out if the
.pagesync blob is not found if RootFS is used.

Adapt the generic fit build in image-commands.mk to call the dd for
.pagesync right before mkits.sh.

Link: https://github.com/openwrt/openwrt/pull/20492
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agoimage: fix race between mkits.sh and mkimage in .itb squashfs generation
Christian Marangi [Wed, 22 Oct 2025 00:17:25 +0000 (02:17 +0200)] 
image: fix race between mkits.sh and mkimage in .itb squashfs generation

With further investigation it was found a race in generating .itb images
that include a RootFS caused by the mkits.sh and the mkimage.

Due to the fact that mkits.sh generates a .pagesync image of the passed
rootfs, it can happen that, concurrently, mkimage can be called at the
same time mkits.sh is creating another .pagesync for the same rootfs.

This cause mkimage to use an half made rootfs.pagesync creating a
corrupted image.

To address this, also protect the mkimage with the same lock used for
mkits.sh preventing any kind of concurrent usage/generation of the
rootfs.pagesync blob

Fixes: 52cc9d82f113 ("kernel: rework Initramfs locking logic")
Link: https://github.com/openwrt/openwrt/pull/20492
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agoe2fsprogs: add pending patch that improve reproducibility 20499/head
Christian Marangi [Wed, 22 Oct 2025 12:18:07 +0000 (14:18 +0200)] 
e2fsprogs: add pending patch that improve reproducibility

Add pending patch that disable libmagic support as this cause
reproducibility issue due to timing of presence of libmagic library at
times e2fsprogs gets compiled.

The new patch adds control on libmagic inclusion and we add the
--without-libmagic to the configure args by default.

Reported-by: Paul Spooren <mail@aparcar.org>
Link: https://github.com/openwrt/openwrt/pull/20499
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agoe2fsprogs: drop redundant patch for host build
Christian Marangi [Wed, 22 Oct 2025 12:16:11 +0000 (14:16 +0200)] 
e2fsprogs: drop redundant patch for host build

Drop redundant patch for host build as this has been fixed in 1.44.1
but for some reason it wasn't notice with the patch directly refreshed
(with the fix right up)

Fixes: 198172c04882 ("package/utils/e2fsprogs: update to 1.44.1")
Link: https://github.com/openwrt/openwrt/pull/20499
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agoairoha: backport additional upstream patch for NPU support for AN7583
Christian Marangi [Thu, 23 Oct 2025 14:52:53 +0000 (16:52 +0200)] 
airoha: backport additional upstream patch for NPU support for AN7583

Backport additional patch required for NPU support of Airoha AN7583.
These are specific for the NPU module with some minor fixes and to adds
upport for loading the specific Airoha AN7583 NPU firmware.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agoodhcpd: set procd expected variable for odhcpd update script 20485/head
Paul Donald [Tue, 21 Oct 2025 14:54:23 +0000 (16:54 +0200)] 
odhcpd: set procd expected variable for odhcpd update script

Otherwise odhcpd logs:

```
odhcpd[14970]: Sent 113 bytes to xxx%lan@br-lan
BusyBox v1.37.0 (2025-10-10 09:07:48 UTC) multi-call binary.

Usage: basename FILE [SUFFIX] | -a FILE... | -s SUFFIX FILE...

Strip directory path and SUFFIX from FILE

        -a              All arguments are FILEs
        -s SUFFIX       Remove SUFFIX (implies -a)
odhcpd[14970]: Netlink newneigh xxx on lan
```

Apparently procd scripts expect initscript set.

h/t @Alphix for finding this.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20485
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 weeks agoairoha: an7583: add NPU nodes and enable kernel config
Christian Marangi [Thu, 23 Oct 2025 14:23:42 +0000 (16:23 +0200)] 
airoha: an7583: add NPU nodes and enable kernel config

Add relevant nodes for NPU support for Airoha AN7583 and enable the
kernel config to enable support in the Airoha Ethernet driver.

NPU firmware is scheduled to be upstreamed to linux-firmware and will be
added once present upstream.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agoairoha: an7583: drop bootloader artifacts entry and add default pkg
Christian Marangi [Thu, 23 Oct 2025 13:42:21 +0000 (15:42 +0200)] 
airoha: an7583: drop bootloader artifacts entry and add default pkg

Fix the current image Makefile for Airoha AN7583 by dropping the
artifacts entry for bootloader and add default PKG for the PHY mounted
on the RFB boards.

The artifacts for the bootloader will be readded later once ATF-A
support will be pushed mainline.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agoairoha: an7583: Add missing DTS for EMMC RFB board
Christian Marangi [Thu, 23 Oct 2025 13:38:36 +0000 (15:38 +0200)] 
airoha: an7583: Add missing DTS for EMMC RFB board

While adding support for Airoha AN7583, it was forget to push the EMMC
DTS while defining the variant in the image Makefile.

Add the missing DTS to fix image creation error.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agoairoha: an7583: add additional comments on EVB board
Christian Marangi [Thu, 23 Oct 2025 13:37:00 +0000 (15:37 +0200)] 
airoha: an7583: add additional comments on EVB board

On the Airoha AN7583 EVB there are 2 Aeonsemi AS21xxx PHY but only the
one connected to Serdes Ethernet is usable as the other connected to
Serdes PON is not actually HW connected (as the serdes is connected to
the BOSA port)

Add comments and disable the relevant PHY.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agoipq40xx: meraki: convert to nvmem for calibration 20474/head
Hal Martin [Wed, 22 Oct 2025 16:16:00 +0000 (18:16 +0200)] 
ipq40xx: meraki: convert to nvmem for calibration

This commit changes the Meraki MR33 and MR74 device trees to use nvmem
for ART calibration.

The WiFi BDF was moved from insect-common.dtsi to the respective
device files in preparation for additional insect-family devices being added.

Signed-off-by: Hal Martin <hal.martin@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20474
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 weeks agoodhcpd: update to Git HEAD (2025-10-22) 20502/head
Álvaro Fernández Rojas [Wed, 22 Oct 2025 16:29:24 +0000 (18:29 +0200)] 
odhcpd: update to Git HEAD (2025-10-22)

0d0fac30075f dhcpv4: bump problem scenario up to warn
bf6137092346 config: properly set log level from uci
7956f4271b4e dhcpv6: RFC4833 timezones
7000557cd8f6 dhcpv6-ia: respect prefix assigned to interface (>= /64)
e1e60601ffeb odhcpd: improve odhcpd_urandom()
c2eb4b59f107 config: fix erroneous clamp message if clamp value == max
54b9e729b00d dhcpv4: bail earlier on release/decline
417f4b11d352 dhcpv4: don't hardcode options array length
d63fa3c3612c dhcpv4: shrink struct dhcpv4_message
9653b43617e3 dhcpv4: use iovec for forcereconf messages, fix hash
bf41f4edfbe3 dhcpv4: fix padding of iovec message in dhcpv4_handle_msg()
be68f423c528 dhcpv4: some minor cleanups post-iovec
e24a371ef714 dhcpv4: use iovec for forcerenew opts
bd353e891ae6 dhcpv4: use iovec for router and DNS server
b81cfaa7859e dhcpv4: use iovec for DNS search and MTU
578a9289440b dhcpv4: use iovec for netmask/hostname/broadcast
5bafc17b79d8 dhcpv4: use iovec for leasetime/renew/rebind
b63448ffe447 dhcpv4: introduce a reply_opts array
0533eaea0a94 dhcpv4: use iovec for DNR
6329e37d595d dhcpv4: use iovec for NTP
87fee619205d dhcpv4: use iovec for message and serverid
2f97bf0b56de dhcpv4: reorder some more variables in dhcpv4_handle_msg()
18c1b02bdc20 dhcpv4: remove one more variable from dhcpv4_handle_msg()
6fd691ff29cd dhcpv4: move dest handling from dhcpv4_handle_msg()
1f803caf9a1f dhcpv4: don't copy reqopts around
b1be3984ebf8 dhcpv4: more refactoring of dhcpv4_handle_msg()
85717bedf8ce dhcpv4: clarify variable names in dhcpv4_handle_msg()
be864ccf9919 dhcpv4: some more cleanups to dhcpv4_handle_msg()
f87464520564 dhcpv4: preparations for iovec usage
f48e1c205af3 odhcdp: use a more suitable clock
7e78caac4eae dhcpv6: change dhcpv6 message type check in relay
288abd9c4046 dhcpv6: move dhcpv6 message type check for early exit
d504458ef515 odhcpd: add a simple build script
4ee309a54011 github: improve CI
ff3a241ccc98 odhcpd: shrink binary size by creating a logging function
e2ecf7ba6d72 odhcpd: support stderr logging
5de3b0d5b509 odhcpd: add log helpers
398d03a1a236 config: cap dhcpv6_pd_min_len to max instead of only logging error
4f54738d3ae7 config: clamp dhcpv6_hostid_len instead of only logging an error
465f19c9c2e3 config: clamp ra_mtu into 1280-65535 range
434b06133997 config: cap ra_retranstime and warn instead of only logging an error
e5f58a90a147 config: cap ra_hoplimit to maximum and warn instead of logging an error
208eb10307c1 config: cap ra_reachabletime to RFC maximum instead of logging error
93449f1513b4 config: drop double size lease times; they are all UINT32_MAX;
439c0ceab131 router: redefine ra_mininterval and ra_maxinterval as uint32_t
84b4dfe81363 config: clamp ra_mininterval, ra_maxinterval, ra_lifetime at load time
aa4f26232e05 router: refactor calc_ra_lifetime; redefine ra_lifetime as uint32_t
6ece28ffd475 config: do MaxRtrAdvInterval init at (ra_maxinterval) init time
dc03e02d973e router: Apply updated values from RFC9096 (updates RFC4861) to RA/ND
cc7766c12abe router: Apply updated values from RFC8319 (updates RFC4861) to RA/ND
964da13e758c config: refactor parse_leasetime() - branch amount remains same
9646c749467b github: fix CMAKE_SYSTEM_PROCESSOR copy&paste
288206c9a2ed github: add CI build
30780debd691 odhcpd: fix a compilation error
e0b2c3cf9476 odhcpd: allow assignments to be reassigned
01e5e311b0db odhcpd: support multiple per-client DUIDs
aebc647a6b7b odhcpd: support assignments on the basis of IAID
cc3ec9c20c61 odhcpd: support IAIDs for static DHCPv6 leases
e42c62725942 odhcpd: break up complex matching logic
e1123906a4bc odhcpd: document the ubus interface
c69200195263 dhcpv4: generate dbus events on lease expiry
dd7a2d474d0d dhcpv4: fix ubus events
22481d848e0d odhcpd: remove mac_len argument to ubus_bcast_dhcp_event()
d31d64efd56c odhcpd: fix ubus support flag in help msg
9bc1b4e26e10 odhcpd: reduce use of WITH_UBUS defines in code
d402cdae4316 ndp: fix macOS IPv6 compatibility by using link-local source addresses

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 weeks agoodhcp6c: update to Git HEAD (2025-10-21) 20501/head
Álvaro Fernández Rojas [Wed, 22 Oct 2025 16:23:14 +0000 (18:23 +0200)] 
odhcp6c: update to Git HEAD (2025-10-21)

77e1ae21e67f odhcp6c: set server address from Information-request reply
e24ac1cf8c27 dhcpv6: use a per-interface IAID for IA_NA requests
053e6c4b3863 github: improve CI
b65ff293a969 dhcpv6: Check status code for IA_ADDR operations
3c7e425169e1 dhcpv6: Add error checking to handle renew failure for IA_PD operations
8de25373a860 dhcpv6: dhcpv6_parse_ia refactor to switch case
ca3cd525f447 odhcp6c: fix deamon raw buffer inc
d7afeea2b965 dhcpv6c: fix illegal DHCPV6_OPT_FQDN
70f7467db301 script: don't ignore RA with zero router lifetime
6ca1552cb3fe odhcp6c: sync and accumulate RA & DHCPv6 events as fast as possible
29b58cfb4711 odhcp6c: update cmake file
ee6d4a82bbeb github: add CI build

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 weeks agoath79: enterasys,ws-ap3805i: use nvmem 16286/head
Rosen Penev [Wed, 1 Oct 2025 20:22:33 +0000 (13:22 -0700)] 
ath79: enterasys,ws-ap3805i: use nvmem

Userspace handling is deprecated.

Use ath9k LED instead of specifying a generic one.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16286
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agoath79: enterasys,ws-ap3705i: use nvmem
Rosen Penev [Sun, 18 Feb 2024 04:58:33 +0000 (20:58 -0800)] 
ath79: enterasys,ws-ap3705i: use nvmem

Userspace handling is deprecated.

Use ath9k LED binding to avoid generic LED usage.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16286
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agomediatek: add Konka KOMI A31 support 20357/head
Tianling Shen [Thu, 9 Oct 2025 13:31:22 +0000 (21:31 +0800)] 
mediatek: add Konka KOMI A31 support

This board is also as known as E-Life ETR631-T/ETR635-U.

Hardware specification:
  SoC: MediaTek MT7981B 2x A53
  Flash: 128 MB SPI-NAND
  RAM: 256MB DDR3
  Ethernet: 4x 10/100/1000 Mbps
  Switch: MediaTek MT7531AE
  WiFi: MediaTek MT7976C
  Button: Reset, Mesh
  Power: DC 12V 1A

Gain telnet access:
1. Login into web interface, and download the configuration.
2. Uncompress the configuration:
     * Enter fakeroot if you are not login as root.
   tar -zxf <filename>.tar.gz
3. Edit 'etc/passwd', remove root password: 'root::1:0:99999:7:::'.
4. Edit 'etc/rc.local', insert telnetd command before 'exit 0':
   ( sleep 3s; telnetd; ) &
5. Repack the configuration:
   tar -zcf backup.tar.gz etc/
6. Upload new configuration via web interface, now you can connect to
   KOMI A31 via telnet.

Flash instructions:
1. Connect to KOMI A31, backup everything, especially 'Factory' part.
2. Write new BL2:
   mtd write openwrt-mediatek-filogic-konka_komi-a31-preloader.bin BL2
3. Write new FIP:
   mtd write openwrt-mediatek-filogic-konka_komi-a31-bl31-uboot.fip FIP
4. Set static IP on your PC:
   IP 192.168.1.254/24, GW 192.168.1.1
5. Serve OpenWrt initramfs image using TFTP server.
6. Cut off the power and re-engage, wait for TFTP recovery to complete.
7. After OpenWrt has booted, perform sysupgrade.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/20357
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agorealtek: switch XGS1250-12 to rt-loader 20445/head
Stijn Segers [Sat, 18 Oct 2025 10:49:15 +0000 (12:49 +0200)] 
realtek: switch XGS1250-12 to rt-loader

Allows us a bit more headroom flash wise and access to more recent
compression algorithms.

Signed-off-by: Stijn Segers <foss@volatilesystems.org>
Link: https://github.com/openwrt/openwrt/pull/20445
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agokernel: bump 6.12 to 6.12.54 20408/head
John Audia [Sun, 19 Oct 2025 19:49:48 +0000 (15:49 -0400)] 
kernel: bump 6.12 to 6.12.54

Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.54

Manually rebased:
bcm27xx/patches-6.12/950-0018-arm64-setup-Fix-build-warning.patch

All other patches automatically rebased.

Build system: x86/64
Build-tested: flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64-glibc
Run-tested: flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64-glibc

Build system: x86/64
Build-tested: x86/64-glibc
Run-tested: x86/64-glibc

Signed-off-by: John Audia <therealgraysky@proton.me>
Build system: x86/64
Build-tested: mediatek/filogic
Run-tested: mediatek/filogic

Signed-off-by: Edoardo Pinci <epinci@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/20408
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agokernel: bump 6.12 to 6.12.53
Edoardo Pinci [Wed, 15 Oct 2025 19:44:25 +0000 (21:44 +0200)] 
kernel: bump 6.12 to 6.12.53

Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.53

Dropped patch
- /target/linux/generic/backport-6.12/541-v6.18-ksmbd-add-max-ip-connections-parameter.patch
merged upstream with commit https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=8173dcfafe116adb08f8daf21c09c71ac5882d8f

Added backport
- target/linux/generic/backport-6.12/510-v6.18-ksmbd-fix-recursive-locking-in-RPC-handle-list-access.patch
cherry picked from https://github.com/torvalds/linux/commit/88f170814fea74911ceab798a43cbd7c5599bed4

All other patches automatically rebased.

Build system: x86/64
Build-tested: mediatek/filogic
Run-tested: mediatek/filogic

Signed-off-by: Edoardo Pinci <epinci@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/20408
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agokernel: bump 6.12 to 6.12.52
Edoardo Pinci [Tue, 14 Oct 2025 17:46:29 +0000 (19:46 +0200)] 
kernel: bump 6.12 to 6.12.52

Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.52

All patches automatically rebased.

Build system: x86/64
Build-tested: mediatek/filogic
Run-tested: mediatek/filogic

Signed-off-by: Edoardo Pinci <epinci@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/20408
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agoqualcommbe: drop duplicated patches 20503/head
Leo Barsky [Wed, 22 Oct 2025 14:24:07 +0000 (10:24 -0400)] 
qualcommbe: drop duplicated patches

Drop duplicaded patches:
0010-v6.14-net-phy-add-phy_inband_caps.patch
0011-v6.14-net-phylink-add-pcs_inband_caps-method.patch
in: generic/backport-6.12/
601-04-v6.14-net-phy-add-phy_inband_caps.patch
601-09-v6.14-net-phylink-add-pcs_inband_caps-method.patch
Fixes: 813ecda1f387e529bddb059acc7cef27bf821537
Signed-off-by: Leo Barsky <leobrsky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/20503
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 weeks agostm32: drop kernel 6.6 support 20468/head
Thomas Richard [Mon, 20 Oct 2025 12:23:18 +0000 (14:23 +0200)] 
stm32: drop kernel 6.6 support

Drop config and patches for Linux 6.6.

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Link: https://github.com/openwrt/openwrt/pull/20468
Signed-off-by: Nick Hainke <vincent@systemli.org>
2 weeks agostm32: use kernel 6.12 by default
Thomas Richard [Mon, 20 Oct 2025 12:20:22 +0000 (14:20 +0200)] 
stm32: use kernel 6.12 by default

Switch to Linux kernel 6.12.

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Link: https://github.com/openwrt/openwrt/pull/20468
Signed-off-by: Nick Hainke <vincent@systemli.org>
2 weeks agobridger: fix mirror download hash
Felix Fietkau [Wed, 22 Oct 2025 11:42:37 +0000 (13:42 +0200)] 
bridger: fix mirror download hash

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 weeks agoairoha: backport upstream patch for AN7583 Ethernet support 20489/head
Christian Marangi [Tue, 21 Oct 2025 21:12:07 +0000 (23:12 +0200)] 
airoha: backport upstream patch for AN7583 Ethernet support

Backport upstream patch for AN7583 Ethernet support. While at it also
backport some additional fixes required to apply the AN7583 patches
cleanly.

Refresh all affected patch automatically (aside from the XSI patch that
changed the implementation)

Link: https://github.com/openwrt/openwrt/pull/20489
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agogeneric: backport phylink patches for PCS/PHY caps OPs 20461/head
Christian Marangi [Sun, 19 Oct 2025 23:36:34 +0000 (01:36 +0200)] 
generic: backport phylink patches for PCS/PHY caps OPs

Backport phylink patches for PCS/PHY caps OPs. This makes it easier to
align future generic PCS patch and permit supporting special PHY that
needs specific tune if "in-band" mode is enabled (for example Aeonsemi
PHYs)

This is also mainly using the upstream version of the Mediatek patch
739-net-add-negotiation-of-in-band-capabilities.

All affected patch automatically refreshed.

Link: https://github.com/openwrt/openwrt/pull/20461
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agoath79: add calibration variant for TP-Link Archer C60 v2 20496/head
Christoph Krapp [Thu, 25 Sep 2025 10:26:45 +0000 (12:26 +0200)] 
ath79: add calibration variant for TP-Link Archer C60 v2

Now that we have a board file, add calibration variant for TP-Link
Archer C60 v2 and add ipq-wifi package for it.

Tested-by: Semih Baskan <strstgs@gmail.com>
Signed-off-by: Christoph Krapp <achterin@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20496
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 weeks agoipq-wifi: Add entry for TP-Link Archer C60 v2
Christoph Krapp [Thu, 25 Sep 2025 10:26:15 +0000 (12:26 +0200)] 
ipq-wifi: Add entry for TP-Link Archer C60 v2

Add IPQ Wifi entry for ath79 TP-Link Archer C60 v2.

Signed-off-by: Christoph Krapp <achterin@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20496
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 weeks agoipq-wifi: update to Git HEAD (2025-10-22)
Robert Marko [Wed, 22 Oct 2025 09:36:14 +0000 (11:36 +0200)] 
ipq-wifi: update to Git HEAD (2025-10-22)

c585e435c611 ipq6018: add jdcloud_re-cs-02 BDF
14aef623f3e5 qcn9074: add jdcloud_re-cs-02 BDF
ec6831a43ff0 qca9888: replace TP-Link Archer C60 v2 BDF

Signed-off-by: Robert Marko <robimarko@gmail.com>
2 weeks agobridger: update to Git HEAD (2025-10-21)
Felix Fietkau [Wed, 22 Oct 2025 07:57:16 +0000 (07:57 +0000)] 
bridger: update to Git HEAD (2025-10-21)

2d74a362c9c3 nl: always return NL_SKIP in bridge_nl_error_cb
c3ed437a72cf Revert "nl: add missing dump flag for RTM_GETTFILTER"
f67fc970b4e3 bridger: add VLAN state verification
e5b44387e0c5 bridger: add port state verification
f994af459375 bridger: reject tagged packets on non-member VLANs
e8d350f6ebe8 bridger: clear PVID when rebuilding VLAN list
50f43ce637a1 flow: add VLAN 0 fallback for local FDB entries
76fb17f2c6c7 device: verify PVID membership for untagged packets
d862c053fef1 flow: add egress VLAN membership verification
4dc5182c95a2 flow: reject flows on VLANs with tunnel information
a3b08aa510e1 flow: only refresh the input fdb entry of active flows
bf2c9636b51f nl: increase netlink socket buffer size
95125f0b0be5 flow: reject pending flows with mismatched fdb device

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 weeks agorealtek: rtl930x: Disable L3 offloading 20208/head
Harshal Gohel [Tue, 15 Jul 2025 18:20:00 +0000 (20:20 +0200)] 
realtek: rtl930x: Disable L3 offloading

L3 Offloading caused DHCP packets to be dropped at hardware level
And potentially buggy route implementation can cause a crash

Signed-off-by: Harshal Gohel <hg@simonwunderlich.de>
Co-developed-by: Sven Eckelmann <se@simonwunderlich.de>
Signed-off-by: Sven Eckelmann <se@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/20208
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 weeks agorealtek: rtl931x: Disable callbacks for l3 hw routing
Harshal Gohel [Mon, 7 Jul 2025 17:00:43 +0000 (17:00 +0000)] 
realtek: rtl931x: Disable callbacks for l3 hw routing

The RTL931x is not supporting L3 offloading at the moment. To avoid crashes
when using this switch, simply disable L3 offloading completely.

Signed-off-by: Harshal Gohel <hg@simonwunderlich.de>
Co-developed-by: Sven Eckelmann <se@simonwunderlich.de>
Signed-off-by: Sven Eckelmann <se@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/20208
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 weeks agotargetwide: imagebuilder: add explicit guards around initramfs rules 20460/head
Eric Fahlgren [Sun, 19 Oct 2025 23:33:26 +0000 (16:33 -0700)] 
targetwide: imagebuilder: add explicit guards around initramfs rules

Additional work building upon f6e0f57be0af

Add more explict guards around the unsupported generation of the initramfs
images and suppress requirement for certain others.

Fixes: https://github.com/openwrt/openwrt/issues/20151
Fixes: https://github.com/openwrt/asu/issues/1499
Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20460
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 weeks agohostapd: fix a use-after-free bug when interfaces are removed during a scan
Felix Fietkau [Tue, 21 Oct 2025 08:23:30 +0000 (08:23 +0000)] 
hostapd: fix a use-after-free bug when interfaces are removed during a scan

Whenever the first bss is removed, any pending scan still keeps a reference
to it. Cancel it in order to prevent use-after-free bugs.

Reported-by: Chad Monroe <chad.monroe@adtran.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 weeks agonetifd: update to Git HEAD (2025-10-20)
Felix Fietkau [Tue, 21 Oct 2025 05:24:46 +0000 (07:24 +0200)] 
netifd: update to Git HEAD (2025-10-20)

df2f5c9a30f8 veth: delete device before creation to handle stale state
b6d371f30770 system-linux: handle RTM_DELLINK events for device state tracking
777f5942fa7d system-linux: only parse device status for AF_UNSPEC link messages

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 weeks agokernel: port page pool release fix to 6.12
Felix Fietkau [Mon, 20 Oct 2025 19:10:26 +0000 (19:10 +0000)] 
kernel: port page pool release fix to 6.12

Port missing fix from 610dd871aa59b

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 weeks agomt76: update to Git HEAD (2025-10-20)
Felix Fietkau [Mon, 20 Oct 2025 14:10:08 +0000 (16:10 +0200)] 
mt76: update to Git HEAD (2025-10-20)

9050597c4cd6 wifi: mt76: fix license/copyright of util.h
33f29d2345cc wifi: mt76: relicense to BSD-3-Clause-Clear
fc25ba82192e add LICENSE file
c1349a686cd1 wifi: mt76: mt7921: fix a potential clc buffer length underflow
4e7077f77400 wifi: mt76: mt7996: fix FCS error flag check in RX descriptor
754e3357045d wifi: mt76: mt7996: Remove unnecessary link_id checks in mt7996_tx
2e63c495f59b wifi: mt76: connac: Replace memcpy + hard-coded size with strscpy
95c4df3233ed wifi: mt76: Fix DTS power-limits on little endian systems
6f27d647c0ce wifi: mt76: mt7915: add bf backoff limit table support
1e91eadc9d46 wifi: mt76: wed: use proper wed reference in mt76 wed driver callabacks
2fe5bdbe7e13 wifi: mt76: use GFP_DMA32 for page_pool buffer allocation
c63db0fcadb8 wifi: mt76: mt7915: add WDS support when WED is enabled

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 weeks agobuild: handle --root feeds script feature 20459/head
Christian Marangi [Sun, 19 Oct 2025 18:43:09 +0000 (20:43 +0200)] 
build: handle --root feeds script feature

Rework the package SOURCE entry handling to account for the --root feeds
script feature.

Move the SOURCE entry string manipulation logic outside package-defaults.mk
in package.mk and limit only to non DUMP scenario to not pollute the .mk
too much.

Restructure the previous logic and add a new additional condition.
If we detect the package comes from a feed, replace any feed path that
have the _root prefix to the feed name with the non-root variant (the
feeds script create a symbolic link to it) and point the package SOURCE
entry to what the symbolic link points to.

Example:
Feed link: feeds/base_root/package -> feeds/base
Package: feeds/base_root/package/system/uci -> feeds/base/system/uci

Link: https://github.com/openwrt/openwrt/pull/20459
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agokernel: mtk_eth_soc: do use skb_gso_segment to handle tunnel GSO skbs
Felix Fietkau [Mon, 20 Oct 2025 10:51:42 +0000 (12:51 +0200)] 
kernel: mtk_eth_soc: do use skb_gso_segment to handle tunnel GSO skbs

Fixes issues with routing/bridging packets to a VXLAN tunnel and other kinds
of encapsulation.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 weeks agowifi-scripts: ucode: add missing bssid for adhoc interfaces
Felix Fietkau [Mon, 20 Oct 2025 08:49:10 +0000 (10:49 +0200)] 
wifi-scripts: ucode: add missing bssid for adhoc interfaces

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 weeks agowifi-scripts: ucode: prefer basic rates from iface over device
Felix Fietkau [Mon, 20 Oct 2025 08:42:40 +0000 (10:42 +0200)] 
wifi-scripts: ucode: prefer basic rates from iface over device

Sync with the behavior from the legacy scripts

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 weeks agowifi-scripts: ucode: fix issues in mesh setup without supplicant
Felix Fietkau [Mon, 20 Oct 2025 08:40:40 +0000 (10:40 +0200)] 
wifi-scripts: ucode: fix issues in mesh setup without supplicant

- Add missing frequency
- Call the correct function for htmode

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 weeks agoipq806x: restore recent changes made to 6.6 dts files 20464/head
Mark Mentovai [Mon, 20 Oct 2025 03:30:11 +0000 (23:30 -0400)] 
ipq806x: restore recent changes made to 6.6 dts files

a33d59f7af8f (2025-10-14) restored dts files for kernel 6.6 to files-6.6
after the preceding 15fa59c41f0d moved files-6.6 to files-6.12 to be
used by the new testing kernel, 6.12. This restoration omitted
1a3f05eb2b8e (2025-10-08), which fixed important aspects of the wifi
device definitions in qcom-ipq8064-eax500.dtsi and
qcom-ipq8064-unifi-ac-hd.dts.

The 1a3f05eb2b8e fix persisted into the 6.12 dts files. This change now
restores it for 6.6. Note that ipq806x is currently using kernel 6.6 for
most purposes, as 6.12 is only in testing status for this target.

This change was prepared with `git diff
a33d59f7af8f:target/linux/ipq806x/files-6.6
15fa59c41f0d^:target/linux/ipq806x/files-6.6`. This identified
c186d17fa518 (2025-10-08) as another change that was not present in the
restored files-6.6, but it has since been superseded by 2a709d108e80
(2025-10-20), so no action is necessary to restore it. There were no
diffs present between these revisions in config-6.6 or patches-6.6,
which were also moved and restored in the 6.12 bring-up.

Signed-off-by: Mark Mentovai <mark@mentovai.com>
Cc: Shiji Yang <yangshiji66@outlook.com>
Cc: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20464
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 weeks agoprereq: use staging_dir's compiler 20350/head
Rosen Penev [Mon, 29 Sep 2025 19:14:48 +0000 (12:14 -0700)] 
prereq: use staging_dir's compiler

Fixes compilation with missing OS GCC.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20350
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agogeneric: add missing squashfs config 20140/head
Chukun Pan [Fri, 29 Aug 2025 15:10:06 +0000 (23:10 +0800)] 
generic: add missing squashfs config

SQUASHFS_DECOMP_MULTI_PERCPU is selected by
SQUASHFS_COMPILE_DECOMP_MULTI_PERCPU, so add it.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/20140
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agosunxi: cortexa53: refresh kernel config
Chukun Pan [Thu, 28 Aug 2025 14:30:08 +0000 (22:30 +0800)] 
sunxi: cortexa53: refresh kernel config

Refresh kernel configs with `make kernel_oldconfig CONFIG_TARGET=subtarget`.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/20140
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agosunxi: enable pinctrl driver in subtarget
Chukun Pan [Tue, 26 Aug 2025 12:05:27 +0000 (20:05 +0800)] 
sunxi: enable pinctrl driver in subtarget

The pinctrl driver should be enabled based on the SoC supported
by the subtarget, rather than enabling all by default.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/20140
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agosunxi: 6.12: refresh common kernel config
Chukun Pan [Wed, 27 Aug 2025 12:27:28 +0000 (20:27 +0800)] 
sunxi: 6.12: refresh common kernel config

Add the common kernel config found when 'make kernel_oldconfig'.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/20140
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agouboot-sunxi: remove earlyprintk for arm64
Chukun Pan [Sat, 30 Aug 2025 12:06:25 +0000 (20:06 +0800)] 
uboot-sunxi: remove earlyprintk for arm64

Remove earlyprintk from bootargs for arm64 boards.
This option is only valid for arm:

```
Unknown kernel command line parameters "earlyprintk",
will be passed to user space.
```

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/20140
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agosunxi: use correct CPU erratum for Cortex-A53
Chukun Pan [Mon, 25 Aug 2025 11:38:09 +0000 (19:38 +0800)] 
sunxi: use correct CPU erratum for Cortex-A53

The cortexa53 target currently uses cpu erratums for Cortex-A510,
Cortex-A710, and Neoverse-N2. Remove them and enable cpu erratums
for Cortex-A53.

Fixes: f01982e ("sunxi: add testing kernel 6.1")
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/20140
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agoramips: mt76x8: add support for Cudy RE1200 Outdoor v1 20381/head
Luis Mita [Sat, 11 Oct 2025 14:48:46 +0000 (10:48 -0400)] 
ramips: mt76x8: add support for Cudy RE1200 Outdoor v1

Hardware:
 - SoC: MediaTek MT7628DAN
 - Flash: 8 MiB XMC 25QH64CHIQ
 - RAM: 64 MiB (integrated on SoC)
 - WLAN: 2.4 GHz (MT7603E, 11n), 5 GHz (MediaTek MT7613BEN, 11ac)
 - Ethernet: 1x10/100 Mbps LAN
 - Buttons: 1 Reset button, 1 WPS button
 - LEDs: 5x Green
 - Serial Console: unpopulated header 115200 8n1
 - Power: 24v Passive POE

MAC addresses:
+---------+-------------------+-----------+
|         | MAC               | Algorithm |
+---------+-------------------+-----------+
| LAN     | 80:af:ca:xx:xx:x0 | label     |
| WLAN 2g | 80:af:ca:xx:xx:x0 | label     |
| WLAN 5g | 80:af:ca:xx:xx:x2 | +2        |
+---------+-------------------+-----------+

Installation:
Please check the Wiki for this device for a more convenient solution than the one below.

1. Disassemble the device, desolder and dump the flash chip with a SPI programmer.
2. Separate the partitions with dd:

dd if=spi_dump.bin of=u-boot.bin     bs=1  skip=0        count=196608  status=progress
dd if=spi_dump.bin of=u-boot-env.bin bs=1  skip=196608   count=65536   status=progress
dd if=spi_dump.bin of=factory.bin    bs=1  skip=262144   count=65536   status=progress
dd if=spi_dump.bin of=firmware.bin   bs=1  skip=327680   count=7995392 status=progress
dd if=spi_dump.bin of=bdinfo.bin     bs=1  skip=8323072   count=65536   status=progress

3. Download the sysupgrade firmware at openwrt.bin.
4. The firmware size should be 7995392 bytes. Fix the size of your firmware putting zeros to the end, with:

truncate -s 7995392 firmware.bin

5. Combine all the parititions:

cat u-boot.bin u-boot-env.bin factory.bin openwrt.bin bdinfo.bin > spi_new.bin

6. Erase and flash the SPI chip with the new file. Solder the chip and boot the router.

Signed-off-by: Luis Mita <luis@luismita.com>
Link: https://github.com/openwrt/openwrt/pull/20381
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agowifi-scripts: ucode: export HE and EHT operation in scan results 19208/head
Aleksander Jan Bajkowski [Sat, 17 May 2025 08:01:27 +0000 (10:01 +0200)] 
wifi-scripts: ucode: export HE and EHT operation in scan results

Export WiFi 6E (HE) and WiFi 7 (EHT) operation data in scan results.
These additional data can be useful to check wifi channel utilization
by nearby stations.

Example:
Cell 32 - Address: xx:xx:xx:xx:xx:xx
          Mode: Master  Frequency: 6.115 GHz  Band: 6 GHz  Channel: 33
          Signal: -14 dBm  Quality: 70/70
          Encryption: SAE (CCMP)
          HE Operation:
                Center Frequency 1: 39
                Center Frequency 2: 47
                Channel Width: 160 MHz
          EHT Operation:
                Center Frequency 1: 47
                Center Frequency 2: 63
                Channel Width: 320 MHz

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Link: https://github.com/openwrt/openwrt/pull/19208
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agotreewide: dts: fix spi-gpio chip select GPIO polarity 19845/head
Shiji Yang [Mon, 1 Sep 2025 01:17:49 +0000 (09:17 +0800)] 
treewide: dts: fix spi-gpio chip select GPIO polarity

The SPI chip select GPIO polarity is active low by default. We must
use "spi-cs-high" dts property to toggle the polarity. The polarity
on "cs-gpios" won't take effect at all[1]. Fix these incorrect GPIO
polarities to silence the kernel warnings.

[1] Refer to Linux/Documentation/devicetree/bindings/spi/spi-controller.yaml
```
      device node     | cs-gpio       | CS pin state active | Note
      ================+===============+=====================+=====
      spi-cs-high     | -             | H                   |
      -               | -             | L                   |
      spi-cs-high     | ACTIVE_HIGH   | H                   |
      -               | ACTIVE_HIGH   | L                   | 1
      spi-cs-high     | ACTIVE_LOW    | H                   | 2
      -               | ACTIVE_LOW    | L                   |

      Notes:
      1) Should print a warning about polarity inversion.
         Here it would be wise to avoid and define the gpio as
         ACTIVE_LOW.
      2) Should print a warning about polarity inversion
         because ACTIVE_LOW is overridden by spi-cs-high.
         Should be generally avoided and be replaced by
         spi-cs-high + ACTIVE_HIGH.
```

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19845
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agoqualcommax: dts: remove useless SPI cs-gpios property
Shiji Yang [Sun, 24 Aug 2025 13:00:06 +0000 (21:00 +0800)] 
qualcommax: dts: remove useless SPI cs-gpios property

There is no need to add a "cs-gpios" property if chip select pin is
directly controlled by the SPI host hardware.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19845
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agomediatek: dts: remove useless SPI cs-gpios property
Shiji Yang [Sun, 24 Aug 2025 12:59:53 +0000 (20:59 +0800)] 
mediatek: dts: remove useless SPI cs-gpios property

These devices only have one SPI peripheral. And the chip select pin is
directly controlled by the SPI host hardware. Hence we don't need to
assign empty GPIO phandle for them. This patch also adjust the reg
address of the SPI peripheral node to follow the cs-gpios changes.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19845
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agoipq806x: dts: fix SPI chip select GPIO polarity
Shiji Yang [Sun, 24 Aug 2025 12:57:18 +0000 (20:57 +0800)] 
ipq806x: dts: fix SPI chip select GPIO polarity

The SPI chip select GPIO polarity is active low by default. We must
use "spi-cs-high" dts property to toggle the polarity. The polarity
on "cs-gpios" won't take effect at all[1]. Fix these incorrect GPIO
polarities to silence the kernel warnings.

[1] Refer to Linux/Documentation/devicetree/bindings/spi/spi-controller.yaml
```
      device node     | cs-gpio       | CS pin state active | Note
      ================+===============+=====================+=====
      spi-cs-high     | -             | H                   |
      -               | -             | L                   |
      spi-cs-high     | ACTIVE_HIGH   | H                   |
      -               | ACTIVE_HIGH   | L                   | 1
      spi-cs-high     | ACTIVE_LOW    | H                   | 2
      -               | ACTIVE_LOW    | L                   |

      Notes:
      1) Should print a warning about polarity inversion.
         Here it would be wise to avoid and define the gpio as
         ACTIVE_LOW.
      2) Should print a warning about polarity inversion
         because ACTIVE_LOW is overridden by spi-cs-high.
         Should be generally avoided and be replaced by
         spi-cs-high + ACTIVE_HIGH.
```

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19845
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>