openwrt/staging/xback.git
8 days agotreewide: drop Linux 6.6 patches, hacks, configs and conditional
Mieczyslaw Nalewaj [Wed, 26 Nov 2025 16:26:32 +0000 (17:26 +0100)]
treewide: drop Linux 6.6 patches, hacks, configs and conditional

Drop all kernel 6.6 patches, hacks, backports and configuration support,
and remove the CONFIG_LINUX_6_6 guarded conditional in filogic.mk.

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20943
Signed-off-by: Christian Marangi <[email protected]>
9 days agolantiq: match wifi node names to reg
Rosen Penev [Fri, 24 Oct 2025 03:21:30 +0000 (20:21 -0700)]
lantiq: match wifi node names to reg

node name matches various comments about the pci path.

Signed-off-by: Rosen Penev <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20522
Signed-off-by: Hauke Mehrtens <[email protected]>
9 days agolibsemanage: update to 3.9
Nick Hainke [Sun, 23 Nov 2025 17:05:51 +0000 (18:05 +0100)]
libsemanage: update to 3.9

Release Notes:
https://github.com/SELinuxProject/selinux/wiki/Releases#release-39

Remove upstreamed:
- 0001-libsemanage-create-semanage_basename-to-ensure-posix.patch

Link: https://github.com/openwrt/openwrt/pull/20908
Signed-off-by: Nick Hainke <[email protected]>
9 days agolibselinux: update to 3.9
Nick Hainke [Sun, 23 Nov 2025 17:07:03 +0000 (18:07 +0100)]
libselinux: update to 3.9

Release Notes:
https://github.com/SELinuxProject/selinux/wiki/Releases#release-39

Remove upstreamed:
- 0001-Inject-matchpathcon_filespec_add64-if-defined-__INO_.patch
  -> https://github.com/SELinuxProject/selinux/commit/5c3fcbd931b7f9752b5ce29cec3b6813991d61c0
- 100-v2-libselinux-be-careful-with-non-portable-LFS-macro.patch
  -> https://github.com/SELinuxProject/selinux/commit/21dd00713ae99b13e36c632992cb171c6ec1abce

Link: https://github.com/openwrt/openwrt/pull/20908
Signed-off-by: Nick Hainke <[email protected]>
9 days agolibsepol: update to 3.9
Nick Hainke [Sun, 23 Nov 2025 17:04:20 +0000 (18:04 +0100)]
libsepol: update to 3.9

Release Notes:
https://github.com/SELinuxProject/selinux/wiki/Releases#release-39

Link: https://github.com/openwrt/openwrt/pull/20908
Signed-off-by: Nick Hainke <[email protected]>
9 days agosecilc: update to 3.9
Nick Hainke [Sun, 23 Nov 2025 17:03:13 +0000 (18:03 +0100)]
secilc: update to 3.9

Release Notes:
https://github.com/SELinuxProject/selinux/wiki/Releases#release-39

Link: https://github.com/openwrt/openwrt/pull/20908
Signed-off-by: Nick Hainke <[email protected]>
9 days agopolicycoreutils: update to 3.9
Nick Hainke [Sun, 23 Nov 2025 16:20:26 +0000 (17:20 +0100)]
policycoreutils: update to 3.9

Release Notes:
https://github.com/SELinuxProject/selinux/wiki/Releases#release-39

Remove upstreamed patch:
- 0001-policycoreutils-run_init-define-_GNU_SOURCE.patch

Link: https://github.com/openwrt/openwrt/pull/20908
Signed-off-by: Nick Hainke <[email protected]>
9 days agocheckpolicy: update to 3.9
Nick Hainke [Sun, 23 Nov 2025 16:13:42 +0000 (17:13 +0100)]
checkpolicy: update to 3.9

Release Notes:
https://github.com/SELinuxProject/selinux/wiki/Releases#release-39

Link: https://github.com/openwrt/openwrt/pull/20908
Signed-off-by: Nick Hainke <[email protected]>
9 days agolantiq: Fix build of xway target
Hauke Mehrtens [Wed, 26 Nov 2025 20:24:31 +0000 (21:24 +0100)]
lantiq: Fix build of xway target

The kernel update commit also changed the name of the dtsi node. Adapt
the other dts files.

Fixes: 738876e76bb2 ("kernel: bump 6.12 to 6.12.58")
Signed-off-by: Hauke Mehrtens <[email protected]>
9 days agokernel: drop CONFIG_ARM64_CONTPTE from target configs
Stijn Tintel [Wed, 26 Nov 2025 19:06:28 +0000 (21:06 +0200)]
kernel: drop CONFIG_ARM64_CONTPTE from target configs

This is no longer needed after the previous commit.

Signed-off-by: Stijn Tintel <[email protected]>
9 days agokernel: fix dependency on non-existent symbol
Stijn Tintel [Wed, 26 Nov 2025 18:55:40 +0000 (20:55 +0200)]
kernel: fix dependency on non-existent symbol

KERNEL_ARM64_CONTPTE depends on KERNEL_ARM64 which does not exist. Fix
it by depending on aarch64 instead.

Fixes: e9799d2dd4b0 ("kernel: add KERNEL_ARM64_CONTPTE")
Signed-off-by: Stijn Tintel <[email protected]>
9 days agoodhcpd: update to Git HEAD (2025-11-23)
Goetz Goerisch [Mon, 24 Nov 2025 07:56:28 +0000 (08:56 +0100)]
odhcpd: update to Git HEAD (2025-11-23)

8a8bb3c1a673 src: consolidate and improve fallthrough
8ffe79e3f086 src: improve attributes
0a4d4e11c91c odhcpd: simplify signal handling
6af938921628 odhcpd: make ubus optional at runtime
7313ba262b76 odhcpd: update devel-build.sh
038a7bbfc30d dhcpv4: simplify random address selection
8c574bd2fe62 dhcpv6: prevent network loop scenario
76b2d00ee5f0 router: Modify relayed RA PIO L and RA M/O flags according to interface policy
d236b2e0c53e github: ci: add MIPS64, PowerPC64 and RISCV64
d1500bb5d64d all: implement RFC8910 captive portal (CP) option
9830e5e2bf37 all: implement RFC8910 captive portal (CP) option for DHCPv4
9b9ea96ca90e statefiles: fix off-by-one-bug
c10784ece29c dhcpv4: replace ToS precedence
24f013500691 dhcvp4: use tmp fd in dhcpv4_setup_interface()
3c32b27d8bab dhcpv4: simplify error handling in dhcpv4_setup_interface()
5b7cfef774fb dhcpv4: define val where it is used in dhcpv4_setup_interface()
b0739f23c310 dhcpv4: add BPF to dhcpv4_setup_interface()
650a5df88eba ndp: correctness fix for BPF filter

Signed-off-by: Goetz Goerisch <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20919
[add myself as maintainer]
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
9 days agoqoriq: drop support for kernel 6.6
Goetz Goerisch [Sun, 23 Nov 2025 09:05:10 +0000 (10:05 +0100)]
qoriq: drop support for kernel 6.6

Drop support for kernel 6.6 as now kernel 6.12 is set as default kernel
version.

Signed-off-by: Goetz Goerisch <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20889
Signed-off-by: Stijn Tintel <[email protected]>
9 days agoqoriq: switch to kernel 6.12
Goetz Goerisch [Sun, 23 Nov 2025 09:02:06 +0000 (10:02 +0100)]
qoriq: switch to kernel 6.12

switch the kernel to 6.12 by default

