openwrt/openwrt.git
2 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 <rany_hany@riseup.net>
Link: https://github.com/openwrt/openwrt/pull/20694
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 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 <rany_hany@riseup.net>
Link: https://github.com/openwrt/openwrt/pull/20918
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 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 <cjd@cjdns.fr>
Link: https://github.com/openwrt/openwrt/pull/20580
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <frut3k7@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20725
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <frut3k7@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20725
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <rany_hany@riseup.net>
Link: https://github.com/openwrt/openwrt/pull/20914
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/20916
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 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 <hauke@hauke-m.de>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20905
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20905
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 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 <vincent@systemli.org>
3 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 <vincent@systemli.org>
3 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 <vincent@systemli.org>
3 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 <vincent@systemli.org>
3 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 <SkyLake.Huang@mediatek.com>
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Link: https://github.com/openwrt/openwrt/pull/20853
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 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 <jan@3e8.eu>
Link: https://github.com/openwrt/openwrt/pull/20841
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 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 <csharper2005@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20872
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 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 <csharper2005@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20872
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 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 <flizarthanon@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20354
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 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 root@192.168.1.1:/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. <ses1er@gmail.com>
Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://github.com/openwrt/openwrt/pull/20760
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 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 <vincent@systemli.org>
3 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 <vincent@systemli.org>
3 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 <vincent@systemli.org>
3 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 <vincent@systemli.org>
3 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 <vincent@systemli.org>
3 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 <nyankosoftware@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20894
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20895
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 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 <vincent@systemli.org>
3 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 <vincent@systemli.org>
3 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 <vincent@systemli.org>
3 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 <noltari@gmail.com>
4 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 <gladiac@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20891
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
4 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 <vincent@systemli.org>
4 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 <vincent@systemli.org>
4 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 <vincent@systemli.org>
4 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 <vincent@systemli.org>
4 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 <vincent@systemli.org>
4 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 <vincent@systemli.org>
4 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 <vincent@systemli.org>
4 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 <vincent@systemli.org>
4 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 <vincent@systemli.org>
4 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 <vincent@systemli.org>
5 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 <ggoerisch@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19471
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 days agoat91: refresh kernel-config sama5
Goetz Goerisch [Mon, 21 Jul 2025 11:14:27 +0000 (13:14 +0200)]
at91: refresh kernel-config sama5

refreshed running make kernel_oldconfig CONFIG_TARGET=subtarget

Signed-off-by: Goetz Goerisch <ggoerisch@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19471
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 days agoat91: refresh kernel-config sam9x
Goetz Goerisch [Mon, 21 Jul 2025 09:32:28 +0000 (11:32 +0200)]
at91: refresh kernel-config sam9x

refreshed running make kernel_oldconfig CONFIG_TARGET=subtarget

Signed-off-by: Goetz Goerisch <ggoerisch@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19471
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 days agoat91: add missing KConfig for sam9x sama5
Goetz Goerisch [Sun, 20 Jul 2025 08:12:19 +0000 (10:12 +0200)]
at91: add missing KConfig for sam9x sama5

CONFIG_DRM_MICROCHIP_LVDS_SERIALIZER needs to be added

Signed-off-by: Goetz Goerisch <ggoerisch@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19471
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 days agoat91: enable testing kernel 6.12
Goetz Goerisch [Sat, 19 Jul 2025 21:27:49 +0000 (23:27 +0200)]
at91: enable testing kernel 6.12

enable kernel 6.12 as testing

Signed-off-by: Goetz Goerisch <ggoerisch@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19471
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 days agoat91: Restore kernel files for v6.6
Goetz Goerisch [Sat, 19 Jul 2025 21:25:53 +0000 (23:25 +0200)]
at91: Restore kernel files for v6.6

This is an automatically generated commit which aids following Kernel patch
history, as git will see the move and copy as a rename thus defeating the
purpose.

For the original discussion see:
https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html

Signed-off-by: Goetz Goerisch <ggoerisch@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19471
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 days agoat91: Create kernel files for v6.12 (from v6.6)
Goetz Goerisch [Sat, 19 Jul 2025 21:25:53 +0000 (23:25 +0200)]
at91: Create kernel files for v6.12 (from v6.6)

This is an automatically generated commit.

When doing `git bisect`, consider `git bisect --skip`.

