openwrt/staging/stintel.git
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]>
12 days agomediatek: filogic: add factory image for Asus TUF-AX4200
Jan Hoffmann [Thu, 20 Nov 2025 17:24:44 +0000 (18:24 +0100)]
mediatek: filogic: add factory image for Asus TUF-AX4200

The initramfs.trx image can be flashed from the web interface of factory
firmware.

Unfortunately, the default boot command of the bootloader does not load
the ramdisk in the FIT image. This means that the image can only be
built when the option TARGET_ROOTFS_INITRAMFS_SEPARATE is disabled.

Tested with firmware 3.0.0.4.388_33965 (U-Boot 2022.10 / 2.0.0.5).

Signed-off-by: Jan Hoffmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20841
Signed-off-by: Hauke Mehrtens <[email protected]>
12 days agokernel: add support for Fudan Micro FM25S01BI3 SPI-NAND
Mikhail Zhilkin [Sat, 22 Nov 2025 16:18:36 +0000 (19:18 +0300)]
kernel: add support for Fudan Micro FM25S01BI3 SPI-NAND

Add support for Fudan Micro FM25S01BI3 SPI NAND.
Link: https://www.fmsh.com/nvm/FM25S01BI3_ds_eng.pdf
Signed-off-by: Mikhail Zhilkin <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20872
Signed-off-by: Hauke Mehrtens <[email protected]>
12 days agokernel: fix QE bit for Fudan Micro FM25S01A SPI-NAND
Mikhail Zhilkin [Sat, 22 Nov 2025 16:05:52 +0000 (19:05 +0300)]
kernel: fix QE bit for Fudan Micro FM25S01A SPI-NAND