Signed-off-by: Goetz Goerisch <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20889
Signed-off-by: Stijn Tintel <[email protected]>
10 days agotools: mtd-utils: fix patch 110 for musl
Mario Andrés Pérez [Wed, 26 Nov 2025 00:40:28 +0000 (01:40 +0100)]
tools: mtd-utils: fix patch 110 for musl
This patch is introducing the same header that the other patch
001-ubifs-utils-link-libmissing.a-in-case-execinfo.h-isn.patch
is guarding against missing in musl libc. We need to
mimic that.

Signed-off-by: Mario Andrés Pérez <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20938
Signed-off-by: Christian Marangi <[email protected]>
10 days agolinux-firmware: update to 20251125
John Audia [Tue, 25 Nov 2025 21:25:36 +0000 (16:25 -0500)]
linux-firmware: update to 20251125

% git log --no-merges --pretty=oneline --abbrev-commit 20251125...20251011 > dddd
00c92044d982 Revert "amdgpu: update GC 11.0.1 firmware"
1b629c2ee14d QCA: Add Bluetooth firmware for WCN685x uart interface
338d4f11a152 qcom: Add ADSP firmware for qcs6490-thundercomm-rubikpi3
e5f2034193cd qcom: venus-5.4: update firmware binary for v5.4
beeb1c6d8fd6 qcom: venus-5.4: remove unused firmware file
4b245479aaca iwlwifi: add Sc/Wh FW for core98-181 release
a193f375146b amdgpu: DMCUB updates for various ASICs
8bcc91d13bbe rtl_bt: Update RTL8852B BT USB FW to 0x42D3_4E04
6299022aec47 ASoC: tas2781: Add more symbol links on SPI devices
9aa00eca20c4 amdgpu: update vega20 firmware
42ea1f79b1da amdgpu: update vega12 firmware
a58d54daedbb amdgpu: update vega10 firmware
1e069e319b1d amdgpu: update vangogh firmware
f7e13466f3cb amdgpu: update renoir firmware
96e217e08b13 amdgpu: update yellow carp firmware
4c44a08fa5bc amdgpu: update VCN 3.1.2 firmware
3719d638b955 amdgpu: update PSP 13.0.5 firmware
aaa7079598fa amdgpu: update GC 10.3.6 firmware
69c122001d45 amdgpu: update VCN 5.0.0 firmware
b8ee4087b353 amdgpu: update SMU 14.0.3 firmware
d714bc8d2e61 amdgpu: update PSP 14.0.3 firmware
90e45a48f841 amdgpu: update GC 12.0.1 firmware
4a2eda3fe051 amdgpu: update SMU 14.0.2 firmware
c3c6345875f1 amdgpu: update PSP 14.0.2 firmware
b2fdc1bd241e amdgpu: update GC 12.0.0 firmware
e96100557112 amdgpu: update VCN 4.0.4 firmware
e2ce9e78f0d6 amdgpu: update smu 13.0.7 firmware
65e62c306034 amdgpu: update PSP 13.0.7 firmware
870a03682058 amdgpu: update GC 11.0.2 firmware
5bdf63c32ed9 amdgpu: update SMU 13.0.10 firmware
e54655337b9f amdgpu: update SDMA 6.0.3 firmware
2c961a06a486 amdgpu: update PSP 13.0.10 firmware
e063d1e8fec5 amdgpu: update GC 11.0.3 firmware
51df8d90d0b6 amdgpu: update smu 13.0.0 kicker firmware
de657c55c334 amdgpu: update PSP 13.0.0 kicker firmware
fff12585de36 amdgpu: update VCN 4.0.0 firmware
37e6b3808abf amdgpu: update SMU 13.0.0 firmware
4567a327551f amdgpu: update PSP 13.0.0 firmware
c4f4863f7db0 amdgpu: update GC 11.0.0 firmware
87eae0321d6d amdgpu: update navy flounder firmware
fcc1130d0510 amdgpu: update sienna cichlid firmware
ea80880af0ed amdgpu: update navi14 firmware
649d7fdf1d4e amdgpu: update navi12 firmware
7b7e771fb2f7 amdgpu: update navi10 firmware
8f25606de7cc amdgpu: update VCN 5.0.1 firmware
60456ab4b075 amdgpu: update PSP 13.0.12 firmware
4d69373e4f8d amdgpu: update GC 9.5.0 firmware
e092a40e7f6d amdgpu: update PSP 13.0.14 firmware
7cd8bd09ad5c amdgpu: update GC 9.4.4 firmware
ae59315f6c03 amdgpu: update PSP 14.0.5 firmware
1b6afb6a7efb amdgpu: update GC 11.5.3 firmware
5176cb313398 amdgpu: update PSP 14.0.4 firmware
71857dd04b14 amdgpu: update GC 11.5.2 firmware
2f28317f7e39 amdgpu: update green sardine firmware
522d9e12207b amdgpu: update VCN 4.0.3 firmware
8f041792d723 amdgpu: update SDMA 4.4.2 firmware
e378955cf3ed amdgpu: update PSP 13.0.6 firmware
86faa583fbdb amdgpu: update GC 9.4.3 firmware
d9f867fa205b amdgpu: update VCN 4.0.6 firmware
77e84ba0b2db amdgpu: update PSP 14.0.1 firmware
85173cf441ec amdgpu: update GC 11.5.1 firmware
4f77f6c84776 amdgpu: update PSP 13.0.11 firmware
e281c8286079 amdgpu: update GC 11.0.4 firmware
e6d6584a618a amdgpu: update VCN 4.0.5 firmware
bafad280328c amdgpu: update PSP 14.0.0 firmware
1c5716794ac6 amdgpu: update GC 11.5.0 firmware
cf102ce55053 amdgpu: update VCN 4.0.2 firmware
7f4f67696c51 amdgpu: update PSP 13.0.4 firmware
df7ad95b388b amdgpu: update GC 11.0.1 firmware
2e749805f26b amdgpu: update beige goby firmware
662215782556 amdgpu: update dimgrey cavefish firmware
72eabbcf8945 amdgpu: update aldebaran firmware
59c101ad56d3 amdgpu: add vce1 firmware
ab4f6864c8e8 mediatek MT7922: update bluetooth firmware to 20251118163447
704ba612298f linux-firmware: update firmware for MT7922 WiFi device
f21bf2079594 qcom: update ADSP, CDSP firmware for kaanapali platform, change the license
094f6b619316 qcom: add ADSP, CDSP firmware for sm8750 platform
b7dee782236f rtl_nic: add firmware rtl9151a-1
c710fdbe961e qcom: Update aic100 firmware files
0649fe0f8a0f mt76: add firmware for MT7990
d7d4a94071f0 mt76: update firmware for MT7992
1de8ddcbce20 mt76: update firmware for MT7996
3f3667bb2b0c cirrus: cs35l57: Add firmware for a few Dell products
62b60d741ff7 cirrus: cs42l45: Add firmware for Cirrus Logic CS42L45 SDCA codec
24bc7c974de2 qcom: Add sdx35 Foxconn vendor firmware image file
6167e5566900 linux-firmware: Update AMD cpu microcode
fcf22f506bf5 rtl_bt: Update RTL8922A BT USB firmware to 0x41C0_C905
c0af6c70df29 linux-firmware: add firmware for mt7987 internal 2.5G ethernet phy
a50c068b4977 rtw88: 8822b: Update firmware to v30.20.0
e5606bd7012d rtl_nic: add firmware rtl8125k-1
c5831f31fb58 ASoC: tas2781: Update dsp firmware for HP and ASUS projects
ad907cca1b30 Revert "Merge branch 'robot/patch-0-1762671757' into 'main'"
d665e29c15bd ASoC: tas2781: Update dsp firmware for HP and ASUS projects
213080aee725 amdgpu: DMCUB updates for various ASICs
23cf7dbb64d8 amdgpu: DMCUB updates for various ASICs
95cd295ec628 qcom: add SOCCP firmware for kaanapali platform
9444af1a20eb xe: Update GUC to v70.53.0 for BMG, LNL, PTL
f2a23165093f i915: Update GUC to v70.53.0 for DG2, MTL
4dedd6cbe36f rtw89: 8851b: update fw to v0.29.41.5
84cc37f396bc rtw89: 8852b: update fw to v0.29.128.0 with format suffix -2
3ab5b9e563d5 rtw89: 8852b: update fw to v0.29.29.14
1b1c14bbe283 Revert "rtw89: 8852b: update fw to v0.29.128.0"
9a0d0ed60e4f rtw89: 8852bt: update fw to v0.29.127.0 with format suffix -1
be71e790deb7 rtw89: 8852bt: update fw to v0.29.122.1
b6252a035ca2 Revert "rtw89: 8852bt: update fw to v0.29.127.0"
a976b0aa25c9 linux-firmware: Update firmware file for Intel BlazarU core
5a689a2fb837 linux-firmware: Update firmware file for Intel BlazarI core
7742578435dd linux-firmware: Create audio folder in ti folder, and move all the audio firmwares into it
e189b618b99d amdgpu: DMCUB updates for various ASICs
646d97f5320d linux-firmware: Update WHENCE for microcode_amd_fam19h.bin
e637542fa8b9 linux-firmware: Update AMD cpu microcode
0fc31ad67f09 linux-firmware: update firmware for MT7925 WiFi device
b63c322f293e mediatek MT7925: update bluetooth firmware to 20251015213201
35e542439e8a rtl_bt: Add firmware and config files for RTL8761CUV
ad9154476766 linux-firmware: Update AMD cpu microcode
7bcedf5c907e qcom: add ADSP firmware for kaanapali platform
728e92438d2f amdgpu: DMCUB updates for various ASICs
05105d2434ec linux-firmware: Renaming the file to cover a wide range of HP Lunar Lake system.
b582532def13 mediatek MT7920: update bluetooth firmware to 20251020151255
33d0511d15d4 linux-firmware: update firmware for MT7922 WiFi device
c2087f880be1 linux-firmware: update firmware for MT7920 WiFi device
3a49a7356a8c amd-ucode: Fix minimum revisions in README
0de0cd7fc74c cirrus: cs35l41: Rename various Asus Laptop firmware files to not have Speaker ID
93c929780994 mediatek MT7922: update bluetooth firmware to 20251020143443
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 (Intel N150)

