]> git.ipfire.org Git - thirdparty/openwrt.git/log
thirdparty/openwrt.git
2 weeks agouboot-mediatek: refresh patches 19463/head
Daniel Golle [Sat, 19 Jul 2025 12:52:46 +0000 (13:52 +0100)] 
uboot-mediatek: refresh patches

Refresh patch which has been made before the update to 2025.07 and
doesn't apply cleanly any more.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 weeks agouboot-mediatek: backport filogic clk driver fix
Shiji Yang [Sat, 19 Jul 2025 12:09:35 +0000 (20:09 +0800)] 
uboot-mediatek: backport filogic clk driver fix

This patch can fix the crash when initializing the mmc device.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agokernel: bump 6.12 to 6.12.39 19448/head
Leo Barsky [Thu, 17 Jul 2025 18:50:13 +0000 (18:50 +0000)] 
kernel: bump 6.12 to 6.12.39

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

All patches auto-refreshed.

Signed-off-by: Leo Barsky <leobrsky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/19448
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agokernel: bump 6.6 to 6.6.99
Leo Barsky [Thu, 17 Jul 2025 18:50:47 +0000 (18:50 +0000)] 
kernel: bump 6.6 to 6.6.99

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

All patches auto-refreshed.

Signed-off-by: Leo Barsky <leobrsky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/19448
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agoarm-trusted-firmware-mediatek: update to new release 20250711 19343/head
Shiji Yang [Sat, 12 Jul 2025 03:52:05 +0000 (11:52 +0800)] 
arm-trusted-firmware-mediatek: update to new release 20250711

Update mediatek arm-trusted-firmware to the latest version.

Remove upstream patch:
  0004-mediatek-snfi-fix-return-code-when-reading.patch

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agouboot-mediatek: sync with mtk-openwrt/u-boot 20250711
Shiji Yang [Sat, 12 Jul 2025 01:25:59 +0000 (09:25 +0800)] 
uboot-mediatek: sync with mtk-openwrt/u-boot 20250711

- Backport upstream Winbond W25N04KV Flash support.
- Backport upstream GigaDevice series Flash support.
- Backport pending Airoha AN8855 switch TPID value fix.
- Backport Mediatek UART baudrate accuracy compensation support.
- Pull mtk patchset from MTK SDK mtksoc-20250711 branch:
    Remove mt7622_rfb changes. The MTK SDK already dropped them.
    Replace Airoha ethernet PHY driver with new version.
    Split downstream snfi changes into independent patches.
    Add new Marvell CUX3410 PHY driver.
    Add new MediaTek built-in 2.5Gbps PHY driver.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agouboot-mediatek: drop build without OpenSSL fix
Shiji Yang [Thu, 10 Jul 2025 11:12:22 +0000 (19:12 +0800)] 
uboot-mediatek: drop build without OpenSSL fix

The build error has been fixed by the upstream commit:
03e598263e38 ("tools: fix build without LIBCRYPTO support")

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agouboot-mediatek: support getting legacy uImage size
Shiji Yang [Wed, 9 Jul 2025 16:35:29 +0000 (00:35 +0800)] 
uboot-mediatek: support getting legacy uImage size

Most ramips target devices use the legacy uImage format. This
patch extends the imsz/imszb commands to support detecting the
image size of legacy uImage.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agomediatek: stage mt7622/mt7629 rfb u-boot images to bin folder
Shiji Yang [Wed, 9 Jul 2025 12:19:36 +0000 (20:19 +0800)] 
mediatek: stage mt7622/mt7629 rfb u-boot images to bin folder

These u-boot images are no longer automatically copied to the
bindir since commit:
ed5000431940 ("uboot-mediatek: add support for Linksys E8450")

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agouboot-mediatek: fix mt7622 rfb1 build
Shiji Yang [Tue, 8 Jul 2025 12:33:11 +0000 (20:33 +0800)] 
uboot-mediatek: fix mt7622 rfb1 build

Add back the default LK image header to generate u-boot-mtk.bin. This
is the default behavior before u-boot v2022.01. If "u-boot-mtk.bin"
doesn't boot, please try "u-boot.bin" and report it.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agouboot-mediatek: update to v2025.07
Shiji Yang [Tue, 10 Jun 2025 15:59:39 +0000 (23:59 +0800)] 
uboot-mediatek: update to v2025.07

Update to the latest version.

Suppressed patch:
  100-04-env-add-support-for-generic-MTD-device.patch[1]

[1] https://github.com/u-boot/u-boot/commit/03fb08d4aef8c342b583e148d1b5c4d289c5572f

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agokernel: modules: input: add modules for PS/2 mouse support 19378/head
Daniel Golle [Sat, 12 Jul 2025 02:41:19 +0000 (03:41 +0100)] 
kernel: modules: input: add modules for PS/2 mouse support

Package kernel modules for PS/2 mouse support, mostly to allow
using touchpads and trackpoints built-into laptops (many of those
are connected using classic i8052-compatible PS/2 I/O).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 weeks agokernel: add missing dependency on kmod-drm to kmod-i2c-hid
Daniel Golle [Sat, 19 Jul 2025 01:53:22 +0000 (02:53 +0100)] 
kernel: add missing dependency on kmod-drm to kmod-i2c-hid

Buildbot revealed that on the x86/geode target, on which CONFIG_DRM=y isn't set,
kmod-i2c-hid misses the dependency on kmod-drm. Fix that to fix the build for
x86/geode.

Fixes: c83e275c9b ("kernel: package modules for I2C HID devices")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 weeks agoprojectsmirrors: drop ftp.kddilabs.jp 19407/head
Yanase Yuki [Mon, 14 Jul 2025 09:52:05 +0000 (18:52 +0900)] 
projectsmirrors: drop ftp.kddilabs.jp

ftp.kddilabs.jp has been shutdown and
now returns 404.

Signed-off-by: Yanase Yuki <dev@zpc.st>
Link: https://github.com/openwrt/openwrt/pull/19407
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agoapm821xx: enable kernel 6.12 18798/head
Rosen Penev [Tue, 13 May 2025 00:36:05 +0000 (17:36 -0700)] 
apm821xx: enable kernel 6.12

It builds now.

Tested on Cisco Meraki MX60W.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18798
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agoapm821xx: refresh 6.12 kernel config
Rosen Penev [Tue, 13 May 2025 00:37:46 +0000 (17:37 -0700)] 
apm821xx: refresh 6.12 kernel config

Some symbols changed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18798
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agoapm821xx: refresh 6.12 patches
Rosen Penev [Tue, 13 May 2025 00:34:35 +0000 (17:34 -0700)] 
apm821xx: refresh 6.12 patches

pci driver went to a different directory and thus manually edited.

All else done with kernel_oldconfig.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18798
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agoapm821xx: restore 6.6 kernel config/patches
Rosen Penev [Tue, 13 May 2025 00:25:21 +0000 (17:25 -0700)] 
apm821xx: restore 6.6 kernel config/patches

Copy kernel config and patches from 6.12 to restore the default 6.6
kernel support files.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18798
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agoapm821xx: rename kernel config/patches to 6.12
Rosen Penev [Tue, 13 May 2025 00:24:21 +0000 (17:24 -0700)] 
apm821xx: rename kernel config/patches to 6.12

This is a preparation for 6.12 kernel support. It can help us
track the files history by using the Git tool.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18798
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agorealtek: avoid interrupt storm on mass packet receive 19365/head
Markus Stockhausen [Thu, 10 Jul 2025 20:00:46 +0000 (16:00 -0400)] 
realtek: avoid interrupt storm on mass packet receive