Signed-off-by: Goetz Goerisch <ggoerisch@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19471
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 days agoucode: update to Git HEAD (2025-11-19)
Hauke Mehrtens [Fri, 21 Nov 2025 01:08:09 +0000 (02:08 +0100)]
ucode: update to Git HEAD (2025-11-19)

8567eef4d3a5 examples/execute-file: free program
292e0f87cbf7 examples: free syntax_error
fd5889028f5e Revert "nl80211: read all pending event messages"
80a88b852620 types: add ucv_string_alloc helper function

The removed patch was applied upstream.

Link: https://github.com/openwrt/openwrt/pull/20850
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
5 days agoomap: drop support for kernel 6.6
Christian Marangi [Fri, 21 Nov 2025 22:45:15 +0000 (23:45 +0100)]
omap: drop support for kernel 6.6

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

Link: https://github.com/openwrt/openwrt/pull/20857
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 days agoomap: switch to kernel 6.12
Christian Marangi [Fri, 21 Nov 2025 22:44:45 +0000 (23:44 +0100)]
omap: switch to kernel 6.12

Move the omap target to kernel 6.12 by default.

Link: https://github.com/openwrt/openwrt/pull/20857
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 days agoimx: drop support for kernel 6.6
Christian Marangi [Fri, 21 Nov 2025 22:42:09 +0000 (23:42 +0100)]
imx: drop support for kernel 6.6

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

Link: https://github.com/openwrt/openwrt/pull/20856
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 days agoimx: switch to kernel 6.12
Christian Marangi [Fri, 21 Nov 2025 22:41:28 +0000 (23:41 +0100)]
imx: switch to kernel 6.12

Move the imx target to kernel 6.12 by default.

Link: https://github.com/openwrt/openwrt/pull/20856
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 days agoapm821xx: drop support for kernel 6.6
Christian Marangi [Fri, 21 Nov 2025 22:39:36 +0000 (23:39 +0100)]
apm821xx: drop support for kernel 6.6

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

Link: https://github.com/openwrt/openwrt/pull/20855
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 days agoapm821xx: switch to kernel 6.12
Christian Marangi [Fri, 21 Nov 2025 22:38:18 +0000 (23:38 +0100)]
apm821xx: switch to kernel 6.12

Move the apm821xx target to kernel 6.12 by default.

Link: https://github.com/openwrt/openwrt/pull/20855
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 days agopackage: drop creating spurious tmp directory in feed directory
Christian Marangi [Sat, 22 Nov 2025 09:01:55 +0000 (10:01 +0100)]
package: drop creating spurious tmp directory in feed directory

In implementing APK support it seems a a leftover was never removed that
creates an unused tmp directory in the package feed directory.

Drop it as it's not used anywhere. What is actually needed is the
creation of the $$(PDIR_$(1)) directory for the feed package directory
in the bin/packages directory.

This was a side effect of using INSTALL_DIR on $$(PDIR_$(1))/tmp that
indirectly creates the $$(PDIR_$(1)) parent directory.

Fixes: d788ab376f85 ("build: add APK package build capabilities")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 days agoRevert "package: drop creating spurious tmp directory in feed directory"
Christian Marangi [Sat, 22 Nov 2025 08:58:26 +0000 (09:58 +0100)]
Revert "package: drop creating spurious tmp directory in feed directory"

This reverts commit cea8507dccc9f677d3d4ed926fc568becfb554d4.

This actually cause package pack error on every package outside the
target directory.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 days agoapk: update to 3.0.0-rc8
Rosen Penev [Fri, 21 Nov 2025 00:59:55 +0000 (16:59 -0800)]
apk: update to 3.0.0-rc8

Added compatibility patch for LibreSSL 4.0.

Refreshed other patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20851
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 days agopackage: drop creating spurious tmp directory in feed directory
Christian Marangi [Fri, 21 Nov 2025 22:32:26 +0000 (23:32 +0100)]
package: drop creating spurious tmp directory in feed directory

In implementing APK support it seems a a leftover was never removed that
creates an unused tmp directory in the package feed directory.

Drop it as it's not used anywhere.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 days agogeneric: 6.12: backport b53 patches from netdev-next
Álvaro Fernández Rojas [Wed, 19 Nov 2025 08:42:20 +0000 (09:42 +0100)]
generic: 6.12: backport b53 patches from netdev-next

These patches have been accepted in netdev-next for linux v6.19.