Signed-off-by: John Audia <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20936
Signed-off-by: Nick Hainke <[email protected]>
10 days agotools/ninja: update to 1.13.2
Nick Hainke [Tue, 25 Nov 2025 18:47:16 +0000 (19:47 +0100)]
tools/ninja: update to 1.13.2

Release Notes:
https://github.com/ninja-build/ninja/releases/tag/v1.13.2

Link: https://github.com/openwrt/openwrt/pull/20935
Signed-off-by: Nick Hainke <[email protected]>
10 days agowolfssl: update to 5.8.4
Nick Hainke [Mon, 24 Nov 2025 20:06:16 +0000 (21:06 +0100)]
wolfssl: update to 5.8.4

Release Notes:
https://www.wolfssl.com/wolfssl-5-8-4-now-available/

Fixes CVEs:
- CVE-2025-12889
- CVE-2025-12888
- CVE-2025-11936
- CVE-2025-11935
- CVE-2025-11934
- CVE-2025-11933
- CVE-2025-11932
- CVE-2025-11931

Link: https://github.com/openwrt/openwrt/pull/20922
Signed-off-by: Nick Hainke <[email protected]>
10 days agomvebu: add support for Fortinet FortiWiFi 30E
Jimmy Cavanaugh [Sat, 15 Nov 2025 01:28:19 +0000 (14:28 +1300)]
mvebu: add support for Fortinet FortiWiFi 30E

Fortinet FortiWiFi 30E (FWF-30E) is a UTM, based on Armada 385 (88F6820).

Specification:

- SoC          : Marvell Armada 385 88F6820
- RAM          : DDR3 1 GiB (4x Nanya NT5CC256M8IN-D1)
- Flash        : SPI-NOR 128 MiB (Macronix MX66L1G45GMI-10G)
- Ethernet     : 5x 10/100/1000 Mbps
  - Switch     : Marvell 88E6176
- Wireless     : Atheros AR9382 2x2 802.11abgn (mini-PCIe)
- LEDs/Keys    : 16x/1x
- UART         : "CONSOLE" port (RJ-45, RS-232C level)
  - port       : ttyS0
  - settings   : 9600bps 8n1
  - assignment : 1:NC , 2:NC , 3:TXD, 4:GND,
                 5:GND, 6:RXD, 7:NC , 8:NC
  - note       : compatible with Cisco console cable
- HW Monitoring: nuvoTon NCT7802Y
- USB          : 1x USB 3.0
- Power        : 12 VDC, 2 A
  - plug       : Molex 5557-02R

Flash instruction using initramfs image:

 1. Power on FWF-30E and interrupt to show bootmenu
 2. Call "[I]: System information." -> "[S]: Set serial port baudrate."
    and set baudrate to 9600 bps
 3. Call "[R]: Review TFTP parameters.", check TFTP parameters and
    connect computer to "Image download port" in the parameters
 4. Prepare TFTP server with the parameters obtained above
 5. Rename OpenWrt initramfs image to "image.out" and put to TFTP
    directory
 6. Call "[T]: Initiate TFTP firmware transfer." to download initramfs
    image from TFTP server
 7. Type "r" key when the following message is showed, to boot initramfs
    image without flashing to spi-nor flash

    "Save as Default firmware/Backup firmware/Run image without saving:[D/B/R]?"

 8. On initramfs image, backup mtd if needed

    minimum:

    - "firmware-info"
    - "kernel"
    - "rootfs"

 9. On initramfs image, upload sysupgrade image to the device and perform
    sysupgrade
10. Wait ~200 seconds to complete flashing and rebooting.
    If the device is booted with stock firmware, login to bootmenu and
    call "[B]: Boot with backup firmware and set as default." to set the
    first OS image as default and boot it.

Notes:

- Both colors of Bi-color LEDs on the front panel cannot be turned on at
  the same time.

- "PWR" and "Logo" LEDs are connected to power source directly.

- The following partitions are added for OpenWrt.
  These partitions are contained in "uboot" partition (0x0-0x1fffff) on
  stock firmware.

  - "firmware-info"
  - "dtb"
  - "u-boot-env"
  - "board-info"

Image header for bootmenu tftp:

  0x0 - 0xf  : ?
 0x10 - 0x2f : Image Name
 0x30 - 0x17f: ?
0x180 - 0x183: Kernel Offset*
0x184 - 0x187: Kernel Length*
0x188 - 0x18b: RootFS Offset (ext2)*
0x18c - 0x18f: RootFS Length (ext2)*
0x190 - 0x193: DTB Offset
0x194 - 0x197: DTB Length
0x198 - 0x19b: Data Offset (jffs2)
0x19c - 0x19f: Data Length (jffs2)
0x1a0 - 0x1ff: ?

*: required for initramfs image

MAC addresses:

(eth0): 70:4C:A5:xx:xx:42 (board-info, 0xd880 (hex))
WAN   : 70:4C:A5:xx:xx:43
LAN 1 : 70:4C:A5:xx:xx:44
LAN 2 : 70:4C:A5:xx:xx:45
LAN 3 : 70:4C:A5:xx:xx:46
LAN 4 : 70:4C:A5:xx:xx:47

Signed-off-by: Jimmy Cavanaugh <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20787
Signed-off-by: Hauke Mehrtens <[email protected]>
10 days agosiflower: bpi-rv2 device tree fix
Rani Hod [Mon, 24 Nov 2025 22:47:47 +0000 (00:47 +0200)]
siflower: bpi-rv2 device tree fix

As per schematics, GPIO 30 is incorrect to use as the reset pin for the
QSGMII PHY SF23P1240; the correct one is GPIO 22.

Signed-off-by: Rani Hod <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20925
Signed-off-by: Hauke Mehrtens <[email protected]>
10 days agobase-files: board_detect: make resilient against power-cuts
Andreas Gnau [Wed, 8 Oct 2025 21:00:44 +0000 (23:00 +0200)]
base-files: board_detect: make resilient against power-cuts

If board_detect is interrupted by cutting power on first boot,
board.json might only be half-way written and the file will not be
written again correctly on subsequent boots.

Write to a temporary file first, then rename. Since a rename on the same
file system is an atomic operation, it ensures that either
/etc/board.json does not exist or that the complete file exists.

Signed-off-by: Andreas Gnau <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20831
Signed-off-by: Hauke Mehrtens <[email protected]>
10 days agobase-files: board_detect: Address shellcheck warnings
Andreas Gnau [Wed, 8 Oct 2025 21:09:26 +0000 (23:09 +0200)]
base-files: board_detect: Address shellcheck warnings

 * SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well
   defined.
 * SC2086 (info): Double quote to prevent globbing and word splitting.
 * SC2091 (warning): Remove surrounding $() to avoid executing output
   (or use eval if intentional).

Signed-off-by: Andreas Gnau <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20831
Signed-off-by: Hauke Mehrtens <[email protected]>
10 days agokernel: bump 6.6 to 6.6.117
Goetz Goerisch [Tue, 25 Nov 2025 06:53:40 +0000 (07:53 +0100)]
kernel: bump 6.6 to 6.6.117

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

All patches auto-refreshed.

Signed-off-by: Goetz Goerisch <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20927
Signed-off-by: Hauke Mehrtens <[email protected]>
10 days agosiflower: refresh kernel-6.12 config
Goetz Goerisch [Mon, 24 Nov 2025 06:43:24 +0000 (07:43 +0100)]
siflower: refresh kernel-6.12 config

refreshed with make kernel_oldconfig CONFIG_TARGET=subtarget

Signed-off-by: Goetz Goerisch <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20893
Signed-off-by: Christian Marangi <[email protected]>
10 days agosiflower: add kmod-i2c-designware-platform to device packages
Goetz Goerisch [Sun, 23 Nov 2025 18:51:37 +0000 (19:51 +0100)]
siflower: add kmod-i2c-designware-platform to device packages

adding the kmod-i2c-designware-platform by user suggestion

Co-authored-by: Mieczyslaw Nalewaj <[email protected]>
Signed-off-by: Goetz Goerisch <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20893
Signed-off-by: Christian Marangi <[email protected]>
10 days agosiflower: drop support for kernel 6.6
Goetz Goerisch [Sun, 23 Nov 2025 09:07:38 +0000 (10:07 +0100)]
siflower: drop support for kernel 6.6

Drop support for kernel 6.6 as now kernel 6.12 is set as default kernel
version.

Signed-off-by: Goetz Goerisch <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20893
Signed-off-by: Christian Marangi <[email protected]>
10 days agosiflower: switch to kernel 6.12
Goetz Goerisch [Sun, 23 Nov 2025 09:06:15 +0000 (10:06 +0100)]
siflower: switch to kernel 6.12

switch the kernel to 6.12 by default

Signed-off-by: Goetz Goerisch <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20893
Signed-off-by: Christian Marangi <[email protected]>
10 days agomediatek: update Bananapi BPi-R4 Lite support
Chukun Pan [Sun, 9 Nov 2025 15:10:06 +0000 (23:10 +0800)]
mediatek: update Bananapi BPi-R4 Lite support

Devices package:
  Add missing USB3 driver

Device tree:
  Fix model name and pwm usage
  Add missing supply for I2C and USB
  Update network port names based on the shell image [1]

[1] https://docs.banana-pi.org/bpi-r4_lite/banana_pi_bpi-r4_lite_case_1.png

Fixes: 8b6c6978 ("mediatek: add support for BananaPi BPi-R4 Lite")
Signed-off-by: Chukun Pan <[email protected]>
10 days agomediatek: update mt7987 SoC device tree
Chukun Pan [Sat, 8 Nov 2025 15:10:16 +0000 (23:10 +0800)]
mediatek: update mt7987 SoC device tree

mt7987b.dtsi:
  Enabled lvts (for CPU thermal) and trng by default.
  Remove non-existent netsys include headers, fix build.

mt7987.dtsi:
  Remove unused rt5190a include headers
  Fix pwm-fan errors: binding cdev pwm-fan to trip 3 failed: -22

Fixes: 9de7189ed ("mediatek: build image for MT7987 RFB")
Signed-off-by: Chukun Pan <[email protected]>
10 days agomediatek: mt7987: enable usb 3.0 by default
Chukun Pan [Thu, 6 Nov 2025 14:20:30 +0000 (22:20 +0800)]
mediatek: mt7987: enable usb 3.0 by default

There is no reason to limit USB to 2.0 mode by default. This
limitation should be done when both gmac2 and USB are enabled.

Signed-off-by: Chukun Pan <[email protected]>
10 days agomediatek: move node from mt7987a SoC dtsi
Chukun Pan [Wed, 5 Nov 2025 15:10:16 +0000 (23:10 +0800)]
mediatek: move node from mt7987a SoC dtsi

Remove I2C, PCIe, PWM, UART and USB from the MT7987A SoC dtsi.
These should not be enabled by default, but rather enabled based
on the device.

Signed-off-by: Chukun Pan <[email protected]>
10 days agomediatek: mt7987: sync mt7987.dtsi with MediaTek SDK
Daniel Golle [Tue, 25 Nov 2025 16:32:41 +0000 (16:32 +0000)]
mediatek: mt7987: sync mt7987.dtsi with MediaTek SDK

Make sure uart0 got all required clocks assigned.

Fixes: 1c3b32c45a ("mediatek: fix uart clocks in MT7987 infracfg clock driver")
Signed-off-by: Daniel Golle <[email protected]>
10 days agozynq: drop support for kernel 6.6
Goetz Goerisch [Sun, 23 Nov 2025 09:46:48 +0000 (10:46 +0100)]
zynq: drop support for kernel 6.6

Drop support for kernel 6.6 as now kernel 6.12 is set as default kernel
version.

Signed-off-by: Goetz Goerisch <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20892
Signed-off-by: Christian Marangi <[email protected]>
10 days agozynq: switch to kernel 6.12
Goetz Goerisch [Sun, 23 Nov 2025 09:09:29 +0000 (10:09 +0100)]
zynq: switch to kernel 6.12

switch the kernel to 6.12 by default

Signed-off-by: Goetz Goerisch <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20892
Signed-off-by: Christian Marangi <[email protected]>
10 days agoat91: drop support for kernel 6.6
Goetz Goerisch [Sat, 22 Nov 2025 17:39:42 +0000 (18:39 +0100)]
at91: drop support for kernel 6.6

