openwrt/openwrt.git
5 weeks agohostapd: Enable DPPv2 support for OpenSSL and mbedtls
Gustavo Bertoli [Wed, 12 Mar 2025 17:22:12 +0000 (18:22 +0100)]
hostapd: Enable DPPv2 support for OpenSSL and mbedtls

Enable Device Provisioning Protocol (DPPv2) in hostapd
for the "full" build-variants.

DPPv2 currently does not compile with WolfSSL due to
missing PKCS7 and certificate support.

Link: https://github.com/openwrt/openwrt/pull/18485
Signed-off-by: Gustavo Bertoli <gubertoli@gmail.com>
5 weeks agonat46: bump to latest git HEAD 2025-04-23
Shiji Yang [Tue, 29 Apr 2025 12:52:59 +0000 (20:52 +0800)]
nat46: bump to latest git HEAD 2025-04-23

This new version introduces many compilation error fixes for
the upcoming 6.12 kernel. Changelogs:

04923c5 "Fix build failures observed so far" - take three.
b4263cc "Fix build failures observed so far" - take two.
de595b4 Fix build failures observed so far
1c0066a Zero checksum handling for UDP4->UDP6
b42c37d Fix crash when viewing nat46 kernel module config
3a9f630 nat46-module: fix modpost warning
88b91ca gha: use checkout@v4 action instead of checkout@v2
84ba13a gha: enable github action on push/PR
f367088 fix the compilation error
03c14bf gha: clean-up the yaml definition
d964921 Create c-compile.yml
cb69317  "Add network namespace awareness to nat46" - take two.
8302f42 Revert "Add network namespace awareness to nat46"
91b8e68 Add network namespace awareness to nat46

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
5 weeks agolantiq: xrx200_legacy: rename TP-LINK to TP-Link
Aleksander Jan Bajkowski [Sun, 30 Mar 2025 17:34:57 +0000 (19:34 +0200)]
lantiq: xrx200_legacy: rename TP-LINK to TP-Link

Keep the name consistent with other places.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
5 weeks agolantiq: xrx200_legacy: rename PHY LEDs
Aleksander Jan Bajkowski [Sun, 30 Mar 2025 17:33:31 +0000 (19:33 +0200)]
lantiq: xrx200_legacy: rename PHY LEDs

This commit corrects led phy names. This has been discussed
at link [1] and corrected in the mediatek target in the
commit a51fd20e0d65ef836ee6c1e13c39a529855af4a0. Now it's time
to do the same thing in the lantiq target.

Link: https://github.com/openwrt/openwrt/pull/18265
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
5 weeks agoramips: add support for Cudy R700
David DeGraw [Fri, 18 Apr 2025 17:55:34 +0000 (11:55 -0600)]
ramips: add support for Cudy R700

This is the same hardware as the Cudy WR2100 that's
had support for some time now, just without the WLAN
hardware.

This PR is mostly copied from the commit that added
support for the WR2100, here: 3501db9

Specifications:
SoC: MT7621
CPU: 880 MHz
Flash: 16 MiB
RAM: 128 MiB
Ethernet: 5x Gbit ports

Installation:
There are two known options:

The Luci-based UI.
Press and hold the reset button during power up.
The router will request 'recovery.bin' from a TFTP server at
192.168.1.88.

Both options require a signed firmware binary.
A signed firmware can be found in GitHub PR #18532.

R4 & R5 need to be shorted (0-100Ω) for the UART to work.

Link: https://github.com/openwrt/openwrt/pull/18532
Signed-off-by: David DeGraw <degraw@fastmail.com>
5 weeks agoramips: use i2c-gpio driver for EX400
David Bauer [Tue, 6 May 2025 16:23:50 +0000 (18:23 +0200)]
ramips: use i2c-gpio driver for EX400

Configure the i2c pins as GPIO outputs and use the i2c-gpio driver to
control the Semtech SX9512 touch controller.

This fixes spurious errors in i2c transactions even at 1kHz with the
native i2c driver.

leds green:wan: Setting an LED's brightness failed (-6)

Signed-off-by: David Bauer <mail@david-bauer.net>
5 weeks agoramips: support Genexis EX400 touch controller
David Bauer [Sun, 4 May 2025 02:45:03 +0000 (04:45 +0200)]
ramips: support Genexis EX400 touch controller

Add the necessary package dependencies as well as device-tree properties
to support the touch-inputs as well as missing LEDs on the Genexis Pulse
EX400 range extender.

Signed-off-by: David Bauer <mail@david-bauer.net>
5 weeks agoramips: add Semtech SX9512 touch input driver
David Bauer [Sun, 4 May 2025 02:47:32 +0000 (04:47 +0200)]
ramips: add Semtech SX9512 touch input driver

This driver is required for the touch-inputs as well as some LEDs on the
Genexis Pulse EX400.

The driver was also sent upstream. As the EX400 is currently the only
consumer, the driver is added target-specific for ramips.

Once the driver has been accepted upstream and is provided in a kernel
release used by OpenWrt, the package should be moved to the global input
drivers.

Link: https://www.spinics.net/lists/kernel/msg5669349.html
Signed-off-by: David Bauer <mail@david-bauer.net>
5 weeks agoramips: drop ALT0 name from Pulse EX400 dts model
David Bauer [Sun, 4 May 2025 02:49:50 +0000 (04:49 +0200)]
ramips: drop ALT0 name from Pulse EX400 dts model

The alternative model name does not need to be represented in the DTS.

Signed-off-by: David Bauer <mail@david-bauer.net>
5 weeks agolinux: remove of_match_ptr from OF only drivers
Rosen Penev [Thu, 1 May 2025 21:11:56 +0000 (14:11 -0700)]
linux: remove of_match_ptr from OF only drivers

There's no need for it. Kernel update to 6.12 found that it now needs
linux/of.h explicitly included.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18763
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agocmake: use RelWithDebInfo, not Debug, with CONFIG_DEBUG
Nathaniel Wesley Filardo [Sun, 4 May 2025 20:40:13 +0000 (21:40 +0100)]
cmake: use RelWithDebInfo, not Debug, with CONFIG_DEBUG

