]> git.ipfire.org Git - thirdparty/openwrt.git/log
thirdparty/openwrt.git
2 months agoqualcommax: ipq50xx: fix NAND ECC for ELECOM WRC-X3000GS2 18770/head
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>
2 months 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>
2 months 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>
2 months 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>
2 months 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>
2 months agorealtek rtl931x: mark subtarget as source-only 18757/head
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>
2 months 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>
2 months 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>
2 months 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>
2 months 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>
2 months 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>
2 months 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>
2 months agoramips: rt288x: remove default build barriers 18745/head
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>
2 months 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>
2 months 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>
2 months 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>
2 months 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>
2 months 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>
2 months agoimagebuilder: exclude metadata for profiles that have no kernel 18748/head
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>
2 months agorealtek: proper RTL8214FC fibre/copper detection 18724/head
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>
2 months 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>
3 months 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>
3 months agomediatek: filogic: increase spi flash memory speed on ZyXEL EX5601 18694/head
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>
3 months agokernel: modules: split package fs-fscache 18661/head
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>
3 months 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>
3 months 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>
3 months 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>
3 months agoath79: support Mikrotik RouterBOARD 2011-UiAS-2HnD 17617/head
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>
3 months 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>
3 months 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>
3 months 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>
3 months 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>
3 months 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>
3 months agoqualcommax: ipq50xx: remove ECC user config from board files 18723/head
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>
3 months 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>
3 months 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>
3 months 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>
3 months 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>
3 months agomac80211: ath11k: fix broadcast failures during GTK rekeying 18705/head
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>
3 months agorealtek: rtl838x: fix broadcast flooding with many multicast entries 18733/head
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>
3 months agoucode-mod-uline: re-introduce polling loop to fix prompt after line end 18529/head
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>
3 months agoath10k-ct: update to latest version 6.14 from 2025-04-30 18731/head
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>
3 months agokernel: bump 6.12 to 6.12.27 18728/head
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>
3 months agoqualcommax: ipq50xx: gl-b3000: add 03_set_oem_name 18656/head
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>
3 months 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>
3 months 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>
3 months agoramips: update drivers to be compatible with kernel 6.12 18711/head
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>
3 months agomac80211: rt2x00: use remove_new 18719/head
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>
3 months agoiw: fix WiFi 6 (HE) Scan on big endian platforms 18717/head
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>
3 months agobcm27xx: bcm2712: support all devices 18622/head
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>
3 months agolinux-firmware: add Raspberry Pi 5 CM NVRAM 18722/head
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>
3 months 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>
3 months agogeneric: fix MIPS -mno-long-calls patchset for 6.12 kernel 18721/head
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>
3 months agoimx: coretexa53: add network config for single-port Gateworks Venice boards 18629/head
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>
3 months agorealtek: fix cpu port link type 18691/head
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>
3 months agogeneric: 6.12: sync Realtek PHY patches with upstream 18715/head
Á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>
3 months 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>
3 months 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>
3 months 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>
3 months 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>
3 months 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>
3 months 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>
3 months 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>
3 months 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>
3 months 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>
3 months agotools/b43-tools: update to latest version, fix C23 build 18708/head
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>
3 months agokernel: bump 6.12 to 6.12.26 18695/head
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>
3 months agolibiconv-full: update to 1.18 18698/head
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>
3 months 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>
3 months agotools: add options to optimize host binaries 18659/head
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>
3 months 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>
3 months agotools: libtool: update to 2.5.4 18655/head
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>
3 months 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>
3 months agotoolchain: gcc: Backport patch to fix mips16 linking 18688/head
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>
3 months 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>
3 months 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>
3 months 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>
3 months 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>
3 months agoramips: i2s: use devm for debugfs seqfile 18675/head
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>
3 months 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>
3 months 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>
3 months 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>
3 months 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>
3 months 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>
3 months 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>
3 months 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>
3 months 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>
3 months agoarm-trusted-firmware-stm32: rework patch for the RTC configuration 18628/head
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>
3 months agooptee-os-stm32: bump to 4.6.0
Thomas Richard [Mon, 28 Apr 2025 12:50:00 +0000 (14:50 +0200)] 
optee-os-stm32: bump to 4.6.0

Bump optee-os-stm32 to upstream release 4.6.0.

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>
3 months agouboot-stm32: bump to 2025.04
Thomas Richard [Mon, 28 Apr 2025 12:48:27 +0000 (14:48 +0200)] 
uboot-stm32: bump to 2025.04

Bump uboot-stm32 to upstream release 2025.04.

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>
3 months agokernel: bump 6.6 to 6.6.89 18607/head
John Audia [Fri, 2 May 2025 16:44:01 +0000 (12:44 -0400)] 
kernel: bump 6.6 to 6.6.89

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