Drop support for kernel 6.6 as now kernel 6.12 is set as default kernel
version.

Signed-off-by: Goetz Goerisch <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20871
Signed-off-by: Christian Marangi <[email protected]>
10 days agoat91: switch to kernel 6.12
Goetz Goerisch [Sat, 22 Nov 2025 17:39:07 +0000 (18:39 +0100)]
at91: switch to kernel 6.12

switch the kernel to 6.12 by default

Signed-off-by: Goetz Goerisch <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20871
Signed-off-by: Christian Marangi <[email protected]>
10 days agotools/cmake: update to 4.2.0
Hannu Nyman [Sat, 22 Nov 2025 07:29:46 +0000 (09:29 +0200)]
tools/cmake: update to 4.2.0

Update cmake to version 4.2.0
Release notes at https://cmake.org/cmake/help/v4.2/release/4.2.html

Signed-off-by: Hannu Nyman <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20863
Signed-off-by: Christian Marangi <[email protected]>
10 days agobcm53xx: drop support for kernel 6.6
Goetz Goerisch [Sun, 23 Nov 2025 08:45:00 +0000 (09:45 +0100)]
bcm53xx: drop support for kernel 6.6

Drop support for kernel 6.6 as now kernel 6.12 is set as default kernel
version.

Signed-off-by: Goetz Goerisch <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20874
Signed-off-by: Christian Marangi <[email protected]>
10 days agobcm53xx: switch to kernel 6.12
Goetz Goerisch [Sat, 22 Nov 2025 17:52:32 +0000 (18:52 +0100)]
bcm53xx: switch to kernel 6.12

switch the kernel to 6.12 by default

Signed-off-by: Goetz Goerisch <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20874
Signed-off-by: Christian Marangi <[email protected]>
10 days agobcm47xx: drop support for kernel 6.6
Goetz Goerisch [Sun, 23 Nov 2025 08:50:42 +0000 (09:50 +0100)]
bcm47xx: drop support for kernel 6.6

Drop support for kernel 6.6 as now kernel 6.12 is set as default kernel
version.

Signed-off-by: Goetz Goerisch <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20887
Signed-off-by: Christian Marangi <[email protected]>
10 days agobcm47xx: switch to kernel 6.12
Goetz Goerisch [Sun, 23 Nov 2025 08:49:09 +0000 (09:49 +0100)]
bcm47xx: switch to kernel 6.12

switch the kernel to 6.12 by default

Signed-off-by: Goetz Goerisch <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20887
Signed-off-by: Christian Marangi <[email protected]>
10 days agobcm4908: drop support for kernel 6.6
Goetz Goerisch [Sun, 23 Nov 2025 09:04:13 +0000 (10:04 +0100)]
bcm4908: drop support for kernel 6.6

Drop support for kernel 6.6 as now kernel 6.12 is set as default kernel
version.

Signed-off-by: Goetz Goerisch <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20888
Signed-off-by: Christian Marangi <[email protected]>
10 days agobcm4908: switch to kernel 6.12
Goetz Goerisch [Sun, 23 Nov 2025 09:00:20 +0000 (10:00 +0100)]
bcm4908: switch to kernel 6.12

switch the kernel to 6.12 by default

Signed-off-by: Goetz Goerisch <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20888
Signed-off-by: Christian Marangi <[email protected]>
10 days agokirkwood: add aliases and new partition for support D-Link DNS-325 A1
Konstantin Meshkov [Tue, 25 Nov 2025 13:18:31 +0000 (16:18 +0300)]
kirkwood: add aliases and new partition for support D-Link DNS-325 A1

- Added fan0 alias
- Implemented LED aliases and thermal zones
- Restructured partitions: u-boot, u-boot-env, ubi

Signed-off-by: Konstantin Meshkov <[email protected]>
[ improve commit title ]
Link: https://github.com/openwrt/openwrt/pull/17924
Signed-off-by: Christian Marangi <[email protected]>
10 days agokirkwood: add support for D-Link DNS-325 A1
Konstantin Meshkov [Tue, 25 Nov 2025 13:08:26 +0000 (16:08 +0300)]
kirkwood: add support for D-Link DNS-325 A1

The D-Link DNS-325 A1 is NAS with 2x HDD (3.5 inch) bays, 1x 10/100/1000Base-T port and 1x USB 2.0 port

Device specification:

    SoC: Marvell 88F6281-A1 1.2 GHz
    RAM: 256 MB (2xSEC K4T1G084QF-HCF7:128Mx8 @400 CL6)
    Flash: 128 MB (SAMSUNG 946 K9F1G08U0B PCB0)
    SATA: 2x internal SATA II drives
    Ethernet: 1x Gigabit (Marvell 88E1116R-NNC1)
    LED: 7x (white: Power, white/red: Right SATA Activity, USB Activity, Left SATA Activity)
    Key: 3x (Power, Reset, USB Copy/Unmount)
    Serial: 5 pin header (RXD,GAP,3.3V,GND,TXD), (115200,8,N,1), 3.3V TTL
    USB ports: 1x USB 2.0

Flash instruction:

NOTE: this process uses a serial connection. It will upgrade the bootloader and reset the bootloader environment variables

USB flash stick setup

    Format to FAT32 without mbr
    Copy these files to USB flash stick: dlink_dns-325-a1-initramfs-uImage dlink_dns-325-a1-squashfs-factory.bin dlink_dns-325-a1-squashfs-sysupgrade.bin u-boot.kwb (from u-boot-dns325 directory)

NAS setup

    Connect LAN cable between router and NAS device
    Connetc USB flash stick to NAS device
    Connect serial to NAS device

Boot from new u-boot and install it

    $ kwboot -p -b u-boot.kwb -B115200 -t /dev/ttyUSB0
    Power on NAS
    After download copleted and booted NAS device with new u-boot stop in bootloader by pressing any key
    => usb start
    => fatload usb 0 0x1000000 /u-boot.kwb
    => nand erase.part u-boot
    => nand write 0x1000000 u-boot ${filesize}
    => reset

Update MAC address in u-boot env

    Stop in bootloader by pressing any key
    Get your MAC address from label on chassis
    => setenv ethaddr XX:XX:XX:XX:XX:XX
    => saveenv

Install OpenWrt by flashing factory image from u-boot

    => usb start
    => fatload usb 0 0x1000000 /dlink_dns-325-a1-squashfs-factory.bin
    => nand erase.part ubi
    => nand write 0x1000000 ubi ${filesize}
    => reset

Based-on: #9296
Signed-off-by: Konstantin Meshkov <[email protected]>
[ refresh uboot patches ]
Link: https://github.com/openwrt/openwrt/pull/17924
Signed-off-by: Christian Marangi <[email protected]>
10 days agomac80211: ath11k: fix rssi for IPQ5018 and QCN6122
Scott Mercer [Tue, 25 Nov 2025 12:31:12 +0000 (07:31 -0500)]
mac80211: ath11k: fix rssi for IPQ5018 and QCN6122

Add pending patch to fix RSSI station data on IPQ5018 and QCN6122.

Signed-off-by: Scott Mercer <[email protected]>
[ improve commit description, replace patch ]
Link: https://github.com/openwrt/openwrt/pull/20834
Signed-off-by: Christian Marangi <[email protected]>
10 days agolibtraceevent: update to 1.8.6
Nick Hainke [Mon, 24 Nov 2025 19:59:45 +0000 (20:59 +0100)]
libtraceevent: update to 1.8.6

Update to latest release.