2b3013ac0302 net: dsa: b53: add support for bcm63xx ARL entry format
300f78e8b6b7 net: dsa: b53: add support for 5389/5397/5398 ARL entry format
a7e73339ad46 net: dsa: b53: move ARL entry functions into ops struct
e0c476f325a8 net: dsa: b53: split reading search entry into their own functions
1716be6db04a net: dsa: b53: provide accessors for accessing ARL_SRCH_CTL
bf6e9d2ae1db net: dsa: b53: move writing ARL entries into their own functions
4a291fe72267 net: dsa: b53: move reading ARL entries into their own function
a6e4fd38bf2f net: dsa: b53: b53_arl_read{,25}(): use the entry for comparision

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 days agogeneric: 6.12: backport b53 patches from v6.18
Álvaro Fernández Rojas [Wed, 19 Nov 2025 08:21:39 +0000 (09:21 +0100)]
generic: 6.12: backport b53 patches from v6.18

These patches have been accepted for linux v6.18.

e57723fe536f net: dsa: b53: properly bound ARL searches for < 4 ARL bin chips
674b34c4c770 net: dsa: b53: fix ageing time for BCM53101
89eb9a62aed7 net: dsa: b53: fix reserved register access in b53_fdb_dump()
61730ac10ba9 net: dsa: b53: mmap: Implement bcm63268 gphy power control
7f95f04fe190 net: dsa: b53: mmap: Add gphy port to phy info for bcm63268
5ac00023852d net: dsa: b53: mmap: Implement bcm63xx ephy power control
e8e13073dff7 net: dsa: b53: mmap: Add register layout for bcm6368
c251304ab021 net: dsa: b53: mmap: Add register layout for bcm6318
aed2aaa3c963 net: dsa: b53: mmap: Add syscon reference and register layout for bcm63268
fcf02a462fab net: dsa: b53: Define chip IDs for more bcm63xx SoCs
be7a79145d85 net: dsa: b53: Add phy_enable(), phy_disable() methods
762e7e174da9 net: dsa: tag_brcm: do not mark link local traffic as offloaded

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 days agogeneric: 6.12: reorganize b53 patches
Álvaro Fernández Rojas [Wed, 19 Nov 2025 18:21:44 +0000 (19:21 +0100)]
generic: 6.12: reorganize b53 patches

A considerable amount of b53 patches has been backported to 6.12, so we
can rename and group the remaining ones.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 days agorpcd: update to Git HEAD (2025-11-10)
Hauke Mehrtens [Fri, 21 Nov 2025 01:07:06 +0000 (02:07 +0100)]
rpcd: update to Git HEAD (2025-11-10)

483263c7b0cd file: append "target" for symbolic links

Link: https://github.com/openwrt/openwrt/pull/20849
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
5 days agouci: update to Git HEAD (2025-11-18)
Hauke Mehrtens [Fri, 21 Nov 2025 01:05:40 +0000 (02:05 +0100)]
uci: update to Git HEAD (2025-11-18)

b65c091a09a9 github: ci: disable json-c tests
e1ab90c510ce github: ci: add tests
8022b2e4d010 uci: add a simple build script
dec51f48a114 github: ci: add cmake build and source directories
238963f48c84 github: ci: add powerpc arch
ebb3a01a0b01 build: install uci
5bea13572325 github: ci: add MIPS64, PowerPC64 and RISCV64

Link: https://github.com/openwrt/openwrt/pull/20848
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
5 days agoubus: update to Git HEAD (2025-11-18)
Hauke Mehrtens [Fri, 21 Nov 2025 01:06:26 +0000 (02:06 +0100)]
ubus: update to Git HEAD (2025-11-18)

966c82b2197c github: ci: disable json-c tests
c4d7aff97bbe github: ci: add tests
00010b8af022 ubus: add a simple build script
1eab20d6cda2 github: ci: add cmake build and source directories
f79ddca64806 github: ci: add powerpc arch
5c7eea7fc090 build: install ubus
2737da3819fe github: ci: add MIPS64, PowerPC64 and RISCV64

Link: https://github.com/openwrt/openwrt/pull/20847
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
5 days agokernel: mtdsplit_h3c_vfs: Fix build
Hauke Mehrtens [Fri, 21 Nov 2025 20:33:26 +0000 (21:33 +0100)]
kernel: mtdsplit_h3c_vfs: Fix build

Fix a recently introduces compile problem.

Fixes: 2acf18bf4deb ("kernel: mtdsplit_h3c_vfs: use -ENOENT instead of -ENODEV")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>