Given the description of the configuration option at its definition in
target/sdk/files/Config.in ("Compile packages with debugging info" and "Adds -g3
to the CFLAGS", the more appropriate CMAKE build type is `RelWithDebInfo` rather
than `Debug`.

Signed-off-by: Nathaniel Wesley Filardo <nwfilardo@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18709
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agotools/llvm-bpf: fix compilation with GCC15
Henry Tung [Fri, 9 May 2025 23:45:34 +0000 (16:45 -0700)]
tools/llvm-bpf: fix compilation with GCC15

Add cstdint include to SmallVector.h.

Backported from
https://github.com/llvm/llvm-project/commit/7e44305041d96b064c197216b931ae3917a34ac1.

Signed-off-by: Henry Tung <henryptung@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18767
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agoqualcommax: ipq50xx: fix NAND ECC for ELECOM WRC-X3000GS2
INAGAKI Hiroshi [Sat, 10 May 2025 07:33:04 +0000 (16:33 +0900)]
qualcommax: ipq50xx: fix NAND ECC for ELECOM WRC-X3000GS2

Specify 4-bit ECC strength instead of 8-bit, to resolve NAND I/O errors
on ELECOM WRC-X3000GS2.

ELECOM WRC-X3000GS2 has a Macronix MX35UF1G24AD SPI-NAND chip as a flash
storage. That chip is registered as a chip that has 128 bytes OOB and
requires 8-bit ECC, and described as the same in the Macronix's datasheet.

But on WRC-X3000GS2, 8-bit ECC breaks NAND I/O on mtdblock devices with
the following errors and 4-bit ECC needs to be used to resolve this issue.

current (ECC strength=8):

```
[    1.401566] 0x000000480000-0x000000500000 : "0:appsblenv"
[    1.407128] 1 fixed-partitions partitions found on MTD device 0:appsblenv
[    1.410663] Creating 1 MTD partitions on "0:appsblenv":
[    1.417359] 0x000000000000-0x000000040000 : "env-data"
[    1.479865] u-boot-env-layout: probe of 79b0000.qpic-nand:flash@0:partitions:partition-0-appsblenv:partition@0:nvmem-layout failed with error -74

root@OpenWrt:~# strings /dev/mtdblock10
[   55.693754] mtdblock: MTD device '0:appsblenv' is NAND, please consider using UBI block devices instead.
[   55.694660] I/O error, dev mtdblock10, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 4 prio class 2
[   55.703147] I/O error, dev mtdblock10, sector 8 op 0x0:(READ) flags 0x80700 phys_seg 3 prio class 2
[   55.711884] I/O error, dev mtdblock10, sector 16 op 0x0:(READ) flags 0x80700 phys_seg 2 prio class 2
[   55.720778] I/O error, dev mtdblock10, sector 24 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[   55.730310] I/O error, dev mtdblock10, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[   55.738607] Buffer I/O error on dev mtdblock10, logical block 0, async page read
```

after fixing (ECC strength=4):

```
[    1.402301] 0x000000480000-0x000000500000 : "0:appsblenv"
[    1.407909] 1 fixed-partitions partitions found on MTD device 0:appsblenv
[    1.411370] Creating 1 MTD partitions on "0:appsblenv":
[    1.418075] 0x000000000000-0x000000040000 : "env-data"
(no error)

root@OpenWrt:~# strings /dev/mtdblock10
[   39.131008] mtdblock: MTD device '0:appsblenv' is NAND, please consider using UBI block devices instead.
bootcmd=bootipq
baudrate=115200
wifi2=7C:F8:54:01:BD:F3
CRASH_COUNT=0
...

```

Fixes: 01b72ce61e ("qualcommax: ipq50xx: remove ECC user config from board files")
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18770
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agobmips: sercomm-msp430: fix include
Álvaro Fernández Rojas [Sat, 10 May 2025 07:00:45 +0000 (09:00 +0200)]
bmips: sercomm-msp430: fix include

Include <linux/of.h> instead of <linux/of_device.h>.
This problem arised when adding support for 6.12, but it can be fixed on
older kernels too.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 weeks agobcm27xx: fix kmod-drm-rp1 modules dependencies
Álvaro Fernández Rojas [Fri, 9 May 2025 06:46:18 +0000 (08:46 +0200)]
bcm27xx: fix kmod-drm-rp1 modules dependencies

kmod-drm-rp1-dsi, kmod-drm-rp1-dpi and kmod-drm-rp1-vec should depend on
kmod-drm-dma-helper and kmod-drm-vram-helper in order to fix dependency errors
when all kernel modules are selected.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 weeks agokernel: modules: video: package DRM VRAM helper
Álvaro Fernández Rojas [Fri, 9 May 2025 07:39:40 +0000 (09:39 +0200)]
kernel: modules: video: package DRM VRAM helper

bcm27xx DRM packages depend on it.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 weeks agokernel: add KERNEL_ARM64_CONTPTE
Álvaro Fernández Rojas [Fri, 9 May 2025 06:59:41 +0000 (08:59 +0200)]
kernel: add KERNEL_ARM64_CONTPTE

When KERNEL_TRANSPARENT_HUGEPAGE is enabled, build fails due to
missing KERNEL_ARM64_CONTPTE.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 weeks agorealtek rtl931x: mark subtarget as source-only
Shiji Yang [Fri, 9 May 2025 14:12:11 +0000 (22:12 +0800)]
realtek rtl931x: mark subtarget as source-only

There are no supported devices on this sub-target. It can be
considered that it is still under development. Therefore,
there is no need to make the buildbot build it every day.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18757
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agoqca-nss-dp: use OpenWrt GIT repo as upstream
Robert Marko [Fri, 9 May 2025 14:17:25 +0000 (16:17 +0200)]
qca-nss-dp: use OpenWrt GIT repo as upstream

Instead of having to deal with patch files, lets use the newly made
OpenWrt GIT repo as the SSDK upstream[1].

All existing patches have been applied to the same source commit, so
there should be no intended changes.

[1] https://github.com/openwrt/qca-nss-dp.git

Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agoqca-ssdk: use OpenWrt GIT repo as upstream
Robert Marko [Fri, 9 May 2025 14:14:16 +0000 (16:14 +0200)]
qca-ssdk: use OpenWrt GIT repo as upstream

Instead of having to deal with patch files, lets use the newly made
OpenWrt GIT repo as the SSDK upstream[1].

All existing patches have been applied to the same source commit, so
there should be no intended changes.

[1] https://github.com/openwrt/qca-ssdk.git

Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agogeneric: config-filter: filter out CONFIG_RUSTC_SUPPORTS_* symbols
Robert Marko [Fri, 9 May 2025 12:10:41 +0000 (14:10 +0200)]
generic: config-filter: filter out CONFIG_RUSTC_SUPPORTS_* symbols

CONFIG_RUSTC_SUPPORTS_* is set based on rustc presence and version,
so we need to filter it out.

Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agobmips: sercomm-msp430: fix duplicated definition
Álvaro Fernández Rojas [Fri, 9 May 2025 05:23:00 +0000 (07:23 +0200)]
bmips: sercomm-msp430: fix duplicated definition

This problem arised when adding support for 6.12, but it should be fixed on
older kernels too.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 weeks agobmips: add missing PCI drivers include
Álvaro Fernández Rojas [Fri, 9 May 2025 09:46:46 +0000 (11:46 +0200)]
bmips: add missing PCI drivers include

These drivers should include <linux/platform_device.h>, but this wasn't an
issue on kernels < 6.12.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 weeks agoucode: add fix for double registry clear on channel disconnect
Felix Fietkau [Fri, 9 May 2025 10:04:28 +0000 (12:04 +0200)]
ucode: add fix for double registry clear on channel disconnect

Avoid clobbering registry items of unrelated connections.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
5 weeks agoramips: rt288x: remove default build barriers
Shiji Yang [Thu, 8 May 2025 11:23:30 +0000 (19:23 +0800)]
ramips: rt288x: remove default build barriers

This sub-target is source only now. We don't need to disable build
for specific devices.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18745
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agoramips: rt288x: mark subtarget as source-only
Shiji Yang [Thu, 8 May 2025 11:23:14 +0000 (19:23 +0800)]
ramips: rt288x: mark subtarget as source-only

Due to RAM/ROM size limitations, this sub-target has been unable
to generate usable images for a long time. Mark them as source-only
to save some resource for the buildbot.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18745
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agolantig: xway_legacy: remove default build barriers
Shiji Yang [Thu, 8 May 2025 11:23:07 +0000 (19:23 +0800)]
lantig: xway_legacy: remove default build barriers

This sub-target is source only now. We don't need to disable build
for specific devices.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18745
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agolantig: xway_legacy: mark subtarget as source-only
Shiji Yang [Thu, 8 May 2025 11:22:48 +0000 (19:22 +0800)]
lantig: xway_legacy: mark subtarget as source-only

Due to RAM/ROM size limitations, this sub-target has been unable
to generate usable images for a long time. Mark them as source-only
to save some resource for the buildbot.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18745
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agolantig: ase: remove default build barriers
Shiji Yang [Thu, 8 May 2025 11:22:33 +0000 (19:22 +0800)]
lantig: ase: remove default build barriers

This sub-target is source only now. We don't need to disable build
for specific devices.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18745
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agolantig: ase: mark subtarget as source-only
Shiji Yang [Thu, 8 May 2025 11:22:16 +0000 (19:22 +0800)]
lantig: ase: mark subtarget as source-only

Due to RAM/ROM size limitations, this sub-target has been unable
to generate usable images for a long time. Mark them as source-only
to save some resource for the buildbot.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18745
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agoimagebuilder: exclude metadata for profiles that have no kernel
Eric Fahlgren [Thu, 8 May 2025 22:28:52 +0000 (15:28 -0700)]
imagebuilder: exclude metadata for profiles that have no kernel

Device profiles that specify 'DEFAULT := n' are being included
in the imagebuilder metadata, specifically in .profiles.mk, even
though there is no kernel built for the device.  This results in
'make info' showing the device as valid, but then 'make image
PROFILE=xxx' failing with 'No rule to make target xxx-kernel.bin ...'

We exclude these profiles from the imagebuilder, avoiding these
errors.

Fixes: https://github.com/openwrt/openwrt/issues/18410
Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18748
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agorealtek: proper RTL8214FC fibre/copper detection
Markus Stockhausen [Tue, 6 May 2025 06:44:43 +0000 (02:44 -0400)]
realtek: proper RTL8214FC fibre/copper detection

The RTL8214FC currently uses generic PHY functions. That makes it look like a copper
device. Switching to/from fibre works fortunately but the autonegotiation handling
still works on MII_LPA (PHY register 5) as if a copper link is used. Fix that by

- advertising a superset of TP/FIBRE features
- using clause 37 functions when on fibre

Additionally enhance the code of the driver to assist further development.

- log the speed of the inserted module to detect wrongly inserted 10gbase-r modules
- order phy driver functions alphabetically (keep match/name on top)
- remove genphy_loopback as the kernel uses it if not provided

Remark! The driver internally uses PORT_MII for the TP port. Align with that and
report MII to ethtool instead of TP. Other drivers do the same and it can be
changed in the future if needed.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18724
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agounetmsg: fix reconnecting outgoing socket
Felix Fietkau [Fri, 9 May 2025 08:11:26 +0000 (10:11 +0200)]
unetmsg: fix reconnecting outgoing socket

Due to a typo, the rx channel was deleted after disconnect instead of tx.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
5 weeks agokernel: modules: fs: add missing backslash
Daniel Golle [Fri, 9 May 2025 02:46:29 +0000 (03:46 +0100)]
kernel: modules: fs: add missing backslash

Commit 7db0748b7b ("kernel: modules: split package fs-fscache") modified
the KCONFIG section of KernelPackage/fs-netfs but missed to add a
backslash to escape a linebreak. Add it now.

Fixes: 7db0748b7b ("kernel: modules: split package fs-fscache")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
5 weeks agomediatek: filogic: increase spi flash memory speed on ZyXEL EX5601
Aleksander Jan Bajkowski [Mon, 27 Jan 2025 20:23:50 +0000 (21:23 +0100)]
mediatek: filogic: increase spi flash memory speed on ZyXEL EX5601

Reduces boot time by 3s on a freshly installed image. This device
has a large flash and the gain can be higher with more packages
installed. According to the datasheet, this is the maximum frequency
supported by the Micron and Macronix chips that are installed in
these devices. Tested on three units over a two month period.

Before:
$ dd if=/dev/mtd5 of=/dev/null bs=10M count=1 status=progress
1+0 records in
1+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 1.51901 s, 6.9 MB/s

After:
$ dd if=/dev/mtd5 of=/dev/null bs=10M count=1 status=progress
1+0 records in
1+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 0.899474 s, 11.7 MB/s

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Link: https://github.com/openwrt/openwrt/pull/18694
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
5 weeks agokernel: modules: split package fs-fscache
Shiji Yang [Thu, 1 May 2025 03:35:36 +0000 (11:35 +0800)]
kernel: modules: split package fs-fscache

The module kmod-fs-fscache was merged into kmod-fs-netfs since
6.12 LTS kernel[1]. Therefore, we have to split fs-cachefiles
into a separate package. This patch also removed some outdated
config symbols that have already been removed in 5.15 kernel:

CONFIG_FSCACHE_OBJECT_LIST [2]
CONFIG_{FSCACHE,CACHEFILES}_HISTOGRAM [3]

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=915cd30cdea8811cddd8f59e57dd9dd0a814b76c
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.15.y&id=58f386a73f16cea1f78e8466cc5c402eb7f6fcf8
[3] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.15.y&id=6ae9bd8bb037b7c422bafde746f2338a716f6058
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18661
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
5 weeks agokernel: modules: update dependency for kmod-tpm
Shiji Yang [Thu, 1 May 2025 03:35:36 +0000 (11:35 +0800)]
kernel: modules: update dependency for kmod-tpm

Remove unneeded dependencies asn1 codec and oid.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18661
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
5 weeks agokernel: modules: adjust the object files of kmod-fb
Shiji Yang [Thu, 1 May 2025 03:35:36 +0000 (11:35 +0800)]
kernel: modules: adjust the object files of kmod-fb

kmod-fb no longer depends on fb_io_fops.ko since 6.8 kernel.

Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.8.y&id=8813e86f6d82a7931446c3cbc5d596f77d0f1ba6
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18661
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
5 weeks agoqualcommax: use upstreamed IPQ5018 PCI support
Robert Marko [Thu, 8 May 2025 19:02:44 +0000 (21:02 +0200)]
qualcommax: use upstreamed IPQ5018 PCI support

Instead of downstream patch, use the upstreamed version.
Makes it easy to update to 6.12.

Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agoath79: support Mikrotik RouterBOARD 2011-UiAS-2HnD
Lech Perczak [Sun, 12 Nov 2023 22:55:39 +0000 (23:55 +0100)]
ath79: support Mikrotik RouterBOARD 2011-UiAS-2HnD

Mikrotik RouterBOARD 2011 series are AR9344-based wired routers, with
optional 2,4GHz 802.11n 2x2:2 Wi-Fi radio, with desktop or rack-mount
capability, featuring 5 gigabit Ethernet ports and 5 fast Ethernet
ports. Different variants of the board are supported using a single
image.
Bare-bones RouterBOARD 2011LS is supported using the same image.

Specification:
- Power: 10-28V input via 5,5/2,1 DC barrel jack, or terminal block on
  some boards
- CPU: AR9344 at 600 to 750MHz (configurable)
- RAM: 128MB (64MB in early versions) DDR2
- Flash: 128MB (64MB in early versions) NAND flash
- Gigabit Ethernet: 5 ports via AR8327 switch (eth1 to eth5)
- Fast Ethernet: 5 ports via AR9344 built-in switch (eth6 to eth10)
- SFP: single port through AR8327 switch (SGMII at port 6)
- PoE in: passive input up to 28V at eth1
- PoE out: passive output up to 28V at eth10
- USB: optional micro-AB host port or type-A host port
- Console: optional Cisco-style RS232 console at the back of the device,
  on budget devices available as 3.3V UART via testpoints
- LCD: 2" touchscreen-equipped LCD (unsupported)

Installation:
- perform TFTP boot of initramfs image as for netinstall procedure
  typical for Mikrotik devices
- when initramfs image boots, use sysupgrade to perform final
  installation.

If upgrading from ar71xx, clean installation should be performed, as the
devices now uses yafut to handle kernel image.

TODO:
- 64MB NAND variant using K9F1208U0C isn't yet supported, because it
  needs disabling subpage write support for that chip. A proper solution
  would be to fix that in kernel, but I don't have this variant to test
  with currently.
- The same is true for GD9FU1G8F3A NAND, which isn't ONFI compliant and
  needs definition in kernel for proper geometry.
- SFP port probes over I²C and gigabit link is possible, but currently
  the drivers lack support of handling link status information to
  userspace, including swconfig. Link will appear as always up.
  Currently, link status logging can detect something, but status both
  for ports 0 and 6 is logged simultaneously,
  but "swconfig dev switch0 show" will always show link up on port 6.
- Not yet fully known connection to display and touch panel, but some
  documentation is available (seemingly connected via SPI, according to
  Mikrotik's open source code at [1])

[1] https://github.com/robimarko/routeros-GPL

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17617
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
5 weeks agogeneric: 6.12: add new config symbols
Álvaro Fernández Rojas [Thu, 8 May 2025 06:15:48 +0000 (08:15 +0200)]
generic: 6.12: add new config symbols

Add new config symbols to 6.12 kernel config and move common symbols from x86.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 weeks agoqualcommax: use upstream QMP pipe patch
Robert Marko [Thu, 8 May 2025 16:09:16 +0000 (18:09 +0200)]
qualcommax: use upstream QMP pipe patch

Passing QMP pipe clocks was upstreamed, but it requires conversion single
QMP node, so backport both of those instead of our downstream patch.

Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agogeneric: 6.12: add Qualcomm PBS symbol
Robert Marko [Thu, 8 May 2025 16:06:38 +0000 (18:06 +0200)]
generic: 6.12: add Qualcomm PBS symbol

Qualcomm PBS symbols popped up during 6.12 work.

Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agogeneric: 6.12: add Qualcomm PM8916 symbols
Robert Marko [Thu, 8 May 2025 15:35:09 +0000 (17:35 +0200)]
generic: 6.12: add Qualcomm PM8916 symbols

Qualcomm PM8916 PMIC symbols popped up while doing 6.12 for qualcommax.

Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agoqualcommax: renumber upstreamed patches
Robert Marko [Thu, 8 May 2025 15:50:24 +0000 (17:50 +0200)]
qualcommax: renumber upstreamed patches

In order to free up some more number space, simply renumber existing
upstreamed patches starting from 0 again.

Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agoqualcommax: ipq50xx: remove ECC user config from board files
George Moussalem [Tue, 6 May 2025 06:18:09 +0000 (10:18 +0400)]
qualcommax: ipq50xx: remove ECC user config from board files

With the spi-qpic-snand driver now supporting reading ECC requirements
from the NAND chip itself, there's no need to set those in the DTS
anymore avoiding issues with devices of the same revision using
different NAND types with varying ECC requirements.

Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18723
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agospi: spi-qpic-snand: update driver with latest patches from upstream
George Moussalem [Tue, 6 May 2025 06:02:27 +0000 (10:02 +0400)]
spi: spi-qpic-snand: update driver with latest patches from upstream

Updating the spi-qpic-snand driver with the latest patches sent
upstream and remove custom patches.
These patches add error handling fixes, use of right read location in
read ops, removal of unused variable, ability to read user config and
nand chip requirements, and support for 8bits ECC strength.

Tested on: Gl.iNet GL-B3000 & Linksys MR5500, MX2000, MX5500, SPNMX56

Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18723
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agoqualcommax: use upstreamed multiple conf clock patches
Robert Marko [Thu, 8 May 2025 11:27:08 +0000 (13:27 +0200)]
qualcommax: use upstreamed multiple conf clock patches

Multiple conf support was upstreamed into kernel 6.10, so lets use the
upstreamed patches and mark them as so.

Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agoath11k-firmware: fix legacy FW tarball hash
Robert Marko [Thu, 8 May 2025 11:19:34 +0000 (13:19 +0200)]
ath11k-firmware: fix legacy FW tarball hash

The legacy FW tarball hash is wrong, fix it.

Fixes: ea83f7de2b02 ("ath11k-firmware: add wifi firmware for IPQ5018")
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agoqualcommax: update kernel version for MP5496 patches
Robert Marko [Thu, 8 May 2025 10:14:42 +0000 (12:14 +0200)]
qualcommax: update kernel version for MP5496 patches

MP5496 patches are not part of 6.15, but rather will be part of 6.16 as
they are no in 6.15 RC releases but they are in linux-next.

Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agomac80211: ath11k: fix broadcast failures during GTK rekeying
Henry Tung [Sun, 4 May 2025 18:29:54 +0000 (11:29 -0700)]
mac80211: ath11k: fix broadcast failures during GTK rekeying

Revert key_cipher change to NONE when clearing key.
Setting to NONE triggers asserts in the firmware and causes broadcast
drops with ath11k firmware 2.9.0.1, so until a future blob
fixes this, revert this as a workaround.

Imported from
https://git.codelinaro.org/clo/qsdk/oss/system/feeds/wlan-open/-/blob/win.wlan_host_opensource.3.0.r24/patches/ath11k/350-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch

Related discussion links:

- https://github.com/openwrt/openwrt/issues/9555
- https://lore.kernel.org/linux-wireless/Z2Q9POuV-6MIdzRf@pilgrim/T/#t

Signed-off-by: Henry Tung <henryptung@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18705
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agorealtek: rtl838x: fix broadcast flooding with many multicast entries
Linus Lüssing [Wed, 7 May 2025 00:50:11 +0000 (02:50 +0200)]
realtek: rtl838x: fix broadcast flooding with many multicast entries

When many multicast entries are installed broadcast flooding might
potentially stop working for several ports. This is because the layer
2 broadcast flood port mask index has the wrong offset. It should be
9 bits, matching the 2^9 = 512 indexes on rtl838x, not 12.

The wrong offset leads to L2_BC_FLD_PMSK being set to 504, not 511
((511 << 12) >> 9) & 511 = 504). So, as by default an unset PMSK
is set to all ports, the issue would only become noticeable once
many multicast entries are installed, causing the 504th entry to be set
to something other than all ports.

Fixing this by setting the offset to 9 bits, to correctly point to our
511th reserved entry for all ports.

Tested-on: ZyXEL GS1900-24HP v1

Fixes: 28e972b2ea2f ("realtek: Configure initial L2 learning setup")
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Link: https://github.com/openwrt/openwrt/pull/18733
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agoucode-mod-uline: re-introduce polling loop to fix prompt after line end
Felix Fietkau [Wed, 7 May 2025 15:21:38 +0000 (17:21 +0200)]
ucode-mod-uline: re-introduce polling loop to fix prompt after line end

Introduce a check for the resource data in order to avoid segfaulting
on exit

Signed-off-by: Felix Fietkau <nbd@nbd.name>
5 weeks agoath10k-ct: update to latest version 6.14 from 2025-04-30
Paweł Owoc [Tue, 6 May 2025 20:53:49 +0000 (22:53 +0200)]
ath10k-ct: update to latest version 6.14 from 2025-04-30

In this new version channel 177 is supported.

Dropped patches:
[1] 001-patch-version.patch
[2] 205-ath10k-ct-silence-warning-caused-by-unsupported-retr.patch

[1] [2] https://github.com/greearb/ath10k-ct/commit/8adb310f84b0a90df1f65701b863321e7b2afecd

Signed-off-by: Paweł Owoc <frut3k7@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18731
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agokernel: bump 6.12 to 6.12.27
Mieczyslaw Nalewaj [Tue, 6 May 2025 17:47:47 +0000 (19:47 +0200)]
kernel: bump 6.12 to 6.12.27

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

No patches update required.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18728
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agoqualcommax: ipq50xx: gl-b3000: add 03_set_oem_name
Scott Mercer [Wed, 30 Apr 2025 18:46:51 +0000 (14:46 -0400)]
qualcommax: ipq50xx: gl-b3000: add 03_set_oem_name

This additional board.d script creates the "/tmp/sysinfo/oem_name" file
and populates it with the proper OEM "supported_devices" metadata entry
to be used by the new fwtool.sh oem detection feature.

(#18554): add oem image dectection to fwtool.sh

Signed-off-by: Scott Mercer <TheRootEd24@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18656
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agogeneric: 6.12: update block NVMEM driver
Daniel Golle [Wed, 7 May 2025 02:58:17 +0000 (03:58 +0100)]
generic: 6.12: update block NVMEM driver

Update block NVMEM driver based on backported OF partition support.

Note the different MMC card DT binding compared to the previous
downstream solution: Instead of having a 'partitions' subnode inside
a 'block' node, the 'partitions' node now resides directly under the
node representing the card.

In order to make references to the 'boot0' or 'boot1' hw partitions
you will have to define 'partitions-boot0' or 'partitions-boot1', and
move the NVMEM layout into a partition (you may, of course, use
'fixed-partitions' for that, and cover the whole device, if needed).

See also https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/mmc/mmc-card.yaml?h=v6.13

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
5 weeks agogeneric: 6.12: update fitblk driver for Linux 6.12
Daniel Golle [Wed, 7 May 2025 02:29:42 +0000 (03:29 +0100)]
generic: 6.12: update fitblk driver for Linux 6.12

Update the uImage.FIT filesystem subimage block driver for use
with Linux 6.12.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
5 weeks agoramips: update drivers to be compatible with kernel 6.12
Mieczyslaw Nalewaj [Fri, 25 Apr 2025 14:59:55 +0000 (16:59 +0200)]
ramips: update drivers to be compatible with kernel 6.12

Update drivers to be compatible with kernel 6.12:
 - change deprecate function strlcpy to strscpy
 - fix kernel warning "no previous prototype", by static declaration
 - add missing of.h headers

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18711
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
5 weeks agomac80211: rt2x00: use remove_new
Mieczyslaw Nalewaj [Mon, 5 May 2025 22:40:56 +0000 (00:40 +0200)]
mac80211: rt2x00: use remove_new

Easy compability fix for kernel 6.12.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18719
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
5 weeks agoiw: fix WiFi 6 (HE) Scan on big endian platforms
Aleksander Jan Bajkowski [Sat, 29 Mar 2025 22:39:19 +0000 (23:39 +0100)]
iw: fix WiFi 6 (HE) Scan on big endian platforms

On big endian platforms, scans show invalid info for WiFi 6 APs.
This commit backports patches to fix this issue.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Link: https://github.com/openwrt/openwrt/pull/18717
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agobcm27xx: bcm2712: support all devices
Dave Marquard [Sun, 27 Apr 2025 00:39:33 +0000 (17:39 -0700)]
bcm27xx: bcm2712: support all devices

- RPi 500
- RPi 5 Compute Module
- RPi 5B (bcm2712 d0 rev)

Signed-off-by: Dave Marquard <dave-atx@users.noreply.github.com>
Link: https://github.com/openwrt/openwrt/pull/18622
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 weeks agolinux-firmware: add Raspberry Pi 5 CM NVRAM
Dave Marquard [Tue, 6 May 2025 02:33:59 +0000 (02:33 +0000)]
linux-firmware: add Raspberry Pi 5 CM NVRAM

The RPi 5 Compute Module expects the same NVRAM as the one from RPi 4
on a different file.

Signed-off-by: Dave Marquard <dave-atx@users.noreply.github.com>
Link: https://github.com/openwrt/openwrt/pull/18722
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 weeks agotoolchain/musl: fix build regression on x86_64
Felix Fietkau [Tue, 6 May 2025 12:28:51 +0000 (14:28 +0200)]
toolchain/musl: fix build regression on x86_64

Fix whitespace mangling which broke matching opcodes in the CFI patch

Signed-off-by: Felix Fietkau <nbd@nbd.name>
5 weeks agogeneric: fix MIPS -mno-long-calls patchset for 6.12 kernel
Shiji Yang [Thu, 1 May 2025 02:18:52 +0000 (10:18 +0800)]
generic: fix MIPS -mno-long-calls patchset for 6.12 kernel

It seems that we need to override all execmem alloc/free callbacks,
not just for module. This is the default patch behavior in the 6.6
kernel. Fix the warning when the module is loaded:

root@OpenWrt:~# insmod mtd-rw i_want_a_brick=1
[ 1404.954813] mtd-rw: mtd0: setting writeable flag
[ 1404.959643] mtd-rw: mtd5: setting writeable flag
[ 1404.966396] ------------[ cut here ]------------
[ 1404.971119] WARNING: CPU: 0 PID: 8 at mm/vmalloc.c:3361 vfree+0x1ac/0x2c4
[ 1404.978146] Trying to vfree() nonexistent vm area (74cc6c73)
[ 1404.983901] Modules linked in: mtd_rw(O) ath9k(O) ath9k_common(O)...
[ 1405.043696] CPU: 0 UID: 0 PID: 8 Comm: kworker/0:1 Tainted: G        W  O       6.12.25 #0
[ 1405.052118] Tainted: [W]=WARN, [O]=OOT_MODULE
[ 1405.056536] Hardware name:
[ 1405.061222] Workqueue: events do_free_init
[ 1405.065408] Stack : 807865d8 80850000 81823f80 81857df8 00000000 00000d21 81823fd0 800ca130
[ 1405.073924]         81839e48 807865d8 808d20bf 807865d8 81857d1c 00000001 81857ce8 4951640f
[ 1405.082434]         00000000 00000000 807865d8 81857bf8 ffffefff 00000000 ffffffea 00000b5d
[ 1405.090944]         81857c04 00000b5d 808537b0 ffffffff 00000001 00000000 807865d8 81857df8
[ 1405.099453]         00000000 00000d21 81823fd0 8085119c 00000018 803f4828 00000000 80a00000
[ 1405.107963]         ...
[ 1405.110454] Call Trace:
[ 1405.112935] [<80066910>] show_stack+0x28/0xf0
[ 1405.117392] [<8069f340>] dump_stack_lvl+0x48/0x7c
[ 1405.122186] [<80084ab8>] __warn+0x9c/0x118
[ 1405.126357] [<80084bc0>] warn_slowpath_fmt+0x8c/0xac
[ 1405.131399] [<801f02ec>] vfree+0x1ac/0x2c4
[ 1405.135570] [<800dde54>] do_free_init+0x50/0x84
[ 1405.140172] [<8009f4a0>] process_one_work+0x1b0/0x3dc
[ 1405.145312] [<800a022c>] worker_thread+0x308/0x478
[ 1405.150178] [<800a81c0>] kthread+0xf4/0x11c
[ 1405.154455] [<80061b58>] ret_from_kernel_thread+0x14/0x1c
[ 1405.159938]
[ 1405.161772] ---[ end trace 0000000000000000 ]---

Fixes: a9c0f28951fd ("generic: 6.12: move MIPS reloc patch from pending to hack and rework")
Ref: https://lore.kernel.org/all/20240505160628.2323363-1-rppt@kernel.org/
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Tested-by: Tony Ambardar <itugrok@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18721
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agoimx: coretexa53: add network config for single-port Gateworks Venice boards
Tim Harvey [Mon, 14 Apr 2025 17:34:31 +0000 (10:34 -0700)]
imx: coretexa53: add network config for single-port Gateworks Venice boards

Add network config for single-port Gateworks venice boards such that the
ethernet port is the WAN port instead of the default being a LAN port.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Link: https://github.com/openwrt/openwrt/pull/18629
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agorealtek: fix cpu port link type
Markus Stockhausen [Sat, 3 May 2025 06:35:41 +0000 (02:35 -0400)]
realtek: fix cpu port link type

Some DTS files have a qsgmii link mode for the CPU port. This does
not harm but it is wrong. The CPU port of the realtek switch is always
directly connected to the switch by some unknown wiring and should
therefore be described as internal. Align the wrongly defined DTS
files to the standard.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18691
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 weeks agogeneric: 6.12: sync Realtek PHY patches with upstream
Álvaro Fernández Rojas [Mon, 5 May 2025 11:01:55 +0000 (13:01 +0200)]
generic: 6.12: sync Realtek PHY patches with upstream

- Fix order of patches (3d483a10327f was merged before 34d5a86ff7bb).
- Reorganize patch numbers now that < 6.12 patches are no longer needed.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 weeks agogeneric: 6.12: backport hwmon_ops static visibility
Álvaro Fernández Rojas [Mon, 5 May 2025 11:35:59 +0000 (13:35 +0200)]
generic: 6.12: backport hwmon_ops static visibility

This patch was added on linux v6.13 in order to avoid simple is_visible
functions on hwmon drivers.
See https://github.com/torvalds/linux/commit/79bc0af904db647979c735563299c9b0d820e432

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 weeks agogeneric: 6.12: sync r8169 patches with upstream
Álvaro Fernández Rojas [Mon, 5 May 2025 10:54:01 +0000 (12:54 +0200)]
generic: 6.12: sync r8169 patches with upstream

Upstream e2015942e90a couldn't be backported to 6.6 because the following
symbols were missing:
- disable_work
- disable_work_sync
- enable_work
See https://github.com/torvalds/linux/commit/e2015942e90a021151a5751776f35830ba063be7

Upstream 34e5ededf4b8 couldn't be backported to 6.6 because the following
symbol was missing:
- pcim_iomap_region
See https://github.com/torvalds/linux/commit/34e5ededf4b8ad4c9e58f0cab8596e26c8fa59a2

Reorganize patch numbers now that < 6.12 patches are no longer needed.

The following patches still differ from upstream:
e340bff27e63
  phy_set_eee_broken symbol is missing in 6.12
  https://github.com/torvalds/linux/commit/e340bff27e63

The following patches can't be backported to 6.12 due to missing symbols:
5e7a74b6a357
  phy_disable_eee_mode symbol is missing in 6.12
  https://github.com/torvalds/linux/commit/5e7a74b6a357

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 weeks agounetmsg: add subscriber update callback to notify about publish events
Felix Fietkau [Mon, 5 May 2025 11:55:42 +0000 (13:55 +0200)]
unetmsg: add subscriber update callback to notify about publish events

When services start publishing on a topic, this can be used to allow
subscribers to query them.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
5 weeks agounetmsg: fix issuing requests without previously subscribing
Felix Fietkau [Mon, 5 May 2025 09:38:59 +0000 (11:38 +0200)]
unetmsg: fix issuing requests without previously subscribing

Perform ACL check if not subscribed. Helps with one-shot requests.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
5 weeks agogdb: update to version 16.2
Felix Fietkau [Mon, 5 May 2025 09:37:39 +0000 (11:37 +0200)]
gdb: update to version 16.2

Sync with toolchain/gdb version

Signed-off-by: Felix Fietkau <nbd@nbd.name>
5 weeks agomusl: add pending patch to fix CFI annotations
Felix Fietkau [Mon, 5 May 2025 09:37:14 +0000 (11:37 +0200)]
musl: add pending patch to fix CFI annotations

Fixes debugging at least on aarch64, possibly others.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
5 weeks agolibubox: update to Git HEAD (2024-12-19)
Felix Fietkau [Mon, 5 May 2025 07:58:01 +0000 (09:58 +0200)]
libubox: update to Git HEAD (2024-12-19)

3868f47c8f6c blob: constify attr argument to blob_memdup

Signed-off-by: Felix Fietkau <nbd@nbd.name>
5 weeks agokernel: iio: iio-core: update dependencies for 6.12
Jonas Gorski [Sun, 4 May 2025 14:40:11 +0000 (16:40 +0200)]
kernel: iio: iio-core: update dependencies for 6.12

With kernel 6.11 iio-core gained a dependency to DMA_SHARED_BUFFER,
so add the appropriate dependency.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
5 weeks agokernel: bluetooth: btmtk: update dependencies for 6.12
Jonas Gorski [Sun, 4 May 2025 14:32:38 +0000 (16:32 +0200)]
kernel: bluetooth: btmtk: update dependencies for 6.12

With kernel 6.11 several mtk usb functions were moved from btusb to
btmtk, adding a usb core depdendency to btmtk (if enabled).

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
6 weeks agotools/b43-tools: update to latest version, fix C23 build
Nick Hainke [Sun, 4 May 2025 20:38:10 +0000 (22:38 +0200)]
tools/b43-tools: update to latest version, fix C23 build

Update b43-tools to the latest upstream version to fix a
compilation error with C23:

  util.h:25:15: error: 'bool' cannot be defined via 'typedef'
     25 | typedef _Bool bool;
        |               ^~~~

Changelog:
c6fc53f replace custom bool typedef with <stdbool.h>
dadf30c fix format warning in compilation
2fe10ea b43-fwdump: Fix forwarding of arguments to disassembler

Link: https://github.com/openwrt/openwrt/pull/18708
Signed-off-by: Nick Hainke <vincent@systemli.org>
6 weeks agokernel: bump 6.12 to 6.12.26
Mieczyslaw Nalewaj [Sat, 3 May 2025 11:44:04 +0000 (13:44 +0200)]
kernel: bump 6.12 to 6.12.26

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

All patches automatically rebased.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18695
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 weeks agolibiconv-full: update to 1.18
Robert Marko [Sat, 3 May 2025 22:06:28 +0000 (00:06 +0200)]
libiconv-full: update to 1.18

libiconv 1.17 fails to compile with GCC15 when doing the host build,
luckily version 1.18 already contains the fixes required so update to it.

New in 1.18:
* Many more transliterations, in particular also of Emoji characters.
* The iconv_open function is now POSIX:2024 compliant: it recognizes a
  suffix //NON_IDENTICAL_DISCARD in the 'tocode' argument, with the effect
  that characters that cannot be represented in the target character set
  will be silently discarded. Whereas the suffix //IGNORE in the 'tocode'
  argument has the effect of discarding not only characters that cannot be
  represented in the target character set, but also invalid multibyte
  sequences in the input.
  Accordingly, the iconvctl function accepts requests
    ICONV_GET_DISCARD_INVALID, ICONV_SET_DISCARD_INVALID,
    ICONV_GET_DISCARD_NON_IDENTICAL, ICONV_SET_DISCARD_NON_IDENTICAL.
* The iconv_open function and the iconv program now support multiple suffixes,
  such as //TRANSLIT//IGNORE, not only one.
* GB18030 is now an alias for GB18030:2005. A new converter for GB18030:2022
  is added. Since this encoding merely cleans up a few private-use-area
  mappings, you can continue to use the GB18030 converter, for backward
  compatibility. Its Unicode to GB18030 conversion direction has been
  enhanced, to help transitioning away from PUA code points.
* When converting from/to an EBCDIC encoding, a non-standard way of
  converting newlines can be requested
    - at the C level, by calling iconvctl with argument ICONV_SET_FROM_SURFACE
      or ICONV_SET_TO_SURFACE, or
    - from the iconv program, by setting the environment variable
      ICONV_EBCDIC_ZOS_UNIX to a non-empty value.
* Special support for z/OS: The iconv program adds a charset metadata tag to
  its output file. (Contributed by Mike Fulton.)
* For conversions from UCS-2, UCS-4, UTF-16, UTF-32, invoking
  iconv(cd,NULL,NULL,...) now preserves the byte order state.

Link: https://github.com/openwrt/openwrt/pull/18698
Signed-off-by: Robert Marko <robimarko@gmail.com>
6 weeks agolibiconv-full: drop patch-libtool fixup
Robert Marko [Sat, 3 May 2025 21:56:04 +0000 (23:56 +0200)]
libiconv-full: drop patch-libtool fixup

It seems that this was required many years ago (It was added in 2012),
probably due to relying on outdated or broken libtool versions, but 1.17
uses libtool 2.4.7.

After trying building both host and target libiconv versions on Fedora and
MacOS I cannot seem to find what patch-libtool is supposed to fixup.

So, I can only presume that it is completely uneeded these days and can
be dropped.

Link: https://github.com/openwrt/openwrt/pull/18698
Signed-off-by: Robert Marko <robimarko@gmail.com>
6 weeks agotools: add options to optimize host binaries
Konstantin Demin [Fri, 2 May 2025 20:47:01 +0000 (23:47 +0300)]
tools: add options to optimize host binaries

Mains goals are:
- reduce binary size of host tools;
- reduce i/o load on build host;
- increase performance of host tools being built.

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18659
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
6 weeks agodns320l-mcu: fix compilation with GCC14
Zoltan HERPAI [Sat, 3 May 2025 20:51:18 +0000 (20:51 +0000)]
dns320l-mcu: fix compilation with GCC14

Bump version to fix compiling with GCC14.

This fixes the following compile problem:
```
dns320l-daemon.c: In function 'main':
dns320l-daemon.c:740:18: error: implicit declaration of function 'isprint' [-Wimplicit-function-declaration]
  740 |         else if (isprint (optopt))
      |                  ^~~~~~~
dns320l-daemon.c:50:1: note: include '<ctype.h>' or provide a declaration of 'isprint'
   49 | #include "dns320l-daemon.h"
  +++ |+#include <ctype.h>
   50 |
dns320l-daemon.c:799:5: error: implicit declaration of function 'umask' [-Wimplicit-function-declaration]
  799 |     umask(0);
      |     ^~~~~
dns320l-daemon.c:864:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
  864 |     return;
      |     ^~~~~~
dns320l-daemon.c:691:5: note: declared here
  691 | int main(int argc, char *argv[])
      |     ^~~~
```

Link: https://github.com/openwrt/openwrt/pull/18688
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
6 weeks agotools: libtool: update to 2.5.4
Robert Marko [Wed, 30 Apr 2025 18:40:44 +0000 (20:40 +0200)]
tools: libtool: update to 2.5.4

Update libtool to the current stable 2.5.4 release.

130-trailingslash.patch was upstream, 100 and 110 patches were
manually refreshed while rest was automatically refreshed via quilt.

Link: https://github.com/openwrt/openwrt/pull/18655
Signed-off-by: Robert Marko <robimarko@gmail.com>
6 weeks agorealtek: add missing symbol
Stijn Tintel [Thu, 1 May 2025 22:46:25 +0000 (01:46 +0300)]
realtek: add missing symbol

Commit d7e82c78d7a2 added a generic kernel patch that exposes a new
symbol REALTEK_PHY_HWMON when REALTEK_PHY and HWMON are enabled. The new
symbol was added to kmod-phy-realtek, but the kmod is not used in the
realtek target.

Fixes: d7e82c78d7a2 ("generic: backport Realtek PHY patches from upstream")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
6 weeks agotoolchain: gcc: Backport patch to fix mips16 linking
Hauke Mehrtens [Fri, 2 May 2025 22:38:31 +0000 (00:38 +0200)]
toolchain: gcc: Backport patch to fix mips16 linking

Backport patch from upstream GCC 14 branch which fixes linking with
MIPS16 on the pistachio target.

This fixes the following link problem:
```
/builder/shared-workdir/build/staging_dir/toolchain-mipsel_24kc+24kf_gcc-14.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/14.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld.bfd: ./liblua.so: undefined reference to `__mips16_ledf2'
/builder/shared-workdir/build/staging_dir/toolchain-mipsel_24kc+24kf_gcc-14.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/14.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld.bfd: ./liblua.so: undefined reference to `__mips16_call_stub_df_2'
/builder/shared-workdir/build/staging_dir/toolchain-mipsel_24kc+24kf_gcc-14.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/14.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld.bfd: ./liblua.so: undefined reference to `__mips16_muldf3'
```

Link: https://github.com/openwrt/openwrt/pull/18688
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 weeks agotoolchain: gcc: Refresh patches
Hauke Mehrtens [Fri, 2 May 2025 22:45:51 +0000 (00:45 +0200)]
toolchain: gcc: Refresh patches

Refresh all GCC patches.

Link: https://github.com/openwrt/openwrt/pull/18688
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 weeks agodns320l-mcu: Fix compilation with GCC 14
Hauke Mehrtens [Fri, 2 May 2025 23:12:59 +0000 (01:12 +0200)]
dns320l-mcu: Fix compilation with GCC 14

This fixes the following compile problem:
```
dns320l-daemon.c: In function 'main':
dns320l-daemon.c:740:18: error: implicit declaration of function 'isprint' [-Wimplicit-function-declaration]
  740 |         else if (isprint (optopt))
      |                  ^~~~~~~
dns320l-daemon.c:50:1: note: include '<ctype.h>' or provide a declaration of 'isprint'
   49 | #include "dns320l-daemon.h"
  +++ |+#include <ctype.h>
   50 |
dns320l-daemon.c:799:5: error: implicit declaration of function 'umask' [-Wimplicit-function-declaration]
  799 |     umask(0);
      |     ^~~~~
dns320l-daemon.c:864:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
  864 |     return;
      |     ^~~~~~
dns320l-daemon.c:691:5: note: declared here
  691 | int main(int argc, char *argv[])
      |     ^~~~
```

Link: https://github.com/openwrt/openwrt/pull/18688
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 weeks agoboot-lantiq: Fix compilation with GCC 14
Hauke Mehrtens [Fri, 2 May 2025 22:29:39 +0000 (00:29 +0200)]
boot-lantiq: Fix compilation with GCC 14

This fixes the following compile problem:
```
arv7506pw11.c: In function 'show_boot_progress':
arv7506pw11.c:59:24: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   59 |                 return 0;
      |                        ^
arv7506pw11.c:56:6: note: declared here
   56 | void show_boot_progress(int arg)
      |      ^~~~~~~~~~~~~~~~~~
arv7506pw11.c:71:16: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   71 |         return 0;
      |                ^
arv7506pw11.c:56:6: note: declared here
   56 | void show_boot_progress(int arg)
      |      ^~~~~~~~~~~~~~~~~~
```

Link: https://github.com/openwrt/openwrt/pull/18688
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 weeks agoltq-adsl-app: Fix compilation with GCC 14
Hauke Mehrtens [Fri, 2 May 2025 21:42:29 +0000 (23:42 +0200)]
ltq-adsl-app: Fix compilation with GCC 14

This fixes the following compile problem:
```
checking for asm/types.h... dsl_cpe_linux.c: In function 'DSL_CPE_ThreadInit':
dsl_cpe_linux.c:779:25: error: assignment to 'DSL_CPE_Thread_t' {aka 'int'} from 'pthread_t' {aka 'struct __pthread *'} makes integer from pointer without a cast [-Wint-conversion]
  779 |          pThrCntrl->tid = tid;
      |                         ^
dsl_cpe_linux.c: In function 'DSL_CPE_ThreadDelete':
dsl_cpe_linux.c:862:44: error: passing argument 1 of 'pthread_cancel' makes pointer from integer without a cast [-Wint-conversion]
  862 |             switch(pthread_cancel(pThrCntrl->tid))
      |                                   ~~~~~~~~~^~~~~
      |                                            |
      |                                            DSL_CPE_Thread_t {aka int}
In file included from dsl_cpe_linux.h:35:
/builder/shared-workdir/build/staging_dir/toolchain-mips_mips32_gcc-14.2.0_musl/include/pthread.h:98:20: note: expected 'pthread_t' {aka 'struct __pthread *'} but argument is of type 'DSL_CPE_Thread_t' {aka 'int'}
   98 | int pthread_cancel(pthread_t);
      |                    ^~~~~~~~~
dsl_cpe_linux.c: In function 'DSL_CPE_ThreadIdGet':
dsl_cpe_linux.c:1123:11: error: returning 'pthread_t' {aka 'struct __pthread *'} from a function with return type 'DSL_CPE_Thread_t' {aka 'int'} makes integer from pointer without a cast [-Wint-conversion]
 1123 |    return pthread_self();
      |           ^~~~~~~~~~~~~~
```

While at it, fix also some additional build warnings.

Link: https://github.com/openwrt/openwrt/pull/18688
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 weeks agoramips: i2s: use devm for debugfs seqfile
Rosen Penev [Thu, 1 May 2025 01:12:48 +0000 (18:12 -0700)]
ramips: i2s: use devm for debugfs seqfile

Avoids some pointless boilerplate.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18675
Signed-off-by: Robert Marko <robimarko@gmail.com>
6 weeks agoramips: i2s: replace spaces with tabs
Rosen Penev [Thu, 1 May 2025 20:10:54 +0000 (13:10 -0700)]
ramips: i2s: replace spaces with tabs

This seems to be some manual patch editing or rebasing bug.

Found with grep ' '.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18675
Signed-off-by: Robert Marko <robimarko@gmail.com>
6 weeks agomac80211: ath9k: fix missing prototypes warnings
Shiji Yang [Wed, 30 Apr 2025 19:20:55 +0000 (03:20 +0800)]
mac80211: ath9k: fix missing prototypes warnings

Fix following warnings by including the corresponding headers:

backports-6.12.6/drivers/net/wireless/ath/ath9k/hsr.c:50:6: error: no previous prototype for 'ath9k_hsr_init' [-Werror=missing-prototypes]
   50 | void ath9k_hsr_init(struct ath_hw *ah)
      |      ^~~~~~~~~~~~~~
backports-6.12.6/drivers/net/wireless/ath/ath9k/hsr.c:165:5: error: no previous prototype for 'ath9k_hsr_disable' [-Werror=missing-prototypes]
  165 | int ath9k_hsr_disable(struct ath_hw *ah)
      |     ^~~~~~~~~~~~~~~~~
backports-6.12.6/drivers/net/wireless/ath/ath9k/hsr.c:177:5: error: no previous prototype for 'ath9k_hsr_enable' [-Werror=missing-prototypes]
  177 | int ath9k_hsr_enable(struct ath_hw *ah, int bw, int fq)
      |     ^~~~~~~~~~~~~~~~
backports-6.12.6/drivers/net/wireless/ath/ath9k/hsr.c:234:5: error: no previous prototype for 'ath9k_hsr_status' [-Werror=missing-prototypes]
  234 | int ath9k_hsr_status(struct ath_hw *ah)
      |     ^~~~~~~~~~~~~~~~

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18637
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 weeks agortl8812au-ct: fix build issue on 6.12 kernel
Shiji Yang [Mon, 28 Apr 2025 16:01:42 +0000 (00:01 +0800)]
rtl8812au-ct: fix build issue on 6.12 kernel

Update USB shutdown callback for the 6.12 kernel. A sprintf
overlaps issue is also fixed in this patch. Unfortunately,
there are dozens of missing-prototypes warnings so it's hard
to fix them one by one. Let's just silence them.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18637
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 weeks agoath10k-ct: fix build warnings on 6.12 kernel
Shiji Yang [Mon, 28 Apr 2025 15:48:12 +0000 (23:48 +0800)]
ath10k-ct: fix build warnings on 6.12 kernel

This patch fixes a lot of missing-prototypes warnings for the
upcoming 6.12 kernel.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18637
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 weeks agomt76: fix build error on 6.12 kernel
Shiji Yang [Mon, 28 Apr 2025 14:24:45 +0000 (22:24 +0800)]
mt76: fix build error on 6.12 kernel

Convert platform driver .remove to .remove_new to fix the
incompatible pointer type error on 6.12 kernel.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18637
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 weeks agomac80211: fix unaligned.h header location for 6.12 kernel
Shiji Yang [Mon, 28 Apr 2025 14:15:51 +0000 (22:15 +0800)]
mac80211: fix unaligned.h header location for 6.12 kernel

Fix mt76 build error on 6.12 kernel:

In file included from /workspaces/openwrt/build_dir/target-x86_64_musl/linux-x86_64/mt76-2025.04.11~be28ef77/mt76x0/eeprom.c:13:
/workspaces/openwrt/staging_dir/target-x86_64_musl/usr/include/mac80211-backport/asm/unaligned.h:3:15: fatal error: asm/unaligned.h: No such file or directory
    3 | #include_next <asm/unaligned.h>
      |               ^~~~~~~~~~~~~~~~~

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18637
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 weeks agomac80211: rt2x00: fix build warnings on 6.12 kernel
Shiji Yang [Mon, 28 Apr 2025 13:16:08 +0000 (21:16 +0800)]
mac80211: rt2x00: fix build warnings on 6.12 kernel

Move rt2x00lib_read_eeprom() function prototype from rt2800lib.h to
rt2x00.h and make rt6352_enable_pa_pin() static to fix the missing
prototypes warnings:

/workspaces/openwrt/build_dir/target-x86_64_musl/linux-x86_64/mac80211-regular/backports-6.12.6/drivers/net/wireless/ralink/rt2x00/rt2x00eeprom.c:213:5: error: no previous prototype for 'rt2x00lib_read_eeprom' [-Werror=missing-prototypes]
  213 | int rt2x00lib_read_eeprom(struct rt2x00_dev *rt2x00dev)
      |     ^~~~~~~~~~~~~~~~~~~~~
/workspaces/openwrt/build_dir/target-x86_64_musl/linux-x86_64/mac80211-regular/backports-6.12.6/drivers/net/wireless/ralink/rt2x00/rt2800lib.c:308:6: error: no previous prototype for 'rt6352_enable_pa_pin' [-Werror=missing-prototypes]
  308 | void rt6352_enable_pa_pin(struct rt2x00_dev *rt2x00dev, int enable)
      |      ^~~~~~~~~~~~~~~~~~~~

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18637
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 weeks agokernel: trelay: fix build warning on 6.12 kernel
Shiji Yang [Mon, 28 Apr 2025 10:14:09 +0000 (18:14 +0800)]
kernel: trelay: fix build warning on 6.12 kernel

Make trelay_handle_frame() static to fix the build warning:

/workspaces/openwrt/build_dir/target-x86_64_musl/linux-x86_64/trelay/trelay.c:38:21: error: no previous prototype for 'trelay_handle_frame' [-Werror=missing-prototypes]
   38 | rx_handler_result_t trelay_handle_frame(struct sk_buff **pskb)
      |                     ^~~~~~~~~~~~~~~~~~~

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18637
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 weeks agoarm-trusted-firmware-stm32: rework patch for the RTC configuration
Thomas Richard [Mon, 28 Apr 2025 12:52:26 +0000 (14:52 +0200)]
arm-trusted-firmware-stm32: rework patch for the RTC configuration

A patch was added upstream to temporary enable RTC clock configuration only
for STM32MP15 boards. Use this patch instead of reverting commit 03a581e2.
Now for STM32MP135 boards RTC clock configuration is handled by optee-os.

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Link: https://github.com/openwrt/openwrt/pull/18628
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>