Link: https://github.com/openwrt/openwrt/pull/20921
Signed-off-by: Nick Hainke <[email protected]>
10 days agowpan-tools: update to 0.10
Nick Hainke [Mon, 24 Nov 2025 19:52:47 +0000 (20:52 +0100)]
wpan-tools: update to 0.10

Release Notes:
https://github.com/linux-wpan/wpan-tools/releases/tag/wpan-tools-0.10

Link: https://github.com/openwrt/openwrt/pull/20920
Signed-off-by: Nick Hainke <[email protected]>
10 days agolibunistring: fix compilation error with MUSL
Christian Marangi [Tue, 25 Nov 2025 12:39:59 +0000 (13:39 +0100)]
libunistring: fix compilation error with MUSL

MUSL doesn't provide PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP as
it's only glibc and as the MACRO say, it's NP (not portable).

Add patch to check for this and disable overwriting the function
accordingly.

Fixes: 9bdf72347640 ("libunistring: update to 1.4.1")
Signed-off-by: Christian Marangi <[email protected]>
10 days agogeneric: 6.12: add pending b53 fixes for BCM5325
Álvaro Fernández Rojas [Tue, 25 Nov 2025 09:53:20 +0000 (10:53 +0100)]
generic: 6.12: add pending b53 fixes for BCM5325

These patches fix the remaining issues with BCM5325 switches and allow
dropping the default VLAN on Huawei HG556a.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
11 days agowifi-scripts: add missing na_mcast_to_ucast default when proxy_arp is disabled
Rany Hany [Sun, 16 Nov 2025 09:04:55 +0000 (09:04 +0000)]
wifi-scripts: add missing na_mcast_to_ucast default when proxy_arp is disabled

Adds missing default value for na_mcast_to_ucast when proxy_arp is not enabled
in order to silence the following msg:

   daemon.notice: netifd: radio1 (xxxx): sh: out of range

Fixes: bcdb29f78f5 ("wifi-scripts: add na_mcast_to_ucast option")
Reported-by: Antony Kolitsos <[email protected]>
Signed-off-by: Rany Hany <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20806
Signed-off-by: Robert Marko <[email protected]>
11 days agowifi-scripts: ucode: fix bug moving to empty wifi-station config
Rany Hany [Sat, 8 Nov 2025 16:14:22 +0000 (16:14 +0000)]
wifi-scripts: ucode: fix bug moving to empty wifi-station config

When transitioning from a config with one or more wifi-stations, to a configuration
that has no wifi-station; the file would not be empty/reset and the old wifi-station
entries would remain.

This is because iface_wpa_stations and iface_sae_stations return early if there
are no wifi-stations present, which is an incorrect behavior as it causes the
file to actually have old entries.

'sae_password_file' and 'wpa_psk_file' are also set by default inside
of iface_auth_type to same path as the one used by wifi-station, so it
is indeed going to be set in the config and would contain the old
entries.

This happens with reload and wifi restart. So the only solution
would be to manually remove the file.

Signed-off-by: Rany Hany <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20700
Signed-off-by: Robert Marko <[email protected]>
11 days agowifi-scripts: iface should be optional in wifi-station definition
Rany Hany [Sun, 16 Nov 2025 14:37:49 +0000 (14:37 +0000)]
wifi-scripts: iface should be optional in wifi-station definition

Similar to "wifi-scripts: iface should be optional in wifi-vlan definition"
(98435a3), wifi-station iface should also be optional. By default, it is
supposed to match all interfaces if omitted.

Fixes: https://github.com/openwrt/openwrt/issues/20705
Signed-off-by: Rany Hany <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20694
Signed-off-by: Robert Marko <[email protected]>
11 days agowifi-scripts: ucode: fix wifi-vlan "network" option not working
Rany Hany [Mon, 24 Nov 2025 15:00:57 +0000 (15:00 +0000)]
wifi-scripts: ucode: fix wifi-vlan "network" option not working

The call to netifd.set_vlan(...) had an incorrect argument
order. It should be (interface, ifname, vlan) not
(interface, vlan, ifname). This prevented wifi-vlan's
"network" option from working as netifd was not able
to find the wifi-vlan section.

Fixes: https://github.com/openwrt/openwrt/issues/20705
Fixes: https://github.com/openwrt/openwrt/issues/20911
Signed-off-by: Rany Hany <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20918
Signed-off-by: Robert Marko <[email protected]>
11 days agoeconet: New device: Zyxel PMG5617GA
Caleb James DeLisle [Tue, 28 Oct 2025 18:15:33 +0000 (18:15 +0000)]
econet: New device: Zyxel PMG5617GA

This device has one USB2.0 port, plus ethernet, 2x wifi, ethernet, xPON
and VoIP.

Installation instructions: (Assuming root shell via SSH or serial)
1. Place OpenWrt TRX file on a USB stick formatted VFAT
2. Plug in the stick to the modem
3. Type: mtd write -f -e tclinux /mnt/usb2_sda1/<name of file>.trx tclinux

At this point, both OpenWrt and the vendor OS will be installed
because the device has space for two operating systems. Switch the OS
to boot to OpenWrt:

1. mtd readflash tmpdata 999999999 0 reservearea
2. echo -n '0' | dd of=./tmpdata bs=1 count=1 seek=397311 conv=notrunc
3. mtd write -f -e reservearea ./tmpdata reservearea
4. reboot

WARNING: While you can install with SSH alone, you need serial to use
OpenWrt on EcoNet devices because the Ethernet driver has not yet been
developed.

Signed-off-by: Caleb James DeLisle <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20580
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agomtd: add dump command help
Paweł Owoc [Sat, 8 Nov 2025 21:08:18 +0000 (22:08 +0100)]
mtd: add dump command help

Add missing dump command help.

Signed-off-by: Paweł Owoc <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20725
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agomtd: allow to use dump and verify on read-only devices
Paweł Owoc [Sun, 9 Nov 2025 10:21:37 +0000 (11:21 +0100)]
mtd: allow to use dump and verify on read-only devices

Dump and verify commands can be used on read-only devices.

Signed-off-by: Paweł Owoc <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20725
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agowifi-scripts: ucode: add missing config.auth_type assignment for psk2
Rany Hany [Sun, 23 Nov 2025 23:21:29 +0000 (23:21 +0000)]
wifi-scripts: ucode: add missing config.auth_type assignment for psk2

This ends up breaking wifi-station and wifi-vlan as it depends on
config.auth_type being either psk or psk-sae. When set to psk2,
this would be unset causing that feature to not work.

See discussion in https://github.com/openwrt/openwrt/issues/20705#issuecomment-3568446006

Signed-off-by: Rany Hany <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20914
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Fix alignment of parameters
Sven Eckelmann [Sun, 23 Nov 2025 16:31:35 +0000 (17:31 +0100)]
realtek: Fix alignment of parameters

The parameters must be aligned based on the last opened parenthesis
(+1). If this not a multiple of the tab size (8) then the rest
alignment must be done using spaces.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Fix typo "mutli"
Sven Eckelmann [Sun, 23 Nov 2025 16:28:40 +0000 (17:28 +0100)]
realtek: Fix typo "mutli"

It is written "multi" and not "mutli"

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Fix typo "intialization"
Sven Eckelmann [Sun, 23 Nov 2025 16:04:41 +0000 (17:04 +0100)]
realtek: Fix typo "intialization"

It is written "initialization" and not "intialization"

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Drop space after casts
Sven Eckelmann [Sun, 23 Nov 2025 16:26:03 +0000 (17:26 +0100)]
realtek: Drop space after casts