All patches automatically rebased.

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

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/18607
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 months agokernel: bump 6.6 to 6.6.88
Mieczyslaw Nalewaj [Wed, 30 Apr 2025 11:22:33 +0000 (13:22 +0200)] 
kernel: bump 6.6 to 6.6.88

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

Manually rebased:
 - bcm27xx/patches-6.6/950-0327-media-i2c-ov7251-Make-the-enable-GPIO-optional.patch[1]
 - bcm27xx/patches-6.6/950-0521-PCI-brcmstb-Add-BCM2712-support.patch[2]
 - generic/hack-6.6/610-net-page_pool-try-to-free-deferred-skbs-while-waitin.patch[3]
 - generic/pending-6.6/734-net-ethernet-mediatek-enlarge-DMA-reserve-buffer.patch[4]

All other patches automatically rebased.

1. https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.88&id=f249c05416ea0bef24c9dbed0e653d2fad87b127
2. https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.88&id=1fea7726276e5d6526ecd4e7ccb4c91a6135deb5
3. https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.88&id=95f17738b86fd198924d874a5639bcdc49c7e5b8
4. https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.88&id=a2874f0dff63829d1f540003e2d83adb610ee64a

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18607
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 months agouboot-sifiveu: drop PWM-related patches
Zoltan HERPAI [Fri, 2 May 2025 20:46:53 +0000 (22:46 +0200)] 
uboot-sifiveu: drop PWM-related patches

These are dropped from later SDK releases, and don't compile
with the recent GCC14 updates as well.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 months agoRevert "toolchain: gcc: make config consistent with glibc/musl"
Robert Marko [Fri, 2 May 2025 17:30:47 +0000 (19:30 +0200)] 
Revert "toolchain: gcc: make config consistent with glibc/musl"

This reverts commit 57841c83d9c1503a19212766639d17ae5019bb8c.

This is completely breaking the inital GCC configuration and most likely
was not even compile tested, so revert until fixed.

Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoRevert "kernel: netdevices: Create Vitesse DSA switch packages"
Robert Marko [Fri, 2 May 2025 17:18:38 +0000 (19:18 +0200)] 
Revert "kernel: netdevices: Create Vitesse DSA switch packages"

This reverts commit 5687f448a411a570b7d8558b08a132938f3de0f5.

This unfortunately is currently breaking all targets during building
as in 6.6 kernel there is
no CONFIG_NET_DSA_TAG_VSC73XX_8021Q, it was added in 6.11 AFAIK.

So they will all fail due to $(LINUX_DIR)/net/dsa/tag_vsc73xx_8021q.ko missing.

So revert until kmod is fixed.

Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoRevert "gemini: Add module for VSC73xx switches"
Robert Marko [Fri, 2 May 2025 17:17:53 +0000 (19:17 +0200)] 
Revert "gemini: Add module for VSC73xx switches"

This reverts commit 1c993da8ff2ee9ed33af23657ef6c3d45d19ed2f.

VSC kmod is broken and is causing all targets to fail compiling so revert.

Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agopolicycoreutils: update to 3.8.1 and fix build with GCC14 18674/head
Robert Marko [Thu, 1 May 2025 19:26:27 +0000 (21:26 +0200)] 
policycoreutils: update to 3.8.1 and fix build with GCC14

Update policycoreutils to latest 3.8.1 release and add a fix for building
with GCC14 and musl.

Fix will be sent upstream.

Link: https://github.com/openwrt/openwrt/pull/18674
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agolibsemanage: update to 3.8.1 and fix build with GCC14
Robert Marko [Thu, 1 May 2025 19:25:14 +0000 (21:25 +0200)] 
libsemanage: update to 3.8.1 and fix build with GCC14

Update libsemanage to latest 3.8.1 release and add an upstream backport[1]
that fixes compilation with GCC14 due to basename.

[1] https://github.com/SELinuxProject/selinux/commit/a339594da6f027aed5d66ec6798a3d732df235e4

Link: https://github.com/openwrt/openwrt/pull/18674
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agosecilc: update to 3.8.1
Robert Marko [Thu, 1 May 2025 19:24:46 +0000 (21:24 +0200)] 
secilc: update to 3.8.1

Update secilc to latest 3.8.1 release.

Link: https://github.com/openwrt/openwrt/pull/18674
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agocheckpolicy: update to 3.8.1
Robert Marko [Thu, 1 May 2025 19:24:26 +0000 (21:24 +0200)] 
checkpolicy: update to 3.8.1

Update checkpolicy to latest 3.8.1 release.

Link: https://github.com/openwrt/openwrt/pull/18674
Signed-off-by: Robert Marko <robimarko@gmail.com>