RTL83xx devices have two types of receive interrupts for each of its
8 rings. One for packet received and another for ring overflow. When
the switch is flooded with incoming packets the receive handler will
disable the packet receive notification but still keeps the overflow
notification enabled. While the receive path "slowly" processes the
received packets each new packet triggers the overflow IRQ again. The
device becomes unresponsive and eventually produces messages like:

[18441.709764] rcu: Stack dump where RCU GP kthread last ran:
[18441.727892] Sending NMI from CPU 1 to CPUs 0:
[18441.742300] NMI backtrace for cpu 0 skipped: idling at 0x8080e994
[18415.251700] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
[18415.271350] rcu:     0-...!: (0 ticks this GP) idle=d740/0/0x0 ...
[18415.303046] rcu:     (detected by 1, t=6004 jiffies, g=230925, ...
[18415.326095] Sending NMI from CPU 1 to CPUs 0:
[18415.340540] NMI backtrace for cpu 0

Fix this issue by always disabling receive and overflow interrupts at
the same time.

Test with hping3 --udp -p 5021 -d 1400 --flood 192.168.2.72

Before (3sec run):
[183260.324846] rtl838x-eth 1b00a300.ethernet eth0: RX buffer overrun: status 0x101, mask: 0x7ffeff
[183260.340524] rtl838x-eth 1b00a300.ethernet eth0: RX buffer overrun: status 0x1, mask: 0x7ffeff
[183260.345799] net_ratelimit: 489997 callbacks suppressed

After (3 sec run):
[  373.981479] rtl838x-eth 1b00a300.ethernet eth0: rx ring overrun: status 0x101, mask: 0x7fffff
[  374.031118] rtl838x-eth 1b00a300.ethernet eth0: rx ring overrun: status 0x101, mask: 0x7fffff
[  377.919996] net_ratelimit: 34 callbacks suppressed

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/19365
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agorealtek: simplify RTL8218B/RTL8214Fx detection 19372/head
Markus Stockhausen [Fri, 11 Jul 2025 10:58:59 +0000 (06:58 -0400)] 
realtek: simplify RTL8218B/RTL8214Fx detection

The current implementation has several issues:

- it uses the hacky phy_port* macros
- it uses SoC dependent raw pages
- it disables/enables SoC dependent polling

Get rid of these dependencies and access the mdio bus the normal way.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/19372
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agouboot-mediatek: add support for GL.iNet GL-MT2500
Enrico Mioso [Fri, 18 Jul 2025 12:56:33 +0000 (14:56 +0200)] 
uboot-mediatek: add support for GL.iNet GL-MT2500

Add an OpenWrt-based U-Boot build for this device, allowing for more
flexibility and customization.

Expected behaviour
------------------
When plugging the device, keeping the reset button pressed will enter
TFTP recovery mode: the board will send requests for the initramfs file
(openwrt-mediatek-filogic-glinet_gl-mt2500-initramfs-kernel.bin) from
IP 192.168.1.1 to 192.168.1.10 TFTP server.
The bootloader will populate the environment with the unit serial number
as reported by the "sn" value in eMMC, the "sn_bak" value, the country
code and ddns. WAN and LAN MAC addresses are reported in the environment
as well.

Limitations
-----------
No web interface is available, and only the LAN port can be used for
system recovery.

Notes
-----
This port has been tested with the Maxlinear version only, and with a
board that does not exhibit eMMC communication problems. Even though eMMC
frequency has been lowered, some testing is probably needed and always
very welcome.
A -factory image has been introduced, and is only needed when using the
"Load Firmware via TFTP then write to eMMC." boot menu function.
The device has not been converted to use uImage.FIT including the rootfs
to keep compatibility with stock bootloader and firmware.

Installation
------------
From a Linux root shell:
0. Transfer the needed files to the board, placing them in /tmp.
1. Make sure your U-Boot environment is erased: all of my units came with
unpopulated environment, but I am not sure this is always the case.
Issue the command
cat /dev/zero >/dev/mmcblk0p2
(you will get a "no space left" error, which is reasonable and expected).
2. Unlock the eMMC boot area where BL2 is located:
echo 0 >/sys/block/mmcblk0boot0/force_ro
3. Write the new BL2 code:
cat openwrt-mediatek-filogic-glinet_gl-mt2500-emmc-preloader.bin >/dev/mmcblk0boot0
4. Write new BL31+U-Boot image:
cat openwrt-mediatek-filogic-glinet_gl-mt2500-emmc-bl31-uboot.fip >/dev/mmcblk0p4
5. Reboot.

Signed-off-by: Enrico Mioso <mrkiko.rs@gmail.com>
2 weeks agouboot-mediatek: GatoNetworks GDSP support fixes and updates
Enrico Mioso [Fri, 11 Jul 2025 11:22:57 +0000 (13:22 +0200)] 
uboot-mediatek: GatoNetworks GDSP support fixes and updates

This commit updates the OpenWrt-based U-Boot for this device, allowing
to boot a FIT firmware image stored in an SD card.
The environment has been updated accordingly to allow for managing images
on the two different supported firmware boot media configurations
(NOR or SDMMC).
Erasing the U-Boot environment when upgrading is recommended, so that
the correct DTS overlay is applied.

New behaviour
-------------

The default environment "bootconf" variable is set to
config-1#mt7981b-gatonetworks-gdsp-gps
rendering the GPS module accessible.
You may set it to something like
config-1#mt7981b-gatonetworks-gdsp-sd
to be able to use the MMC controller.
To boot from a firmware image stored in an SD card, you may set the
bootmedia environment variable:
# fw_setenv bootmedia sd
and reboot.
Should the bootmedia variable be absent or it's content not recognized
as valid (e.g., does not contain "nor" or "sd"), NOR boot will be
attempted.

Signed-off-by: Enrico Mioso <mrkiko.rs@gmail.com>
2 weeks agomediatek: filogic: add SD card support to GatoNetworks GDSP
Enrico Mioso [Fri, 11 Jul 2025 11:22:56 +0000 (13:22 +0200)] 
mediatek: filogic: add SD card support to GatoNetworks GDSP

The device is equipped with a GPS module, reporting data via /dev/ttyS1.
A TF card reader is also present. Only one of those components can be
used at once, since they share some PINs.
This commit adds two devicetree overlays to allow for the user to select
the desired configuration. Another overlay configuration to allow booting
from SD card is provided.

Signed-off-by: Enrico Mioso <mrkiko.rs@gmail.com>
2 weeks agolantiq: enable 6.12 testing kernel 18751/head
Shiji Yang [Thu, 8 May 2025 15:59:36 +0000 (23:59 +0800)] 
lantiq: enable 6.12 testing kernel

The 6.12 testing kernel for lantiq target is ready now.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agolantiq: refresh 6.12 kernel config files
Shiji Yang [Thu, 8 May 2025 15:36:39 +0000 (23:36 +0800)] 
lantiq: refresh 6.12 kernel config files

All kernel symbols are automatically refreshed by
`make kernel_oldconfig CONFIG_TARGET=target` and
`make kernel_oldconfig CONFIG_TARGET=subtarget`.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agolantiq: add the missing function pointer ltq_pci_plat_dev_init
Shiji Yang [Tue, 27 May 2025 14:23:39 +0000 (22:23 +0800)] 
lantiq: add the missing function pointer ltq_pci_plat_dev_init

Partial revert upstream commit 075dd2eef025 ("MIPS: lantiq: Remove
unused function pointer variables") to fix the build error:

mips-openwrt-linux-musl-ld: arch/mips/lantiq/xway/ath5k_eep.o: in function `of_ath5k_eeprom_probe':
arch/mips/lantiq/xway/ath5k_eep.c:(.init.text+0x31c): undefined reference to `ltq_pci_plat_dev_init'
mips-openwrt-linux-musl-ld: arch/mips/lantiq/xway/ath5k_eep.c:(.init.text+0x338): undefined reference to `ltq_pci_plat_dev_init'

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
lantiq: fix vmmc driver build warnings

2 weeks agolantiq: fix i2c driver compatibility issue on 6.12 kernel
Shiji Yang [Fri, 9 May 2025 13:55:07 +0000 (21:55 +0800)] 
lantiq: fix i2c driver compatibility issue on 6.12 kernel

* Drop obsolete flag I2C_CLASS_SPD. [1]
* Change .remove callback return type to NULL.
* Use strscpy instead of strlcpy.

This patch fixes the following build errors:

drivers/i2c/busses/i2c-lantiq.c:599:41: error: 'I2C_CLASS_SPD' undeclared (first use in this function); did you mean 'I2C_CLASS_HWMON'?
  599 |         adap->class = I2C_CLASS_HWMON | I2C_CLASS_SPD;
      |                                         ^~~~~~~~~~~~~
      |                                         I2C_CLASS_HWMON
drivers/i2c/busses/i2c-lantiq.c:600:9: error: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Wimplicit-function-declaration]
  600 |         strlcpy(adap->name, DRV_NAME "-adapter", sizeof(adap->name));
      |         ^~~~~~~
      |         strncpy
drivers/i2c/busses/i2c-lantiq.c:729:19: error: initialization of 'void (*)(struct platform_device *)' from incompatible pointer type 'int (*)(struct platform_device *)' [-Wincompatible-pointer-types]
  729 |         .remove = ltq_i2c_remove,
      |

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=e61bcf42d290e73025bab38e0e55a5586c2d8ad5
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agolantiq: lantiq-flash: platform driver .remove_new conversion
Shiji Yang [Thu, 8 May 2025 15:19:14 +0000 (23:19 +0800)] 
lantiq: lantiq-flash: platform driver .remove_new conversion

The .remove has been converted to .remove_new in the 6.12 kernel.
We have to change remove function return type from int to void
to match the upstream changes.

Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=5882bf98089f3a9ecbee5a57ae0aec6f54797855
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agolantiq: refresh 6.12 kernel patches
Shiji Yang [Thu, 8 May 2025 15:11:06 +0000 (23:11 +0800)] 
lantiq: refresh 6.12 kernel patches

Manually rebased:
001-MIPS-lantiq-add-pcie-driver.patch
028-NET-lantiq-various-etop-fixes.patch
152-lantiq-VPE.patch
160-owrt-lantiq-multiple-flash.patch

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agolantiq: remove upstreamed patches from 6.12 kernel patchset
Shiji Yang [Thu, 8 May 2025 15:08:42 +0000 (23:08 +0800)] 
lantiq: remove upstreamed patches from 6.12 kernel patchset

Remove upstreamed patches with version labels in their names.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agolantiq: restore kernel 6.6 config files and patches
Shiji Yang [Thu, 8 May 2025 14:38:36 +0000 (22:38 +0800)] 
lantiq: restore kernel 6.6 config files and patches

Copy patches and kernel configs from 6.12 kernel to restore the
default 6.6 kernel support files.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agolantiq: rename patchset and kernel configs to 6.12
Shiji Yang [Thu, 8 May 2025 14:36:03 +0000 (22:36 +0800)] 
lantiq: rename patchset and kernel configs to 6.12

This is a preparation for 6.12 kernel support. It can help us
track the files history by using the Git tool.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agolantiq: refresh kernel symbol configs
Shiji Yang [Thu, 8 May 2025 14:32:03 +0000 (22:32 +0800)] 
lantiq: refresh kernel symbol configs

This is a preparation for introducing the 6.12 kernel support.
All configs are automatically refreshed.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agolantiq: fix vmmc driver build warnings
Shiji Yang [Thu, 8 May 2025 13:44:19 +0000 (21:44 +0800)] 
lantiq: fix vmmc driver build warnings

This patch fixes the following build warnings:

arch/mips/lantiq/xway/vmmc.c:31:14: error: no previous prototype for 'ltq_get_mps_ad0_irq' [-Werror=missing-prototypes]
   31 | unsigned int ltq_get_mps_ad0_irq(void)
      |              ^~~~~~~~~~~~~~~~~~~
arch/mips/lantiq/xway/vmmc.c:40:14: error: no previous prototype for 'ltq_get_mps_ad1_irq' [-Werror=missing-prototypes]
   40 | unsigned int ltq_get_mps_ad1_irq(void)
      |              ^~~~~~~~~~~~~~~~~~~
arch/mips/lantiq/xway/vmmc.c:49:14: error: no previous prototype for 'ltq_get_mps_vc_irq' [-Werror=missing-prototypes]
   49 | unsigned int ltq_get_mps_vc_irq(int idx)
      |              ^~~~~~~~~~~~~~~~~~

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agolantiq: fix pcie driver build warnings
Shiji Yang [Thu, 8 May 2025 13:43:02 +0000 (21:43 +0800)] 
lantiq: fix pcie driver build warnings

This patch fixes the following build warnings:

arch/mips/pci/ifxmips_pcie.c:1084:36: error: invalid use of undefined type 'struct platform_device'
 1084 |     struct device_node *node = pdev->dev.of_node;
      |                                    ^~
arch/mips/pci/ifxmips_pcie.c:1204:12: error: no previous prototype for 'ifx_pcie_bios_init' [-Werror=missing-prototypes]
 1204 | int __init ifx_pcie_bios_init(void)
      |            ^~~~~~~~~~~~~~~~~~

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agolantiq: fix eeprom driver build warnings:
Shiji Yang [Thu, 8 May 2025 13:41:17 +0000 (21:41 +0800)] 
lantiq: fix eeprom driver build warnings:

This patch fixes the following build warnings:

arch/mips/lantiq/xway/ath5k_eep.c:34:12: error: no previous prototype for 'of_ath5k_eeprom_probe' [-Werror=missing-prototypes]
   34 | int __init of_ath5k_eeprom_probe(struct platform_device *pdev)
      |            ^~~~~~~~~~~~~~~~~~~~~
arch/mips/lantiq/xway/eth_mac.c:15:11: error: no previous prototype for 'ltq_get_eth_mac' [-Werror=missing-prototypes]
   15 | const u8* ltq_get_eth_mac(void)
      |           ^~~~~~~~~~~~~~~

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agolantiq: fix timer driver build warnings
Shiji Yang [Thu, 8 May 2025 13:39:10 +0000 (21:39 +0800)] 
lantiq: fix timer driver build warnings

This patch fixes the following build warnings:

arch/mips/lantiq/xway/timer.c:160:14: error: no previous prototype for 'ltq_get_fpi_bus_clock' [-Werror=missing-prototypes]
  160 | unsigned int ltq_get_fpi_bus_clock(int fpi) {
      |              ^~~~~~~~~~~~~~~~~~~~~
arch/mips/lantiq/xway/timer.c:803:36: error: invalid use of undefined type 'struct platform_device'
  803 |         ret = devm_mutex_init(&pdev->dev, &timer_dev.gptu_mutex);
      |                                    ^~
arch/mips/lantiq/xway/timer.c:864:12: error: no previous prototype for 'lq_gptu_init' [-Werror=missing-prototypes]
  864 | int __init lq_gptu_init(void)
      |            ^~~~~~~~~~~~
arch/mips/lantiq/xway/timer.c:873:13: error: no previous prototype for 'lq_gptu_exit' [-Werror=missing-prototypes]
  873 | void __exit lq_gptu_exit(void)
      |             ^~~~~~~~~~~~

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agolantiq: misc build warning fixes for upstream codes
Shiji Yang [Thu, 8 May 2025 13:37:18 +0000 (21:37 +0800)] 
lantiq: misc build warning fixes for upstream codes

This patchset fixes a lot of compilation warnings. In the upcoming
6.12 kernel, these warnings will be treated as errors.

Link:
https://lore.kernel.org/all/OSBPR01MB1670163BDCA60924B3671D45BC72A@OSBPR01MB1670.jpnprd01.prod.outlook.com/

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 weeks agomediatek: remove files, patches and config for Linux 6.6 19134/head
Daniel Golle [Sat, 14 Jun 2025 10:54:56 +0000 (12:54 +0200)] 
mediatek: remove files, patches and config for Linux 6.6

Drop support for Linux 6.6 now that we are using Linux 6.12.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 weeks agomediatek: switch to Linux 6.12 by default
Daniel Golle [Sat, 14 Jun 2025 10:52:42 +0000 (12:52 +0200)] 
mediatek: switch to Linux 6.12 by default

Use Linux kernel version 6.12 by default for all mediatek subtargets.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 weeks agowifi-scripts: ucode: add support for iwinfo nl80211 phyname
Felix Fietkau [Wed, 16 Jul 2025 11:09:03 +0000 (13:09 +0200)] 
wifi-scripts: ucode: add support for iwinfo nl80211 phyname

It is needed for compatibility with scripts that rely on this
existing iwinfo behavior

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 weeks agoucode: update to Git HEAD (2025-07-18)
Felix Fietkau [Fri, 18 Jul 2025 10:22:10 +0000 (12:22 +0200)] 
ucode: update to Git HEAD (2025-07-18)

5b3b6b789b9c ubus: fix refcount issue in uc_ubus_object_notify
f682ac2f6b82 program: add bytecode version to program header flags
af411d8101b2 vm: implement PVAL opcode
afdfffb61258 vm: support initiating method calls with I_CALL/I_QCALL opcodes
5d680425db40 compiler: stop emitting I_MCALL/I_QMCALL opcodes
a616feed39eb compiler, vm: rework optional chaining and function call semantics
0946a4fb20b8 vm: adjust JMPNT opcode behavior
6f8291f73757 compiler: improve assignment lhs expression checks
cf846c4a11d4 vm: properly handle modulo by zero
4d81e6c13506 resolv: add documentation and fix clobbering ns strings
20ee2dabd243 debian/changelog: v0.0.20250529
50d303c8309d ubus: add support for automatically subscribing to objects
5a0d21d59f88 vm: export function for converting exception to ucode value
aaf712eb4fb4 uloop: add guard() function
693af2b61b52 ubus: add guard() function

Fixes: https://github.com/jow-/ucode/issues/307
Fixes: https://github.com/jow-/ucode/issues/313
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 weeks agotarget: mediatek: Enable WED for MT7988 devices running 6.12.x kernels
Lorenzo Bianconi [Thu, 17 Jul 2025 16:45:48 +0000 (18:45 +0200)] 
target: mediatek: Enable WED for MT7988 devices running 6.12.x kernels

Add WED related nodes to the device tree of the MT7988 SoC family.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 weeks agogeneric: dsa: backport upstream realtek patches 19381/head
Mieczyslaw Nalewaj [Sat, 12 Jul 2025 18:39:50 +0000 (20:39 +0200)] 
generic: dsa: backport upstream realtek patches

Import patches from kernel 6.13:
- net: dsa: realtek: Use for_each_child_of_node_scoped()
- net: dsa: realtek: rtl8365mb: Make use of irq_get_trigger_type()
- net: dsa: realtek: rtl8366rb: Make use of irq_get_trigger_type()

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/19381
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agoltq-adsl-mei: check status register before reading mailbox messages 19385/head
Jan Hoffmann [Fri, 11 Jul 2025 18:31:29 +0000 (20:31 +0200)] 
ltq-adsl-mei: check status register before reading mailbox messages

The interrupt handler reads from the mailbox if no other reason for the
interrupt is known. If a spurious interrupt is received just after a
mailbox message has been sent, this means that the response to the
previous message is read again and returned by DSL_BSP_SendCMV instead
of the actual response.

To fix this, check the status register before reading from the mailbox
in the interrupt handler.

Tested on Fritzbox 7320. Without this change, there is occasionally a
kernel panic due to an out-of-bounds memory access in the ltq-adsl
driver (in DSL_DRV_DEV_G997_SnrAllocationNscGet), as a result of an
incorrect value returned by DSL_DRV_DANUBE_CmvRead. This is reproducible
by calling "dsl_cpe_pipe.sh g997dsnrg 1 1" multiple times.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Link: https://github.com/openwrt/openwrt/pull/19385
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agoperf: fix build on mips 19426/head
Tony Ambardar [Tue, 15 Jul 2025 05:43:17 +0000 (22:43 -0700)] 
perf: fix build on mips

Building perf on mips/malta fails on intel-pt-decoder due to a header issue
previously seen in f434643857 ("perf: fix build on PowerPC"):

In file included from util/intel-pt-decoder/intel-pt-insn-decoder.c:12:
util/intel-pt-decoder/../../../arch/x86/include/asm/insn.h: In function 'insn_field_set':
util/intel-pt-decoder/../../../arch/x86/include/asm/insn.h:56:21: error: implicit declaration of function '__cpu_to_le32'; did you mean 'cpu_to_le32'? [-Wimplicit-function-declaration]
   56 |         p->little = __cpu_to_le32(v);
      |                     ^~~~~~~~~~~~~
      |                     cpu_to_le32
util/intel-pt-decoder/../../../arch/x86/include/asm/insn.h: In function 'insn_set_byte':
util/intel-pt-decoder/../../../arch/x86/include/asm/insn.h:64:20: error: implicit declaration of function '__le32_to_cpu'; did you mean 'le32_to_cpu'? [-Wimplicit-function-declaration]
   64 |         p->value = __le32_to_cpu(p->little);
      |                    ^~~~~~~~~~~~~
      |                    le32_to_cpu

Extend the previous powerpc fix to mips, disabling intel-pt-decoder build.

cc: Stijn Tintel <stijn@linux-ipv6.be>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/19426
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agox86: modules: fix wrong Kconfig symbol
Daniel Golle [Thu, 17 Jul 2025 10:44:15 +0000 (11:44 +0100)] 
x86: modules: fix wrong Kconfig symbol

It's CONFIG_MFD_INTEL_LPSS, not CONFIG_INTEL_LPSS.

Fixes: f780a72293 ("x86: modules: add packages for Intel LPSS drivers")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 weeks agokernel: package hid-alps module 19387/head
Daniel Golle [Sat, 12 Jul 2025 14:23:24 +0000 (15:23 +0100)] 
kernel: package hid-alps module

Package driver module fuer ALPS touchpads and trackpoints found
in some laptops.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 weeks agokernel: package modules for I2C HID devices 19422/head
Daniel Golle [Sat, 12 Jul 2025 04:26:50 +0000 (05:26 +0100)] 
kernel: package modules for I2C HID devices

Package driver modules for I2C HID devices such as touchpads,
touchscreens and trackpoints found on some laptops. Only the ACPI
firmware variant of the driver is packaged for now as that's what I got
for testing.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 weeks agox86: modules: add packages for Intel LPSS drivers
Daniel Golle [Tue, 15 Jul 2025 14:56:15 +0000 (15:56 +0100)] 
x86: modules: add packages for Intel LPSS drivers

Add driver packages for Intel Low-Power Subsystem devices which are part
of some Intel chipsets. They are mainly needed to have access to the I2C
bus used for HID devices.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 weeks agokernel: bump 6.12 to 6.12.38 19411/head
Leo Barsky [Mon, 14 Jul 2025 14:44:57 +0000 (10:44 -0400)] 
kernel: bump 6.12 to 6.12.38

Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.38
Minor kernel update with a single fix:
-  x86/CPU/AMD: Properly check the TSA microcode

Signed-off-by: Leo Barsky <leobrsky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/19411
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agokernel: bump 6.6 to 6.6.98
Leo Barsky [Mon, 14 Jul 2025 14:53:33 +0000 (10:53 -0400)] 
kernel: bump 6.6 to 6.6.98

Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.98
Minor kernel update with a single fix:
- x86/CPU/AMD: Properly check the TSA microcode
Automatically refreshed:
- airoha/patches-6.6/901-snand-mtk-bmt-support.patch

Signed-off-by: Leo Barsky <leobrsky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/19411
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agoqualcommax: ipq50xx: update qcn6122 caldata offset of yuncore ax830 19416/head
Shubham Vishwakarma [Tue, 15 Jul 2025 07:12:12 +0000 (12:42 +0530)] 
qualcommax: ipq50xx: update qcn6122 caldata offset of yuncore ax830

The current offset used for extracting QCN6122 calibration data
is incorrect on the Yuncore AX830. This patch corrects the
offset to ensure proper WiFi initialization.

Tested on: Yuncore AX830

Signed-off-by: Shubham Vishwakarma <shubhamvis98@fossfrog.in>
Link: https://github.com/openwrt/openwrt/pull/19416
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 weeks agouhttpd: update to Git HEAD (2025-07-06) 19290/head
Hauke Mehrtens [Thu, 3 Jul 2025 19:37:39 +0000 (21:37 +0200)] 
uhttpd: update to Git HEAD (2025-07-06)

b3e3c05 client: don't send stray EOF chunk on connection timeout
fad0d05 proc: inhibit chunked transfer encoding on existing TEs or known length
3d6f01b file: prevent writes beyond end of uh_buf on enumerating directories
c7294e7 client: reject requests with multiple content-lengths and/or TEs
7e64e8b client: Allow sending content in DONE state

uhttpd commit 3d6f01b fixes: CVE-2025-32108

Link: https://github.com/openwrt/openwrt/pull/19290
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agokirkwood: add 6.12 as testing kernel 19069/head
Pawel Dembicki [Sun, 8 Jun 2025 08:21:48 +0000 (10:21 +0200)] 
kirkwood: add 6.12 as testing kernel

Support for 6.12 is ready; add it as a testing kernel.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19069
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agokirkwood: 6.12: refresh kernel config
Pawel Dembicki [Sun, 13 Jul 2025 06:35:04 +0000 (08:35 +0200)] 
kirkwood: 6.12: refresh kernel config

6.12 kernel config need to be refreshed.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19069
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agokirkwood: kernel: 6.12: refresh patches
Pawel Dembicki [Sun, 8 Jun 2025 06:22:00 +0000 (08:22 +0200)] 
kirkwood: kernel: 6.12: refresh patches

Most of them were manually refreshed.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19069
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agokernel/kirkwood: Restore kernel files for v6.6
Pawel Dembicki [Sat, 7 Jun 2025 11:30:49 +0000 (13:30 +0200)] 
kernel/kirkwood: Restore kernel files for v6.6

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

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

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19069
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agokernel/kirkwood: Create kernel files for v6.12 (from v6.6)
Pawel Dembicki [Sat, 7 Jun 2025 11:30:49 +0000 (13:30 +0200)] 
kernel/kirkwood: Create kernel files for v6.12 (from v6.6)

This is an automatically generated commit.

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

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19069
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agokirkwood: move files-6.6 to files
Pawel Dembicki [Sat, 7 Jun 2025 11:29:53 +0000 (13:29 +0200)] 
kirkwood: move files-6.6 to files

No need to keep it in kernel specified folder anymore.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19069
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agobuild: fix ipkg-remove: add support for removing apk files
Felix Fietkau [Tue, 15 Jul 2025 18:47:31 +0000 (20:47 +0200)] 
build: fix ipkg-remove: add support for removing apk files

Use apk adbdump to extract metadata from .apk files to derive the real
package name.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 weeks agobuild: ipkg-remove: fix source name / package confusion, optimize
Felix Fietkau [Tue, 15 Jul 2025 13:26:16 +0000 (15:26 +0200)] 
build: ipkg-remove: fix source name / package confusion, optimize

The script always gets passed the package name, not the source name.
Optimize for the default case where the package name matches the
filename prefix.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 weeks agox86: enable built-in driver for MMC/SDHCI 19379/head
Daniel Golle [Sat, 12 Jul 2025 02:39:43 +0000 (03:39 +0100)] 
x86: enable built-in driver for MMC/SDHCI

Many x86 machines can boot from SD cards, and some embedded x86 devices
come with an eMMC. Include drivers for all common MMC/SDHCI controllers
to allow booting from SD/MMC on x86.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
3 weeks agorockchip: add RK3588 Hardware Random Number Generator 19366/head
Marty Jones [Mon, 16 Jun 2025 01:07:46 +0000 (21:07 -0400)] 
rockchip: add RK3588 Hardware Random Number Generator

Backport support for RK3588 hardware RNG driver.

Signed-off-by: Marty Jones <mj8263788@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19366
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agotreewide: simplify kernel version number comparisons 19172/head
Shiji Yang [Tue, 17 Jun 2025 23:39:57 +0000 (07:39 +0800)] 
treewide: simplify kernel version number comparisons

Directly call the function "get_linux_version()" to get the integer
kernel version number.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19172
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agobase-files: introduce a function to get kernel version number
Shiji Yang [Tue, 17 Jun 2025 14:06:38 +0000 (22:06 +0800)] 
base-files: introduce a function to get kernel version number

A new function "get_linux_version()" to normalize and print the
kernel version as an integer. In some migration scripts, it is
useful for checking the Linux kernel version.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19172
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agoucode: update ubus/uloop exception handling patches
Felix Fietkau [Mon, 14 Jul 2025 10:15:59 +0000 (12:15 +0200)] 
ucode: update ubus/uloop exception handling patches

Function renames and a leak fix

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 weeks agomediatek: filogic: D-Link M30/M60: include initramfs in recovery 18878/head
Mateusz Krzak [Thu, 22 May 2025 16:36:38 +0000 (18:36 +0200)] 
mediatek: filogic: D-Link M30/M60: include initramfs in recovery

Currently, if OEM recovery flashes OpenWrt to second ubi1,
OpenWrt cannot boot. With this commit, recovery image is built
with initramfs kernel, so that it can boot from either ubi or ubi1.

This adds an extra step to OpenWrt installation from OEM:
user needs to sysupgrade from initramfs to full system.

Signed-off-by: Mateusz Krzak <kszaquitto+github@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18878
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agokernel: make tty count for 8250 configurable
Florian Eckert [Tue, 7 Mar 2023 11:02:26 +0000 (12:02 +0100)] 
kernel: make tty count for 8250 configurable

The number of serial interfaces for the chip 8250 can be configured at
build time. This is currently not configurable and is always set to 16
interfaces. This is too little for some small embedded devices and too much
for others (x86_64). Therefore, this commit creates the possibility to set
this at compile time.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Link: https://github.com/openwrt/openwrt/pull/19217
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agomediatek: add support for ipTIME AX3000SM 18689/head
Donghyun Ko [Sat, 3 May 2025 00:24:10 +0000 (09:24 +0900)] 
mediatek: add support for ipTIME AX3000SM

Specification
-------------
- SoC       : MediaTek MT7981BA dual-core ARM Cortex-A53 1.3GHz
- RAM       : DDR3 256Mbytes, Nanya Technology NT5CC128M16IP
- Flash     : 128Mbytes NAND Flash, ESMT F50L1G41LB
- WLAN      : MediaTek MT7976CN dual-band Wi-Fi 6
  - 2.4GHz  : b/g/n/ax, MU-MIMO
  - 5GHz    : a/n/ac/ax, MU-MIMO
- Ethernet  : 10/100/1000 Mbps x4, LAN (MediaTek MT7531AE)
              10/100/1000 Mbps x1, WAN (MT7981 internal PHY)
- UART      : 1x4 pin header on PCB
  - [J500] 3.3V, TX, RX, GND (115200, 8N1)
- Buttons   : WPS, Reset
- LEDs      : 1x Power (Amber)
              1x CPU (Amber)
              1x Wi-Fi 5GHz (Amber)
              1x Wi-Fi 2.4GHz (Amber)
              1x WAN activity (Amber)
              4x LAN activity (Amber)
- Power     : 12VDC, 1A (Center positive polarity)

MAC address
-----------
+-----------+-------------------+-----------+
| Interface | MAC               | Algorithm |
+-----------+-------------------+-----------+
| WLAN 2.4G | B0:38:6C:xx:xx:xx | label     |
| WLAN 5G   | B2:38:6C:4x:xx:xx |           |
| WAN       | B0:38:6C:xx:xx:xx | label + 1 |
| LAN       | B0:38:6C:xx:xx:xx | label + 3 |
+-----------+-------------------+-----------+
The WLAN 2.4G MAC address was found in 'Factory' partition, 0x4

Installation
------------
1. Download the *initramfs-kernel.bin file from the OpenWrt website
2. Attach UART to the router, and interrupt the boot process by pressing '0'

   If you successfully interrupt the boot process, a terminal prompt
   name should look like this:

   MT7981>

3. Connect the router(LAN port) to the PC
4. Assign the PC IP address: 192.168.0.100/24
5. Load and run the *initramfs-kernel.bin:

  tftpboot 0x46000000 initramfs-kernel.bin
  bootm

6. Upload the OpenWrt *squashfs-sysupgrade.bin to the router
7. Run 'sysupgrade -n' with the sysupgrade OpenWrt image

Signed-off-by: Donghyun Ko <nyankosoftware@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18689
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agouboot-tegra: disable mkeficapsule build
Tomasz Maciej Nowak [Sun, 13 Jul 2025 12:51:26 +0000 (14:51 +0200)] 
uboot-tegra: disable mkeficapsule build

Host default environment doesn't provide/require gnutls headers needed
for building mkeficapsule tools, and as tegra target doesn't require EFI
capability, disable the build of mentioned tool.

Fixes: 92cd360aacd6 ("uboot-tegra: bump version to 2025.04")
Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250713125126.215092-1-tmn505@terefe.re/
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agomediatek: filogic: mt7986: fix SPI driving for NAND and increase to 52MHz on ZyXEL... 18813/head
Sky Huang [Fri, 16 May 2025 10:45:02 +0000 (18:45 +0800)] 
mediatek: filogic: mt7986: fix SPI driving for NAND and increase to 52MHz on ZyXEL EX5601

8mA driving will cause overshoot issue on SPI NAND. Change it to 4mA.
- Reference:
https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/003744197aa3a587828b4330ab1112ebdb9e840a

On Linux mainline (mt7986.dtsi), spi's source clock is: clocks = <&topckgen CLK_TOP_MPLL_D2>, which is
208MHz. Usable clock division will be:
- 208/4=52MHz
- 208/6~=35MHz
- 208/8=26MHz
and so on

If we specify 50MHz for spi-max-frequency, it will actually run under about 35MHz. Most SPI NAND & NOR
flashes are capable of running with more than 52MHz, include Micorn MT29F4G01ABAFDWB on ZyXEL EX5601.
[Ref: #18752] To reach highest performance on mt7986, use spi-max-frequency = <520000000>. Basically,
this setting should work on all mt7986 PCBs since most mt7986 boards follow reference design. However,
other boards needs further test to guarantee stability.

Signed-off-by: Sky Huang <SkyLake.Huang@mediatek.com>
Tested-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Link: https://github.com/openwrt/openwrt/pull/18813
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agouboot-mediatek: add USB bootmenu for Zyxel EX5601 18949/head
Paweł Owoc [Wed, 28 May 2025 15:18:24 +0000 (17:18 +0200)] 
uboot-mediatek: add USB bootmenu for Zyxel EX5601

Add new option to bootmenu which allows to boot the system from USB.
You can use dd to prepare USB with initramfs:
- dd bs=1M if=openwrt-mediatek-filogic-zyxel_ex5601-t0-ubootmod-initramfs-factory.ubi of=/dev/sdX

Signed-off-by: Paweł Owoc <frut3k7@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18949
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agorealtek: rtl931x: fix setting number of leds per port 19241/head
Jonas Jelonek [Wed, 18 Jun 2025 21:40:03 +0000 (21:40 +0000)] 
realtek: rtl931x: fix setting number of leds per port

In rtl931x_led_init, the number of leds per port is not properly set. It
currently uses a hardcoded value of 1 which seems to be taken initially
from a specific device. This hardcoded value assumes any port always has
exactly two leds.

The RTL930x variant - rtl930x_led_init - does a better job at this. So
take it and use it for RTL931x too with the corresponding register.
While at it, rename the function to a proper naming scheme.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19241
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agouboot-tools: envtools: ipq95xx: use common function 19269/head
Paweł Owoc [Mon, 30 Jun 2025 18:35:59 +0000 (20:35 +0200)] 
uboot-tools: envtools: ipq95xx: use common function

Use common function ubootenv_add_mmc

Signed-off-by: Paweł Owoc <frut3k7@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19269
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agoopensbi: update tarball hash compressed by the zstd 1.5.7 19319/head
Shiji Yang [Sun, 6 Jul 2025 12:36:27 +0000 (20:36 +0800)] 
opensbi: update tarball hash compressed by the zstd 1.5.7

The source code tarball packaged by the zstd 1.5.6 was accidentally
lost from OpenWrt mirror https://sources.cdn.openwrt.org/ and
https://sources.openwrt.org/. Now we have to use the new tarball
packaged by the zstd 1.5.7 to fix the GitHub CI warning.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19319
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agoltq-*-app: correctly report downstream band borders 19363/head
Jan Hoffmann [Thu, 10 Jul 2025 15:37:02 +0000 (17:37 +0200)] 
ltq-*-app: correctly report downstream band borders

The direction needs to be included in the IOCTL call.

Fixes: b91d7d9d78ea ("ltq-*-app: extend ubus metrics/statistics")
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Link: https://github.com/openwrt/openwrt/pull/19363
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agoqualcommbe: remove useless cpu erratum 19380/head
Chukun Pan [Mon, 7 Jul 2025 15:01:30 +0000 (23:01 +0800)] 
qualcommbe: remove useless cpu erratum

These cpu erratums are used by other SoCs, just remove them.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/19380
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agoqualcommax: remove useless cpu erratum
Chukun Pan [Sun, 6 Jul 2025 15:05:16 +0000 (23:05 +0800)] 
qualcommax: remove useless cpu erratum

These cpu erratums are used by other SoCs, just remove them.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/19380
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agogeneric: 6.12: add new config symbols
Chukun Pan [Sat, 5 Jul 2025 15:28:10 +0000 (23:28 +0800)] 
generic: 6.12: add new config symbols

Move the following kernel symbol configs to generic:
  COMPRESSED_INSTALL and IMX_SCMI related configs

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/19380
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agoath79: add support for Dell SonicPoint ACi APL27-0B1
Tomasz Maciej Nowak [Thu, 29 May 2025 20:15:16 +0000 (22:15 +0200)] 
ath79: add support for Dell SonicPoint ACi APL27-0B1

Dell/SonicWall APL27-0B1 (marketed as SonicPoint ACi) is a dual band
wireless access point. Very similar to already supported APL26-0AE,
which all antennas are external, while this variant has internal
antennas. End of life as of 2022-07-31.

Specification
SoC: QualcommAtheros QCA9550
RAM: 256 MB DDR2
Flash: 32 MB SPI NOR
WIFI: 2.4 GHz 3T3R integrated
      5 GHz 3T3R QCA9890 oversized Mini PCIe card
Ethernet: 2x 10/100/1000 Mbps QCA8334
          port labeled lan1 is PoE capable (802.3at)
USB: 1x 2.0
LEDs: LEDs: 6x which 5 are GPIO controlled and two of them are dual color
Buttons: 1x GPIO controlled
Serial: RJ-45 port, SonicWall pinout
        baud: 115200, parity: none, flow control: none

Before flashing, be sure to have a copy of factory firmware, in case You
wish to revert to original firmware.

Installation
1. Prepare TFTP server with OpenWrt sysupgrade image and rename that
   image to "ap135.bin".
2. Connect to one of LAN ports.
3. Connect to serial port.
4. Hold the reset button (small through hole on side of the unit),
   power on the device and when prompted to stop autoboot, hit any key.
   The held button can now be released.
5. Alter U-Boot environment with following commands:
    setenv bootcmd bootm 0x9F110000
    saveenv
6. Adjust "ipaddr" (access point, default is 192.168.1.1) and "serverip"
   (TFTP server, default is 192.168.1.10) addresses in U-Boot
   environment, then run following commands:
    tftp 0x80060000 ap135.bin
    erase 0x9F110000 +0x1EF0000
    cp.b 0x80060000 0x9F110000 $filesize
7. After successful flashing, execute:
    boot
8. The access point will boot to OpenWrt. Wait few minutes, until the
    wrench LED will stop blinking, then it's ready for configuration.

Notes
By default no power is provided on USB port, so attached USB devices
won't enumerate. To change that enable regulator with:
echo "enabled" > /sys/devices/platform/output-usb-vbus/state
To disable power write "disabled" to the same file.
Ther regulator state will reset on reboot, consider running this command
on hotplug event or add it to /etc/rc.local. The hotplug event should
look like this:
if [ "${PRODUCT}" = "1d6b/2/606" ] && [ "${ACTION}" = "add" ]; then
echo "enabled" > /sys/devices/platform/output-usb-vbus/state
fi
Place it in /etc/hotplug.d/usb/10-usb-power.

Known issues
Initramfs image can't be bigger than specified kernel size, otherwise
bootloader will throw LZMA decompressing error. Switching to lzma-loader
should workaround that.

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250529202033.28250-2-tmn505@terefe.re/
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agokernel: modules: package userspace consumer regulator
Tomasz Maciej Nowak [Thu, 29 May 2025 20:15:15 +0000 (22:15 +0200)] 
kernel: modules: package userspace consumer regulator

Allows to enable/disable attached regulators from userspace, i.e. by
simply writing value to a sysfs exported state file. Useful in case of
USB port VBUS toggled by GPIO.

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250529202033.28250-1-tmn505@terefe.re/
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agotegra: add 6.12 as testing kernel
Tomasz Maciej Nowak [Wed, 18 Jun 2025 16:59:35 +0000 (18:59 +0200)] 
tegra: add 6.12 as testing kernel

Introduce LED migration script as the names have changed.

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250618170045.473711-8-tmn505@terefe.re/
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agotegra: 6.12: refresh config and drop upstreamed patch
Tomasz Maciej Nowak [Wed, 18 Jun 2025 16:59:34 +0000 (18:59 +0200)] 
tegra: 6.12: refresh config and drop upstreamed patch

Refresh of config drops IOMMU GART driver as it has been removed
upstream.

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250618170045.473711-7-tmn505@terefe.re/
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agokernel/tegra: Restore kernel files for v6.6
Tomasz Maciej Nowak [Wed, 18 Jun 2025 16:59:33 +0000 (18:59 +0200)] 
kernel/tegra: Restore kernel files for v6.6

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

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

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250618170045.473711-6-tmn505@terefe.re/
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agokernel/tegra: Create kernel files for v6.12 (from v6.6)
Tomasz Maciej Nowak [Wed, 18 Jun 2025 16:59:32 +0000 (18:59 +0200)] 
kernel/tegra: Create kernel files for v6.12 (from v6.6)

This is an automatically generated commit.

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

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250618170045.473711-5-tmn505@terefe.re/
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agogeneric: 6.12: add few DRM symbols
Tomasz Maciej Nowak [Wed, 18 Jun 2025 16:59:31 +0000 (18:59 +0200)] 
generic: 6.12: add few DRM symbols

Found on tegra kernel 6.12 refresh.

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250618170045.473711-4-tmn505@terefe.re/
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agouboot-tegra: bump version to 2025.04
Tomasz Maciej Nowak [Wed, 18 Jun 2025 16:59:30 +0000 (18:59 +0200)] 
uboot-tegra: bump version to 2025.04

Fixes build issue when faced with Swig>=4.3.x

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250618170045.473711-3-tmn505@terefe.re/
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agotegra: bring back workaround for spurious interrupts
Tomasz Maciej Nowak [Wed, 18 Jun 2025 16:59:29 +0000 (18:59 +0200)] 
tegra: bring back workaround for spurious interrupts

Unfortunately they still apear with prolonged serial console usage.
While it's not common to use serial console past initial setup, alas
when the condition is hit the console is almost unusable.

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250618170045.473711-2-tmn505@terefe.re/
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agopolicycoreutils: adjust with glibc and libcrypt-compat 19293/head
Konstantin Demin [Fri, 4 Jul 2025 08:03:15 +0000 (11:03 +0300)] 
policycoreutils: adjust with glibc and libcrypt-compat

glibc 2.39 has removed libcrypt completely.
solution: link against libxcrypt built with glibc compatibility.

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19293
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agobusybox: adjust with glibc and libcrypt-compat
Konstantin Demin [Fri, 4 Jul 2025 08:03:15 +0000 (11:03 +0300)] 
busybox: adjust with glibc and libcrypt-compat

glibc 2.39 has removed libcrypt completely.
solution: link against libxcrypt built with glibc compatibility.

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19293
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agorpcd: adjust with glibc and libcrypt-compat
Konstantin Demin [Fri, 4 Jul 2025 08:03:15 +0000 (11:03 +0300)] 
rpcd: adjust with glibc and libcrypt-compat

glibc 2.39 has removed libcrypt completely.
solution: link against libxcrypt built with glibc compatibility.

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19293
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agouhttpd: adjust with glibc and libcrypt-compat
Konstantin Demin [Fri, 4 Jul 2025 08:03:14 +0000 (11:03 +0300)] 
uhttpd: adjust with glibc and libcrypt-compat

glibc 2.39 has removed libcrypt completely.
solution: link against libxcrypt built with glibc compatibility.

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19293
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agoppp: adjust with glibc and libcrypt-compat
Konstantin Demin [Fri, 4 Jul 2025 08:03:14 +0000 (11:03 +0300)] 
ppp: adjust with glibc and libcrypt-compat

glibc 2.39 has removed libcrypt completely.
solution: link against libxcrypt built with glibc compatibility.

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19293
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agodropbear: adjust with glibc and libcrypt-compat
Konstantin Demin [Fri, 4 Jul 2025 08:03:14 +0000 (11:03 +0300)] 
dropbear: adjust with glibc and libcrypt-compat

glibc 2.39 has removed libcrypt completely.
solution: link against libxcrypt built with glibc compatibility.

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19293
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agolibpcap: adjust with glibc and libcrypt-compat
Konstantin Demin [Fri, 4 Jul 2025 08:03:14 +0000 (11:03 +0300)] 
libpcap: adjust with glibc and libcrypt-compat

glibc 2.39 has removed libcrypt completely.
solution: link against libxcrypt built with glibc compatibility.

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19293
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agoscripts/ext-toolchain: adjust with recent glibc
Konstantin Demin [Fri, 4 Jul 2025 08:03:14 +0000 (11:03 +0300)] 
scripts/ext-toolchain: adjust with recent glibc

glibc 2.39 has removed libcrypt completely.

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19293
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agotoolchain: adjust with recent glibc
Konstantin Demin [Fri, 4 Jul 2025 08:03:14 +0000 (11:03 +0300)] 
toolchain: adjust with recent glibc

glibc 2.39 has removed libcrypt completely.

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19293
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 weeks agotoolchain: glibc: Update glibc 2.41 to recent HEAD
Konstantin Demin [Fri, 4 Jul 2025 08:03:14 +0000 (11:03 +0300)] 
toolchain: glibc: Update glibc 2.41 to recent HEAD

9f48a8abb2b2 Remove advisories from release branch
0a7c7a3e283a NEWS: start new section
bdccbfbc52d3 math: Fix log10p1f internal table value (BZ 32626)
d85a7719536f math: Fix sinhf for some inputs (BZ 32627)
cb7f20653724 nptl: Correct stack size attribute when stack grows up [BZ #32574]
cf88351b685d math: Fix tanf for some inputs (BZ 32630)
69fda28279b4 assert: Add test for CVE-2025-0395
1e0e33e1b19a Fix tst-aarch64-pkey to handle ENOSPC as not supported
a900dbaf70f0 x86 (__HAVE_FLOAT128): Defined to 0 for Intel SYCL compiler [BZ #32723]
2cb04444b934 math: Fix `unknown type name '__float128'` for clang 3.4 to 3.8.1 (bug 32694)
07288c7445bb math: Add optimization barrier to ensure a1 + u.d is not reused [BZ #30664]
30992cb5e9d7 RISC-V: Fix IFUNC resolver cannot access gp pointer
7c9a0868077c Aarch64: Improve codegen in SVE asinh
94859e86807a Aarch64: Improve codegen in SVE exp and users, and update expf_inline
f3d9c116cb0a AArch64: Improve codegen for SVE erfcf
2025e27a817f AArch64: Improve codegen for SVE pow
7774a9d07ab2 AArch64: Improve codegen for SVE powf
6d1f97bb0667 aarch64: Add configure checks for GCS support
fda5730898bc aarch64: Add tests for Guarded Control Stack
61ba3cdfa9e9 aarch64: Add GCS tests for transitive dependencies
8d98ee8d70cd aarch64: Add GCS tests for dlopen
009c5a2dca7c aarch64: Add GCS test with signal handler
e0bc5f64eaf7 math: Improve layout of exp/exp10 data
c47c3890f15e AArch64: Add SVE memset
89be78704ed8 AArch64: Use prefer_sve_ifuncs for SVE memset
56609f8df1fa Pass -Wl,--no-error-execstack for tests where -Wl,-z,execstack is used [PR32717]
746ef8e93964 static-pie: Skip the empty PT_LOAD segment at offset 0 [BZ #32763]
fd202462c5f8 elf: Check if __attribute__ ((aligned (65536))) is supported
91f8cff2c48f configure: Fix spelling of -Wl,--no-error-execstack option
1a3083b99992 posix: Move environ helper variables next to environ definition (bug 32541)
66fc3bd75871 math: Remove an extra semicolon in math function declarations
33bfd9020fda Linux: Remove attribute access from sched_getattr (bug 32781)
e22c132484ea nptl: clear the whole rseq area before registration
98c712855d66 nptl: PTHREAD_COND_INITIALIZER compatibility with pre-2.41 versions (bug 32786)
ce9b765522f0 nptl: Check if thread is already terminated in sigcancel_handler (BZ 32782)
6a3a4a5e583a x86_64: Add tanh with FMA
7e72fa7577f2 x86_64: Add sinh with FMA
bcd4cf9d5ff2 x86_64: Add atanh with FMA
a282e2c0aee8 x86: Skip XSAVE state size reset if ISA level requires XSAVE
80cd6566496e x86: Use separate variable for TLSDESC XSAVE/XSAVEC state size (bug 32810)
200d20123cb8 x86: Link tst-gnu2-tls2-x86-noxsave{,c,xsavec} with libpthread
b861755a84ee elf: Extend glibc.rtld.execstack tunable to force executable stack (BZ 32653)
d6d56af6e78c elf: Fix arm-linux-gnueabihf build break from b861755a84
f68b407d4bc5 x86: Optimize xstate size calculation
aca31d27123d x86: Add ARL/PTL/CWF model detection support
a53e76465791 x86: Handle unknown Intel processor with default tuning
046b33800c3e x86: Detect Intel Diamond Rapids
5cb575ca9a3d elf: tst-audit10: split AVX512F code into dedicated functions [BZ #32882]
5b4c4617016d nptl: Fix pthread_getattr_np when modules with execstack are allowed (BZ 32897)
5cf17ebc659c hurd: Fix tst-stack2 test build on Hurd
dab44a3b2bb5 elf: Keep using minimal malloc after early DTV resize (bug 32412)
2ca34d76270d support: Use const char * argument in support_capture_subprogram_self_sgid
624285af3bfc elf: Test case for bug 32976 (CVE-2025-4802)
899dd3ab2fc2 x86_64: Fix typo in ifunc-impl-list.c.
515d4166f4db elf: Fix subprocess status handling for tst-dlopen-sgid (bug 32987)
d952c6efaa87 sparc: Fix argument passing to __libc_start_main (BZ 32981)
84bdbf8a6f2f ppc64le: Revert "powerpc: Optimized strncmp for power10" (CVE-2025-5745)
55cdcadf7306 ppc64le: Revert "powerpc: Fix performance issues of strcmp power10" (CVE-2025-5702)
b48d7ab03643 ppc64le: Revert "powerpc : Add optimized memchr for POWER10" (Bug 33059)
0c76c951620f ppc64le: Revert "powerpc: Optimized strcmp for power10" (CVE-2025-5702)
61e461ed0c16 sparc: Fix sparc32 Fix argument passing to __libc_start_main (BZ 32981)
11e634ccf32e support: Pick group in support_capture_subprogram_self_sgid if UID == 0
6e489c17f827 Fix error reporting (false negatives) in SGID tests

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19293
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>