The Linux kernel coding style recommends not to add a space after
casts.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Drop unnecessary newlines
Sven Eckelmann [Sun, 23 Nov 2025 16:21:41 +0000 (17:21 +0100)]
realtek: Drop unnecessary newlines

It is recommended in the Linux kernel coding style not to add multiple
newlines after another.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Use BIT(x) helper instead of manual shift
Sven Eckelmann [Sun, 23 Nov 2025 16:17:55 +0000 (17:17 +0100)]
realtek: Use BIT(x) helper instead of manual shift

Instead of manually writing shift operations, it is preferred to
use BIT(b) or GENMASK(e, s).

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Switch to kernel integer types
Sven Eckelmann [Sun, 23 Nov 2025 16:16:04 +0000 (17:16 +0100)]
realtek: Switch to kernel integer types

uint(8|16|32|64)_t and int(8|16|32|64)_t types should not be used in
kernel code. The shorter s(8|16|32|64) and u(8|16|32|64) or the
endianness specific versions (le*, be*) must be used instead.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Don't reinitialize static variables to 0
Sven Eckelmann [Sun, 23 Nov 2025 16:04:21 +0000 (17:04 +0100)]
realtek: Don't reinitialize static variables to 0

Static variables (and global variables) are initialized to 0 by
default. It is not needed and discouraged to reinitialize them
to 0.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Use short name for "unsigned long int"
Sven Eckelmann [Sun, 23 Nov 2025 16:03:03 +0000 (17:03 +0100)]
realtek: Use short name for "unsigned long int"

It is preferred in the Linux kernel to use the short type name
"unsigned long" instead of "unsigned long int". The same is true
for short and the signed version of the types.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Keep return statements on new line
Sven Eckelmann [Sun, 23 Nov 2025 16:01:34 +0000 (17:01 +0100)]
realtek: Keep return statements on new line

It is not allowed in the Linux kernel to have the condition and
the actual statement(s) on the same line. This is required to
make it easier to identify the body of an if/do/while/for/..

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Drop repeated words in comments
Sven Eckelmann [Sun, 23 Nov 2025 16:00:04 +0000 (17:00 +0100)]
realtek: Drop repeated words in comments

The repeated words don't make any sense in these comments/sentences and can
just be dropped.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Start function scope on newline
Sven Eckelmann [Sun, 23 Nov 2025 15:59:19 +0000 (16:59 +0100)]
realtek: Start function scope on newline

In contrast to array initializations, function scopes must start
on a newline and not at the a line which defines the function
parameters.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Fix spaces around braces, ops and keywords
Sven Eckelmann [Sun, 23 Nov 2025 15:57:21 +0000 (16:57 +0100)]
realtek: Fix spaces around braces, ops and keywords

The Linux kernel coding style has strict rules when spaces must be
added around operations or after keywords. The whole list is to
complex to summarize it here but can be found at
https://www.kernel.org/doc/html/v6.17/process/coding-style.html

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Clean up global array definitions
Sven Eckelmann [Sun, 23 Nov 2025 15:50:29 +0000 (16:50 +0100)]
realtek: Clean up global array definitions

Global array initialization must have the open brace on the first
line and the next lines must be intended by one level. The closing
brace must be one a separate line.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Separate variables and code by newline
Sven Eckelmann [Sun, 23 Nov 2025 15:45:25 +0000 (16:45 +0100)]
realtek: Separate variables and code by newline

The Linux coding style requires to have a newline between the vaariables
definition block and the beginning of a scope and the code.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Use __packed helper
Sven Eckelmann [Sun, 23 Nov 2025 11:02:57 +0000 (12:02 +0100)]
realtek: Use __packed helper

In the Linux kernel, it is preferred not to use compiler specific
attributes but instead utilize the kernel specific helpers.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: pcs: Fix overflow in rtpcs_930x_sds_clock_wait
Sven Eckelmann [Sun, 23 Nov 2025 14:25:05 +0000 (15:25 +0100)]
realtek: pcs: Fix overflow in rtpcs_930x_sds_clock_wait

It can happen that the calculation `start + (HZ / 1000) * timeout`
overflows `unsigned long`. This must be handled correctly to avoid too long
waits. Luckily, the `time_before()` helper already does this.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: pcs: Reduce nesting during calibration
Sven Eckelmann [Sun, 23 Nov 2025 14:17:52 +0000 (15:17 +0100)]
realtek: pcs: Reduce nesting during calibration

It is preferred in the kernel to have less nesting of scopes. More common
is to perform pre-condition checks (like error handlers) and then react to
them.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: ethernet: Avoid usage of unsafe strcpy
Sven Eckelmann [Sun, 23 Nov 2025 14:10:41 +0000 (15:10 +0100)]
realtek: ethernet: Avoid usage of unsafe strcpy

strcpy doesn't check the length of the destination buffer. And strlcpy
would not make sure to null-terminate the destination buffer.

Even when it is clear that this string will fit in the currrent buffer, it
is just best practice to avoid strcpy.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: dsa: Avoid misleading 'case' indentation
Sven Eckelmann [Sun, 23 Nov 2025 14:07:28 +0000 (15:07 +0100)]
realtek: dsa: Avoid misleading 'case' indentation

The case statements should be at the same indentation level as the switch.
Having different levels makes it harder to spot where the next case starts.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: pcs: Use "unused" attribute helper
Sven Eckelmann [Sun, 23 Nov 2025 14:01:14 +0000 (15:01 +0100)]
realtek: pcs: Use "unused" attribute helper

In the Linux kernel, it is preferred not to use compiler specific
attributes but instead utilize the kernel specific helpers.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: pcs: Drop return on end of void functions
Sven Eckelmann [Sun, 23 Nov 2025 13:54:27 +0000 (14:54 +0100)]
realtek: pcs: Drop return on end of void functions

There is nothing to return from a void function. And it doesn't change the
execution flow. The return at the end of a void function is therefore just
a NOP.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: dsa: Drop extra space before printed newline
Sven Eckelmann [Sun, 23 Nov 2025 13:52:22 +0000 (14:52 +0100)]
realtek: dsa: Drop extra space before printed newline

The white space is not visibible when it is printed. It might have been
added by accident to the format string.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Avoid line continuations in quoted strings
Sven Eckelmann [Sun, 23 Nov 2025 13:44:11 +0000 (14:44 +0100)]
realtek: Avoid line continuations in quoted strings