According to datasheet (http://eng.fmsh.com/nvm/FM25S01A_ds_eng.pdf)
there is no QE (Quad Enable) bit for FM25S01A flash, so remove it.

Signed-off-by: Mikhail Zhilkin <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20872
Signed-off-by: Hauke Mehrtens <[email protected]>
12 days agofilogic: add support for Netgear EAX17
Jascha Sundaresan [Thu, 18 Sep 2025 18:32:41 +0000 (22:32 +0400)]
filogic: add support for Netgear EAX17

Hardware
--------

SOC:   MediaTek MT7981
RAM:   512MB DDR4
FLASH: 128MB SPI-NAND
WIFI:  Mediatek MT7915 (integrated) 2x2 802.11ax 2.4 / 5 GHz
ETH:   Mediatek MT7981 internal 1 GbE PHY
UART:  3V3 115200 8N1 (Pinout silkscreened / Do not connect VCC)

Installation
------------

1. Download the OpenWrt initramfs image. Copy the image to a TFTP server
2. Connect the TFTP server to the EAX17. Conect to the serial console,
   interrupt the autoboot process by pressing '0' when prompted.
3. Download & Boot the OpenWrt initramfs image.

   $ tftpboot openwrt.bin
   $ bootm

4. Wait for OpenWrt to boot. Transfer the sysupgrade image to the device
   using scp and install using sysupgrade.

   $ sysupgrade -n <path-to-sysupgrade.bin>

Signed-off-by: Jascha Sundaresan <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20354
Signed-off-by: Hauke Mehrtens <[email protected]>
12 days agomediatek: add support for WAVLINK WL-WN536AX6 Rev a
Qing W. [Sun, 23 Nov 2025 06:03:37 +0000 (01:03 -0500)]
mediatek: add support for WAVLINK WL-WN536AX6 Rev a

Product name: Wavlink WL-WN536AX6 Rev a "Mighty LX2"
link: https://www.wavlink.com/en_us/product/WL-WN536AX6.html
Specifications:
SOC: MT7986AV
RAM: 512MB DDR4
Flash: 128MB SPI NAND
Ports: 4 LAN (1G) & 1 WAN (2.5G)
WIFI: MT7976PN + MT7975N
LEDs: 8 (STATUS, WIFI, WAN, LAN1, LAN2, LAN3, LAN4, PWR)
USB: 1 (3.0)

MAC table, same as stock firmware:
LAN: 80:3F:5D:xx:xx:x1 partition "hw" at 0x44e (ASCII)
WAN: 80:3F:5D:xx:xx:x2 partition "hw" at 0x460 (ASCII)
2G: 80:3F:5D:xx:xx:x3
5G: 80:3F:5D:xx:xx:x4

* Installation with OEM WebUI:

Note: Make sure PC is connected on LAN1 port. The OEM firmware has an unknown root password and settings are kept after upgrading firmware. Therefore, a customized Openwrt firmware is needed to remove the root password on login, by adding `passwd -d root` to /etc/init.d/bootcount. The WebUI does a filename check so the customized firmware is named accordingly.

1. Download modified firmware file `WAVLINK_WN536AX6-A_M36AX6_V250320-WO-437baca-modified.bin` from https://github.com/ses1er/firmware-misc/tree/main/wavlink/wl-wn536ax6a
2. Log into WebUI on default IP: http://192.168.20.1
3. Browse to More (top menu) -> System -> Firmware Upgrade.
4. Under `Local Upgrade` section, check the device to be upgraded and upload downloaded modified firmware. Click `UPLOAD FILE`, then `APPLY`
5. Wait about 2 minutes (ignore progress bar), and browse to http://192.168.20.1. You should see LUCI login page. Username is root and no password.
6. Browse to `System -> Backup/Flash Firmware`, click on `Flash Image`, click `Browse` and locate `openwrt-mediatek-filogic-wavlink_wl-wn536ax6-a-squashfs-sysupgrade.bin` file.
7. Uncheck `Keep settings and retain the current configuration` and click `Continue`.
8. Router will now be set to IP 192.168.1.1 which is the Openwrt default.

* Installation with UART:

Note: Having UART connected while cold booting the device will result in a kernel panic when initializing wifi. I've found this workaround:
1. Power off the device and ensure UART is not connected to PC.
2. Power up the device, when lights come on, plug in UART.
3. Warm boots and soft restarts will not cause kernel panic for the duration of device being powered on. Repeat steps for subsequent cold boots.

1. Configure TFTP server with IP 192.168.1.66. Copy `openwrt-mediatek-filogic-wavlink_wl-wn536ax6a-initramfs.itb` to TFTP root.
2. Interrupt boot by pressing 0.
3. Run the following in Uboot console: `setenv serverip 192.168.1.66; setenv ipaddr 192.168.1.1; tftpboot 0x46000000 openwrt-mediatek-filogic-wavlink_wl-wn536ax6-a-initramfs.itb; bootm`
4. Transfer `openwrt-mediatek-filogic-wavlink_wl-wn536ax6-a-squashfs-sysupgrade.bin` to device:
   (`scp -O openwrt-mediatek-filogic-wavlink_wl-wn536ax6-a-squashfs-sysupgrade.bin [email protected]:/tmp/`)
5. Run the following on device: `sysupgrade -n /tmp/openwrt-mediatek-filogic-wavlink_wl-wn536ax6-a-squashfs-sysupgrade.bin`

Signed-off-by: Qing W. <[email protected]>
Tested-by: Martin Blumenstingl <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20760
Signed-off-by: Hauke Mehrtens <[email protected]>
12 days agolibunistring: update to 1.4.1
Nick Hainke [Sun, 23 Nov 2025 11:18:13 +0000 (12:18 +0100)]
libunistring: update to 1.4.1

Release Notes:
https://fossies.org/linux/libunistring/ChangeLog

Link: https://github.com/openwrt/openwrt/pull/20902
Signed-off-by: Nick Hainke <[email protected]>
12 days agojansson: update to 2.14.1
Nick Hainke [Sun, 23 Nov 2025 11:15:26 +0000 (12:15 +0100)]
jansson: update to 2.14.1

Release Notes:
https://github.com/akheron/jansson/releases/tag/v2.14.1

Link: https://github.com/openwrt/openwrt/pull/20901
Signed-off-by: Nick Hainke <[email protected]>
12 days agompfr: update to 4.2.2
Nick Hainke [Sun, 23 Nov 2025 11:05:53 +0000 (12:05 +0100)]
mpfr: update to 4.2.2

Release Notes:
https://www.mpfr.org/mpfr-current/

Link: https://github.com/openwrt/openwrt/pull/20898
Signed-off-by: Nick Hainke <[email protected]>
12 days agonettle: update to 3.10.2
Nick Hainke [Sun, 23 Nov 2025 10:57:39 +0000 (11:57 +0100)]
nettle: update to 3.10.2

Release Notes:
https://lists.gnu.org/archive/html/info-gnu/2025-06/msg00006.html

Link: https://github.com/openwrt/openwrt/pull/20896
Signed-off-by: Nick Hainke <[email protected]>
12 days agolibusb: update to 1.0.29
Nick Hainke [Sun, 23 Nov 2025 11:01:56 +0000 (12:01 +0100)]
libusb: update to 1.0.29

Release Notes:
- https://github.com/libusb/libusb/releases/tag/v1.0.29
- https://github.com/libusb/libusb/releases/tag/v1.0.28

Link: https://github.com/openwrt/openwrt/pull/20897
Signed-off-by: Nick Hainke <[email protected]>
12 days agomediatek: use dt-bindings drive strength macros for ipTIME AX7800M-6E
Donghyun Ko [Sun, 23 Nov 2025 10:01:21 +0000 (19:01 +0900)]
mediatek: use dt-bindings drive strength macros for ipTIME AX7800M-6E

Replace hardcoded numbers with the dt-bindings drive strength macros
defined in "dt-bindings/pinctrl/mt65xx.h".

Signed-off-by: Donghyun Ko <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20894
Signed-off-by: Hauke Mehrtens <[email protected]>
12 days agorealtek: Cleanup tab vs spaces for indentation
Sven Eckelmann [Sun, 23 Nov 2025 10:29:11 +0000 (11:29 +0100)]
realtek: Cleanup tab vs spaces for indentation

Sources files should used for the proper indentation:

* use tabs instead of 8 spaces
* spaces should never directly before a tab
* no whitespace characters at the end of a line

These rules were partially not followed in various source files.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20895
Signed-off-by: Hauke Mehrtens <[email protected]>
12 days agogperf: update to 3.3
Nick Hainke [Sun, 23 Nov 2025 09:46:30 +0000 (10:46 +0100)]
gperf: update to 3.3

Release Notes:
- 3.3: https://savannah.gnu.org/news/?id=10758
- 3.2: https://savannah.gnu.org/news/?id=10747

Link: https://github.com/openwrt/openwrt/pull/20886
Signed-off-by: Nick Hainke <[email protected]>
12 days agolibbpf: update to 1.6.2
Nick Hainke [Sun, 23 Nov 2025 09:05:45 +0000 (10:05 +0100)]
libbpf: update to 1.6.2

Release Notes:
- 1.6.2: https://github.com/libbpf/libbpf/releases/tag/v1.6.2
- 1.6.1: https://github.com/libbpf/libbpf/releases/tag/v1.6.1
- 1.6.0: https://github.com/libbpf/libbpf/releases/tag/v1.6.0
- 1.5.1: https://github.com/libbpf/libbpf/releases/tag/v1.5.1

Link: https://github.com/openwrt/openwrt/pull/20882
Signed-off-by: Nick Hainke <[email protected]>
12 days agolibtool: update to 2.5.4
Nick Hainke [Sun, 23 Nov 2025 08:41:25 +0000 (09:41 +0100)]
libtool: update to 2.5.4

Release Notes:
- 2.5.0: https://savannah.gnu.org/news/?id=10631
- 2.5.1: https://savannah.gnu.org/news/?id=10660
- 2.5.2: https://savannah.gnu.org/news/?id=10669
- 2.5.3: https://savannah.gnu.org/news/?id=10676
- 2.5.4: https://savannah.gnu.org/news/?id=10693

Link: https://github.com/openwrt/openwrt/pull/20879
Signed-off-by: Nick Hainke <[email protected]>
12 days agobusybox: backport hexdump fix for Big Endian systems
Álvaro Fernández Rojas [Sun, 23 Nov 2025 16:07:05 +0000 (17:07 +0100)]
busybox: backport hexdump fix for Big Endian systems

hexdump isn't working properly on some Big Endian systems, producing
incorrect output such as:
  hexdump -vn 5 -e '"fd" 1/1 "%02x:" 2/2 "%x:"' /dev/urandom
  fdff:542c0054:17920017:
Which should be:
  fdff:542c:1792:

This breaks the default ULA prefix generation on some systems. See:
https://github.com/openwrt/openwrt/issues/19844

The issue has already been fixed upstream, so we can backport the fix:
https://git.busybox.net/busybox/commit/libbb/dump.c?id=f5c7cae55fc3e19d074198bc12152486067ea8c7

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
12 days agolibpcre2: Default enable JIT support for aarch64
Christian Lachner [Sun, 23 Nov 2025 09:48:47 +0000 (10:48 +0100)]
libpcre2: Default enable JIT support for aarch64

JIT support in pcre2 allows for extra performance for regex operations in
applications that support it. As outlined in
https://pcre.org/current/doc/html/pcre2jit.html#SEC2 64-bit ARM is
supported.

I tested this on an GL.Inet MT6000 which is an aarch64 device and to my
knowledge everything works as expected. The primary application I tested
this on was haproxy, which makes use pcre for several operations.

If there are no known downsides or known breakages I suggest to
default-enable this feature for aarch64.

Signed-off-by: Christian Lachner <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20891
Signed-off-by: Christian Marangi <[email protected]>
13 days agotoolchain: gcc: add fanalyzer config option
Nick Hainke [Wed, 10 May 2023 01:53:34 +0000 (03:53 +0200)]
toolchain: gcc: add fanalyzer config option

Add gcc config option for fanalyzer. As a result of this option, a static
analysis of the program flow is conducted, allowing interprocedural paths
to be identified and warnings to be issued if problems are identified.

Link: https://github.com/openwrt/openwrt/pull/12576
Signed-off-by: Nick Hainke <[email protected]>
13 days agorefpolicy: update to 2.20250923
Nick Hainke [Sat, 22 Nov 2025 07:20:50 +0000 (08:20 +0100)]
refpolicy: update to 2.20250923

Changelog:
  Notable Changes
  - Several updates and fixes for systemd
  - Add new permissions and policy capabilities
  - Drop reiserfs support (it was removed in kernel 6.13)

  New Modules
  - bubblewrap
  - incus
  - kanidm
  - seatd
  - opensnitch

Refresh patch:
- 100-no-docs.patch

Link: https://github.com/openwrt/openwrt/pull/20861
Signed-off-by: Nick Hainke <[email protected]>
13 days agoselinux-policy: update to 2.8.3
Nick Hainke [Sat, 22 Nov 2025 07:11:34 +0000 (08:11 +0100)]
selinux-policy: update to 2.8.3

Changelog:
b1d7050 README
13f78a8 nlbwmon fix
9a98b2b ratelimit and nlbwmon rules
a193e4b adds nlbwmon skel
b5672a0 README: adds nlbwmon to wish list
2058100 adds radius and uam unreserved port
026b712 ratelimit for busybox ip
7661081 adds ratelimit sysagent skel and update README
3bea826 luci and rpcserver apk related
ba8607d all sys agents can use inherited ssh server pipes
24b9396 README: adds some more items to wish list
da7a02c ttyxperm: adds TIOCSERGETLSR
2fce9ee Revert "file_contexts.subs_dist: order matters with libselinux 3.8"
9a13714 file_contexts.subs_dist: order matters with libselinux 3.8
a148827 README update
9d9a1ff iproute2 ip: ip mptcp monitor
cf7efdc envtools: setenv

Link: https://github.com/openwrt/openwrt/pull/20859
Signed-off-by: Nick Hainke <[email protected]>
13 days agodtc: update to 1.7.2
Nick Hainke [Sat, 22 Nov 2025 06:58:55 +0000 (07:58 +0100)]
dtc: update to 1.7.2

Changelog:
2d10aa2 Bump version to v1.7.2
48795c8 pylibfdt: Don't emit warnings from swig generate C code
838f11e fdtoverlay: provide better error message for missing `/__symbols__`
d1e2384 pylibfdt/libfdt.i: Use SWIG_AppendOutput
18aa49a Escape spaces in depfile with backslashes.
f9968fa libfdt.h: whitespace consistency fixups
9b5f65f libfdt.h: typo and consistency fixes

Link: https://github.com/openwrt/openwrt/pull/20858
Signed-off-by: Nick Hainke <[email protected]>
13 days agotools/squashfs4: update to 4.7.4
Nick Hainke [Thu, 20 Nov 2025 20:29:27 +0000 (21:29 +0100)]
tools/squashfs4: update to 4.7.4

Remove upstreamed patches:
- 0001-mksquashfs-fix-build-for-big-endian-architectures.patch
- 0002-gzip_wrapper-fix-byte-swapping-prototype.patch
- 0003-mksquashfs-fix-regression-introduced-by-SEEK_DATA-op.patch

Link: https://github.com/openwrt/openwrt/pull/20843
Signed-off-by: Nick Hainke <[email protected]>
13 days agotools: libressl: update to 4.2.1
Nick Hainke [Sun, 27 Jul 2025 17:08:38 +0000 (19:08 +0200)]
tools: libressl: update to 4.2.1

Changelog:
- 3.8.0: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.8.0-relnotes.txt
- 3.8.1: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.8.1-relnotes.txt
- 3.8.2: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.8.3-relnotes.txt
- 3.8.4: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.8.4-relnotes.txt
- 3.9.0: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.9.0-relnotes.txt
- 3.9.1: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.9.1-relnotes.txt
- 3.9.2: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.9.2-relnotes.txt
- 4.0.0: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-4.0.0-relnotes.txt
- 4.1.0: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-4.1.0-relnotes.txt
- 4.2.0: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-4.2.0-relnotes.txt
- 4.2.1: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-4.2.1-relnotes.txt

Further add patches:
- 010-static.patch
- 011-fix-linking.patch

Link: https://github.com/openwrt/openwrt/pull/19562
Signed-off-by: Nick Hainke <[email protected]>
13 days agotools/llvm-bpf: update to 21.1.6
Nick Hainke [Sat, 22 Nov 2025 13:46:30 +0000 (14:46 +0100)]
tools/llvm-bpf: update to 21.1.6

Release Notes:
- https://discourse.llvm.org/t/llvm-21-1-6-released
- https://discourse.llvm.org/t/llvm-21-1-5-released
- https://discourse.llvm.org/t/llvm-21-1-4-released
- https://discourse.llvm.org/t/llvm-21-1-3-released
- https://discourse.llvm.org/t/llvm-21-1-2-released
- https://discourse.llvm.org/t/llvm-21-1-1-released
- https://discourse.llvm.org/t/llvm-21-1-0-released
- https://discourse.llvm.org/t/llvm-20-1-7-released

Link: https://github.com/openwrt/openwrt/pull/20870
Signed-off-by: Nick Hainke <[email protected]>
13 days agobpftool: update to 7.6.0
Nick Hainke [Thu, 20 Nov 2025 20:46:05 +0000 (21:46 +0100)]
bpftool: update to 7.6.0

Release Notes:
- https://github.com/libbpf/bpftool/releases/tag/v7.6.0

Link: https://github.com/openwrt/openwrt/pull/20846
Signed-off-by: Nick Hainke <[email protected]>
13 days agotools/dwarves: update to 1.31
Nick Hainke [Thu, 20 Nov 2025 20:39:33 +0000 (21:39 +0100)]
tools/dwarves: update to 1.31

Upstream switched to tar.xz.

Release Notes:
- https://github.com/acmel/dwarves/releases/tag/v1.30
- https://github.com/acmel/dwarves/releases/tag/v1.31

Link: https://github.com/openwrt/openwrt/pull/20845
Signed-off-by: Nick Hainke <[email protected]>
13 days agotools/libdeflate: update to 1.25
Nick Hainke [Thu, 20 Nov 2025 20:34:17 +0000 (21:34 +0100)]
tools/libdeflate: update to 1.25

Changelog:
- Update to v1.25 (2025-10-31): no fixes or improvements, only the build
  harness maintenance.

Link: https://github.com/openwrt/openwrt/pull/20844
Signed-off-by: Nick Hainke <[email protected]>
13 days agoat91: refresh kernel-config sama7
Goetz Goerisch [Mon, 21 Jul 2025 12:54:15 +0000 (14:54 +0200)]
at91: refresh kernel-config sama7

refreshed running make kernel_oldconfig CONFIG_TARGET=subtarget

Signed-off-by: Goetz Goerisch <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19471
Signed-off-by: Christian Marangi <[email protected]>