It is preferred to have the whole quoted string on a single line to make it
easier to find these lines in the source code (while grep'ing). And since
these quotes are inside  a string, they will also add unwanted whitespaces.

At the same time, add the missing newine at the end of the `pr_debug`
lines.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: mdio: Drop extern declaration for internal function
Sven Eckelmann [Sun, 23 Nov 2025 13:31:12 +0000 (14:31 +0100)]
realtek: mdio: Drop extern declaration for internal function

There is no external component using these functions and these functions
are local to the current translation unit. These functions can therefore be
declared static.

The currently unused *_field functions were kept because they might be used
in the future.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Keep extern declaration in headers
Sven Eckelmann [Sun, 23 Nov 2025 13:12:52 +0000 (14:12 +0100)]
realtek: Keep extern declaration in headers

The common declarations should not be spread around in different source
files but kept inside the header files. This is unfortunately currently not
the best place to store them because soc_info is actually from non-DSA
code. But it is at least better than having them in diffent source files.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Fix block comment style
Sven Eckelmann [Sun, 23 Nov 2025 12:23:52 +0000 (13:23 +0100)]
realtek: Fix block comment style

In net code, it is preferred to have block comments which

* either are one line: `/* ... */`
* multiple lines with:
  - starting with the first comment line directly: `/* ...`
  - each line is intended with the first asterisk: ` * ...`
  - the last line is just the end of the comment:  ` */`

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Avoid braces around single statement blocks
Sven Eckelmann [Sun, 23 Nov 2025 12:17:31 +0000 (13:17 +0100)]
realtek: Avoid braces around single statement blocks

The Linux kernel coding style prefers not to use braces around blocks which
are only one statement long.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Fix order of "static" + "inline" keywords
Sven Eckelmann [Sun, 23 Nov 2025 12:11:17 +0000 (13:11 +0100)]
realtek: Fix order of "static" + "inline" keywords

THe correct order (which the rest of the code is using) is "static inline".

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Drop out-of-memory messages
Sven Eckelmann [Sun, 23 Nov 2025 11:59:54 +0000 (12:59 +0100)]
realtek: Drop out-of-memory messages

The kernel already complains loud enough to inform about an out-of-memory
situation. It is recommended not to add extra logging for *alloc errors.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Fix SPDX license lines in headers
Sven Eckelmann [Sun, 23 Nov 2025 11:57:49 +0000 (12:57 +0100)]
realtek: Fix SPDX license lines in headers

Headers must use block-style comments to avoid problems with non-C
programming languages which try to use this header file.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Remove extern from function declarations
Sven Eckelmann [Sun, 23 Nov 2025 11:49:24 +0000 (12:49 +0100)]
realtek: Remove extern from function declarations

In contrast to variables, functions don't need extern declarations. It is
also preferred in the kernel not to use extern in front of function
declarations.

The extern+static parts in clk-rtl83xx.c were skipped because they are a
little bit unexpected ("extern *_dram_set_rate" are never used, "static
_sram_set_rate" are used but should from the C code perspective always be
NULL). This is left for an interested reader with the correct test HW and
some interests to dig in the code from commit 4850bd887c3a ("realtek: add
RTL83XX clock driver") for the *_dram_set_rate -> *_sram_set_rate
relocation and how these SRAM function pointers are set in this translation
unit.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Enclose complex macros in parentheses
Sven Eckelmann [Sun, 23 Nov 2025 11:43:28 +0000 (12:43 +0100)]
realtek: Enclose complex macros in parentheses

The macros will be inserted as is by the pre-compiler into places which
uses them. This can cause weird effects because this can break the syntax
or the ordering of operations. Just adding parentheses can avoid a lot of
these unexpected effects.

(for even more complex, multi-expression macros, `do {...} while (0)` is
required).

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: Prefer linux/* includes over asm/* ones
Sven Eckelmann [Sun, 23 Nov 2025 11:37:20 +0000 (12:37 +0100)]
realtek: Prefer linux/* includes over asm/* ones

It is preferred in the Linux kernel to include the "normal" linux/*
include files instead of the asm includes files when available.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agokernel: bump 6.12 to 6.12.59
John Audia [Mon, 24 Nov 2025 10:30:24 +0000 (05:30 -0500)]
kernel: bump 6.12 to 6.12.59

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

All 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 (Intel N150)

Signed-off-by: John Audia <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20916
Signed-off-by: Hauke Mehrtens <[email protected]>
11 days agorealtek: dsa: Build check size of drop counter names
Sven Eckelmann [Mon, 24 Nov 2025 07:54:30 +0000 (08:54 +0100)]
realtek: dsa: Build check size of drop counter names

The commit 1cfd45ae0bad ("realtek: Add debugfs support for RTL9300") caused
previously an out of bounds access on the array holding the names of drop
counters (and incorrect names in the output) fur RTL839x because of a
missing comma. To avoid such situation in the future, calculate the size of
the array during compilation. And to ensure that this count matches the
actual number of counters in HW, compare this number during compile time
with the expected value.

Suggested-by: Hauke Mehrtens <[email protected]>
Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20905
Signed-off-by: Robert Marko <[email protected]>
11 days agorealtek: dsa: rtl839x: Fix incorrect drop counter names
Sven Eckelmann [Sun, 23 Nov 2025 14:42:20 +0000 (15:42 +0100)]
realtek: dsa: rtl839x: Fix incorrect drop counter names

The counter names "CFM" and "VLAN_IGR_FLTR" were not separated by a comma
in the `rtl839x_drop_cntr` array. As result, these two headers were merged
to a single header "CFMVLAN_IGR_FLTR" and everything after that was shifted
by one. The last name (for the 45th counter) was also not defined and was
therefore accessing data outside the array.

Fixes: 1cfd45ae0bad ("realtek: Add debugfs support for RTL9300")
Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20905
Signed-off-by: Robert Marko <[email protected]>
12 days agotoolchain: binutils: update to 2.45.1
Nick Hainke [Sun, 23 Nov 2025 09:40:12 +0000 (10:40 +0100)]
toolchain: binutils: update to 2.45.1

Release Notes:
- https://sourceware.org/pipermail/binutils/2025-November/145592.html

Signed-off-by: Nick Hainke <[email protected]>
12 days agolibxml2: update to 2.15.1
Nick Hainke [Sun, 23 Nov 2025 08:53:44 +0000 (09:53 +0100)]
libxml2: update to 2.15.1

Update to latest release. Location of cmake files changed.

Link: https://github.com/openwrt/openwrt/pull/20880
Signed-off-by: Nick Hainke <[email protected]>
12 days agobinutils: update to 2.45.1
Nick Hainke [Sun, 23 Nov 2025 09:32:14 +0000 (10:32 +0100)]
binutils: update to 2.45.1

Patches automatically refreshed.

Release Notes:
- 2.45.1: https://sourceware.org/pipermail/binutils/2025-November/145592.html
- 2.45.0: https://lists.gnu.org/archive/html/info-gnu/2025-07/msg00009.html
- 2.44.0: https://lists.gnu.org/archive/html/info-gnu/2025-02/msg00001.html
- 2.43.0: https://lists.gnu.org/archive/html/info-gnu/2024-08/msg00001.html

Link: https://github.com/openwrt/openwrt/pull/20884
Signed-off-by: Nick Hainke <[email protected]>
12 days agolibbsd: update to 0.12.2
Nick Hainke [Sun, 23 Nov 2025 11:11:50 +0000 (12:11 +0100)]
libbsd: update to 0.12.2

Update to latest release.

Link: https://github.com/openwrt/openwrt/pull/20899
Signed-off-by: Nick Hainke <[email protected]>
12 days agomediatek: filogic: increase flash speed on ASUS TUF AX6000
Aleksander Jan Bajkowski [Sun, 27 Jul 2025 17:19:42 +0000 (19:19 +0200)]
mediatek: filogic: increase flash speed on ASUS TUF AX6000

This commit increases the SPI bus frequency from 20 to 52 MHz. Reduces boot
time by 2s. Below is a performance comparison.

Before:
root@OpenWrt:~# dd if=/dev/mtd1 of=/dev/null bs=10M count=1 status=progress
10485760 bytes (10 MB, 10 MiB) copied, 1.68404 s, 6.2 MB/s

After:
root@OpenWrt:~# dd if=/dev/mtd1 of=/dev/null bs=10M count=1 status=progress
10485760 bytes (10 MB, 10 MiB) copied, 0.819222 s, 12.8 MB/s

Taken from PR #18752 as each device should be tested individually, so I have
created a separate PR for this.

Signed-off-by: Sky Huang <[email protected]>
Signed-off-by: Aleksander Jan Bajkowski <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20853
Signed-off-by: Hauke Mehrtens <[email protected]>